Enums in Python: The Constant That Reads Like a Name
An enum replaces a bare string or magic number with a name the language can check. role == "admin" compiles fine with a typo; role == Role.Admni
Founder of SudoSecurity. Writes hands-on deep dives across web development, cybersecurity, systems administration, and self-hosting — always with working code.
$ ls -t ~/articles
An enum replaces a bare string or magic number with a name the language can check. role == "admin" compiles fine with a typo; role == Role.Admni
JavaScript cannot do RSA with numbers. Not slowly, not imprecisely — at all. The largest modulus a Number can handle is 26 bits and RSA needs 2048, and the failure is silent. Here's the implementation that works and why.
asyncio isn't magic. It's a while loop that checks a queue. Once you understand the event loop model, async/await stops being confusing and starts being the most useful tool in your Python kit. Here's the mental model, the real code, and the mistakes that will ruin your day.
true and false are real commands on Linux and they do almost nothing — that's the point. true exits 0. false exits 1. Why that matters is
1,000 threads. All of them blocked on future.get(). That's the production nightmare that forced a full rewrite — and the journey through reactive callbacks, exception swallowing pitfalls, and finally a clean within() utility that handles timeouts without giving up the async model.
There are over a billion websites and almost none of their data comes in a format made for you. A scraper is how you get it anyway: fetch
This guide walks through designing a fixed-size memory pool, implementing reference counting with cycle detection, coding Mark & Sweep, Mark & Compact, and Copying GC algorithms, and wiring root object identification and sweeping into a working CustomGarbageCollector class.
Cipher.getInstance("AES") compiles, runs, encrypts, decrypts, and hands you the weakest mode in the box. Here is the OpenJDK source that makes that decision, and the line where ECB gets chosen for you.
You tuned G1 flags for a week. Your pod has one CPU, which means the JVM quietly picked a single-threaded collector at startup and ignored every flag you set. Here is the OpenJDK source that made that decision.
A Bitcoin transaction isn't a call to a service — it's a data structure you build yourself: pick unspent outputs, define new outputs, sign, broadcast.
Every guarantee you have been sold about Rust is real. It is also propped up on raw pointer arithmetic sitting in the standard library, held together by comments that nothing verifies. Here is what is actually back there.
Inverting a matrix feels like magic until you see what it's actually doing: solving n systems of equations at once by row-reducing a doubled matrix.