logoalt Hacker News

3036e4last Sunday at 12:40 PM4 repliesview on HN

Maybe optimistic, but reading posts like this makes me hopeful that AI-assisted coding will drive people to design more modular and sanely organized code, to reduce the amount of context required for each task. Sadly pretty much all code I have worked with have been giant messes of everything being connected to everything else, causing the entire project to be potential context for anything.


Replies

bongodongoboblast Sunday at 8:49 PM

It's really very good at that. Frequently, I'll have something I've been working on over the years that has turned into an interconnected mess. "Split this code into modules of separated concerns". Bam, done. I used Claude for the first time last week and gave it a 2k line PowerShell script and it neatly pulled it apart into 5 working modules on the first try. Worked exactly the same, and ended up with better comments too.

show 1 reply
aitchnyulast Monday at 10:20 AM

Guess the name: In 2015 I was preaching that ____ simplfies the mental model of your web app, makes everything performant, the api will dominate and endure for decades. Answer: React. Soon, we were feeling the induced demand for features and timelines till we regressed to our natural "hair on fire" state. AI is (not just) a better footgun.

epolanskilast Sunday at 3:19 PM

It does, you're essentially forced to write good coding guidelines and documentation.

mathiaspointlast Sunday at 12:45 PM

LLMs will write code this way if you ask but you have to know to ask.

show 1 reply