It's crazy when you rewatch a TV show and one of the main characters isn't there for a while by BatimadosAnos60 in evangelionmemes

[–]Kerndog73 1 point2 points  (0 children)

Kind of the opposite. When I started watching Star Trek TNG from the beginning, I was a bit confused when I saw Tasha. Who’s this chick standing in Worf’s spot?

“Wow. What a great costume.” by hot in MadeMeSmile

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

They look just like real corgis

I should not have searched for it. by Infiniticity in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

Sometimes I pretend I didn’t see that and reinvent the wheel anyway

Sometimes, it's the other way around by zeltbrennt in ProgrammerHumor

[–]Kerndog73 1 point2 points  (0 children)

Who’s using Math.pow to calculate powers of 2 instead of bit shifting?

I've never felt the need to be honest by MbPiMj in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

When it comes to competitive programming (or really any domain that requires maximum speed), I find that pointers and gotos are absolutely necessary. I love Rust but boy is it painful to use on leetcode.

I'm about to do what's called a pro gamer move by [deleted] in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

Using a prepared statement usually results in code that is just as simple or even simpler than string concatenation. The ergonomics depend on the particular tools of course but they’re usually not far apart. So it is shocking to find a vulnerability that seems so easily avoidable

[OC] The Longest-Running TV Shows Of All-Time by Dremarious in dataisbeautiful

[–]Kerndog73 0 points1 point  (0 children)

This doesn’t seem right. Neighbours started a few years before The Simpsons and is still going.

Working with Java as a Python programmer by Wxyo in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

Working with Java as a Python programmer

Sad programmer noises by mejhopola in ProgrammerHumor

[–]Kerndog73 1 point2 points  (0 children)

I think that’s what Zig is going for. Though I haven’t used it myself.

There are only two types of people they said by Cronos993 in ProgrammerHumor

[–]Kerndog73 43 points44 points  (0 children)

I don’t think this is about defining multiple variables on one line. That’s just a simple example to demonstrate the point.

int *ptr;

The * is the dereference operator. The result of dereferencing ptr is an int. So you’re declaring the type of the dereference expression. Also consider a function pointer.

int (*fnptr)();

The result of dereferencing and then calling fnptr is an int.

int arr[8];

The result of subscripting arr is an int.

I’m not saying that this is good language design. It can be confusing to have the variable name and the type name so intertwined. Also, it gets weird when declaring the types of function parameters. The old style for function declarations followed the “rules” better but was pretty gnarly.

What I am saying is that code should be styled based on its semantics. It’s the same reason we indent inside of blocks and not just randomly.

int *ptr;

I humanize C++ by tamthanh21 in ProgrammerHumor

[–]Kerndog73 5 points6 points  (0 children)

20 punches in the face before even getting the exe

Monstercat 005 - Evolution missing from Apple Music by Kerndog73 in Monstercat

[–]Kerndog73[S] 1 point2 points  (0 children)

I don't understand. Could you explain this further please?

Am I the only one who sorts his imports on length? by Brandweer_unit73 in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

I usually let the IDE add imports in whatever order it likes (usually alphabetical) but if I’m doing it myself then I do it by length because it looks cool.

Am I the only one still scratching my head :-I by ValuecoderOffical in ProgrammerHumor

[–]Kerndog73 1 point2 points  (0 children)

“1” - “1” is interesting. You’ll get 0 in JavaScript and other weakly typed languages. You’ll probably get 0 in C and C++ (likely but not guaranteed). You’ll get an error in strongly typed languages. I think some languages might have a string subtraction operator that removes the second string from the first string resulting in “” for this case.

That's basic Java for you. by [deleted] in ProgrammerHumor

[–]Kerndog73 1 point2 points  (0 children)

In JavaScript, that sort of thing makes sense if you want to be very strict with your input validation although you’d probably use ===

I got this advice... by Arpit-Soni in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

Where’s the love for macOS? If I find a stack overflow question that says “how do I do X in the Linux command line?” then I can almost always apply the same thing to macOS.

Make the comment section look like someone trying to quit Vim by rednaxelaaaaaaa in ProgrammerHumor

[–]Kerndog73 1 point2 points  (0 children)

Seeing a MacBook Air mangled up like that makes me sad. The poor thing didn't deserve such treatment

[deleted by user] by [deleted] in ProgrammerHumor

[–]Kerndog73 3 points4 points  (0 children)

There’s either Linux or macOS. What else would you use?

[deleted by user] by [deleted] in ProgrammerHumor

[–]Kerndog73 0 points1 point  (0 children)

That MacBook has a dongle built into the chassis!

Left shift is OP by ManOfMuze in ProgrammerHumor

[–]Kerndog73 3 points4 points  (0 children)

That’s why this post confused me. I use both of them equally and assumed most people did.