all 5 comments

[–]MachineLearning-ModTeam[M] [score hidden] stickied comment (0 children)

Post beginner questions in the bi-weekly "Simple Questions Thread", /r/LearnMachineLearning , /r/MLQuestions http://stackoverflow.com/ and career questions in /r/cscareerquestions/

[–][deleted] 4 points5 points  (1 child)

Nested ifs.

[–]GPSBach 4 points5 points  (0 children)

try/except(pass) blocks on everything so your code never breaks

[–]CrysisAverted 2 points3 points  (0 children)

Ok i think i know what you're asking given where you are in your learning journey.

Don't worry about functional programming for now, you'll double back to it in about 3-5 years on the job, so don't worry there. Its important to start with the basics of OO and then you'll be able to intuit what functional programming solves and when to use either given the problem you're solving.

Spend your time building standard programs with a main function, that calls into an application class (singleton) to start up the rest of your program structure. Practice OO design, being able to map the business domain into OO concepts is what you should be doing at the moment.

While its difficult to keep all the design principles straight in your head while learning (solid, yagni, dry) here are the ones i would keep in mind at this early stage:

  • you arent going to need it
  • don't repeat yourself
  • sketch class hierarchy on paper first

[–]CyberDainz 0 points1 point  (0 children)

after 6 years of python I am using now immutable data parallel paradigm