When it comes to organizing your logic in a program, one tool that can do a lot of heavy lifting for you is short-circuit evaluation. In this article, I'll give a little bit of background around...
Tag: Best Practices
Returning multiple times in a single function is legal in most programming languages, yet a lot of folks don't like it. Why?
Lots of people use flags in their code. There's nothing wrong with that, but you may find your code easier to write without them.
Code readability is something we should always strive for, but there are so many rules. Today, we'll talk about one of those rules that might help you out.
In programming, a magic number is a value without a clear purpose. In this article, we'll learn how to fix them!
What are your thoughts on code commenting? I bet you have a few. Here are some that I found in the community.