Clean Code — Naming

  1. “How can you consider yourself to be a professional if you do not know that all your code works?”
  • It’s easy to guess around at an answer to a coding problem and stumble upon the right answer. You shrug and say “well, if it works, it works!”, and move on. As professional developers, we must know how our code works and understand what it’s doing. The best way to do that is to declare the “boundaries” for how the code should operate by writing a test before the production code.
  • As I have said before, I like having processes I can follow in my workflow. The Red/Green/Refactor cycle is a great way to efficiently produce good quality code.
  • Writing tests after you have written the code is just confirming the biases you have already placed into your code. Always write your tests first.

--

--

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
Caleb McQuaid

Caleb McQuaid

I’m a software developer hanging out in SC