Should I Use a Framework While Learning Web Development

前端 未结 7 1907
花落未央
花落未央 2021-02-02 14:11

I realize that this may be subjective but I truly need an answer to this and I can\'t seem to find anything close enough to it in the rest of the Forum. I have read some folks

7条回答
  •  别跟我提以往
    2021-02-02 14:25

    FWIW : This more generic answer may be of use to someone out there.

    What: Frameworks take out tedium of using boiler-plate code again and again. They hide complexity and design issues under wizards and conventions. They also use special libraries, design patterns etc. in ways that are far from obvious to a beginner.

    So using a framework is good for getting things done without knowing exactly how - like using an ATM without knowing the internals. You just add your code bits in certain places and things 'just work'.

    HTML > CSS > Ruby > SQL > Rails/Javascript framework > Libraries would make for a good learning track. Rest you learn as you go along by being curious, hanging out on forums or as extended learning as need arises.

    HOW: The problem starts the minute you step outside simple text-book examples (i.e. when you try to get it to do something even a bit different).

    Decoding cryptic error messages when it seems like you've done everything right but things still don't work. Searching on error strings in forums may help out. Or just re-starting from scratch.

    Reading up articles and books, videos, trial-and-error, hard-work, search-engines, stackoverflow/forums, local gurus, design articles, using libraries, source-code browsing are a good way to climb the learning curve gently and on a requirement basis.

    Working-against-the-framework is the number one problem for beginners. Understanding what the framework expects is key to avoiding white-hair in this phase. Having enough insight to manually do what the framework automates may help reduce this second-guessing effort.

    WHY: For more advanced debugging/design, it's good to know what the framework is doing under the hood esp. when things don't work as you planned. Initially you can take the help of local-gurus or forum gurus who've already done the hard work. Later as you go deeper you can take on more of that role. For example there's a "rebuilding rails" book which looks under the hood of Ruby on Rails.

    Note: Some of the tips are oriented towards Ruby/Rails but you can easily substitute your favourite language/framework instead.

提交回复
热议问题