3 ms·
Not sure I agree. GC is essential in industry (well, I'd argue that! Ignoring embedded anyway) but I think the programmer has to understand the real cost, and t
by _a_a_a_ 3y ago
Not sure I agree. GC is essential in industry (well, I'd argue that! Ignoring embedded anyway) but I think the programmer has to understand the real cost, and that means allocating and de-allocating, and if that is hidden by the GC then they're not learning that.
- TwentyPosts 3y agoThis is something much, much more easily learned with your second, or maybe even third programming language rather than with your first.
- brabel 3y agoTrue, but you don't need to get them to write C (or similar) in order for them to get to that point later on, once they can write basic stuff. In that regard, D is excellent because it does allow you to write code without the GC once you've mastered the basics, so it may be a (very) advanced part of a course to optimize some algorithm by manually managing memory, and seeing how much difference it makes.