Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good opensource JS project for learning? [closed]

Tags:

javascript

I have learned basic JS knowledge, and read "Javascript definitive guide" book, but best way to improve is learning by doing, so any opensource project for practice, or any good suggestion for improving JS?

like image 363
jason Avatar asked Jul 10 '11 01:07

jason


People also ask

Can you close source an open-source project?

Yes, it is possible to make an open source project into a closed source project. The copyright holder can change the license of a project at any time, or cease to distribute source code of new releases. New releases can therefore be made closed source.

Is JavaScript closed source?

"Open source" refers to programs, whereas JavaScript is a programming language. It is an open standard, which is a close approximation in some ways - at least in the sense that it is not a "propriety" language that is owned and controlled by one company.


2 Answers

I used the "Javascript definitive guide" as a dictionary,there're still other excellent books you may have to dive into like "High Perfomance JavaScript" "Javascript:The Good Parts".....there're plenty of small demos in these books that you can do something over it and If I were you ,I would implemented some of my ideas by using javascript

like image 40
Lanston Avatar answered Nov 15 '22 06:11

Lanston


As an example of an open source project you could look into I would recommend to check the dojo sources. It's easier to grasp the advanced concepts there than e.g. in JQuery since there is a much wider code base for many different aspects. There is a lot to go through in the dojox packages. The code is also nicely documented, and recently they added nice online documentation, too, something that was missing for a long time. I learned a lot by peeking into dojo's internals, so I can only recommend it.

You should pay attention to their way of coding object-orientedly and how it differs from what plain JS offers you.

In addition to great code you can learn the concepts of code minification there, which is a big deal for the dojo project. There's also material on unit testing with Javascript code, something that is often overlooked but as important as back-end unit tests imo.

By reading "Javascript - The definitive guide" you now know a good bit about the language itself and its usage for browser-based applications. But with the recent popularity gain of Javascript it has also found its application on the server side. E.g. node.js is a very interesting project you could look into.

The concept of "Closures" is something you could look up, then find examples in existing code and finally use them in your own.

"Ajax" is another buzzword and concept you should be familiar with, it lets you do all the nice things in your browser that some years ago were only possible in desktop applications.

Modern web applications make heavy use of Javascript, but since standard Javascript and its prototypical inheritance are a bit clumsy to use, frameworks were written that simplify common tasks. You should familiarize with one or more of them to get an understanding of what they simplify compared to plain Javascript - this way you will automatically learn the drawbacks and shortcomings of pure Javascript. A good example is the with keyword. It's there, but nobody uses it. If your time just allows you to delve into one of these frameworks then my recommendation would be jQuery - it's the most widely used Javascript framework out there.

Some Frameworks

  • jQuery
  • MooTools
  • Prototype
  • script.aculo.us
  • YUI 3
  • dojo
  • Ext.js

Read blogs and technical articles on the web, skim through Javascript questions here at Stackoverflow to keep up to date and learn about interesting corner cases.

Some book recommendations

  • Secrets of the Javascript Ninja
  • ppk on Javascript
  • JavaScript - The Good Parts
  • Pro Javascript Techniques
  • Eloquent Javascript
  • Ajax in Action
  • Ajax in Practice
  • jQuery in Action
  • Dojo - The Definitive Guide
  • Test-Driven Javascript Development
like image 172
emboss Avatar answered Nov 15 '22 07:11

emboss