3 ms·
Somewhat unrelated: I heard that learning NodeJS(right name?) for the server side is useful because then you can program in JS on both the server and client sid
by tocomment 16y ago
Somewhat unrelated: I heard that learning NodeJS(right name?) for the server side is useful because then you can program in JS on both the server and client side.
But I can't imagine any cases where this is useful? Is it just the benefit that you don't have to think in two different languages or is there something more to it?
- malandrew 16y agoGiven that the author is interested in HTML as well, I imagine that he probably is more interested in JS resources that focus on the DOM and not on using JS as a general purpose programming language. However, I may be wrong about this.
- codedivine 16y agoYou are correct. More interested in front-end stuff for now.
- malandrew 16y agoGiven the state of things today, I would definite focus on web standards and semantic HTML. The reason being that any front end HTML you write today is likely to be used both on the desktop and via mobile devices. Writing good clean semantic HTML will help ensure that you need only write one HTML document that is then styled by one CSS document for the desktop and one for mobile devices. Plus writing semantic HTML will give you basic SEO for free. I honestly wouldn't worry about the JS frameworks just yet unless you have something specific in mind that you want to build. There's so much other basic stuff to learn. I would tackle javascript after you have a good grasp of HTML and CSS.
- grayrest 16y agoThere are actually a number of server side JS runtimes, but node.js (or nodejs or NodeJS, the naming is semi-inconsistent) has the most buzz/momentum. I'm confident that you'll see a number of frameworks/libraries that can take advantage of JS running both client and server sdie in time for JSConf in April. The most public has been Yahoo's YUI team, with Dav Glass putting the effort into getting yui3 running in node. Dav did a video presentation on yui3 in node: http://www.yuiblog.com/blog/2010/09/29/video-glass-node/ http://www.yuiblog.com/blog/2010/09/29/video-glass-node/ IMO the most useful example/demo in the talk is screen scraping digg: http://github.com/davglass/nodejs-yui3/blob/master/examples/scrape.js http://github.com/davglass/nodejs-yui3/blob/master/examples/... He also provides examples of various yahoo widgets getting rendered as static html, which I think is also in that github repo, but I can't find his demo online. I'm also working on putting a bunch of pieces together that would allow an app to be client/server agnostic but I've been "working on it" for months now in the background and I'm not finished so I'll just wait until I'm done to talk about it.