💾 Archived View for bbs.geminispace.org › u › johan › 3909 captured on 2024-08-18 at 20:59:49. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-07-09)

🚧 View Differences

-=-=-=-=-=-=-

Comment by ☕️ johan

Re: "5 Things I’ve Learned in 20 Years of Programming"

In: s/programming

Regarding #1 I generally agree but I have found there are some cases where introducing a new module with some overlapping functionality actually reduces complexity and readability to such a degree that it is worth it. It was a hard learned lesson and it feels unintuitive but there is a balance to be struck here between de-duplication and complexity. The big problem ironically lies in changing the code when the code deduplication has created this web of dependencies if not done carefully.

☕️ johan

2023-08-07 · 1 year ago

2 Later Comments ↓

🦀 jeang3nie · 2023-08-07 at 15:12:

The part about TDD was nice, and I imagine a lot of people have had similar experience. I didn't think much of it myself until I forced myself to give it a try and realized how many bugs I was catching along the way. What's more, they were being caught much closer to the call site, making debugging that much easier.

Nice article overall. Thanks for sharing.

🎵 xavi · 2023-08-08 at 08:57:

The article gave me sort of a "I am a middle-aged, American white programmer, so listen to me, you inferior junior human being" attitude, that of course I do not particularly agree with.

I agree with others here that code duplication is not *always* bad. Programming is often about making tradeoffs. However, it is true sometimes that some decisions are made, when possibly thinking for a better solution for a couple of hours could have avoided it.

Original Post

🌒 s/programming

— gemi.dev/cgi-bin/waffle.cgi/article?https%3A%2F%2Fdaedtech.com%2F5-things-ive-learned-in-20-years-of-programming%2F

5 Things I’ve Learned in 20 Years of Programming

💬 ahappydeath [mod] · 3 comments · 3 likes · 2023-08-07 · 1 year ago