I didn't expect this technical article to end on such a melancholy note. I'm sad that the author feels this way about his work of last years. But it was an interesting read, and I think many of us share these concerns and doubts. Hopefully, even in a world of AI agents, there will still be people that write and read code, and who will enjoy using Clice.
Clice v1.0 Released: Welcome to Modern C++ (ykiko.me)
assumed_throwaw 2 hours ago
AshamedCaptain 4 hours ago
vintagedave 2 hours ago
I agree re the old ones though. But they did far less. This design is heavy on completing templates. That’s tricky!
rixed 3 hours ago
omoikane 3 hours ago
I think "modern" is used to contrast newer C++ standards from C++98.
ibobev 3 hours ago
"Modern C++ Design: Generic Programming and Design Patterns Applied" by Andrei Alexandrescu
Actually, he coined the term. Then Scott Meyers reused it, and now it is a common adjective used before C++ books, libraries, tooling, and so on.
jibalt 11 minutes ago
moltopoco 2 hours ago
Using string_view over string by default is probably the #1 cause of memory errors that landed on my desk. I also keep hearing that "int x{0}" is preferable to "int x = 0" which allows for super dangerous implicit conversions, but then the same people rewrite push_back into emplace_back, which is much more lenient w.r.t. type conversions. It is also much easier to litter every function with [[nodiscard]] constexpr nothrow than it is to argue for readability.
My best explanation is that "Modern C++" is making developers biased towards whatever language feature is newer, instead of making good decisions. I wish the community gave up on the moniker.
spacechild1 an hour ago
In fact, `std::string_view` can lead to very elegant and efficient (zero-allocation) string parsing code.
IME, taking a string_view as an argument is pretty unproblematic. Two areas where I have seen problems:
1. returning a string_view from a function. Think twice before doing that.
2. calling data() and passing the result to a function that expects a null-terminated C strings. (std::string_view is not guaranteed to be null-terminated.)
---
Apart from that, there are so many great features and libraries in C++17 and C++20 that I use on a regular basis and that I would really miss:
- structured bindings
- if-statement initializers
- fold expressions
- inline variables (very useful for handling global state in header-only stuff)
- if constexpr (replaces many uses of SFINAE)
- concepts (replaces all of the remaining uses of SFINAE)
- coroutines (really nice to use with ASIO)
- std::optional
- std::variant
- std::filesystem
- std::format (although I personally stick to fmt::format)
- from_chars() and to_chars() (fast, local-independent string-number conversion routines)
- std::bit
- std::apply, std::invoke, std::bind_front
- etc.
William_BB an hour ago
htfy96 2 hours ago
Neywiny 3 hours ago
dwattttt 2 hours ago
I could understand them showing off crash recovery by using code deliberately written to crash the language server, and so not being something you can "fix".
dwb 4 hours ago
makemefundyou20 4 hours ago
jibalt 5 minutes ago
dingaling911 4 hours ago
hollerith 4 hours ago
dingaling911 3 hours ago
dadoum 3 hours ago
edukite 4 hours ago
dwb 4 hours ago
Tadpole9181 4 hours ago
perpetualpear 2 hours ago
jibalt 9 minutes ago
In this case, anime.
hmokiguess 4 hours ago
dwb 4 hours ago
hmokiguess 3 hours ago
dwb 3 hours ago
hmokiguess 2 hours ago
ktosobcy 3 hours ago
Tadpole9181 4 hours ago
Just teasing - but there's a pretty large overlap of skilled FOSS developers and anime afficionatos (and also LGBT). It's a pretty common joke that if an exploit drops with an anime girl on the video / account - you know it's about to get bad.
Looking at the blog, this is a common theme with them: every article starts with a shot from some anime. Their GH PFP matches: https://github.com/16bit-ykiko
Hard to say why - maybe that's what they're watching when they made the article or did the work or something? Maybe they just like it. Maybe they're degens. People can be enigmatic sometimes. Well... okay, they're a C++ developer, they're definitely a degen.
Anyway, the first few times may catch you off guard, and sometimes it goes too far, but you learn to tune it out pretty fast. It's harmless and I'm glad they're enjoying themselves.
dwb 4 hours ago
Joker_vD 3 hours ago
Most people don't find a random picture of an anime teenager to be harmful or have sinister implications.
dwb 3 hours ago
ulimn 3 hours ago
dwb 3 hours ago
omoikane 3 hours ago
So with some header image, reader might be able to recall "it's that Clice post with Yami on top" or "it's that other Clice post with Kessoku Band".
hollerith 2 hours ago
Joker_vD 2 hours ago
Like, here's a random example: [0]. An article is about "a Go-native shell sandbox with coreutils, Python via WebAssembly" — and it opens with a photo of "a sea lion sleeping peacefully on a rocky beach while other sea lions lounge in the background near the water". Why? Because the author thought it would be nice to put there, that's why! No deeper meaning, unless you want to do psychoanalysis over the Internet.
xena 2 hours ago
Joker_vD an hour ago
Some blogs end up having interesting (not the right word, but I can't think of a proper one) sequences of leading pictures for their series of related posts, so that's an additional bonus for a reader, as a kind of second narrative/story, perhaps completely unrelated to the first one.
Tadpole9181 3 hours ago
From your profile description and that other comment, I would have assumed you were an ally. If so, I wouldn't have expected quite as much morality policing / thought crime tone. My perspective is that it's a little odd, but as long as they aren't hurting someone I really don't care what sparks joy in their lives. Life is hard enough.
And if they are hurting someone, that's what the law is for.
[0]: Their PFP comes from a manga / show that's sold over 10 million copies, apparently.
dwb 3 hours ago
hollerith 3 hours ago
Can you explain this? Is "degen" being used here in the sense of being so avid about C++ that it borders on degeneracy?
lmnlvoid 3 hours ago
jibalt 6 minutes ago
unleaded 37 minutes ago
jibalt 6 minutes ago
BoingBoomTschak an hour ago
kuhsaft an hour ago
Requirements, specs, and ADRs shouldn't be thrown out with agentic development. I've found that using rust-style `r[rule.id]` for requirements and specs with ADRs works a lot better than verbose commits.
Requirements cover what, specs cover how, ADRs cover why, and git commits cover when.
drnick1 33 minutes ago
qyron 5 hours ago
glebd 38 minutes ago