178 karma · joined October 4, 2013
The vast majority of cyclists that I've encountered are perfectly fine and do not engage in those behaviors I was referring to. I've simply noticed that often the ones that are loudest and most outspoken about "sharing the road" in these debates are often the ones that seem willing to share the road the least, and that immediately changes the tone from a productive one to one of "us versus them".
This is the type of attitude that does not help driver/biker relations.
I was driving on back-roads to my parents house, and it's not uncommon to see bikes on these roads since they are pretty good biking roads as I understand it. The difference is that these bikes were riding 4 wide on a single lane road, and they had a car in front of them driving between 15-20mph with their hazard lights on, presumably in an attempt to keep cars from passing them.
How is this not "owning" the lane? That was not the first time I've seen this happen either. Bikers also need to understand that this behavior is not reasonable.
1. It's documented to return `null`. The fact that it returns undefined in some edge cases is a bug. If you want to be nice about it, you can approach them and explain the upcoming behavior change as a heads up, however it's still a bug that should be fixed.
2. No sympathy for those projects here; you can't use undocumented/private interfaces and expect them to be officially supported. I do it myself, however I do it with full knowledge that every single version change is potentially breaking to me, and I make sure to have unit tests to confirm the behavior still exists in X version. I may also approach the project and say something like "Hey, I found using X undocumented interface is actually really useful, how can we expose this as an official thing?"
It's a good thing we can trust our agencies not to keep databases containing this unrelated but invasive information....right?
You should be using Array.isArray ( ES5 compatible browsers ), or Object.prototype.toString.call( obj ) === '[object Array].
Lodash, Underscore, and jQuery all provide utility methods to do that comparison for you.
Calling eval like that causes it to be an indirect eval call which results in it being executed in the global context.