416
submitted 7 months ago by ElCanut@jlai.lu to c/technology@beehaw.org
you are viewing a single comment's thread
view the rest of the comments
[-] Dark_Arc@social.packetloss.gg 2 points 7 months ago* (last edited 7 months ago)

Be careful with that one. I'm not sure about your experience level, but a mistake newer (and some more experienced) programmers often make is taking DRY too far.

It's easy to "dry" something up to the point where it's spaghetti that's overly clever about how it reduces lines of code resulting in some crazy inheritance hierarchy even you (the author) are afraid to change a few years down the road.

There are of course other times when someone just copy and pasted e.g. sort logic all over the code base ... but that sort of thing is relatively rare

this post was submitted on 13 Apr 2024
416 points (100.0% liked)

Technology

37738 readers
353 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS