One can do a great many things with disciplined Javascript, and I shudder to think what Twitter was trying to do on their front-end that caused a 5x increase in load time compared to server-side template-rendering. That being said, I would very much welcome a high-performance alternative to Javascript that also runs in any browser -- something in the spirit of C or Java, which could be embedded in Javascript and vice…
Enough with the JavaScript already
131–140 of 231 posts
Re: Enough with the JavaScript already
#132One can do a great many things with disciplined Javascript, and I shudder to think what Twitter was trying to do on their front-end that caused a 5x increase in load time compared to server-side template-rendering. That being said, I would very much welcome a high-performance alternative to Javascript that also runs in any browser -- something in the spirit of C or Java, which could be embedded in Javascript and vice…
Possible steps in that direction:
- Google Native Client: run native code in a sandbox [1]
- asm.js: A strict subset of JavaScript that can be optimized to native or near-native speed [2]
I much prefer the asm.js approach. I agree that there's a need for NaCl, but if we look at the browser as a sandboxed virtual machine that everyone has, we should all agree on a bytecode specification for that virtual machine. We pick JavaScript "because it is there". Once all browsers speak native asm.js, then you can compile your client-side code in whatever language you want, even C/C++ (see Emscripten for example). [3][4]
[1] https://developers.google.com/native-client/
[2] https://blog.mozilla.org/mbest/2013/06/25/asm-js-its-really-...
[3] https://github.com/kripken/emscripten
[4] http://games.slashdot.org/story/13/03/28/2113234/emscripten-...
Re: Enough with the JavaScript already
#133Earlier quoted context omitted.
What's nasty about Obj-C?
The syntax and the APIs.
Java is well java. I find one of Java's strongest points the extensive set of collections available. Add in Apache Commons and java is easy enough to use.
Re: Enough with the JavaScript already
#134JavaScript is a tool. Once it becomes trendy idiots will always abuse a tool. It's not JavaScript's fault people are bad at web design and development. If it wasn't fucked up JavaScript these people were contacting you about it'd be something else, be glad you have a job.
Why can't sites be like StackOverflow, it only uses JS where necessary.
Re: Enough with the JavaScript already
#135I see one problem: - Entire generation of programmers may not have any knowledge about how computer works
If that were to happen, it would be a problem with the programmers more than anyone else.
Re: Enough with the JavaScript already
#136Earlier quoted context omitted.
It does not however, preclude the possibility that the tool is in fact a bad tool, and that the tool is bizarrely the only tool we have. They say poorly skilled people blame their tools, and that highly skilled people who know their tools well, will know how to use it well. That being said, see that circular saw over there that will occasionally bounce and cut off its user's fingers? I'm not gonna use it, no matter h…
Seriously your analogy is absurd. JS has a few rough edges that any decent editor will warn you about and that you automatically know to avoid after doing a lot of it for even a couple months. This complaining that JS is unusable is just BS and whining by people who are simply shying away from something they don't know. There are bigger things that can bite even experienced developers like memory leaks and bloat but…
It's a bit ridiculous to say that anyone who complains about JS doesn't know it.
Re: Enough with the JavaScript already
#137Re: Enough with the JavaScript already
#138JavaScript is a tool. Once it becomes trendy idiots will always abuse a tool. It's not JavaScript's fault people are bad at web design and development. If it wasn't fucked up JavaScript these people were contacting you about it'd be something else, be glad you have a job.
It does not however, preclude the possibility that the tool is in fact a bad tool, and that the tool is bizarrely the only tool we have. They say poorly skilled people blame their tools, and that highly skilled people who know their tools well, will know how to use it well. That being said, see that circular saw over there that will occasionally bounce and cut off its user's fingers? I'm not gonna use it, no matter h…
http://www.docstoc.com/docs/87338746/CIRCULAR-SAW-SAFETY-AND...
http://carpenterbooks.com/userFiles/556/frame_table_mw_pdf_2...
Even still, as the safety guide states, "Be careful, making one small mistake with a circular saw could be the last thing you ever do in your life"
Re: Enough with the JavaScript already
#139This slideshow lost all credibility when it said to put your analytics in the tags. Sure some analytics providers might recommend you do that, but that is wrong and only serves to A) Slow your site down B) Introduce a single point of failure into your webpage All scripts should be loaded either async or at the end of the dom.
If you load the analytics script anywhere other than the head, you potentially miss user input while the page is loading. For a slow-loading page, this could make you lose out on useful data. I realize that this argument is somewhat circular.
Steve Souders gives a great talk on this: http://www.stevesouders.com/blog/2010/06/01/frontend-spof/
Re: Enough with the JavaScript already
#140Could Google reduce load time in Chrome by building these into the browser, so that anytime they see the include pointing to Google CDN, they just skip it and let the pre-included library take its place?