News for hackers. Stuff that matters.

WithTeeth

Re:Autocomplete from Stack Overflow on Tuesday March 22, 2016 @08:42AM (#11336058)
Cool idea, but kind of ironic that the example you used produces unnecessarily complicated stack overflow solutions. A JavaScript "contains" function is as simple as:

var contains = function (needle, haystack) { return haystack.indexOf(needle) !== -1 }

Re:jQuery.sheet – Easy and fast spreadsheets for the web on Friday February 05, 2016 @04:50PM (#11044913)
Re:How does Facebook disable Developer Tools? on Wednesday February 12, 2014 @10:34PM (#7229193)
I think the burden lies on the browsers to warn average users of the danger of pasting javascript code. Perhaps a popup confirmation the first time you paste `javascript:...` in the address bar with a "Never ask again," and a warning that "Here be danger" when you open the dev console that you can dismiss.
Re:Programming and Depression (2012) on Wednesday February 12, 2014 @10:14PM (#7229114)
Reminds me of an old PhD comic, http://i.imgur.com/uLYImfg.jpg
Re:Show HN: FriendCode – Reinventing coding with the cloud on Wednesday October 09, 2013 @09:11AM (#6521002)
This is not the place for debating the value of cloud IDEs - they're out there, whether this one, cloud9, koding, or codeanywhere. This is the place to provide feedback on this particular product within that category. Let's not reinforce the stereotype of HN commenters if possible.
Re:Show HN: FriendCode – Reinventing coding with the cloud on Wednesday October 09, 2013 @09:09AM (#6520991)
This looks great! I use Cloud9 right now for all my development; can you tell me if this is different or just an alternative? The collaboration looks more advanced than Cloud9's for one
Re:Cloudflare’s CDNJS vs. Google Hosted Libraries on Friday March 22, 2013 @06:29PM (#5426186)
Don’t forget that one of the advantages of CDNs is that the user may already have the file cached in their browser. This is why I use Google’s CDN for jQuery and CDNJS for everything else – more web sites use Google’s CDN for jQuery, so the user is more likely to have that cached. Not to mention the HTTP limitation of 3 simultaneous requests from one domain…