Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tips For a New Coder From a New Coder

Tips For a New Coder From a New Coder

70% comedic images meant to entertain new coders, with a few text slides tucked in to keep me looking legit

Avatar for Amelia

Amelia

June 16, 2016

Other Decks in Technology

Transcript

  1. ask yourself, can you figure out what the code does?

    could a stranger (who knows programming)?
  2. if the code is readable and simple NOW, it’ll be

    that much LESS work to modify it later (it WILL have to be modified later. why do you think somebody else had to read it?)
  3. when naming ANYTHING in your code, be boring it’s tempting

    to start declaring values and methods in creative ways, but when you’re trying to understand your code, you’ll have more luck with func measureTravelDistance than func makeTheKesselRun…
  4. …unless you’re calculating var kesselRun = 11 if kesselRun <=

    12 { print("You've never heard of the Millennium Falcon? It's the ship that made the Kessel Run in less than 12 parsecs") } else { print("parsecs are a measurement of distance not time") } in which case, shine on
  5. when do these rules apply? A) Always B) Never C)

    In certain cases D) Rules never apply, life is meaningless, nihilism is the answer
  6. “Boilerplate is any text that is or can be reused

    in new contexts or applications without being greatly changed from the original”
  7. the ideal way to learn (beyond “just do it”, which

    after a point is just not helpful, and there is no shame in admitting that)