WhoBuilt

Move Fast Break Nothing

Nov 8, 2023· 13 min· 1.5K views·Watch on YouTube

Speaker

Dedy Kredo of CodiumAI presents the company’s approach to code quality and a live product demo at an AI Engineer event.

A critic for generated code

Kredo compares GANs, which pair a generator with a critic, with Transformers, which focus on generation. He argues that code generation benefits from a system-level critic because code is nuanced and must match developer intent. CodiumAI’s Code Integrity component analyzes generated code for behaviors and edge cases.

Behavior coverage and test generation

Kredo says CodiumAI focuses on helping developers understand code behavior, which he considers more useful to measure than code coverage. In a VS Code demo, he uses the extension on Autoscraper, a roughly 600-line open-source project with more than 5,000 GitHub stars and no tests. Codium maps behaviors, explains the class, and generates tests for happy paths and edge cases; Kredo selects tests and runs them with an autofix feature.

Enhancing code and preparing a PR

With tests in place, Kredo asks Codium for improvements to a method and applies a suggestion to replace a hash with Blake3 for performance. A test fails after the change, and he sets it aside during the demo. He then shows the PR assistant generating a commit message and reviewing the changes, which flags a possible security issue involving an API key.

A personal closing

Kredo recaps using Codium to map behaviors, generate tests, enhance code, and review changes across the development lifecycle. He also mentions a GitHub plugin. He closes by describing the attack on Israel while his company was traveling, and shares that co-founder and CEO Itamar had left his pregnant wife to serve in the military reserves.

Takeaways

  • Map important code behaviors before choosing which tests to write.
  • Generated tests can cover edge cases as well as expected behavior.
  • Run tests after applying code suggestions; the demo included a failure after a change.
  • Use code review to surface issues such as exposed API keys before preparing a PR.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • integrates with
    Windsurf integrates with GitHub
    “our GitHub plugin”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Windsurf integrates with VS Code
    “our IDE extensions for both JetBrains and VS Code”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Windsurf integrates with JetBrains
    “our IDE extensions for both JetBrains and VS Code”
    YouTube
    Unverified1 source· Talk
  • feature
    Windsurf: Helps developers understand code behavior, generate tests, enhance code, and review code throughout the developer lifecycle
    “We help developers understand the behaviors of their code.”
    YouTube
    Unverified1 source· Talk
  • metric
    Codium: Around 200,000 installs across JetBrains and VS Code
    “We now have around 200,000 installs across both JetBrains and VS Code.”
    YouTube
    Unverified1 source· Talk
  • feature
    Codium: Maps code behaviors and generates tests, including happy paths and edge cases
    “Codium analyzes the class. It maps out different behaviors and starts generating tests.”
    YouTube
    Unverified1 source· Talk
  • feature
    Codium: Runs tests and attempts to generate fixes for failing tests
    “When a test fails, the model analyzes and reflects on the failure, then tries to generate a fix automatically.”
    YouTube
    Unverified1 source· Talk
  • feature
    Codium: Suggests code improvements for performance, security, and readability
    “Codium analyzes this code and recommends improvements and enhancements.”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks