Carighan,
@Carighan@lemmy.world avatar

… said no programmer, ever. Especially not after hearing about a cool new feature in their favorite language or library that was just added in the newest unstable version!

ikidd,
@ikidd@lemmy.world avatar

Fix it til it breaks.

FatTony,
@FatTony@lemmy.world avatar

I don’t care, you’re not to use static!

treechicken,
@treechicken@lemmy.world avatar

This week I am to propose two major redesigns to an external API and webpage on my rollercoaster of a project. Let’s see this code monkey land a backflip :,)

AlmightySnoo,
@AlmightySnoo@lemmy.world avatar

That’s a good way of maximizing technical debt.

h_a_r_u_k_i,

This is actually not a good advice, from my experience. If we don’t monitor, refactor, or improve the code, the software will rot, sooner or later. “Don’t touch” doesn’t mean we don’t ever think about the code, but we make the conscious choice not to modify it.

FiskFisk33,

if it’s stupid and it works, it’s still stupid, and you’ve been lucky this far.

shalva97,

I accept the challenge

wabafee,

Or you do the right thing re-write or refactor, apply the latest practice add some tests to it. This way you won’t have a black box anymore. Who knows there might be a hidden bug there that might be a huge security issue and could bite you back in the future.

Secret300,

Sorry I live by “if it ain’t broke, I’ll fix it”

kamen,

No, we must rewrite it in this fancy new framework that came out last week.

(/s if not obvious)

tsonfeir,
@tsonfeir@lemm.ee avatar

I’m a big fan or refactoring and rewriting my code as often as I can. Not only does it keep my brain “on topic” but it allows me to make major improvements. Nothing will ever be perfect. Just try to leave it in a better state than it was before.

Da_Boom,

At least untill you refactor something, and the act of refactoring, even though it shouldn’t logically cause any problems, causes everything to break.

tsonfeir,
@tsonfeir@lemm.ee avatar

Then you’re not done refactoring ;)

Da_Boom,

Though usually not long after that point you start to ask yourself “Why the fuck did I get myself into this mess”

tsonfeir,
@tsonfeir@lemm.ee avatar

That’s ever day of my life 🥹

trustnoone,

The best debugger is a good night sleep.

jetsetdorito,

flipside: it needs to be fixed but the only person who understands it is OOO

Vlyn,

Yeah, I’ve worked with the leave it alone types. What do you get in return? Components of your system which haven’t been updated in the last 20 years and still run .NET 3.5. They obviously never stopped working, but you have security concerns, worse performance (didn’t matter much in that case) and when you actually need to touch them you’re fucked.

Why? Because updating takes a lot of time (as things break with every major revision) and on top of that if you then decide not to update (yeah, same coworker…) then you have to code around age old standards and run into bugs that you can’t even find on Stack Overflow, because people didn’t have to solve those in the last 20 years.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmerhumor@lemmy.ml
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • Leos
  • provamag3
  • cisconetworking
  • megavids
  • lostlight
  • All magazines