Hacker News new | ask | show | jobs
by justsaying9 1650 days ago
I'm a C guy and have played around with C++ back in the day, but have come to despise the language, with all of its increasing complexity, warts, design flaws, and footguns. I'm highly suspicious of Rust and Go as well. I prefer the C way of doing things, with no garbage collector, though I do tire sometimes of all the extra grunt work that goes into implementing anything in C. Looks like D has a lot of features geared toward making development faster, without loading up with too much complexity like C++. Just read about the 'better C' mode which sounds interesting. I like that it's made to integrate seamlessly with C libraries. Are there any good examples of larger programs or libs written in D you could point me towards, so I can learn by example the 'D way' of doing things?
2 comments

I'm a D newbie myself. Existing larger programs usually use advanced language functionality (like pure functions, generics, templates), which is a bit overhelming when learning a new programming language. You can use this resources page and pick up whatever interests you:

https://github.com/dlang-community/awesome-d

If you insist dissecting existing code, the Hunt library is well commented and seems more approachable. It uses OOP and some templates.

Cool, I'll check that out. Thanks for the tip.
I wouldn't bother with betterC. Use the language as it's intended to be used first.