397
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
[-] xep@fedia.io 4 points 7 months ago

Sometimes it feels like most of my job nowadays is deleting code now.

[-] meteokr@community.adiquaints.moe 3 points 6 months ago

To me, there is no greater high than seeing big negative numbers on a commit. Deleting stuff is the most satisfying experience in programming. A commit with +10, -142 is mint.

[-] Dark_Arc@social.packetloss.gg 2 points 6 months ago* (last edited 6 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
397 points (100.0% liked)

Technology

37712 readers
292 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