Gleb Bahmutov PRO
JavaScript ninja, image processing expert, software quality fanatic
C / C++ / C# / Java / CoffeeScript / JavaScript / Node / Angular / Vue / Cycle.js / functional programming / testing
glebbahmutov.com/blog testing posts
A typical Mercari US Cypress E2E test
2022: Mercari US disallows using AI code generation assistants pending a legal review
2023: Mercari US allows using AI code generation assistants after a legal review
Profit!!!
VSCode Copilot Extension
Which model?
Mercari US isn't paying for Copilot GH CLI extension
Tip: VSCode Copilot Chat extension
can provide the same info as GitHub CLI copilot
Is GitHub Copilot
making me more productive?
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
Add a comment like "// format the price using USD currency" to see better suggestions
imprecise for the computer
cy
command chain/fix
command/doc
command to generate JSDoc commentscy.log
commandshttps://github.com/bahmutov/cypress-copilot-example
branch bonus02
❤️ the "/explain" command
GitHub Copilot is the "Y" key when playing Mario
Download public models (almost like Docker!)
{
"models": [
{
"title": "DeepSeek Coder 6.7b",
"provider": "ollama",
"model": "deepseek-coder:6.7b"
},
{
"model": "claude-3-5-sonnet-latest",
"provider": "anthropic",
"apiKey": "",
"title": "Claude 3.5 Sonnet"
}
],
"tabAutocompleteModel": {
"title": "DeepSeek Coder 6.7b",
"provider": "ollama",
"model": "deepseek-coder:6.7b"
},
"embeddingsProvider": {
"provider": "ollama",
"model": "nomic-embed-text"
}
}
Stay tuned for a blog post about it
For more, see https://cypress.tips/courses
By Gleb Bahmutov
I want to show you the secret weapon I have used for the past year. The GitHub Copilot lets me write full tests quickly, fills the gaps in my knowledge of 3rd party tools, and even writes clear descriptive commit messages. But it is not a "press the button to do it all". You need to guide the AI to do the right thing, which takes experience, but most importantly, you need to decide _what_ you want the AI to do, step by step. Remember: AI is not going to replace you any time soon. But someone more productive with AI's help might get ahead. Let's learn Copilot for real-world test writing. It might change how you work. If you master it, Copilot becomes your super weapon. It is like playing Super Mario - in some games, you can dash quickly by pressing the "Y" button, but you need to be pointing in the right direction first. Presented at MaineJS 2024 video at https://www.youtube.com/watch?v=rTIwu8V2ujg
JavaScript ninja, image processing expert, software quality fanatic