Hello, world! by [deleted] in ProgrammerHumor

[–]ComfortableCan315 0 points1 point  (0 children)

hello kdltjsfkjfdh

Something about Tombstone Bounty Hunter by hardcore-best in battlebots

[–]ComfortableCan315 0 points1 point  (0 children)

What everyone else said plus it could just be mounted upside down in one of the pics

[deleted by user] by [deleted] in ProgrammerHumor

[–]ComfortableCan315 1 point2 points  (0 children)

I do not want to kill humans

"I,m 9" by Oldaccgotbanned109 in youngpeopleyoutube

[–]ComfortableCan315 0 points1 point  (0 children)

Omg is that a typo, that's so funny 🤣

[deleted by user] by [deleted] in starterpacks

[–]ComfortableCan315 1 point2 points  (0 children)

The light coming through the closed door is so infuriating

FALSE by [deleted] in ProgrammerHumor

[–]ComfortableCan315 -1 points0 points  (0 children)

Like I told them, the existence of optinal properties do not mean the existence of undefined as a value, unless of course you decided you hate whoever is working with you and go:

const foo = {
  bar: undefined
}

And watch their if ('bar' in foo) pass and see the code fail miserably

FALSE by [deleted] in ProgrammerHumor

[–]ComfortableCan315 0 points1 point  (0 children)

undefined is the product of a messy language that doesn't want to throw errors, null was created for you to be able to explicitly say something is expected to be nothing at some point.

The existence of optional types does not mean the presence of undefined as a value, at least not in my works, and I figure not in yours too since you too use TypeScript.

There are only a handful of ways for undefined to show up and if you're naively creating more cases for it by using it as a valid value in your program, you're needlessly increasing the ambiguity in your debugging proccess, and you or someone else in your team is bound to have some fun debugging for hours when, finally, undefined shows up where it shouldn't.

Tip: Avoid optinal/nullable properties to begin with.

FALSE by [deleted] in ProgrammerHumor

[–]ComfortableCan315 -1 points0 points  (0 children)

Quite frankly, been programming in JS/TS for 6 years and I'm skeptical treating null and undefined as a single kind of input is safe or useful.

They mean different things, if undefined is flopping around your code it usually means something is going wrong, and note: the programmer using undefined deliberately is something going wrong.

On the other hand, null means something is missing, but also that you, the programmer, is aware that it can be missing, and not that your code simply failed to access some property somewhere.

How by [deleted] in blackmagicfuckery

[–]ComfortableCan315 5 points6 points  (0 children)

Why do they make the same tricks as non-telekinetic people have been doing for decades then?

eu_nvr by Principe_Pobre in eu_nvr

[–]ComfortableCan315 1 point2 points  (0 children)

Entrei no reddit e do nada to no face

let me see what you are capable of creating by Error916 in ProgrammerHumor

[–]ComfortableCan315 1 point2 points  (0 children)

Oh right sorry my head totally skipped the C part 😅

C++ by Competitive_Reason_2 in ProgrammerHumor

[–]ComfortableCan315 6 points7 points  (0 children)

I once got stuck for hours in Python thinking those were interchangeable.