Learning JavaScript… Should I skip straight to the good stuff (the frameworks)?

后端 未结 9 1589
小蘑菇
小蘑菇 2020-12-30 15:48

I learnt HTML/CSS a good few years back, then PHP a little later. I\'ve recently become interesting in web development again, just started playing with frameworks like Djang

9条回答
  •  旧巷少年郎
    2020-12-30 16:24

    No.

    Just as when you are learning to program you are taught first C/Pascal then Java/C++ and finally Python/Ruby/Smalltalk/Lisp, and when learning any language you start with simple language constructs, you should first learn ECMAScript, then learn DOM and finally frameworks.

    Why? Because you'll have a deeper understanding of the language, and will be able to debug things that might seem odd unless you've got that learning experience.

    If you are a seasoned developer, you can speed up each phase, but don't skip them, or you will have problems due to not fully understanding the small oddities.

    Javascript is an interesting and fun language, but can act rather odd at times (Date has bitten me a couple of times in the ass).

    Use frameworks to avoid repetitive tasks and to simplify your code, but not as a starting point. Simplicity is a final goal, not the starting point, and frameworks are for that, simplicity, not for learning a language. Frameworks are intended for simplifying things for experienced developers.


    Learning the differences between browsers (DOM implementations) will allow you to debug your framework. That is priceless.


    I've been learning Java over the last year...

    Javascript is not Java. Never was never will.

    Even if you can compile to Javascript from Java, it's still a framework, don't jump into it unless you already know what you are doing.

提交回复
热议问题