Female behind a laptop with a heartValeriaVG

Crc 32 Checksum in Wasm and Raw Js Tutorial and Benchmark

#webassembly, #webdev, #performance, #tutorial

In this tutorial we'll build a cyclic redundancy check (CRC) hashing function. More specifically, its 32 bit variant called "CRC-32". I bumped into it in the PNG specification, but it's also used in Gzip and bunch of other formats and protocols. In short, it makes a tiny (4 bytes) hash out of whatever binary data you feed to it and changes significantly if data changes even slightly. Of course, such a tiny function is not even close to be crypto secure, therefore it's only used to check if data was transferred correctly.

[read more]

Master Binary in Five Minutes

#webdev, #javascript, #beginners, #tutorial

Binary is the very core of everything digital, not only in web development, but literally everything: from variables and file data to transport protocols and executables themselves.

[read more]

Five Pro Tips to Master Promises in Js

#javascript, #node, #tutorial, #beginners

Events handling and promises in particular are hands down the best JavaScript feature. You're probably familiar with the concept itself, but in short, a Promise in JavaScript is a promise to call back with the result.

[read more]