332
submitted 1 month ago* (last edited 1 month ago) by HiddenLayer555@lemmy.ml to c/programmer_humor@programming.dev

Made with KolourPaint and screenshots from Kate (with the GitHub theme).

you are viewing a single comment's thread
view the rest of the comments
[-] victorz@lemmy.world 16 points 1 month ago
[-] isVeryLoud@lemmy.ca 2 points 1 month ago
[-] victorz@lemmy.world 3 points 1 month ago

I meant that it should probably be:

String a = new String()
[-] BehindTheBarrier@programming.dev 2 points 1 month ago
[-] nintendiator@feddit.cl 1 points 6 hours ago

I am not married to any particular language's syntax choices but sure if we want to play "make it feel like C++":

std::cpp26::string a : std::cpp26::make_unique( std::cpp26::string{} );

I could try and pass it through a number of iostreams or a to_array conversion to see if I can push a to_string() in somewhere...

this post was submitted on 19 Jun 2025
332 points (90.7% liked)

Programmer Humor

25180 readers
1699 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS