JavaScript is the next (or first) programming language you should learn

Source: Internet
Author: User

I have been asked several times, if I had just started, what programming language I should learn, the answer must be JavaScript, here's why:

The simplest development environment

I believe that the biggest hurdle for people to get into programming is actually writing all the other aspects of code-related stuff. You can write code faster (at least when you start learning), which in my opinion is a triumph. Everyone has access to a Web browser, which means that everyone now has access to a simple development environment. If you are using Chrome under Mac, press the shortcut key cmd-opt-j. Comes to the console and now you can start writing JavaScript and managing the pages you see. That's good. There are also a number of online editors and tools, such as Codepen,jsfiddle, that allow you to build a more complete dev/test/prototyping environment in your browser.

Simple

When you start, JavaScript makes it really easy to write code, which is very effective. Define a function to invoke it. Write a loop. Ignoring the DOM (and, in fact, almost completely ignoring the web), only cares about simple logic and code. Start building objects and arrays. The OO model in JS is slightly odd (especially for classes and inheritance), but fortunately, you need to be flexible, anyway, if you want to be a developer. Once you have mastered the basics, you can go deeper and discover all the power of JavaScript.

Flexible

Another aspect of the previous discussion is that JavaScript is also super flexible (and so is the argument). Once you are able to move from some of the functions in the sctipt tag directly embedded in the Web page and control an image or menu, you will soon be able to continue with many files, a larger object/class form structure, a complex single-page application, and a whole more complex, fully architected Web application. Since it is so tightly coupled with the DOM and the browser, JavaScript is actually better extended to meet the larger challenge of perfectly matching the Web application.

Network Native (web-native)

With enough talented mobile app developers to convince you that apps are the future, I still think open web technology is the key to the future. Give it some time, we almost use Html/js to write all the mobile apps, and deploy the packaged app to the phone. I think this is basically inevitable. Learning about web-related development is critical. No matter what language you use in your work, you need to understand it basically, because no matter how hard we try, you end up working with CSS, tweaking some HTML tags, and so on. That's not going to disappear immediately, I don't think so.

Inevitable

Almost at the end, but mainly because of the evolution of ideas to deploy other aspects. I actually put this as a really important reason why you should learn JavaScript. Here's the tradeoff-if you're developing web-related things, then you're writing JavaScript in the end. This is unavoidable. You can do this using the server-side language (Php,python,ruby). Sometimes the load is passed to the browser, and if you want to do something interesting at the far end, you will have to use JavaScript. So if you have to learn, why not optimize the process (perhaps using JS in more places, not less).

Lightweight (Browser/server/native)

Since we have the stuff like node. js, JavaScript has gone beyond the browser. Not only can you write server-side JS (so you can use JS to develop a front-end Web application), but you can also use things like Node-webkit to package as a distributable desktop application, or use PHONEGAP to package any platform as a mobile app. No other language can be so light now.

Tool chain

If those reasons are not enough, in terms of the developer Toolchain, the proliferation of JavaScript communities has a really long way to go in the next few years. We may not have an integrated, one-stop approach like Xcode used by Mac developers, but we have tools like grunt and gulp to build our own resource pipeline. Every code editor that is known to support JavaScript syntax highlighting and hinting, we don't need a build process like other languages, so we can be more relaxed. There is a bunch of test tools, from unit tests to functional tests, that completely simulates the user who uses the browser.

So anyway-there's never a better time to start learning programming, and if you want to get started, I suggest starting with JavaScript. From simple to start, slowly improve. Look at the source code. Go to GitHub. and crazy for it.

Free Brother even php original video tutorial CD, details of the website customer service:

Http://www3.53kf.com/webCompany.php?arg=lampbrother&style=1

JavaScript is the next (or first) programming language you should learn

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.