| ▲ | stavros 4 days ago |
| I beg to differ. |
|
| ▲ | jagged-chisel 4 days ago | parent | next [-] |
| No need to beg. Everyone’s got their opinion. I just wish, this being Hacker News, that more people would articulate their different opinions instead of just stopping with “I disagree.” |
| |
| ▲ | stavros 4 days ago | parent [-] | | Well, my first comment said "reading code is harder than writing code", your comment said "reading good code is easier than writing good code". I believe the two points are about equally articulated. | | |
| ▲ | jagged-chisel 3 days ago | parent [-] | | Neither comment is mine. I’m here in the outside wanting to understand the arguments you have in your heads. Sure, the two comments you mention are equally under-articulated. Either continue the discussion for the benefit of others on the site, or leave it as it stands. Stating “I beg to differ” is pointless. | | |
|
|
|
| ▲ | fnordpiglet 3 days ago | parent | prev | next [-] |
| This is the sign of seniority IMO. First you learn to write code. Then you learn to write code that can be read. Then you learn to modify code. Then you learn to read other people’s code. Then you learn to modify other people’s code. Then you learn to own code regardless of who reads or writes it. At this point in my career 35 years in I find reading and writing code whether I wrote it or other did irrelevant. Bad or good code, it’s all the same. By far the most effective work I do involves reading a lot of complex code written by many people over many years and seeing the exact one line to change or improve. I find LLM assisted coding very similar frankly. I’ve finished maybe 20 projects or more on the last seven months on my own time that I never would have been able to do in my lifetime for want of free time to learn minutia in stuff I am not familiar with. The parts it get hung up on I’m able with quick inspection to recognize and unwedge it, just like any junior engineer. The junior engineers also are often much better versed in XYZ library than I am. |
| |
| ▲ | theshrike79 3 days ago | parent | next [-] | | This is the thing. LLM assisted coding ("vibe coding") is just project management. You ask it to do things, then you check the work to a sufficient degree. The better the specifications and documentation you give it, the better the result will be. Keeping tasks short and verifiable also helps a lot. I've written SO many small tools for myself during the last year it's not even funny. Upgraded some shitty late night Python scripts to proper Go applications with unit tests and all, while catching up on my TV shows. Converted my whole rat's nest of Docker compose files to a single Opentofu declarative setup. None of this would've gotten done without an LLM assistant. | | |
| ▲ | fnordpiglet 2 days ago | parent [-] | | Funny I end up working on 5-6 things at once that are fairly varied. My favorite rats nest is rebuilding by DIY NAS as a NixOS declaration so I can rebuild the filer root from GitHub. |
| |
| ▲ | ontouchstart 3 days ago | parent | prev [-] | | I’m at the same point as well. Doing more reading than writing. Just want to add one more point: code is not fiction or even nonfiction, “good or bad” style can be subjective, but correct or not correct is not, regardless of the reviewer’s mental model. The difficulty of reading code is to understand its logic and logical consequences. The more complex the codebase (not just the line we are reading), the more risky to modify it. That is why I use LLM to write a lot of tests and let it review the logs to help me understand the logic. Even the tests can be disposable. |
|
|
| ▲ | AlexCoventry 3 days ago | parent | prev [-] |
| Why is reading code harder than writing it? |
| |
| ▲ | blackoil 3 days ago | parent [-] | | I think it has to do with mental model. If you already know what to write and it is reasonably complex you'll have a mental model ready and can quickly write it down (now even faster as LLMs autocomplete 3-4 lines at a time). While reading someone else code you'll have to constantly map the code in your mind with code written and have to then compare quality, security and other issues. | | |
| ▲ | stavros 3 days ago | parent | next [-] | | Yeah, it's exactly this. Having to create a mental model from the code is much harder than having one and just writing it out. | | |
| ▲ | AlexCoventry 3 days ago | parent [-] | | I just tend to find LLM code output extremely to read, I guess. It tends to be verbose and do a lot of unnecessary stuff, but I can always get the point easily and edit accordingly. |
| |
| ▲ | theshrike79 3 days ago | parent | prev [-] | | I'd say just reading your own code from a few years back will be as hard as reading someone else's. |
|
|