PPlamenu
Sign in
caitp@caitp@mstdn.social
2mo

I'm sorry for being unboostable, but its stolen anyways. #Alt4you #Alt4me #AltText

2 panel meme, both panels feature a snippet of source code. Panel 1 is captioned "coding in 2022", and includes a 1 line implementation of a function meant to determine whether or not a piece of text begins with a capital letter.

Panel 2 is captioned "coding in 2027", and contains a much longer implementation of the same function by relying on Anthropic AI using a long prompt.

The prompt: "You are a capitalization expert. You have been studying capitalization for years. Text to analyze: string interpolation syntax with the input string, surrounded by several escaped quotation marks. Respond with ONLY 'true' or 'false'. Is the first letter of the text a capital letter?"

The rest of the function sends this to the Anthropic API and awaits an answer, at which point it returns whether or not the response from Anthropic matches the word "true".
ALT
1000
Open original page
BoostsQuotesFavs
JimmyChezPants 🇨🇦@jpaskaruk@growers.social
17h

Replying to @caitp@mstdn.social

@caitp You know you don't have to retype everything, right? Just describe what is being shown, conceptually.

Jul 5, 2026, 14:02 UTCen
0000
Open original page
BoostsQuotesFavs