derefnullptr's profile picture. Graphics and software engineer.

Deref

@derefnullptr

Graphics and software engineer.

Закреплено

OOP is another tool in the toolbox. Use it when it makes sense to do so. Just because someone uses a tool incorrectly is not a reflection of the tool itself.

This must be bait but still ironically exemplifies how OOP solves imaginary problems that don't exist and leads to overengineering. Obviously the more requirements you add the more complex the code becomes, that's true with OOP and without. But if you start writing your code…



"And it did this Every. Single. Frame."

derefnullptr's tweet image. "And it did this

Every.
Single.
Frame."

Pro tip: Don't write your sprite render API like this: renderSprite("images/carIcon.png", Vec2(10, 20)); Implementation: 1. Load file from disk 2. Decode PNG 3. Create OpenGL image 4. Copy from CPU -> GPU 5. Draw command 6. Delete OpenGL image 7. Close file 8. Free memory



In a statically typed language, your complexity will lie in the compiler. In a dynamically typed language, your complexity will lie in the virtual machine.


Cool floating-point hack, but redundant nowadays. Don't use this.

Iconic 3D games needed 1/sqrt(x) millions of times per second for lighting. This infamous C hack was 4x faster than sqrt(). It’s not just code it’s weaponized mathematics. The kind of hack that changed gaming forever.

Adriksh's tweet image. Iconic 3D games needed 1/sqrt(x) millions of times per second for lighting.
This infamous C hack was 4x faster than sqrt().
It’s not just code it’s weaponized mathematics. The kind of hack that changed gaming forever.


Did everyone collectively forget the ads, non-consentual overnight installs, trackers enabled by default, and the preinstalled bloatware?

RIP Windows 10

clearconfused's tweet image. RIP Windows 10


if you're in only in tech for the money and fame; you're ngmi


It's no wonder how Mojang literally owns the game of the century, a creative and imaginative sandbox with limitless potential, and yet actively chooses to do next to nothing with it. They're creatively bankrupt.

Jeb confirms that they wouldn't have added the creeper if it wasn't a thing already. And they kept it because it's iconic



i swear the programming space is now 60% webshit 30% AI/LLM/vibecoding 10% literally everything else


why are we out here still programming like it's the 90s

a = a ^ b; b = a ^ b; a = a ^ b; If you choose the arithmetic way, you could risk overflows. (Yes, I'm some corny mf, @ryyabhh)

zuhaitz_dev's tweet image. a = a ^ b;
b = a ^ b;
a = a ^ b;

If you choose the arithmetic way, you could risk overflows.

(Yes, I'm some corny mf, @ryyabhh)


У этого аккаунта пока нет подписчиков

United States Тренды

Loading...

Something went wrong.


Something went wrong.