r/ProgrammerHumor • • Sep 23 '22

Refactoring "Just working solution ".

Post image
54.8k Upvotes

355 comments sorted by

3.1k

u/TerriblyCoded Sep 23 '22

Past me: “Hahaha! I’M A GENIUS!”

Present me: “OH NO!”

313

u/omgFWTbear Sep 23 '22

I learned .. who was it, Knuth who said, “Never write code as clever as you can, because debugging is harder than coding, so …”

As many others, I received a full scholarship in my degree on that from the University of Hard Knocks, the School of Blood, Sweat, and Tears; later on, I shared this wisdom to my now-ex who started her career after me, she thought it was ridiculous to ever not be your cleverest.

As they say, you can lead a horse to water …

107

u/derefr Sep 23 '22 edited Sep 23 '22

Put all your cleverness to the task of simplifying.

The cleverest solution is one that automates everything and hits all the edge-cases correctly but which uses no code at all, and has nothing to maintain or understand.

E.g. "the system you're describing to me as wanting to have built, has exactly the semantics of an XMPP server, just put to the use of machine-to-machine communication. Just install ejabberd, and point your machines at it using XMPP client libraries."

The "cleverness" in such cases, usually comes from realizing that your problem domain is a clean isomorphism of some other seemingly-completely-unrelated problem domain. Like a mathematician realizing that an existing proof of X also already proves Y as a corollary.

80

u/omgFWTbear Sep 23 '22

task of simplifying

I realized I could solve this one problem with a REGEX, and now I have two problems…

26

u/akatherder Sep 23 '22

I need a regex to validate email address.

