r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

540 comments sorted by

View all comments

-14

u/Old-Attention-3936 Sep 25 '26

It's not hard to be consistent with what you store in variables

20

u/Tough_Condition4021 Sep 25 '26

"Just don't write bugs"

5

u/TheBlckbird Sep 25 '26

Thank you so much! This is the solution to all my problems. I am finally able to write bug-free code. Yaay!

1

u/JackNotOLantern Sep 26 '26

"Make no mistakes"

-3

u/Old-Attention-3936 Sep 25 '26

Or use unit test and proper SDLC practices

1

u/AlphonseLoeher Sep 25 '26

has a human written a unit test in a corporate environment in the last 3 years?

1

u/Old-Attention-3936 Sep 25 '26

Got me there, but closer to 1 year for slower to adopt corporate environments

15

u/Emptronic Sep 25 '26

Types do much more than that fella

14

u/AndyTheSane Sep 25 '26

It's not hard to be consistent for a small personal project.

Now, for an enterprise level code base with millions of lines written by many people over years it quickly becomes very hard indeed..

Plus, when I'm coding, if I make a mistake or ambiguity I want the IDE or compiler to spit it back at me ASAP. I do not want that reaching runtime.

33

u/Merry-Lane Sep 25 '26

Totally, which is why Typescript didn’t overtake 90% of the JS projects in the 5 first years of its existence…

Oh, wait…

5

u/eightslipsandagully Sep 25 '26

JS is a special beast

→ More replies (11)

6

u/-Redstoneboi- Sep 25 '26

you know what is hard? having complete and clear documentation for what variables you expect for every function in a library

5

u/coinselec Sep 25 '26

What I hated most about reading python at work is that I have to often hunt what is the type assigned or returned or whatever. Maybe it's a skill issue. I also hate when people abuse 'auto' in cpp. Great they saved 5s of their time and waste 1minute of mine.

4

u/lOo_ol Sep 25 '26

Dude's that bird at the beginning of the meme.

3

u/SunCantMeltWaxWings Sep 25 '26

The hard part is when you read other people’s code and you don’t know what they consider “consistent”.

2

u/avdpos Sep 25 '26

...if you have a small program...
there are times explicit writing is good. Any many times it is really bad. Especially if your program lives for generations of programmers.

...living with a language that doesn´t have strong typing at all...

1

u/kinkakujen Sep 25 '26

It is hard if you write any real world software and not some boring CRUD app.

1

u/Harabeck Sep 25 '26

Spoken like someone who has never maintained a large, long lived project maintained by many people.

1

u/Kitfennek Sep 25 '26

Tell me youre not working on safety critical code without telling me

0

u/frozen-dessert Sep 25 '26 edited Sep 25 '26

How big are the projects you work on? Basically just tell me the order of magnitude of the number of people committing to it. Like O(1)? O(3)? Edit: corrected the order notation.

Or you could also mention the order of magnitude of commits in a week. Also works.

-2

u/Old-Attention-3936 Sep 25 '26

The scale of the project doesn't matter if you properly split up responsibilities and functions. The key is to have projects actually planned out and coordinated so even if there is a 1000 people working towards the same thing you can still deliver a functional project.

Sanitize and standardize all data streams in and out of each application so other applications know what to expect. Each application then can do what they need to without negatively impacting each other.

Also test test test. Unit test, SIT, UAT production validation test

→ More replies (5)

-2

u/eightslipsandagully Sep 25 '26

I agree, just make all variables immutable and write comprehensive tests

1

u/cheezballs Sep 25 '26

Did you just put random words together hoping it would make sense in the context of the thread?

0

u/eightslipsandagully Sep 25 '26

No, it was late at night. I'm a huge believer in making all variables immutable, and enough test cases can cover for needing strict types. Does that make sense?

1

u/cheezballs Sep 26 '26

Test cases only cover things you prepared for.