
Just a guy who loves to write code and watch anime.
Search for a command to run...

Just a guy who loves to write code and watch anime.
Qualities that make outstanding builders.

Bipedal vs quadrupedal: how many legs This is about the number of legs the creature walks on. Bipedal. Two legs. Humans, ostriches, T-rex, kangaroos, most fantasy humanoids. Quadrupedal. Four legs. Do

Intro You hear "lerp" and "smoothstep" everywhere in game dev. They sound like math jargon. They're not. Both are small tools that do the same job: smoothly move from one value to another. The problem

What is Kinematics Kinematics is the math field. It's the study of how things move without worrying about forces (which would be dynamics). FK and IK are the two branches: forward kinematics and inver

Intro Textures are usually the biggest cost in a 3D scene. Memory, bandwidth, and load time all get eaten by them. Resizing them is the obvious lever. There's more. This post is about the less obvious

When thinking about building a real-time chat feature like the one on Twitch, it's crucial that it works fast and efficiently.
The old way of checking the server every second with HTTP requests to get new messages isn't very efficient. This is mainly because HTTP uses TCP, which needs a three-step process to start a connection before any data can be sent.
This approach is too slow for apps that need instant communication and uses too many resources.
Web Sockets offers a solution by creating a two-way communication channel through one persistent connection between the client and server.
Unlike HTTP requests that open and close repeatedly, WebSockets begin with an initial HTTP request from the client to the server. This request is then upgraded, indicated by the 101 Switching Protocols response status code, changing the connection from HTTP to WebSockets.
This upgrade starts a persistent connection, allowing for immediate data exchange. Messages can be sent back and forth without having to set up new connections each time, making WebSockets perfect for real-time applications like chat systems, live sports updates, or financial trading platforms.
Reduced LAtency: Messages are sent instantly without having to reconnect every time.
Saves Resources: Uses just one ongoing connection, cutting down on server stress and network traffic.
Two-way Communication: Both the client and server can start sending messages, making interactions better.