6 ms·
Why I'm Becomming a JavaScript Convert
- Kilimanjaro 17y agoJS is not perfect but is good enough. It is everywhere and will be used everywhere in the future, from browsers, to servers, mobile, etc. Maybe it will be perfected as new versions come along. We should push in that direction if we feel there are rough spots right now. I've learned to love it. I wish there is JS hosting solutions as simple to run as php for newbies. Remember the first one giving such a service, appjet, was bought by google by millions. There is market for JS on the server. There is market for JS on the mobile world too. APIs are wonderful, see all you can do with canvas, svg, websockets, etc. all managed thru JS and you can do wonders with them. If the whole iPhone/iPad experience could be accessed using JS apis, it would grow the ecosystem by tenfold. I hate objective C, but I could easily build a thousand apps in javascript overnight. No kidding. JS is here to stay, and I am happy for that.
- gruseom 17y agoAs I've said here before, it turned out to be a great stroke of luck for us all that Eich had recently read SICP when he was handed the job of making Livescript. Sure, the pieces that made it in may be mangled and half-digested, so much so that it took 10 years before people were able to even recognize them, but enough of the original greatness survives that amazing things are possible with JS. Imagine if he had been infatuated with, I don't know, Ada instead. Edit: "it took 10 years before people were able to even recognize them" isn't quite right. It would be better to say that it took 10 years for people to reassemble the pieces that were left, like a vase from antiquity or one of those fragmented biblical codices.
- BenjaminCoe 17y agoSome of the server-side JavaScript stuff is really slick. APE ( http://www.ape-project.org/ http://www.ape-project.org/ ) runs JavaScript on the server-side, for instance. You basically write a client and server in JavaScript and it uses Comet to push events to the client, rather than a JavaScript client needing to constantly request updates -- a great paradigm, that could lead to much more robust multi-user JavaScript applications.
- hoggle 17y ago"Helma" Framework comes to my mind too: http://helma.org/ http://helma.org/
- mikepurvis 17y agoHas anyone here had experience actually using Helma? How does it compare to other general-purpose code frameworks? I had it downloaded about a year ago and made a few toy projects, but nothing serious enough to really give it a proper workout. (And I don't have a VPS to actually launch anything on...)
- jayair 17y agoI've been in love with JS ever since I started with it in '06. Learnt about closures, prototypes etc all through it. Loved the FP side of it so much that I went and read SICP as a result of that. On a side note I recently wrote up a sliding puzzle in JS as a pre-loader for Cadmus. Might not be as complicated as the Tetris game but it was fun to write (and test). http://blog.anomalyinnovations.com/2010/04/a-sliding-puzzle-while-you-wait/ http://blog.anomalyinnovations.com/2010/04/a-sliding-puzzle-...
- zxz 17y agoDid you mean "Becoming"?
- BenjaminCoe 17y agoYikes, typo fixed.
- arethuza 17y agoJavaScript has probably become my all time favorite programming language (beating Common Lisp and PostScript). I wonder if anyone has done an OS command line shell with JavaScript as the scripting language - having commands pipe JSON to each other could be rather cool.
- jrockway 17y agoHaving commands pipe JSON to each other could be rather cool http://en.wikipedia.org/wiki/Windows_PowerShell http://en.wikipedia.org/wiki/Windows_PowerShell
- arethuza 17y agoYeah - I've used PowerShell a lot and while it is a nice idea I sort of find the overall experience less good than it should be. For a bit I was doing a fair bit of PowerShell scripting and bash scripting at the same time and I ended up concluding that I still preferred the Unix command line. Using JSON as the "standard" data format would seem to me the ideal compromise between delimited lines of text (Unix shells) and full blown objects (PowerShell).
- tlrobinson 17y agoLots of people have. Unfortunately they all have different APIs, which we've been trying to fix with the CommonJS project: http://commonjs.org/ http://commonjs.org/ Personally I work on Narwhal (http://narwhaljs.org/ http://narwhaljs.org/). All of Cappuccino's (http://cappuccino.org/ http://cappuccino.org/) build tools are written in JavaScript (and Objective-J) using CommonJS APIs now too. Also, Narwhal comes with a nifty "json" tool to convert Unixy formats to/from JSON: http://narwhaljs.org/json-tool.html http://narwhaljs.org/json-tool.html
- jonpaul 17y agoI use to hate Javascript. I attempted to build a large enterprise system using ExtJS... I ran into a number of problems. I then realized that I could accomplish the same task using GWT/GXT. It was successful. I still don't like Javascript, but I'm warming up to the idea of embracing it. It seems to me that with the advent of Node.js and document oriented databases that use JSON for their document description, such as MongoDB, Javascript will become the world's most used language. I think Javascript's momentum is unstoppable. Time will tell.
- wvenable 17y agoJavaScript really doesn't seem appropriate for large software. Much of the features (like, for example, prototype inheritance) makes for small code but at the cost of some complexity. Even trying to ensure some measure of public/private data requires a lot of boilerplate code. Probably adding the necessary features to JavaScript to make it more appropriate for these tasks would ruin it for the things it's really very good at.
- jrockway 17y agopublic/private is the most pointless distinction ever invented. Enforced privacy makes reuse nearly impossible. That said, I don't really think Javascript is all that special. Prototype OO sucks.
- mhansen 17y agoCan you explain why you think x sucks/is pointless?
- jrockway 17y agoEnforced privacy limits reuse but doesn't prevent any particular class of bugs (calling random private methods is no worse than calling random public methods; you should feel equally bad about both). Prototype OO precludes introspection. You have "an object", and that's as much as you can ever know.
- mkramlich 17y agoFor all the positives of JavaScript, I still prefer Python. There are a lot of similarities, but I give Python higher marks in a few areas. The first one that jumps out immediately is the lack of requiring "var" in Python variable declarations. What I'd like to see instead I think is Python built-in to every major browser as a default language. And/or make it super easy for users to install runtime plugins for Python, Ruby, etc. that way we're not limited to a particular language in the browser client.
- baddox 17y agoI bet as soon as you attempt to implement a DOM manipulation standard for Python you'd introduce all the same cross-browser incompatibilities as Java has. Also, in many ways Javascript is superior to Python. Closures are the only examples I know of off the top of my head.
- mikeklaas 17y agoPython has as much support for closures as javascript. The only significant feature in this respect that it is missing (that I am aware of) is multi-statement, in-expression lambdas. Javascript's syntactic nicety is higher there, but on balance I think python's is far superior. Both great languages, though.
- infinite8s 17y agoAlthough python's lexical scoping is all screwed up (python 3.0's nonlocal keyword fixes this, but it is still ugly).
- baddox 17y agoLast year my Languages instructor mentioned that there was some problem or incompleteness with closures in Python because Guido didn't want to fully implement it or something. Perhaps I'm mistaken.
- mhansen 17y agoJava != JavaScript
- jackfoxy 17y agoI recently had an epiphany about JS too. I think Crockford's evangelizing and the maturing of libraries (especially jQuery) has awoken many to the fact "JS is what we got to program the client". (I just met someone today at the jQuery conference from FreshBooks.)
- jasongullickson 17y agoI've completed a simular "conversion" myself recently. After reading "JavaScript: The Good Parts" and with the arrival of things like Node.js I have come over from being a staunch "C as a first language" programmer to learning to not only accept JavaScript, but to embrace it, and the power that comes from becoming proficient in the only programming language understood by both the web browser and server.
- ElbertF 17y agoI made a Tetris game in JavaScript a while ago, I think it looks better and works a bit smoother too: http://elbertf.com/tetris/ http://elbertf.com/tetris/ Source: http://elbertf.com/tetris/tetris.js http://elbertf.com/tetris/tetris.js