News for hackers. Stuff that matters.
Re:FasterPath: Faster Pathname Handling for Ruby Written in ... by munificent on Friday June 17, 2016 @02:48PM (#11924719)
That returns a wrong result on Windows paths, and throws an exception on the empty string.

There are a ton of edge cases in path manipulation code.

Re:FasterPath: Faster Pathname Handling for Ruby Written in ... by kevincox on Friday June 17, 2016 @04:49PM (#11925456)
I'm pretty sure his implementation works on empty strings because `str[0].nil?`. So the comparison is false, giving the right (?) answer.