Search Unity

planning vs random walk

Discussion in 'Scripting' started by shmomo, Mar 29, 2015.

  1. shmomo

    shmomo

    Joined:
    Oct 11, 2011
    Posts:
    127
    how much time do you allocate to planning the code before you start typing?
     
  2. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    none usually but I don't know all that much about coding so i make it up as i go along and revisit as needed
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    It really depends on the complexity of the project. I generally try to have at least a basic structure in my head before I start typing. For complex math or systems I'll start with pen and paper.

    In my experience good coding practices make more of a difference for a lone individual then good planning. Not sure if this holds true for bigger teams.
     
  4. Brominion

    Brominion

    Joined:
    Sep 30, 2012
    Posts:
    48
    As BoredMormon said, it depends on the complexity of the project.
    But I usually use some visual UML-like tool (or pen&paper) to plan out how complex systems should work. I assign responsibilities, and key data to the classes etc. Usually it is much quicker than just coding and discovering that you arranged you classes poorly and cant achieve your goal without major re-factoring.
     
  5. shmomo

    shmomo

    Joined:
    Oct 11, 2011
    Posts:
    127
    thanks for the advice!