A Tale of Two Newlines: Carriage Returns, Line Feeds, JavaScript Hair-Pulling
news.floobits.com
news.floobits.com
Memory usage, speed, even correctness can be affected by changing newlines if a language supports string literals that span lines.
And who are these users on Windows editing documents that need \r\n anyways? Apart from the built-in Notepad which handles \n uselessly, I'm coming up short on why anyone would care. It's not like the Windows tools (find, fc, and so on) are that popular.
On Windows, it's not hard to get CRs in your source. With the default git config, cloning a repo gives you text files with CRLFs. Other source control systems do this as well. Many editors on Windows default to CRLF, but even those that auto-detect line endings won't help if your source control munges the lines.
I wonder what editors they're using on Windows that it matters. But good that you're listening to customers.
"If the first argument to String.replace() is a string,
only the first instance of that string is replaced. To
replace all instances, a regex is necessary"
That's not that much advanced javascript knowledge. "You could stare at that function for hours without seeing
the problem. It requires knowledge of how JavaScript’s
String.replace() works:"
Okay, but "knowledge of how JavaScript's String.replace() works" is showing that the experience of those guys is not the greatest. I'm pretty sure every decent JS developer knows this after a short amount of time, because "String.replace" is used pretty often.I've been writing JavaScript off-and-on since I was 12. I've used Node.js extensively enough to find bugs in it, including one that ended up being a bug in V8[1][2]. If I'm not an experienced JavaScript developer, then very few are.
1. http://geoff.greer.fm/2012/05/30/leaky-abstractions-a-journe...
"Floobits works pretty well most of the time."
Matt Kaniaris - Co-founder, Floobits
Can I suggest you change this? Makes me think it's not ready.. and "pretty well" "most of the time".. don't think I would want my team using it. Lost time is expensive.