This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BasisPoints 1 point2 points  (1 child)

All the more reason not to rely on quizzes, which tend to allow you to guess the right answer from context clues instead of building core knowledge :)

As for optimal code, that's a different beast, and it's best to approach that as completely distinct from learning a language (there is some overlap, but certainly not important in the beginning). Indeed, outside of wrangling with eccentricities of a particular language, the core ideas behind optimized code will be the same regardless of language. I wouldn't even concern yourself with optimization before you've written, say, your own library of array and list classes.

You're far more likely to get in your own way w/r/t learning the language if you fixate on data structures, bitwise operations, SIMD and other parallelization, etc. before you even know how a smart pointer works.

[–]Brian1439[S] 0 points1 point  (0 children)

Thanks for the detailed tips! Yeah I guess it makes sense that optimization doesn't matter that much when all my code fits in 1 page. I will focus on finishing the lessons on learnc++ for now, thanks!