skip to content
tlam://~pooper

@pooper

member since 2025-02 · Right herre

Something about myself...

expressions
8
votes received
1

// pooper in code

<?php/** * Class Love *  * A metaphorical representation of love as a dynamic, evolving relationship * between individuals, encompassing various aspects, intensities, and changes over time. */class Love {    /** @var Person $subject The person who experiences love */    private Person $subject;        /** @var Person $object The person who is loved */    private Person $object;    

ls ~pooper/ (8)

~/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.
~/pooper/regret.php

Regret

It's a tough one, but it's true. Funny how we are actually not that complicated...

<?phpclass Person{    private string $name;    private array $pastDecisions = [];    private array $regrets = [];    private float $selfForgiveness = 0.5; // Scale: 0 (never forgive) to 1 (always forgive)    public function __construct(string $name)    {        $this->name = $name;    }
~/pooper/decisions_decisions.php
<?phpclass Person {    private float $mentalEnergy = 100.0;    private array $decisionsToday = [];    private array $habits = [];    private array $decisionWeights = [        'trivial' => 0.5,      // What socks to wear        'minor' => 2.0,        // What to eat for lunch        'moderate' => 5.0,     // Whether to go to the gym        'major' => 15.0,       // Whether to accept a job offer        'critical' => 25.0     // Whether to move to a new city    ];    
~/pooper/a_sunny_day.js

A sunny day

This is what ChatGPT told me a sunny day was in JS... "Here's a fun JavaScript class representing a sunny day, complete with methods to shine, warm up, cool down, change mood based on cloudiness, and even experience a beautiful sunset. Enjoy the digital sunshine! 🌞😎"

class SunnyDay {    constructor(temperature = 25, cloudiness = 0, mood = "cheerful") {        this.temperature = temperature;        this.cloudiness = cloudiness; // 0 means no clouds, 100 means storm incoming!        this.mood = mood;        this.brightness = 100 - this.cloudiness;    }    shine() {        if (this.cloudiness > 80) {            return "The sun is trying its best, but those clouds are really in the way...";        }        return `The sun is shining brightly with a brightness level of ${this.brightness}!`;    }