how to get better

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Toxicous8
    New Member
    • Oct 2015
    • 57

    how to get better

    hi, i've been working on php developing, and it was great.but when i see some other php codes on the internet, they use much more advanced codes than me.i know about variables, representing html input and stuff like that.i tried several advanced tuts pdf reading but i saw about classes which i dont get their purpose.i mean how is it better to write all those classes n function rather than makin a variable n just use it.i dont see any difference on that exept u would save ur self from writin all those chunck of classes.so any better way to get better?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    i mean how is it better to write all those classes n function rather than makin a variable n just use it.
    code re-use. also known as the DRY principle (Don’t Repeat Yourself). and the S from SOLID (Single-Responsibility-Principle)

    so any better way to get better?
    practice, practice, and (not to forget) practice.

    Comment

    Working...