“Doesn’t That Feel Better?”

Refactoring

Some IDEs will even suggest and automate refactoring for you!

“Where’s the pattern?”

C++ “Lambda expressions” are a great tool for exploiting patterns.

Zero-Overhead Principle

Hear Stroustrup talk about the “Zero-Overhead Principle” in C++.

Encapsulation / Modularity

No Secrets! Declare every method and variable public. After all, somebody, sometime might want to use it… This makes it very difficult to later change the way that anything works under the covers.

-Roedy Green, How To Write Unmaintainable Code

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store