Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Karl Marx Lopez
1,369 PointsIs it required to master that Big O Notation?
I read half of the articcle in https://www.interviewcake.com/article/java/big-o-notation-time-and-space-complexity. I did not finished it because it hurts my brain. Does it make me a better programmer if I understand it?
1 Answer
Jeff Wilton
16,646 PointsYou are asking two different questions, so I will give you two answers.
Is it required to master that Big O Notation? No
Does it make me a better programmer if I understand it? Yes!
Let me elaborate a bit. I personally believe that understanding the concepts of Big O Notation are vital to becoming a good programmer. You need to at the very least understand the implications of your code, specifically loops and nested loops, so you can get better at optimizing your code. It is not necessarily going to sink in overnight, but the more you read about it, the more it will start to make sense - so be sure to check out some other articles regarding code optimization. I will also add that writing clean code should be the ultimate goal of software craftsmanship. If you end up having to write some complicated, ugly code in order to achieve the highest level of optimization possible, it is likely not worth it. So mind the gap and be aware that there is a balance between optimization and code cleanliness.
Happy Coding!
Karl Marx Lopez
1,369 PointsKarl Marx Lopez
1,369 PointsThanks for this Jeff Wilton