(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=
?^_`{|}~-]+)*|" (?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b
\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9]
(?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\
[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]
|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\
x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c
\x0e-\x7f])+)\])

Well that was intuitive.

→ More replies (4)
→ More replies (6)

13

u/vadiks2003 Sep 23 '22

task of simplifying is kinda tough. i always misunderstand the simplifying part. it's not the "make the job very easy and clumsy" it's "make everything short and readable as hard as you can". there really should be an example of simplifiying a code, because withotu an example, stuff might be understood wrong

atleast that's what i think, i'm not really a programmer yet

→ More replies (7)
→ More replies (1)

142

u/brimston3- Sep 23 '22

If it took you 2 weeks to figure out complex system interactions at the height of your power, it’s probably going to take you 4 weeks now to figure out why the jank solution works and how to make a non-jank fix for it.

0

u/[deleted] Sep 23 '22

[deleted]

→ More replies (3)

57

u/FVMAzalea Sep 23 '22

The actual quote is a lot nicer:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

And it was Brian Kernighan.

26

u/omgFWTbear Sep 23 '22

Sounds like a smart fellow who should write a book. If he did, I’d be sure to read it. And then misattribute quotes from his august peers to/from him.

→ More replies (1)

18

u/[deleted] Sep 23 '22

Always write code as if the next person is a murderous psychopath who knows where you live.

Usually that next person is me and I hate myself for it.

Seriously though I'll take code that is more verbose and self documenting over "clever" code any day of the week. If you think you're being clever when you're writing something it's time to do your due diligence to make sure your solution is something that is maintainable long term esp if you aren't going to be the one on the team maintaining things.

13

u/cephles Sep 23 '22

I write code as though a complete idiot will be looking at it a few months from now (I'm the idiot).

→ More replies (1)

760

u/Mister_Lich Sep 23 '22

I've never identified with a comment more in my entire life

46

u/SmallAspec Sep 23 '22

that a problem for the next intern, fuck that guy anyway lol

→ More replies (14)

33

u/[deleted] Sep 23 '22

For me that's simplifying the code, I untangled and simplified one big function and now it turns out I'm slowly adding special cases into it back again. Ehh, it was a mess and it's slowly becoming a mess again.

17

u/Kyouma118 Sep 23 '22

Well there's a limit to how much you can simplify something. Sometimes spaghetti code is the only answer.

→ More replies (2)

11

u/[deleted] Sep 23 '22

ANYWAY

6

u/StefanL88 Sep 23 '22

Fuck future me. Also, why is past me such a cunt?

4

u/necroticon Sep 23 '22

This could be my autobiography

4

u/[deleted] Sep 23 '22

Past me is a dick

→ More replies (1)

2

u/nickmaran Sep 23 '22

Future me: anyway

→ More replies (6)

845

u/[deleted] Sep 23 '22

I'm always future me

290

u/that_thot_gamer Sep 23 '22 edited Sep 23 '22

it caught up to you too? huh, that's a problem for the next intern, fuck that guy anyway lol

93

u/[deleted] Sep 23 '22

Time to move companies and find a new future you

57

u/[deleted] Sep 23 '22

I always dream of not having to maintain the code I write.

35

u/Angus_Dagnabbit Sep 23 '22

You just hop companies before that ever happens, haha.

→ More replies (2)
→ More replies (1)
→ More replies (1)

13

u/[deleted] Sep 23 '22

Future me always gets screwed over by past me, so why in the hell is he going to make it easier on even further in the future me? Future me is already having a hard enough time without having to worry about some other person's shit.

In fact, fuck him, I'll make it even harder on him for having the gall to expect me to accommodate him. That'll teach him a lesson.

4

u/filesalot Sep 23 '22

Past me is a dick, always screwing me over. But future me is really nice, he'll do anything for me.

4

u/tinydonuts Sep 23 '22 edited Sep 24 '22

Future me always gets screwed over by past me, so why in the hell is he going to make it easier on even further in the future me? Future me is already having a hard enough time without having to worry about some other person's shit.

That's always the problem. Management forces high workload and short deadlines, causing developers to take copious loans from the First National Bank of Technical Debt. Then future us have to pay back that debt plus interest, plus the new workload. That causes more tech debt, which further burdens future us. It's a vicious cycle, like real debt. Unless someone can teach management austerity so that we have a chance to pay down that debt without incurring new debt, we're enslaved by tech debt forever.

8

u/FirstRedditAcount Sep 23 '22

Future me HATES past me. And vice versa.

5

u/Creo7 Sep 23 '22

I dont hate or love future me but I hold him to ridiculous expectations

→ More replies (2)

269

u/TheC0deApe Sep 23 '22

i always try to code for the next guy. i also presume that i may be the next guy.

66

u/Seppo_Manse Sep 23 '22

you are always the next guy

43

u/insanelygreat Sep 23 '22

Same, even on personal projects I don't intend on publishing. Because the next time I touch it it might as well have been written by someone else.

23

u/Antrikshy Sep 23 '22

Even more so on personal projects. At work, my teammates and I touch our code way more frequently than anyone touches my personal projects once written. So it becomes a lot harder to read if I don't write an ample amount of comments and readme docs.

6

u/Sizzlik Sep 23 '22

Every time i open old code of mine i get the same reaction: "What the..how...hmm..ah, right..ok"

→ More replies (2)

503

u/djnehi Sep 23 '22

Past me was a dick.

223

u/Beneficial_Arm_2100 Sep 23 '22

Yeah, same. But future me is a real pushover lol. I push stuff off to him all the time and he just takes it.

51

u/SirRHellsing Sep 23 '22

This is gold, future us must absolutely hate us though

→ More replies (2)

10

u/QuakAtack Sep 23 '22

sometimes I think present me is the only one who knows what to do

20

u/A-le-Couvre Sep 23 '22

How’s present you doing?

15

u/[deleted] Sep 23 '22

Present him is a vagina.

10

u/Coulomb111 Sep 23 '22

Now THIS is a twist…

7

u/TheGreenJedi Sep 23 '22

Fucking past me, what a moron

3

u/Tis_A_Fine_Barn Sep 23 '22 edited Sep 10 '25

bear humorous serious square melodic edge soup attraction offbeat light

This post was mass deleted and anonymized with Redact

2

u/harbourwall Sep 23 '22

I can even remember me saying "Fuck you, future me. Haha"

→ More replies (1)

123

u/EwgB Sep 23 '22

The solution is to change jobs every couple of years. Has worked out so far!

37

u/brianl047 Sep 23 '22

Makes more money too!

17

u/EwgB Sep 23 '22

For sure. I didn't leave my last job because of money, was probably willing to leave for same money even. But I wasn't not gonna ask for more.

11

u/[deleted] Sep 23 '22

I worry that if I don't comment things, whoever replaces me might come and kill me in my sleep.

4

u/EwgB Sep 23 '22

Don't worry, if that was possible, there are so many people I would've "visited".

613

u/[deleted] Sep 23 '22

I see Tom Scott, I upvote

253

u/aneurysm_ Sep 23 '22

Same. I love what his channel has become over the past few years especially

188

u/maciejokk Sep 23 '22

His videos are like that one random ass thought you get at 3 am and that’s awesome

0

u/[deleted] Sep 23 '22

[deleted]

53

u/anactualsalmon Sep 23 '22

Napoleon was short and French. That’s about as bad as it gets.

→ More replies (1)

46

u/aryvd_0103 Sep 23 '22

I just hope he brings stuff like the basics back. Really loved those as well

Also his second channel has some real bangers like the board game episodes and the airtag chase through the city with mrwhosetheboss and some other great stuff as well

30

u/izacmac Sep 23 '22

The rollercoaster episode is the best video toms ever made.

→ More replies (3)

20

u/joeffect Sep 23 '22

You also have "The Technical Difficulties" channel with him and his friends, and is completely different which replaced "Matt and Tom." it has two of these people are lying which is a great little show.

I really wish there was someone like him in the USA, his recent visit made me wish that even more

→ More replies (4)

5

u/CminerMkII Sep 23 '22

I watch the beardyman video every 2 days I swear

19

u/Antrikshy Sep 23 '22

Especially the Tom Scott plus channel. He said in his MKBHD interview that it feels like it's slowly becoming the main channel. I can see why.

9

u/danabrey Sep 23 '22

He is the prime example of "YouTube? What actual good TV quality content is on YouTube?!". Tom Scott.

→ More replies (3)

5

u/DoppieGamer Sep 23 '22

I miss the programming oriented videos

34

u/[deleted] Sep 23 '22

This was an excellent video too. A perfect example of how a seemingly small fix to a problem can result in a huge ecological disaster that then requires human ingenuity to step in again (only this time, hopefully not frick everything up more)

9

u/fellowfreak Sep 23 '22

which video is this from? I'm guessing a recent one but I haven't kept up and now you've got me intrigued

11

u/[deleted] Sep 23 '22 edited Sep 23 '22

https://youtu.be/t3oLeSPINOk

Edit I am not hearing that this isn't the video in the OP. Sorry folks. It's still a good video though, so yay?

22

u/Xmgplays Sep 23 '22

That's not the video in the post, though? The meme is from this video about his fear of rollercoasters

→ More replies (2)
→ More replies (5)
→ More replies (2)

16

u/32BitWhore Sep 23 '22

This video in particular was great, about him overcoming his fear of rollercoasters. Was not expecting to get emotional over a YouTube video about a theme park.

16

u/WannabeWonk Sep 23 '22

I feel obligated to point out Tom Scott has said he hates being used in meme formats.

22

u/[deleted] Sep 23 '22 edited Sep 23 '22

And then he posts a video in which he almost dies coughing from taking a huge vape hit… yeah, I think it’s unavoidable for him to be memed

12

u/thekingofthejungle Sep 23 '22

I like the guys videos but he has really weird opinions about internet culture

13

u/thejadedfalcon Sep 23 '22

I would say it's less about being a meme, as /u/WannabeWonk said, but more about the abusable nature of memes. He was talking about a specific context of video game memes due to a shit experience and it still came away more as "people need to be better" than anything overly negative.

And frankly, even if he does hate memes altogether... why is that bad? Why is that a weird opinion to have? People are dickheads online. Would you want your face plastered all over the internet in a meme format? Especially if it ends up being a negative one, such as some right wing bigot deciding you're a great target for "generic hate meme #1488" or, possibly worse, spokesperson for "generic hate meme #1488".

→ More replies (5)
→ More replies (4)
→ More replies (2)

60

u/mierneuker Sep 23 '22

Let me tell you a story.

I'm five years into my programming career and I think I'm hot shit, I know how things should be done, I've read books, I've done courses, I know how things should absolutely not look too. I am the bee's knees. I'm team lead of a small team, I've been a developer on this suite of apps for the whole 5 years, I have all the knowledge.

Some code comes in for review from one of the other less experienced devs. I check through it and there's a lot of red flags. Tons of code that's obviously very similar, some serious refactoring is needed, a bunch of things need to be designed better and split into utility methods to prevent this copy paste code proliferating. It occurs to me this is a teachable moment so I write up a two page missive on how to refactor this stuff, why we don't write code like this, how we should aim to write it, why the perfect code is reusable and (gently) why this code is bullshit. I email it around to the team. I schedule a meeting to go over it.

About half an hour after sending this email and scheduling the meeting, the junior dev PMs me. "Here" she points out "is where my code is..." and aside from some small things it's totally free of all the red flags I brought up. "And here is the code it was building on" showing me the horror show code I'd written the missive about... and she very delicately leaves her screenshare on and hovers the mouse over the original commiters name saying nothing about it. That name is my name.

I have just spent the best part of an hour criticising past me's code, and then publicised it to all these people who I moments ago thought I was better than. It occurs to me at this point that I'm an arrogant shit. I'm not better. I'm just a few years further down the road. And the lady whose code I reviewed has a million times more emotional intelligence than me for the way she handled it so gracefully.

So yes, past me is an idiot, and here it's shown twice, five years apart.

What we can all hope is to learn not just to be a better developer from our past mistakes, but to learn be a better person when we realise we've fucked up too.

11

u/Avnemir Sep 23 '22

Man that was a ride. Thanks for sharing.

4

u/bumlove Sep 24 '22

You had good intentions and tried to educate your team for the better rather than your own ego, that counts for something.

58

u/Uberzwerg Sep 23 '22

Just today i realized that i ran into a dead-end and had to implement an ugly complicated logic in one of our core classes.
Once i was done planning and accepting my fate i scroll to the part where it was needed to find a "todo: do that ugly complicated shit, once it is needed"
written by me 1 year ago and completely forgotten.

Fuck past-me for being so lazy and leave this for now-me.

17

u/[deleted] Sep 23 '22

Now you can leave it to future-you

11

u/Uberzwerg Sep 23 '22

Sadly it will be next-week-me.
And that guy is close to me.

12

u/damagednoob Sep 23 '22

Isn't that a win though? You deferred writing the complex code to deliver more valuable code in the meantime, right? Right?

9

u/Uberzwerg Sep 23 '22

The part that pissed me off was that it took me 1-2 hours to undertand the problem, realize what i had to do and plan it out, just to find that i was at that point before but decided to be lazy.

7

u/chazlarson Sep 23 '22

Oh, yes. At a previous job there were plenty of “# fix this after 3.5 ships” I kept scrolling by while working on 6.7.

130

u/[deleted] Sep 23 '22

I love Tom Scott

25

u/NerdIsACompliment Sep 23 '22

I ran into him at an Airport. Very brief interaction, good bloke

13

u/[deleted] Sep 23 '22

Did you manage to get an age? I can't tell if the guy is 60 or 28.

10

u/[deleted] Sep 23 '22

I think he's in his mid to late 40's

→ More replies (1)

7

u/FaeryLynne Sep 23 '22

He'll be 38 in just a few weeks. October 17th.

→ More replies (13)

32

u/-Asayu- Sep 23 '22

I guess future me will have to take care of that as well

29

u/MysteriousEmployee54 Sep 23 '22

Which video is this from?

48

u/legomann97 Sep 23 '22

37

u/cassby916 Sep 23 '22

AKA one of the most raw, honest videos I've seen him put out. He was so honestly terrified and being able to pinpoint the exact moment he realized his fear was unfounded was just fascinating.

26

u/legomann97 Sep 23 '22

Yep, it's my favorite video of his. I'm a big rollercoaster nerd and to see him go from "oh fuck this" to "woooo, this is fun!" was awesome. And apparently he's a rollercoaster guy now, too! Some people have spotted him at various parks, I saw someone commenting about how they met Tom in line for El Toro at Six Flags Great Adventure, and that one's a doozy. Just from what I've seen of Nemesis, Toro looks more intense, it feels like a bull is trying to buck you off (hence the name). Wish I had gotten more than one ride on it - threw up afterward so I didn't get to accurately gauge my thoughts

→ More replies (5)

7

u/DannyMThompson Sep 23 '22

That was great, a rollercoaster of emotions.

0

u/[deleted] Sep 23 '22

[deleted]

→ More replies (1)
→ More replies (1)

27

u/federico_alastair Sep 23 '22

Words to live by, Mad Cap'n Tom

119

u/Ok_King2949 Sep 23 '22

This guy looked like 20 less than a decade ago, now he looks like in his fifties.. programming is fun

65

u/Bakkster Sep 23 '22

In this case, it seems the phobia for roller coasters and nearly getting hypothermia in a cave are what aged him.

That said, it's programmer hair for sure.

→ More replies (4)
→ More replies (6)

29

u/GrinningPariah Sep 23 '22

Am I the only one who fucking loves refactoring? It feels like spring cleaning.

17

u/damagednoob Sep 23 '22

Absolutely. Inherited a mess of a lambda function. Wrapped that sucker in unit tests, got to 100% code coverage then refactored the shit out of it. Two days later I've delivered zero additional business value but I feel fucking great.

7

u/facherone Sep 23 '22

Congratulations! We feel you :D

3

u/TheOriginalSmileyMan Sep 23 '22

I want to marry you!

16

u/bphase Sep 23 '22

It's the rare time I get to actually improve things, instead of just shoveling yet another layer of shit to the pile of bullshit codebase. So no

2

u/Antrikshy Sep 23 '22

Updating dependencies can be so cathartic.

3

u/GrinningPariah Sep 23 '22

Nothing feels better than deleting code. Ripping out huge chunks of dead weight spaghetti like "and we don't need THIS anymore!"

→ More replies (2)

13

u/GreatBigBagOfNope Sep 23 '22

Tom Scott introducing places, developer edition

"I'm in the office"

"I'm on Slack"

"I'm in a VDI"

"I'm here in the datacentre of some place claiming to offer 'serverless' solutions"

"I've travelled here to your github account"

"I'm making coffee"

"Behind me is a pile of hard drives that haven't been backed up"

"I'm still on Slack"

"I'm in production, and these tables are being deleted"

→ More replies (2)

7

u/legomann97 Sep 23 '22

That's me right now. A few months ago I realized I needed a front-end for users to upload files to be processed by a script I was making. And guess who didn't know Javascript at all? As Tom said, that was a problem for future me, and now I am future me, and this sucks.

6

u/DrMobius0 Sep 23 '22

Dread it. Run from it. The bill from tech debt still arrives.

6

u/[deleted] Sep 23 '22 edited Sep 23 '22

Yeah, this is why I have learned to comment my code profusely, use long and descriptive variable names, split out declarations and assignments, avoid too many inline expressions when multi-line conditionals are more readable, make sure methods have one purpose, scope my variables appropriately, avoid magic numbers, always write unit tests (in my dreams), etc. etc.

Past me has burned future me too many times.

2

u/[deleted] Sep 23 '22

I feel this :')

5

u/Requiem_For_Yaoi Sep 23 '22

Why does his forehead look so big here

3

u/[deleted] Sep 23 '22

Thats future tom, his forehead is just a bit bigger

5

u/CUBSWIN2789 Sep 23 '22

I cringe whenever a manager tells me to write a Minimum Viable Product cause I know this shit awaits me...

4

u/[deleted] Sep 23 '22

This guy went straight from 15 to 50

1

u/TheTybera Sep 23 '22

"Whoever wrote this shit should get fired!"

*Runs a blame*

"Oh, it was me..."

1

u/VitaminnCPP Sep 23 '22

git fire --me

1

u/[deleted] Sep 24 '22

Which video is this from

1

u/VitaminnCPP Sep 24 '22

Tom Scott rollercoaster ride.

3

u/JoulSauron Sep 23 '22

"and, don't get me wrong, I'm not saying I won't fix it at some point in the future"

3

u/break_card Sep 23 '22

At my job no one ever actually goes in and fixes the working solution until it's been 2 years and it's now 10x more expensive.

I've started pushing back super hard when people are planning to put in 'just working solutions' for their projects. If there's significant business impact to releasing later, fine. But if it's an arbitrary deadline with barely any difference whether we deliver it now or 1-2 months later, fuck off - do it right.

3

u/CSharpSauce Sep 23 '22

You ever see a guy with a resume without any position longer than 2 years. He's never had to be future him.

3

u/SubMensa Sep 23 '22

In my experience there is nothing more permanent than a temporary solution.

3

u/[deleted] Sep 23 '22

It's like Jerry Seinfeld talking about Night Guy and Morning Guy. Night Guy always screws Morning Guy over by drinking and staying out until all hours of the night, then Morning Guy has to wake up and go to work exhausted and hungover. Night Guy never listens to Morning Guy, and there's not a thing Morning Guy can do about it except lose his job so Night Guy won't have any money to go out.

→ More replies (1)

2

u/salty3 Sep 23 '22

Refactoring is life, refactoring is love.

2

u/Dmayak Sep 23 '22

It really sucks to be a future me, I want to be a past me. It's time to hack time.

2

u/scul86 Sep 23 '22

current you is past you to future you... so right now you are past you!

2

u/woofers02 Sep 23 '22

Friday me: Sorry, Monday me, I know you’re gonna hate me for pushing this off. I promise I’ll noodle on this issue over the weekend to help you out.

Monday me: You dick! You didn’t think about this at all the last few days, you just started drinking earlier on Friday.

2

u/[deleted] Sep 23 '22

The trick is to leave the company or get assigned a new role before this happens.

2

u/[deleted] Sep 23 '22

Reason 17 of "Why programmers change jobs every couple years."

2

u/fallenmonk Sep 23 '22

Today is Friday. Whatever I'm leaving behind at work is a problem for Monday me.

2

u/Cognhuepan Sep 23 '22

Me: leaves de project, so other guys are "future me".

2

u/nffcevans Sep 23 '22

I'm glad this guy has made it as a meme format, well deserved!

2

u/daxlzaisy Sep 23 '22

The fuck is the title?

2

u/bigbabich Sep 23 '22

Future me gets in fucked up situation. At least Drunk Me buys Future Me shit sometime.

2

u/Daveinatx Sep 23 '22

Once things are in the backlog long enough, they're archived.

2

u/excce Sep 23 '22

He looks 18 but also 64

2

u/[deleted] Sep 23 '22

Past me is always screwing over present me, so I get revenge by screwing over future me.... That'll teach him

2

u/sal1800 Sep 24 '22

This is where writing many functions can help you. Your code expects a value from a function and at that time the value it returns is completely bogus but works good enough. Some time in the future, you may want to improve that function. Refactoring with less impact.

2

u/[deleted] Sep 24 '22

When it comes to future you, do unto others.

2

u/akorn123 Sep 24 '22

This is about to be my life.

2

u/amwestover Sep 24 '22

Get used to this in corporate software engineering jobs — these people get promoted, BTW:

“Yeah, this ticket to do something better so it doesn’t bite us in the ass later? It’s not a quarterly goal, so we’re not gonna do it.”

A few minutes later…

“That thing broke! It’s costing us a lot of money. Yeah can you fix that in half the time with 10x the pressure now?”

1

u/fluger69 Sep 23 '22

Which Tom Scott video is this?

3

u/Germanspartan15 Sep 23 '22

It’s from his other channel Tom Scott Plus where he conquers his fear of roller coasters.

2

u/[deleted] Sep 23 '22

The one about future-Tom

1

u/ohyesstranger Sep 23 '22

I am sitting on fence

5

u/[deleted] Sep 23 '22

get down. not good for poophole

1

u/mylo2202 Sep 23 '22

Recursing "I'm future me"

1

u/austospumanto Sep 23 '22

Hahahahaha truuuu

1

u/A-le-Couvre Sep 23 '22

Only Tom Scott could make the facial expression befitting of that subtitle.

1

u/[deleted] Sep 23 '22

Tom Scott is my spirit animal

1

u/[deleted] Sep 23 '22

I think we all agree, that Tom makes great content

1

u/ringerapologist28 Sep 23 '22

When did Tom Scott start to look like Megamind?

NO COFFEE?

1

u/Zambito1 Sep 23 '22

Rule 0, every post

1

u/PandoraOfThemyscira Sep 23 '22

...ok, why is this meme literally every aspect of my life 😅😂

1

u/donquixote235 Sep 23 '22

Present Me always suffers the injustices that Past Me has placed on Future Me.

1

u/SlashdotDiggReddit Sep 23 '22

Ugh ... past me. He fucks me over so many times.

1

u/darkkcyan Sep 23 '22

Unless you work with legacy code. Seems like future someone's problem is now YOURS problem.

1

u/youdoitimbusy Sep 23 '22

Alexa, what jobs are hiring in my area?

1

u/No-Entrepreneur-2724 Sep 23 '22

Oh well, let's focus on new features!

1

u/666spawnofsatan666 Sep 23 '22

Can you please not remind me of my problems that I am trying to ignore?

1

u/FreakDC Sep 23 '22

Well now it's no longer a problem because past me has learned a lot and grown right? Right?

1

u/bsylent Sep 23 '22

I mean that's just how I live in general

1

u/HamishW27 Sep 23 '22

That's a problem for future Homer

1

u/[deleted] Sep 23 '22

I love watching his channel, really insightful stuff, reminds me of a young Desmond Morris.

1

u/lifeson106 Sep 23 '22

This is when you switch jobs and make it someone else's problem while you go start another soon-to-be legacy project somewhere else. Or, alternatively, ask for a ridiculous amount of money to stay because anyone else who looks at the code is going to take 100x longer to make the change, so it's really cheaper for the company to pay you a ton of money. Job security by obscurity.

1

u/SVAuspicious Sep 23 '22

About 25 years ago I wrote some code for specific SNMP monitoring. It was in Perl and it worked. I commented it and had a header that said this is a hack and it's going to be slow so should be redone in C. Last year I got an email from someone who tracked me down (I'm not hard to find) with questions. They're finally refactoring. *sigh* It was an interesting exchange as I no longer have a clearance. *grin*

1

u/Mau5_matt Sep 23 '22

Mf looks like Butthead

1

u/sgenius Sep 23 '22

I am a simple man. I see Tom Scott, I upvote.

1

u/WorkingInAColdMind Sep 23 '22

I was secondary on a project that has rolled through numerous developers and tried so hard to get people to think ahead of “just this story”. I’m now primary with a new team on the app and have a looming deadline and there is SO MUCH refactoring that’s rapidly becoming mandatory. It’s so painful.

1

u/heydawn Sep 23 '22

Minimum viable product me

Many more iterations to come

For the two personal improvements you're requesting, see me in the next release

1

u/Bigram03 Sep 23 '22

Future me is an asshole, fuck that guy.

1

u/bobo_ganoush Sep 23 '22

Sounds like a problem for future future me

1

u/busta_thymes Sep 23 '22

I could watch Tom Scott introduce things for hours.

1

u/efstajas Sep 23 '22

The trick is realizing that you'll never be future you

1

u/PapaDePizza Sep 23 '22

He looks like that alien from American Dad.

1

u/TheDulin Sep 23 '22

Past me is a real jerk sometimes.

1

u/prof_hobart Sep 23 '22

If it works and meets all of the functional and non-functional requirements, then don't refactor it.

The only two possible outcomes are

  • it still meets all functional and non-functional requirements - well done, you've spent time achieving nothing

  • it no longer works - take a long hard look at yourself in the mirror

1

u/PerturbedMarsupial Sep 23 '22

Hey if you work for one of those companies or a manager that keeps track of your pull request/commit count this can only help! Better yet, only partially fix it for another pull request!! /s

1

u/walhax- Sep 23 '22

My life

1

u/Infinite_Self_5782 Sep 23 '22

where'd his hair go

1

u/[deleted] Sep 23 '22

I hate future me and I will fuck that guy over any chance I can get.

1

u/LeaderConstant56 Sep 23 '22

I really discise to kill my self if i could be a man without wealth during my lifetime

1

u/llahlahkje Sep 23 '22

I'm still waiting for Joe Biden to forgive my technical debt.

1

u/RafaelSirah Sep 23 '22

When I joined established companies with legacy codebases as a junior dev I would curse the original engineers who built the app.

Now as the engineering lead of a startup where ENG resources are expensive and there is a need to build quickly to make it, I totally get how the technical debt happens.

1

u/[deleted] Sep 23 '22

My whole life I've made stuff for other people, and it always shots me back when I see that stuff being used everywhere

Now in my project, EVERYTHING been thought in every mistake i made in the past and in every possibility that backfired me when I wanted to extend a feature, now everything covers lots of cases and has extensible capabilities

I never thought of this before until now when I realize everything it's there to extend and extend, and i feel so proud of it after 12 years of coding the same a systems over and over

Sadly although my code it's the most revolutionary piece of code, it's worthless because i focused too much in writing the perfect systems and lacked of speed for creating features and my playerbase just moved away, sucks to be a game dev

1

u/TingleyDinglies Sep 23 '22

That's a problem for next smuck that comes after me.

1

u/[deleted] Sep 23 '22

Dudes rocking a 5 head.

1

u/ta021798 Sep 23 '22

That’s why you never refactor your code. Just type away until it does what you want it to do, then never visit it again.

1

u/[deleted] Sep 23 '22

Every Friday when I'm setting up my calendar for next week. Then this is how I feel on the Monday.

1

u/VersionOmega Sep 23 '22

Been hitting a lot of “Problem for future me, fuck that guy” lately and it’s not working out well lmao

1

u/Dd_8630 Sep 23 '22

I always think, "I'll do it now as a present to future me". It's a much happier dynamic than punishing future me. Shit's gotta get done either way, may as well make myself happier!

1

u/Mairhiel Sep 23 '22

Dealing with that right now lol accidentally made my game loop last a second, worked for me then to be able to display a timer easily, so I never fixed it, then I wanted to add some animation and everything is collapsing on itself lol

1

u/[deleted] Sep 23 '22

me

1

u/talondnb Sep 23 '22

He just fast forehead to the future!

1

u/deaf_fish Sep 23 '22

Unit Tests! I can't recommend them enough. They make refactoring easier.

1

u/trudesign Sep 24 '22

Thats a problem for future trudesign- Asshole Past trudesign

1

u/ReporterNervous6822 Sep 24 '22

Sometimes you just gotta start over

1

u/throoowwwtralala Sep 24 '22

Oh gosh this is what my wife laments to me at least once a week when she leaves the office lol

1

u/nnoobb Sep 24 '22

I'm lazy and bad at prioritizing. Every time I do refactoring, I dream of discarding the entire code.

1

u/[deleted] Sep 24 '22

Documenting solo projects is just compensating for the stupidity of my future self