As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to learn JavaScript. For this recently I had purchased a book named “JavaScript The Good Parts” from OReilly’s. Though this book is pretty old, but I got some good feedback about this book. I want to learn to write plain JavaScript code from scratch and then move to jquery. Is there any suggestion with this vision?
I have another question, just for curiosity --- is it possible to use JavaScript or jquery for developing desktop application inside?
If you search on Google then there are so many tutorial sites like
For JavaScript
http://www.w3schools.com/js/default.asp
http://www.echoecho.com/javascript.htm
http://www.tizag.com/javascriptT/
http://www.tutorialspoint.com/javascript/index.htm
http://www.quackit.com/javascript/tutorial/
For jQuery
http://www.w3schools.com/jquery/default.asp
http://docs.jquery.com/Tutorials
And there are lots of tutorials and PDFs for these, but you can start from the above urls
Or refer answer from here https://stackoverflow.com/tags/javascript/info
JavaScript The Good Parts is a great book for Javascript, I wouldn't recommend it for learning the language. You should come back to it once you understood the concepts of the language.
As #PitaJ already mentioned in the comments you should take a look at the learning section here: https://stackoverflow.com/tags/javascript/info
And yes, it is possible to develop desktop applications. However you will need software that allows you to do that. i.e.: http://appjs.org/ or http://www.tidesdk.org/
Speaking from a quality point of view, software developed like this will probably never reach the level of natively build applications.
You might also find the node.js project interesting.
EDIT: Windows 8 also allows you to build desktop Javascript application. MSDN Javascript Apps for Windows
Try:
1. http://www.w3schools.com/js/default.asp - w3schools' javascript tutorial
2. http://www.w3schools.com/jquery/default.asp - w3schools' jquery tutorial
These will give a idea of both javascript and jquery.
Once you are familiar with jquery, you can also visit: http:// api.jquery.com/
This is the official jquery api "blog".
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm working on my project and i used alot of js and jquery in that project and now it's alot messy over here.
I was suggested to move over to some js framework so i started working on backbone.js. I need your guyz help on how i can learn it fast enough as afterwards i've to shift my code in this framework too. I'm beginner in this framework so any suggestion for tutorials or books i can speedily go through and learn it ? Also backbone.js is my only option because i've to use it in further projects as well.
Regards
I think you should start by reading the Backbone.js book by Addy Osmani. If you are familiar with the MVC design pattern then you may start directly from The Internals to get yourself started quickly. Now, after getting a feel of what is possible with Backbone.js, you should try to understand the code of the very simple todo app which has its source code in Github. Try to understand every part of the code - I found it very insightful as I was only beginning javascript and the concepts were new. Some parts of the todo app is explained in the book mentioned above, but some other parts you have to figure out on your own. You will need the help of official documentation. Figure out how to code nested models and views.
Once you have done this, get your hands dirty by starting coding an application. This will give rise to many questions. Now, you have to take help of the documentation, stackoverflow and the #documentcloud, #javascript and #jquery IRC channels when you get stuck.
Most importantly - have fun!
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for tutorial(s) on how to refactor JavaScript application into a JavaScript application using one of the existing JS MVC frameworks. Anyone got any?
Yes, I recommend the Backbone-Boilerplate located at GitHub.
This is beneficial because, not only do you get the Backbone MVC, but also require.js AMD, and underscore.js templates. The authors have been consistently active, and the code is impressive to work with.
Here are the associated tutorials:
Introduction
AMD Module setup
Boilerplate
Overview
Router Explanation
These were the tutorials I used to get it up and running. Also included is Node.js and Grunt build system. They are very much worth the effort if you are not familiar with them. I just saw today that a jQuery project is incorporating the Grunt build system. This is a good setup.
UPDATE: Apologies if you were already aware of the boilerplate. I realize it does not directly relate to refactoring. This looks like a good post on refactoring MVC.
Documentation may be sparse as it would be specific to how your codebase is architected. The key notion would be Data maps to Model, GUI maps to View, Collections contain multiple models, and the Router is used to route events.
Hope that helps.
All the best!
Nash
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I've been very excited with backbone.js recently, but all I can find was minimal tutorials on the web. Have been searching for a backbone.js book, but since it just recently came out, wasn't able to find any. Was hoping you guys know currently in production, perhaps a beta available somewhere?
I do not think Backbone is big enough to require a complete book on it. It is only 4 base JS classes. I would suggest you look for books on MVC and design patterns related to it. This is really the base. Maybe some guides on restful web apps and HTML.
The best book is to read the annoted source here: http://documentcloud.github.com/backbone/docs/backbone.html
As Julien said it might be too small to have its own book, but JavaScript Web Applications by Alex MacCaw might be useful. It has a chapter on Backbone as well as other frameworks and covers a lot of general topics that are likely to be relevant to anyone working with Backbone.
Its available as a beta ebook now.
There is a prerelease eBook called Backbone JS on Rails by some people who are well-known within the Rails community. I haven't purchased access to it yet, but the Table of Contents looks good.
Recently released "Developing Backbone.js Applications: Building Better JavaScript Applications" by Addy Osmani.
Here's a screencast that might be helpful, it comes with a pdf that's a bit like a book.
https://peepcode.com/products/backbone-js
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Are there any useful examples of node.js (such as a guestbook or chat room)?
Read about what I did to make it here: http://www.travisglines.com/web-coding/lets-make-a-twitter-clone-in-node-js
Check out the source code here: https://github.com/tglines/nodrr
There are some useful introductory videos on node at the Node.js Camp website that helped me get my head round things. Particularly the Introduction to Node video by Ryan Dahl (creator of Node.js) where he codes a basic chat server on the spot. Also the videos about Tim Caswell's game client are pretty impressive.
http://camp.nodejs.org/videos/
You may also want to look at the socket.io example on Tim Caswell's 'How To Node' blog if you're interested in a simple chat server.
You didn't say how proficient you were in Javascript but Tim has written a couple of interesting articles that explains some Javascript fundamentals using object graphs. Helps explain some novel concepts such as the prototype chain and closures.
http://howtonode.org
Here is a chat along with its source code.
Here is a list of a bunch of applications created using node.js that already exist. Perhaps this would be a nice place to start --
https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node
DailyJS has a tutorial series about building an app with node.js: http://dailyjs.com/tags.html#lmawa
Pedro Teixeira walks his viewers through creating several parts of a web application at Node Tuts. The code to go with his screencasts can be found on his Github page. They mostly deal with Express and Mongoose, but there are plenty of other subjects and code samples there.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What is the best open source/free HTML5/CSS3/JavaScript IDE?
Thank you!!!
Most of the time when I write code I am programming C# applications using Visual Studio, which is my favorite IDE. However, when it comes to Javascript VS is quite poor. It does not support collapse to definitions (AKA code folding in other IDEs / editors), does not support code outlining and also has a very primitive and most of the times useless autocomplete.
Because of that, at some point I have started to search alternative tools for JS programming and the best I came across was Aptana Studio. It also has support for HTML and CSS (as well as for some server side languages like Ruby, PHP, Phyton), but I have only used it for JS and that is an area where it shines. It has very good code outlining and one of the best autocomplete implementations I have ever seen for Javascript (even thought it is still improvable).
Aptana Studio is based Eclipse and is available as a plugin or as a full package version. On their site they are saying that the next version is going to totally independent from Eclipse, which would make it a lot more light weight and more performant. However, the current Beta version of Aptana Studio 3 is still based on Eclipse.
You can find more on Aptana Studio 3 on the official page: http://aptana.com/products/studio3
(G)Vim of course. While it might look spartanic at first, it's extremely powerful once you've become familiar with the way it works.
The answers are likely to be subjective, but here are some choices:
KompoZer
Aptana
Amaya
Here are the links: KompoZer, Aptana, Amaya.
This also may help: an extensive comparison of HTML Editors.
I use Komodo Edit. The latest version has code completion for HTML5 and CSS3, the JavaScript code completion can be adjusted depending on which JS libraries you use (eg. jQuery, prototype, YUI).
Free and open-source? - NetBeans.
There is Sublime Text 2 http://www.sublimetext.com/2 after few years with Aptana... I enjoy using it.