Hacker News with Generative AI: Code Quality

Interview gone wrong (ashu1461.com)
I have a very basic question which I usually ask in a interview which is to implement a tic tac toe game. I like this because the logic is straightforward and it helps to judge things like code quality / speed / conciseness etc.
Write code that is easy to delete, not easy to extend (2016) (programmingisterrible.com)
“Every line of code is written without reason, maintained out of weakness, and deleted by chance” Jean-Paul Sartre’s Programming in ANSI C.
Rubocop-obsession: RuboCop extension focused on higher-level concepts (github.com/jeromedalbert)
A RuboCop extension that focuses on higher-level concepts, like checking that code reads from top to bottom, or only unit testing public methods. There are some lower-level cops as well.
Code Quality at Scale with AST Grep and LLMs (coderabbit.ai)
Smart teams embrace coding standards; smarter teams make them a habit. Coding standards often take a backseat to tight deadlines and pressure to ship features quickly. However, neglecting coding standards lead to a host of problems down the road, affecting code maintainability and increased bug rates.
Accumulated Test Vectors (filippo.io)
I like tests. I especially like reusable test vector libraries. Sometimes test vectors are lovingly handcrafted to target obscure edge-cases. Those vectors belong in Wycheproof or with the upstream specification. Sometimes though vectors are produced by sheer brute force. Enumerate every possible input and check the output. Try a million random inputs and see what happens. Combine all possible input sizes for every parameter. Make one very, very large input.
Correlation between swearwords and code quality in open-source code? (2023) [pdf] (h-its.org)
Ask HN: How to deal with AI generated sloppy code (ycombinator.com)
Build a custom Python linter in 5 minutes (sylver.dev)
Beyond Clean Code (tobeva.com)
Parse, Don't Validate (2019) (lexi-lambda.github.io)
What's Coming Next for ESLint (eslint.org)
Good code is rarely read (alexmolas.com)
What makes a great contribution to a codebase? (eliperkins.com)
Linting code for LLMs with Tree-sitter (aider.chat)
Clever code is probably the worst code you could write (2023) (engineerscodex.com)