447

Meme transcription [Kid drowning in pool]

In the background a person plays with a kid in the pool. The person is labeled “Companies updating their website”. The kid is labeled “The company logo”.

In the foreground a kid seems to be drowning. It is labeled “Useful information”.

In a second panel a skeleton sits at the bottom of the pool. It is labeled “The copyright year”

you are viewing a single comment's thread
view the rest of the comments
[-] ClassifiedPancake@discuss.tchncs.de 39 points 4 months ago

I thought everyone does <?php echo date("Y"); ?>

[-] 30p87@feddit.de 20 points 4 months ago

No no, we do

time_t t = time(NULL);
struct tm tm = *localtime(&t);
tm.tm_year + 1900;

Everyone writes their web server in plain C, right?

[-] MostlyBlindGamer@rblind.com 4 points 4 months ago

The cool thing to do now is to write it in Rust, only using the standard library.

[-] 30p87@feddit.de 2 points 4 months ago

And I hate it. Nice concept, but I don't like neither, the language nor compiler.

[-] SatouKazuma@programming.dev 2 points 4 months ago
[-] 30p87@feddit.de 1 points 4 months ago
  • The C compiler, when I parse a &(float) as (long) (it's actually an evil floating point hack to run Quake III on an X86_64 CPU emulated in Scratch running on Spotifys Car Thing) (This would never be possible in Rust)
[-] OmnipotentEntity@beehaw.org 2 points 4 months ago* (last edited 4 months ago)
[-] 30p87@feddit.de 1 points 4 months ago

Yes, but

  1. it's unsafe, therefore not really Rust I'd argue
  2. it doesn't look as good
float Q_rsqrt(float number) {
   long i;
   float x2, y;
   const float threehalfs = 1.5F;

   x2 = number * 0.5F;
   y = number;

   i = * ( long * ) &y;
   i = 0x5f3759df - ( i >> 1 );
   y = * ( float * ) &i;

   y = y * ( threehalfs - ( x2 * y * y ) );
   return y;
} 
[-] OmnipotentEntity@beehaw.org 2 points 4 months ago

Please don't tell me you, unironically, actually use the Carmack rsqrt function in the year of our Linux Desktop 2024.

Also if you like, you can write unsafe Rust in safe Rust instead.

[-] 30p87@feddit.de 1 points 4 months ago

No. But somebody may be.

[-] MostlyBlindGamer@rblind.com 2 points 4 months ago

It’s a very different vibe. I remember my first seg fault in C - kids days are missing out!

load more comments (10 replies)
this post was submitted on 11 Jul 2024
447 points (97.5% liked)

Programmer Humor

19606 readers
827 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS