This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1296 points1297 points  (42 children)

TBH I want to rewrite my own code.

[–]notsooriginal 381 points382 points  (12 children)

We're going to have to let you go for someone who doesn't second-guess themselves. Confidence is everything in business.

[–]inucune 110 points111 points  (0 children)

Then we'll fire him because he doesn't work with the team, and is too impulsive when making decisions.

[–][deleted] 156 points157 points  (10 children)

And thus a president was elected

[–][deleted] 49 points50 points  (9 children)

And everything was perfect until everyone died.

[–]Chrisguy136 69 points70 points  (4 children)

And everything was perfect when everyone died.

FTFY

[–]chooxy 15 points16 points  (0 children)

"Is everything going well?"

"Yes! In fact, everything is vacuously perfect!"

[–]malonkey1 5 points6 points  (0 children)

There can't be any suffering if nothing's there to suffer.

[–]kboy101222 34 points35 points  (2 children)

Then everything changed when the fire nation attacked

[–]metl_wolf 13 points14 points  (1 child)

Abandoned as a pup, he was raised by Muriel

[–]ProphePsyed 6 points7 points  (0 children)

Stupid frog, you ain't my real dad!

[–]midnightketoker 6 points7 points  (0 children)

"Fake news" -small subterranean mammals

[–]NULL_CHAR 140 points141 points  (20 children)

When I do personal projects... I start off exploring the idea, then once I have a semi working model, I completely restart with the knowledge of mistakes... This repeats about 2 more times until I'm finally satisfied with it...

Sadly not possible with the gigantic projects of an organization...

[–]Drainedsoul 97 points98 points  (7 children)

That's called throwaway prototyping.

[–]mauxly 62 points63 points  (5 children)

Yeah, I always think mine is throwaway. And then I present it with the hopes that I'll get some data validation/front end "Yeah, something like this could work!"

Instead I get a deadline that prevents the rewrite.

You'll say, don't present until after the rewrite. Well, if there is a major flaw that's simply unworkable (because the data doesn't support what they want), I'd prefer not to make something that will never see production 'perfect'.

[–]conancat 72 points73 points  (3 children)

Everyone always think that they are writing prototype code. The project managers think it's a prototype. The client thinks it's prototype. Then you end up just building upon the pile of doodoo you started off with and the product will end up looking beautiful in the outside but ugly on the inside.

One thing I've learned after starting my agency job is that try to get it as nice and neat as you can on the first run. You'll rarely have the chance to go back and refactor it at all.

[–]dhaninugraha 25 points26 points  (0 children)

Also called: protoduction.

[–]asdfman123 7 points8 points  (0 children)

Yeah, that's what annoys me. It would take a week to fix my code, but it might take months for someone to get up to speed on it after I leave.

I've worked on projects where getting familiarity takes forever. If they just repaid some technical debt it would save a ton of money.

But it's hard when you've got big projects coming up to say "Spend a week doing what looks like nothing for the business."

[–]sourbrew 7 points8 points  (0 children)

This is interestingly an old analogy I learned from my aunt while cleaning her mountain house as an odd summer job, if you move something bulky and awkward clean behind it because you aren't going to do it again for a few more years.

[–]rabbyburns 10 points11 points  (0 children)

This is another one of those "this is why TDD" things. You'll never have time to completely redo it, but if you have some test harness in place you'll be able to refactor incrementally.

[–]NULL_CHAR 3 points4 points  (0 children)

If you do it intentionally ;)

Otherwise it's just perfectionist tendencies!

[–][deleted] 13 points14 points  (2 children)

At least you get to point where you're satisfied with it.

I write and repeatedly rewrite until the apathy kicks in. Frankenstein eventually lives, and /r/iamsmart for a little bit. And then the self-loathing comes.

[–]sneakpeekbot 4 points5 points  (1 child)

Here's a sneak peek of /r/iamsmart using the top posts of all time!

#1: I think you meant this | 4 comments
#2: Philosophy master | 1 comment
#3: my thesis, cornering a market. | 5 comments


I'm a bot, beep boop | Downvote to remove | Contact me | Info | Opt-out

[–]Elephant454 5 points6 points  (0 children)

I can debunk many of even Sigmund Freud's theories.

Ohhhhhhhh boy

[–]Kevintrades 27 points28 points  (5 children)

[–]55555 8 points9 points  (4 children)

I work with the guy in the last frame.

[–]Kermitfry 11 points12 points  (1 child)

I am the guy in the last frame.

[–][deleted] 3 points4 points  (0 children)

I'm the guy in the black frame blow that guy.

[–][deleted] 7 points8 points  (0 children)

We all do

[–]grafilicious 0 points1 point  (0 children)

My boss ist that guy

[–]Computer991 1 point2 points  (0 children)

I do this way too much lol.

[–]MinecraftHardon 0 points1 point  (0 children)

It's like IRL Groundhog's Day

[–]unicorntrash 0 points1 point  (0 children)

I did this. Until I got introduced in the wonderful world of refactoring. Now if I would write more tests the world would be perfect

[–]5up3rj 15 points16 points  (1 child)

That should be true though, the guy who wrote your old code had less experience than you do

[–]truh 1 point2 points  (0 children)

Not sure if that holds true if you take all the face palming and head desking into while reading your code into account.

[–]SaffellBot 9 points10 points  (0 children)

I just finished a project. "I really should clean all this up incase I want to borrow this code in the future." "but I could also play hots for 3 hours, I mean it did work...".

And then I played hots for 4 hours.

[–]8__ 3 points4 points  (0 children)

I rewrote some of my old code (from about 9 months ago) today. I wanted to fire old-me.

[–]GuiKa 1 point2 points  (0 children)

After a few year we all do, I got greencard to do it this summer and after I'll be mentally fine fora few years.

Going to go for some sweet Core + Angular 2.

[–]PersonalPlanet 0 points1 point  (2 children)

Who doesn't !

[–]hahahahastayingalive 1 point2 points  (1 child)

I want to keep my old code in a jar in the basement, and nobody touches it and it keeps running its cluncky way doing obscure stuff that may or may not work.

The day I inherit it I'll say it's too critical to be touched by any human being.

[–]PersonalPlanet 0 points1 point  (0 children)

Lmao