re: The 2 ways to learn how to code VIEW POST


Mine's a bit more practical but it's more like:

  • Acquire code sample (i.e. within a tutorial)
  • Try to figure out what code sample is doing theoretically.
  • Test parts of code sample and/or look up documentation to confirm guesses.
  • Make small tweaks (e.g. change an input) to code sample to change/modify or to achieve what I intended to do with the code sample and see if the result is as I intended.

I always find it easier to build up my own theoretical understanding of what I think something does, then confirm it against written documentation. It also involves a lot of error-free and experimentation with minimal consequences.

code of conduct - report abuse