FBXL Social

After an hour of trying to get chatgpt to help me with a simple problem in rust, I have determined that anyone who thinks that programmers will go away because chatgpt will replace them is a fucking moron.

"do this." doesn't compile. Tell it so. "Oh, my mistake, do this." doesn't compile. Tell it so. It wasn't until I got fed up after an hour of solutions that looked good but didn't compile that I realized the problem and I fixed it self using my squishy human brain.

And this is my first time using rust!
replies
5
announces
2
likes
4

I'm not doing anything fancy like a rust nightly. Just trying to solve a bug in lotide where if someone from mastodon/pleroma/soapbox makes a post without a heading it creates a post without a title and it's annoying to work with, so I wanted to create something that'll take either the first line or the first sentence or the first 64 characters (whichever comes first) to make that the title.

I think I've almost got it now. It's a fairly simple program thankfully.

Before and after! I'd call that a success!
blank title populated title