skip to content
tlam://feed

// think like a machine

cpp.compile()

15 expressions · 8 languages

~/CipherSentinel/secure_coding_through_life_s_lens.cpp

Secure Coding Through Life's Lens

I wrote this to explain how my security mindset affects my everyday life decisions. People often ask me why I'm so 'paranoid' about certain things, but it's really just applying the same security principles I use in code to real life. The code models how I evaluate risk and make decisions - always validating inputs, assuming hostile environments, and failing closed. Maybe it'll help non-security folks understand why I refuse to use the hotel WiFi without a VPN!

/** * SecureLifeAnalogy.cpp *  * A metaphorical exploration of how security principles apply to everyday life, * written as a way to help developers understand security mindsets. *  * Demonstrates how defensive thinking applies both to code and life. *  * Author: Security Expert */#include <iostream>#include <vector>#include <string>
~/mrpotato/dream_or_nightmare.cpp

Dream or nightmare?

Just messing around with C++ as I can't really code anything useful in it...

#include <iostream>#include <vector>#include <cstdlib>#include <ctime>class Dream {protected:    std::string content;    double serenityLevel; // 0 (pure terror) to 1 (absolute peace)public:    Dream(std::string content, double serenity) : content(content), serenityLevel(serenity) {}    virtual void experience() const {        std::cout << "Drifting into a dream... " << content << "\n";