التخطي إلى المحتوى الرئيسي

Why do so many people suggest learning JavaScript first instead of Python or Java

JavaScript is the de-facto rockstar of the web. Nowadays you even markup and stylize in JavaScript. This is the language you use to add dynamic behavior to your page.
Now, it depends on your road.
1. You want to work
If you want to have a job in the industry, then Python and Java are higher-scale language in the sense that it’s really long to have something working nice and clean using these languages. The learning curve is quite steady, once you get a grasp of how programming work you can learn basically any popular class-based language (Python, Java, C#, Ruby and so on).
On the other side Javascript is straight forward : you don’t have to compile it yourself, the result appears right on the screen, and you just have tools to play with to build UI and add dynamic like handling events or animating your page. Anyone can basically learn JS and start helping projects with it.
Many problems have been solved by the JS community, there’s a lot of resources, tutorials and people to help you. It’s easy to be hired in any little firm that do little websites for a living.
2. You want to be a professional
Then JS is a no go.
The emerged side of JS is funny, cool-looking, you can do everything with a bit of jQuery. But JS in itself is way, way deeper. It’s a very complex language with a few good parts that makes it a language with infinite possibilities.
Many algorithms are hidden (sorting, finding, arrays), many details are so important (Array are just special Objects), the way it handle concurrency is like no other (an Event Loop in a single thread), it isn’t class-based like Python & Java but it’s prototypal (which is rare in the industry nowadays), it has functions as first-class citizen (so functions are values like any other, can be passed as arguments and can be returned) which leads to closures, it promotes functional programming and object composition…
And I could continue on and on to make my point that this language is so complex it’s easy to make mistakes, leak memory, slow a whole page, make bad use of memory in general. Don’t be deceived by its apparent simplicity.
I’d personally recommend starting with the C languages, learning algorithms and data structure along with memory management. Such a strong basis in the computing field will allow you to dodge many higher programming languages bullets.



تعليقات

المشاركات الشائعة من هذه المدونة

Why is C++ so popular in game programming And why not other languages such as Python or C# or Java etc

The assumption here is that games are written in one and only one language, and that's very often not that case.  Many games today have multiple  'layers  of systems communicating with one another, typically in different languages that are better suited to different tasks. For example, we might have layers such as  rendering ,  physics ,  AI ,  gameplay ,  high level scripting , and the  backend  (which itself could be composed of one or several languages). When people say  "C++ is the best language for games" , they're almost always either one of two things: Speaking specifically about low-level engine code like the  rendering and  physics  subsystems. Naive and parroting what someone else has told them. Low level systems are usually written in C++ because there simply aren't a lot of alternatives, and of the few that exist C++ strikes a good balance between high performance and ease of use (when compared...

Difference between UX and UI designer and web designer?

UI Designers "UI" stands for " User interface ". Traditionally, that means the actual buttons, text, and pixels that appear on the screen. So the UI designer would be responsible for everything about how a web site or application appears in the interface - this would include visuals (e.g. "Are the buttons pink or blue?" "Do they have gradients or are they flat?") as well as overall architecture of the page (e.g. "We should put the Sign Up button at the top of the screen because it's the most important thing").  UX Designers "UX" stands for " User experience ". This is a much broader and higher-level discipline than UI, because it includes not just the interface, but also all the systems and interactions that support it. For example, the UX designer should care about what happens when a frustrated user calls the help desk as well as how pixels appear on the screen.  Interestingly enough, because thi...

Can I make an Android app with Python?

PyMob is a platform where apps can be written purely in Python and the compiler tool-flow (PyMob) converts them in  native source codes  for various platforms. There are few aspects which make PyMob approach  truly unique. Firstly, writing apps in Python is certainly simpler than  Obj-C, Java or JavaScript (some would disagree).  Secondly, the spec has  to be written in Python just once. Thirdly, PyMob generates native  source code for all the supported platforms. The generated native source  code is virtually indistinguishable from a hand written code and can be  further optimized by native compilers. More information on PyMob is  available at  http://pyzia.com/technology.html Here  are "cons" which are typically mentioned for any cross-platform mobile  app development platform and my inputs on how PyMob fares: 1.The Framework Might Not Support Every Feature of an Operating System or Device:  In the PyMob...