Show newer

oh boy i can’t wait to refactor my codebase fur the second time in the same day

Show thread

long, code 

const htmlText = html(
{ lang: "en-X-catspeak" },
head(
title("*stares at you*"),
meta({ charset: "utf-8" }),
meta({
content: "width=device-width, initial-scale=1.0",
name: "viewport",
}),
link({ href: "/style.css", rel: "stylesheet" }),
),
body(
article(
header(h1(a({ href: "/" }, "example.org"))),
main(
h1("*stares at you*"),
img({
src: "/img/whatever",
alt: "whatever",
title: "whatever",
}),
dl(
dt("description"),
dd("whatever"),
dt("artist"),
dd(a({ href: "https://example.org/" }, "kame_3")),
dt("source link"),
dd(
a({ href: "https://example.org/" }, "https://example.org/"),
" ",
a({ href: "https://example.org/" }, "[archived]"),
),
),
nav(
{ class: "controls" },
a({ href: "https://example.org/", class: "button" }, "next"),
a({ href: "/", class: "button" }, "back to gallery"),
),
),
),
),
);
Show thread

imagine getting annoyed enough by your own code that you just reinvent s-expurressions but with extra steps so you can finally work with an API you can tolerate

Show thread

re: complaining 

@vaporeon_ if it’s any consolation i’ve been there many times, including very recently :blobmeow_pats:

me: this HTML generation code is awful

me: *heavily refactors the code*

me: this HTML generation code might be even worse

:clodsire_tail:​ love this pokémon, the headless instance of my favorite clodware

:clodsire_tail:​ love this pokémon, the headless instance of my favorite clodware

@coriander @wallhackio i would boost this but i fear i would be indirectly boosting his evil Lie

@The_T sonic 2 is a movie with genocide in its purremise that simply does not really carry itself with a tone that feels appurropurriate fur the fact that the echidna have been genocided in living memory

sonic 3 has extremely overt incest subtext except i’m not even sure it’s purropurr to call it subtext. like the Robotnik Bonding Time Scene is literally set to the Beach Boys’s Wouldn’t It Be Nice. i don’t know how you don’t come away from the movie with that takeaway

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.