Elektrine lite

← Feed

@themilkman@shitposter.world

Post #2601650

2026-05-16 09:22 UTC

if i just wanna get into C, what do you think? (i already programmed with C++ and rust before)

Replies (1)

  • @VD15@pl.valkyrie.world 2026-05-16 09:53

    @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.

    Open ##2602932