As compared to Javascript is Python easy to learn, and is very structured?
Hi there, even though I don’t know Python I think most people will answer JS is harder to learn. Main reasons being that JavaScript has not been around for too long as a server side technology and it still needs some time to mature so the learning curve might be a little steeper right now. If you’re comparing it as a language generally I think JavaScript tends to be misunderstood because it is not a class based language but a prototype based one. Whereas this might lead to some confusion at first it actually makes the language very dynamic and powerful once you understand how it works. If you consider client side JavaScript I would definitely say JS is harder due to the varying support of its features across different browsers.
when you say server side than does that means node.js?
I have one more question. How much Javascript should one know before jumping to the learning of the angular.js? I know it is a tricky question.
Fun fact: So is Python.
In Python, a class is itself a runtime, memory consuming object. And inheritance is done by delegating from instance to class object to superclass object and so on down the chain. Just like in JavaScript. Which means, for example, Python’s classes can be monkey patched, and already-existing instances will immediately gain the behavior of that patch. Python has been around longer than even Java, and all this time its inheritance has been objects linked to other objects.
Personally, this revelation made me start to think that the distinction between class based and prototype based isn’t as important as we sometimes make it out to be. It becomes an implementation detail. If we can be blissfully ignorant of the mechanics underneath, that means we made a good abstraction. I could use Python’s classes just fine before I discovered how they worked under the hood, and even after I knew, I still use their classes just the same. And since ES6 classes came along, the same is also true of JavaScript.
I do not know ES6, but I guess that it is the modernization of the Javascript with so many server-side functionalities.
Your expression power in English is very good. Choices of vocabulary, concision etc.
It’s the modernization of JavaScript, but independent of client- vs server-side. For server-side functionalities, you’ll want Node.js. You can think of Node as a more traditional language interpreter. It’s a JavaScript engine, taken out of the browser and made into a standalone program, and given OS and file system APIs, among others.
Your expression power in English is very good. Choices of vocabulary, concision etc.
Thanks! It took lots of practice.
The more the better… For me the more I understood JavaScript the less I wanted to use jQuery, Angular, React… You name it. Actually through dumping jQuery I got to properly learn JS. I was angry that we had a new project that used a different framework and I could not port any of my components that were written with jQuery. At that point I thought I would rewrite all my componets in plain JS and once I did I never looked back. Not having that dependency means my component library can freely go into any project. There are good things in each framework and things I don’t like in each of those… But knowing JavaScript if it was my choice I would not use any framework
when did you started your Javascript journey?
2007
A decade experience. you are a pro.
Since then I not only learnt JavaScript but also HTML, CSS, PHP and MySQL. I’m more of a jack of all trades in those (expert in none) … Although I have done a lot of JavaScript during the last few years and I now feel quite comfortable with all the basics, no fancy new stuff actually… But old is also gold…
Just to clarify, AngularJS refers to the (now legacy) 1st version of the framework. Unless you’re maintaining an old project, there’s little point in learning AngularJS now.
Angular (w/o the JS suffix) refers to version 2+, which has been a complete rewrite. How much JS should you know? Well this is what the docs say:
This documentation assumes that you are already familiar with JavaScript, and some of the tools from the latest standards such as classes and modules. The code samples are written using TypeScript. Most Angular code can be written with just the latest JavaScript, using types for dependency injection, and using decorators for metadata.
So first of all, you should make yourself a bit familiar with TS… while not strictly necessary, basically all resources you’ll find on the internet are in TS. And then my take would be to just start with the tutorial and see if it all makes sense to you… if not, you should probably take a step back. Quite simple. :-)
What do you hope to achieve by learning a language like Python or JavaScript?
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.