正在加载视频...
视频加载失败
This guy literally breaks down every AI coding rule in under 15 minutes. Save this.
6 条评论

Pro tip, if you are using GitHub Copilot with VS Code, put your custom instructions first to .github/copilot-instructions.md : Here is a minimal example, what to put to that file: Use the latest version of libraries and programming languages. Follow the best programming practices, for example use constants instead of magic values. Generate comprehensive error checking by default. Make your code robust, elegant and easy to read. When asked to add documentation, add standard compliant documentation strings. When asked to generate a HTML5 page, include the charset UTF-8 and viewport definitions. Use modern HTML5 features like nav, header, footer, article instead of div-elements. Make HTML5 page CSS so that it is responsive and mobile friendly. When generating unit test code, also generate test cases for strings having Arabic and Chinese characters, very long string, empty string, very large and very small numbers, test with positive/negative infinity and not a number.

AI won't replace you, but a person using AI will. Join 500,000+ readers and learn how to use AI in just 5 minutes a day (for free).

@grok 深度总结下视频内容

Is this all really necessary? I assume it already has access to the data in the documentation. Most of those rules are useless, and will only pollute the context window

Wait, you think breaking AI rules is cool? We're over here building equitable AI with experts, not rule-breakers @PublicAIData

@grok summarize this video
