Random lessons

Here are a few tidbits I have learned:

  • Make variables names clear and specific. “listOfStates” is more understandable than “x”.
  • Functions should describe their actions i.e. “getListOfStates” is better than just “states”.
  • Get things to work then clean up and refactor.
  • Brainstorm, think, and plan with pen and paper. Writing things down really helps me to get unstuck, so maybe if I were wiser I would start with pen and paper first and not get stuck so often 🙂
  • Learn how to write better code by reading others‘ clean code.

2 thoughts on “Random lessons

  1. Those are great lessons. The one I have the hardest time with is number 3, I’m always trying to think a few steps ahead and plan that out. But really I should just worry about the current task at hand.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s