News for hackers. Stuff that matters.

rodneyrehm

Re:Automated cross browser testing with JavaScript on Thursday August 15, 2013 @08:00AM (#6217263)
Most interesting in the regard of (eventually) being able to replace Selenium in our stack. While currently in an early stage - it will be capable of doing pretty much everything Selenium can do - without requiring Java. Functional / UI / E2E testing with a Node.js based stack would allow an even greater audience to create meaningful tests.
Re:WebKit sorts JS arrays using Selection Sort on Friday July 13, 2012 @08:41AM (#4239545)
While I doubt a javascript-space sorting implementation runs any faster than a C++ implementation could, there are some implementations around, http://millermedeiros.github.com/amd-utils/array.html#sort for example.
Re:WebKit sorts JS arrays using Selection Sort on Friday July 13, 2012 @08:39AM (#4239537)
Re:URI.js is a facility for working with URLs on Thursday December 29, 2011 @12:40PM (#3404426)
URI.js now has a feature to test equality of URIs - medialize.github.com/URI.js/docs.html#equals - is that what you were looking for?
Re:URI.js is a facility for working with URLs on Thursday December 29, 2011 @05:08AM (#3403150)
It is dual-licensed, MIT and GPL. Choose the MIT License to do what the fk you like. Choose the GPL License if you're building some GPL software yourself, and need all the components to be GPL-licensed as well. Maybe have a look at http://en.wikipedia.org/wiki/Multi-licensing
Re:URI.js is a facility for working with URLs on Thursday December 29, 2011 @05:05AM (#3403145)
Funny… URI.js is more or less a port of my PHP URL class. Zend Framework has one. look at https://gist.github.com/1499238 to get you started. (Not a chainable API and not as powerful as URI.js either). The path resolving can be taken from the code I wrote for Smarty a couple of months ago: http://code.google.com/p/smarty-php/source/browse/trunk/dist... - lemme know if/when/how you're done… interested in using the PHP version myself ;)
Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @11:13AM (#3400210)
That is noted in README.md of URI.js - you can also find a (very simple) performance comparison here: http://jsperf.com/idl-attributes-vs-uri-js

Does the IDL stuff work in non-browser Javascript (like node.js)?

Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @11:11AM (#3400205)
Do you honestly think I ever thought about my dimwit-no-rocket-science URI.js ending up on hacker news? But, to satisfy hacker news readers, I added the terms "fluent interface" and "method chaining" (while preserving "jQuery-like" for normal folk…)
Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @07:58AM (#3399618)
According to Google's Closure Compiler URI.js is compiled down to 11.81KB (3.38KB gzipped) Including punycode.js and IPv6.js you get 15.03KB (4.87KB gzipped) added your link to the alternatives section in README.md
Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @06:39AM (#3399457)
I figured more people understand "jQuery-style" than "fluent interface" / "method chaining". Pretty much like you call a tissue "Kleenex" (or "Tempo" in German).
Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @06:36AM (#3399446)
replaced "facility" by "library"…
Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @06:35AM (#3399444)
they just fixed it…
Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @06:16AM (#3399408)
"search" is the term for "query string" used throughout javascript. I prefer "query" (as in "query string"). I use query(), but made search() available to those, who are used to window.location.search

for some more groaning, have a look at http://tantek.com/2011/238/b1/many-ways-slice-url-name-piece... ;)

Re:URI.js is a facility for working with URLs on Wednesday December 28, 2011 @06:12AM (#3399401)
Github has a nice little feature called issue tracking. Feel free to post your thoughts there. I'd be happy to figure something out. URI.js wasn't intended to limit anyone in what they were trying to do. It just never occured to me that ?foo=bar&foo=bar could be intentional.