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”
I thought everyone does
<?php echo date("Y"); ?>
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?
The cool thing to do now is to write it in Rust, only using the standard library.
And I hate it. Nice concept, but I don’t like neither, the language nor compiler.
It’s a very different vibe. I remember my first seg fault in C - kids days are missing out!
It’s okay to be wrong
std::mem::transmute
Yes, but
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; }
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.
Well, everyone who’s coding their websites is, yeah. Seeing how almost 10% of all websites use Elementor now and are built by people without an understanding of coding concepts, there are probably plenty of websites that don’t output their copyright year dynamically.
Elementor has this feature, though.