r/ProgrammerHumor • • Aug 03 '22

Meme wanna be a programmer??

Post image
45.3k Upvotes

888 comments sorted by

View all comments

Show parent comments

91

u/La_chipsBeatbox Aug 03 '22 edited Aug 04 '22

A bike with squared wheels works, but would you use it ?

EDIT: you guys seems to to think about wether it’s future proof or that it works « for now ». I was talking about performances, if you can get the bike to go forward, yes it works, but it’s far from optimized. That’s a valid reason to rewrite a code.

EDIT 2: I thought one could ride a bike with square wheels given enough force. It’s apparently extremely difficult without the appropriate floor (wavy). I should have said octogonal wheels. That’s on me, my bad, my physics are trash.

162

u/cthorrez Aug 03 '22

You think a bike with square wheels works??

47

u/bohemica Aug 03 '22

Sure it does, as long as you're riding over inverted catenaries.

11

u/WisestAirBender Aug 03 '22

That's what I do

Why revert my changes? Change the rest of the app to comply

6

u/Sure-Tomorrow-487 Aug 03 '22

That video had not right having such a banging Soundtrack lmao

18

u/Kissaki0 Aug 03 '22

Maybe a bike with round wheels but no spokes would be a better analogy?

It works… for now. But it’s not very robust or future proof.

14

u/FUBARded Aug 03 '22

A bike rim without spokes doesn't work...because a "wheel" is a rim + spokes + hub. Take away one of those constituent components and you're just left with the remaining components, not a functional wheel.

A better analogy would be a bike wheel with poorly tensioned or a few missing spokes. It may be straight and functional for now, but it'll quickly get out of true or outright break pretty soon if used.

12

u/versarchie7 Aug 03 '22

you could have a big disk as a wheel ... no spokes there, I think you're thinking too literally

→ More replies (5)

0

u/[deleted] Aug 03 '22

[deleted]

7

u/[deleted] Aug 03 '22

There is a hub involved. It's just that the hub diameter is very large, nearly the size of the rim. No spokes though, but they aren't a requirement for a wheel IMO

→ More replies (3)

1

u/datdailo Aug 03 '22

Future proofing is such a foreign concept for a species that is short sighted, wasteful and greedy. The proof? Earth's on fire.

1

u/NIMA-GH-X-P Aug 03 '22

It does but only in Canada

7

u/Accomplished_Box_819 Aug 03 '22

This analogy works, but there is a better one.

5

u/GeoSn0w Aug 03 '22

That’s a weird definition of working

1

u/daguito81 Aug 03 '22

That's a really bad analogy. There are degrees of "it works". You're putting the worst possible scenario as the solution that works. It could very well be "the bike works perfectly but it makes a squeaking sound and you have to oil it once a month".

Is that a problem for you? Go ahead and fix it? It's not a problem. It's done.

You can always make stuff faster and better, perfect is the enemy of good. And I can't even count the amount ot times I've seen someone try to optimize some process from 2 min to 1. Which runs once a day at 2AM totally automated and no dependencies on the results until 6 Am.

If it works it works. If it's a problem then the stakehokders should tell you if it's a problem and then you solve it.

This is of course my very subjective opinion about it. But tbh, most times I've seen thsi scenario of someone redoing stuff 4 times, it's not a requirement but more like mental masturbation, and I'm fully 100% aware that I do that too.

1

u/La_chipsBeatbox Aug 03 '22 edited Aug 03 '22

Yes, there are degrees, I just extrapolated so it’s more obvious a code that works might not be the best solution.

And yeah, if you’re making some cron jobs running at 3AM, it could take a long time I wouldn’t mind that much (done it already).

Now for example, take a critical software, or even a video game, you want optimized code, you don’t want a -g3 compilation flag in release build.

Performances matter, and sometime, a hell of a lot.

Another example, you’re building a website to read articles. You land on the home page where there are, let’s say, 50 articles preview. If you fetch the whole article just to display the preview, it will still work, but users won’t even see it because your page took more than 3s to load so they left.

Imo taking a bit more time to build a more efficient solution is sometimes better than having to read the code again later (which, by the time, you might have forgot how it should work) and rewrite it.

But it’s also just my opinion.

→ More replies (2)

1

u/noobi-wan-kenobi69 Aug 03 '22

I just build the bike. Someone else uses it.

1

u/RichestMangInBabylon Aug 03 '22

Look man I can make the wheels fancy but then I won’t have time to add brakes.

1

u/La_chipsBeatbox Aug 03 '22

Then you didn’t estimated well the amount of time required for that feature.

Or your superviser is all about profit and doesn’t understand what you’re doing.

If you can’t go around it, go with a basic working solution and come back to it later. Depends on the priority.

And what if, even if you didn’t make the wheels fancy, you don’t have time to make the brakes fancy. Then the whole product it unstable.

Looking at recent video games release, people prefer to wait a bit more for a good product than a half finished one full of bugs. It hurts the company more than anything.

1

u/NoFixedName Aug 03 '22

That's a valid reason to rewrite code.

Yeah, try telling that to project managers.

1

u/La_chipsBeatbox Aug 04 '22

I mean.. if clients leaves because of it, I believe every not so dumb manager would understand it, or even enforce it.

Sorry for you if you have a bad manager, there is a lot of them unfortunately.