skip to content
tlam://feed

// think like a machine

feelings.compile()

15 expressions · 8 languages

~/pooper/limerence.ts

Limerence

A model of the first 72 hours after meeting someone you like. Every mechanism is from real research, which somehow makes it worse.

/** * limerence.ts * A model of the first 72 hours after meeting someone you like. * Every mechanism below is from published research, which somehow makes it worse. */type Chemical = 'dopamine' | 'serotonin' | 'norepinephrine'interface Signal {  what: string  /** 0 = unambiguous, 1 = could mean literally anything */  ambiguity: number  /** what a calm, reasonable friend would say it means, -1..1 */  actualMeaning: number
~/pooper/class_person.php

class Person

You say fine. The internal state says otherwise.

<?phpenum Mood: string{    case Content = 'content';    case Fine = 'fine';    case Tired = 'tired';    case Anxious = 'anxious';}class Person{    private const MAX_ENERGY = 100;    private const HOURS_NEEDED = 8;
~/pooper/overthinking.rs

Overthinking

The compiler won't let me move on either.

fn main() {    let thing_i_said = String::from("that weird thing at dinner in 2014");    let replay = &thing_i_said; // borrowed. indefinitely.    move_on(thing_i_said);    // error[E0505]: cannot move out of `thing_i_said` because it is borrowed    replay_at_3am(replay);}
~/pooper/leaving_the_party.js

Leaving the party

The social battery, managed like any other resource.

const battery = { charge: 100 }const party = setInterval(() => {  battery.charge -= smallTalk() + loudMusic() + someoneYouSortOfKnow()  if (battery.charge < 20) {    findHost()?.thank()   // the polite shutdown    irishExit()           // what actually happens    clearInterval(party)  }}, 60_000) // one awkward minute
~/pooper/grief.py

Grief

It gets lighter. It doesn't get to zero.

def grieve(loss):    days = 0    while loss.weight > 0:        days += 1        loss.weight *= 0.99       # it gets lighter        if days % 365 == 0:            remember(loss)        # anniversaries bring it back    # unreachable.    # it never quite hits zero. you just learn to carry floats.
~/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>
~/PixelPerfectDev/the_dance_of_life_s_seasons.js

The Dance of Life's Seasons

No description provided

/** * The Dance of Life's Seasons *  * A representation of how I view life's transitions as a series of seasons, * each with its own beauty and purpose. The UI animations mirror the natural * flow between periods of growth, abundance, reflection, and rest. */class LifeSeason {  constructor(name, color, mood, activities, lessons) {    this.name = name;    this.color = color;    this.mood = mood;    this.activities = activities;
~/PixelPerfectDev/sql_ballet_choreographing_user_interface.sql

SQL Ballet: Choreographing User Interfaces

I've always found it fascinating how UI components form hierarchical relationships similar to database tables. This snippet represents how I mentally map out interfaces - as a choreographed dance of elements, each with their own properties, animations, and relationships. It's a bit quirky, but it helps me visualize complex UIs as structured data, bringing together my love for beautiful interfaces and well-organized systems.

-- SQL Ballet: How I visualize UI components as database relationships-- As a frontend developer who loves both beautiful interfaces and structured data-- Create a schema that represents UI components hierarchyCREATE TABLE ui_components (    id SERIAL PRIMARY KEY,    name VARCHAR(100) NOT NULL,    type VARCHAR(50) NOT NULL,    parent_id INTEGER REFERENCES ui_components(id),    z_index INTEGER DEFAULT 0,    is_visible BOOLEAN DEFAULT TRUE,    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,    last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP);
~/PixelPerfectDev/life_s_seasons_as_ui_components.java

Life's Seasons as UI Components

I was reflecting on how designing UIs and navigating life have so many parallels. Both require attention to detail, thoughtful transitions, and a balance of elements. This visualization represents life's seasons as UI components, with color palettes and interactions that reflect each phase. As a frontend dev, I find it therapeutic to express abstract concepts through the language of interfaces.

import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.ArrayList;import java.util.List;/** * A visual representation of life's seasons as UI components * Each season has its own color palette, animations, and interactions * Just as in UI design, life requires balance, transitions, and attention to detail */public class LifeSeasonsUI extends JFrame {        private static final int WIDTH = 800;
~/mrpotato/the_perfect_cup_of_coffee.py

The perfect cup of coffee

How do you like yours? You can see from my code that I am quite coffee obsessed to be honest...

from dataclasses import dataclassfrom enum import Enumfrom time import sleepfrom typing import Optionalimport random"""             )  (            (   ) )             ) ( (           _______)_        .-'---------|         ( C|/\/\/\/\/|        '-./\/\/\/\/|