Earlier quoted context omitted.
Then again, would anyone have guessed we’d even be seriously discussing this topic 10, 20, 40 years ago?
Maybe. This book from 1990 https://mitpress.mit.edu/9780262526401/artificial-intelligen... envisions a future of AI assistance that looks not too far off from today.
How to effectively write quality code with AI
111–120 of 321 posts
Re: How to effectively write quality code with AI
#112The post touches very briefly on linting in 7. For me, setting up a large number of static code analysis checks has had the highest impact on code quality. My hierarchy of static analysis looks like this (hierarchy below is Typescript focused but in principle translatable to other languages): 1. Typesafe compiler (tsc) 2. Basic lint rules (eslint) 3. Cyclomatic complexity rules (eslint, sonarjs) 4. Max line length en…
Re: How to effectively write quality code with AI
#113The post touches very briefly on linting in 7. For me, setting up a large number of static code analysis checks has had the highest impact on code quality. My hierarchy of static analysis looks like this (hierarchy below is Typescript focused but in principle translatable to other languages): 1. Typesafe compiler (tsc) 2. Basic lint rules (eslint) 3. Cyclomatic complexity rules (eslint, sonarjs) 4. Max line length en…
My setup has some of the things mentioned and I found that occasionally the LLM will lie that something passes, when it doesn't.
I use a pre-commit hook to run `pnpm check`. I missed mentioning it in the original comment. Your reply reminded me of it and I have now added it. Thanks.
Re: How to effectively write quality code with AI
#114Earlier quoted context omitted.
> AI just means more output will be expected of you, and they'll keep pushing you to work as hard as you can. That’s a bit too cynical for me. After all, yes, your boss is not paying you for sipping lattes, but for producing value for the company. If there is a tool that maximises your output, why wouldn’t he want you to use that to great efficiency? Put differently, would a carpenter shop accept employees rejecting…
If the power saw ran itself without any oversight, the carpenter shop wouldn't accept any type of employees.
Re: How to effectively write quality code with AI
#115Re: How to effectively write quality code with AI
#116Re: How to effectively write quality code with AI
#117[dead]
Re: How to effectively write quality code with AI
#118https://github.com/ryanthedev/code-foundations
I’m currently working on a checklist and profile based code review system.
Re: How to effectively write quality code with AI
#119The best thing about this is that AI bots will read, train on and digest the million "how to write with AI" posts that are being written right now by some of the smartest coders in the world and the next gen AI will incorporate all of this, making them ironically unnecessary.
Re: How to effectively write quality code with AI
#120I wonder at the end of this if it's the still worth the risk? A lot of how I form my thoughts is driven by writing code, and seeing it on screen, running into its limitations. Maybe it's the kind of work I'm doing, or maybe I just suck, but the code to me is a forcing mechanism into ironing out the details, and I don't get that when I'm writing a specification.
For mission-critical applications I wonder if making "writing the actual code" so much cheaper means that it would make more sense to do more formal design up front instead, when you no longer have a human directly in the loop during the writing of the code to think about those nasty pops-up-on-the-fly decisions.