Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.42 KB

File metadata and controls

30 lines (21 loc) · 1.42 KB

some of my note might be helps you to take this course much more better

  • before write code map out you want to do like thses .md file next to each file
  • do baby steps don't build all program ad test build each step test it then go for next step
  • if you have list of options don't write just if first , second put valid items in array and write condition if is not inside invalid show error

Refactoring

changing the structure of the code without changin its functionality.

Modularization

Breaking down a large program into samller resusable parts called modules or functions.

DRY

Don't Repeat Yourself for sitution that we have sencetive name and one typo mistake can lead to mistake store all of theme in one place to not repeat yourself and have one place to change in future

Don't use global value

DOn't use global value as much as possible

Function

each function you create is good to have only one and single responsiblity to do

If statement

more you use if statement the code is become much more harder the maintain and understand try to remove other cases as much as you can.

Error handling

allways try to see all positible way that error might happend and be read for it by handling that error properly like check if user not upload file what happed what happend if that file empty what happend if format wrong , ...

Testing

as you go baby setp make sure to test each step before you go for the next one