News for hackers. Stuff that matters.
Re:Ask HN: Did AI make you a worse programmer? by alex5207 on Monday January 06, 2025 @03:03PM (#42614991)
Obviously I didn't mean to imply that your merits as a programmer should be judged by your ability to recall specific syntax, like the equality operator in some language.

I'm wondering about the long term effects of not paying attention to such details. Do you miss out on picking up patterns used by a certain library, framework, language or whatever, that you could have used to write your own code better?

Re:Ask HN: Did AI make you a worse programmer? by PaulHoule on Monday January 06, 2025 @04:11PM (#42615893)
Sometimes there are little details that increase risk if you don't pay attention to them.

Like can't you use either "==" or "===" in Typescript but the first one can sometimes do a type coercion that can occasionally have unexpected effects? If I remember right it is a warning but not an error, a programmer who is clearing up warnings will stay out of trouble but if you weren't clearing warnings it would make a difference if you had a "==" or "===".

One thing that makes you a better dev as opposed to a worse dev is your habits, especially when it is something obscure where the compiler and IDE don't have your back.

Re:Ask HN: Did AI make you a worse programmer? by fragmede on Monday January 06, 2025 @04:25PM (#42616054)
Hopefully there's a senior/staff engineer where you're at that actually knows the difference and is able to (find time to) comment on PRs where the wrong one is used. It's one of those "background radiation" things that you develop after working in a language for long enough.
Re:Ask HN: Did AI make you a worse programmer? by smt88 on Tuesday January 07, 2025 @10:42AM (#42623569)
TypeScript on the strictest settings + aggressive ESLint rules is incredibly strict and a fantastic target for AI code. It's a good practice to have the CI/CD server reject code that fails ESLint anyway.