Earlier quoted context omitted.
I want a specific format to our proprietary systems. In C# I can just say "date.Format("dd.MM.YYYY")" or what ever I want.
Granted that's a bit tidier than doing this in JS: var myProprietaryDateFunction = function(dt) { return dt.getDate()+'.'+dt.getMonth()+'.'+dt.getFullYear(); }; But in JS, you can pass that function around like a village bicycle -when I think back to my C# days, it makes me wonder how I ever did without functions as first class objects and a slew of other really great things about JS. A lot of those things are brainb…
Enough with the JavaScript already
211–220 of 231 posts
Re: Enough with the JavaScript already
#212Before "js everything", it wasn't just a plain simple pure web. It was flash and gifs and "dynamic html" that would break in half of the browsers, and you'd show a special version of your site saying "we're not paid enough to support your browser, go get another one". Clients never were reasonnable in their demands, nor did most of the site owner have good and simple tastes and care about efficiency, nor did half of…
True but we don't need Javascript for it. I think that's what the article is about. We can make cool stuff without or with less Javascript.
Re: Enough with the JavaScript already
#213Earlier quoted context omitted.
You are 100% wrong. C allows you to shoot yourself in the foot much more easily and much worse than JavaScript. JS is a far more "safe" language to code in. No pointers, no memory allocation. Yeah JS isn't typed but the problems that you get into with that are nothing by comparison. And again, I'm not saying JS doesn't have problems, it does. But the problems this presentation is complaining about are not results of…
> No pointers, no memory allocation. You mean no manual pointer management, no manual memory al location, right? Right? > Yeah JS isn't typed but the problems that you get into with that are nothing by comparison. Js is typed. Every language is typed. Is just isn't statically typed. Big difference. >You are 100% wrong. Strong words for someone who gets a lot of basic stuff wrong in a single paragraph.
Re: Enough with the JavaScript already
#214Re: Enough with the JavaScript already
#215Re: Enough with the JavaScript already
#216I don't always read Hackernews, but when I do I read it with this - http://nojs.herokuapp.com
Re: Enough with the JavaScript already
#217Earlier quoted context omitted.
I think the main points WebSocket vs. unrestricted TCP sockets is: 1. Support for a browser-appropriate security model (origin-based) 2. Not requiring extra work to pass through HTTP-friendly (and everything-else-hostile) firewalls.
I assume you would apply the same origin policy to the connections. The firewall point is good, although I don't understand why you would want to block general TCP connections but not websock.
Re: Enough with the JavaScript already
#218Earlier quoted context omitted.
I installed Ghostery but did not set up any filters; with just that, it shows how much external resources / from which external parties things are loaded. Some sites have like twenty external dependencies, and multiple analytics gathering scripts (which may get embedded via the iframes of advertisers).
TechCrunch is the worst I've seen. 13 for me. Any other higher ones?
Boing Boing has 12.
The Atlantic has 13.
Huffington Post has 16.
The Onion's AV Club has 18.
Wired has 19.
Re: Enough with the JavaScript already
#219Earlier quoted context omitted.
with JavaScript, there is no need to know how computer works, so why would anyone learn(deeply) about that?
You act as though Javascript will take over the programming world -- I can confidently say that it won't
Re: Enough with the JavaScript already
#220Funny thing is, I use JavaScript libs like Ext JS because they don't impose HTML/CSS on me. I can write the whole application in JavaScript and I just have to mess with the DOM and it's ugly friends when in trouble.