Elektrine lite

← Feed

@VD15@pl.valkyrie.world

Post #2602932

2026-05-16 09:53 UTC

@themilkman@shitposter.world As someone who switched from C++ to C recently, if you can understand the former, you can understand the latter. The language is much simpler to pick up but mostly because it does less for you. That can be a blessing and a curse. There's fewer footguns than C++ and there's typically only one way to do X rather than the 50 that C++ gives you. Helps keep the cognitive load down and your attention closer to the problem, but you're also expected to solve that problem yourself. No niceties like the algorithm or vector header. You're writing that shit yourself. Templates are also gone (good riddance), you're expected to do much more preprocessor fuckery. Variadic functions are beautifully cursed and I highly recommmend you try implementing one. As for the book, cppref has a sub-site dedicated exclusively to C with some good examples and you can learn the whole standard library in a weekend.

Replies (2)

  • @themilkman@shitposter.world 2026-05-16 10:40

    @VD15@pl.valkyrie.world i wanted something also partially because it's been a good while since i used c++ as well. but maybe cppref is better for starting out. i usually like learning with a book since i can do it without distractions

    Open ##2602931

  • @meeper@netzsphaere.xyz 2026-05-16 09:57

    @VD15@pl.valkyrie.world @themilkman@shitposter.world mainnadvantage of C++ is that it's standard library is actually alright and doesn't have to fuck around with C's utter lack of types and shittiest most awful design by committee standard. C standard library is such a cursed piece of shit that even when I knew little of programming I always thought it bad. (v[a]_ functions do exist ig making stuff slightly less cursed)

    Open ##2828257