@tvaneerd.bsky.social

The sky is blue in my profile pic.

A group of us went to a cocktail bar in Brno, that had different drinks and themes that switched as the night progressed. We all couldn't quite sit together, so every time the theme changed we shuffled our seating arrangement and said "That's a rotate" @seanparent.bsky.social

- There's a function for that - What's it called? - Guess - readConfigFile()? - Pass the filename - What's the path? - There's a function for that too - Just for the config path? - Yes - So... readConfigFile(getConfigFilepath())? - The code is true. It didn't compile. But Sensai was gone. #CppKoan

UBI is a human right. It became one the moment public land became private property. If you only get something in compensation for that loss if your income is low, your right is infringed. If you only get certain approved services, your right is still infringed. A right is UNIVERSAL + UNCONDITIONAL

The Spaceballs Argument for Unconditional Basic Income (UBI)

There is an argument frequently made against the concept of unconditional basic income (UBI) that essentially goes like this: "Life requires work. You can't just expect to live without work, and it's ...

scottsantens.com

I see how this works. AI writes lots of crappy repetitive code, You ask it to clean it up with helper functions, but Its goldfish brain kicks in, And it forgets everything it just wrote; Then proceeds to spend a gazillion tokens reading pages and pages of crappy code. Good code costs less tokens.

I've been considering the switch to 'not' instead of '!' in code. ie if(!someLong_expression(you, might, miss, theNegative)) vs if(not someLong_expression(you, probablyWont, miss, theNegative)) But I *still* sometimes miss it. So I've decided to make it really stand out using 'if (not! some...'

Can Ctrl-S in @compiler-explorer.com just compile instead of downloading. Ever since the days of before MSVC was called MSVC, I learned to hit save whenever I paused for a moment and thought the code was reasonable (because the editor could crash at any time). Ctrl-S means "that might work"

C++ help: struct FooTag{}; using FooInt = StrongType<int, FooTag>; using BarInt = StrongType<int, struct BarTag>; ie "inline" forward declaration in second case. I recall that Foo is better than Bar, but I don't remember why. IIRC, because of some subtle change in ADL (it's always ADL). Anyone?

You know how everyone says "don't use endl with cout, instead use '\n', it's cheaper"? Well they do say that, and it is "cheaper". (endl is a flush, \n is not). But if you are debugging (sadly via printouts) then a flush on each line might be exactly what you need to see where the code gets stuck!