2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions
comment 9y ago · link · parent
[1] https://gilbert.ghost.io/type-systems-for-beginners-an-intro...
comment 9y ago · link · parent
comment 9y ago · link · parent
In contrast, if OP were hating on JavaScript programmers, then your indignation would be completely justified. But he's not, and I admit to holding a similar position: I hate C++ and prefer to never lay eyes on it again, but I have nothing against C++ programmers :) The difference between C++ and JS is C++ is less forced upon someone's career as the only language to work with.
comment 9y ago · link · parent
To put it another way, it's like throwing a frontend developer into the world of C. Suddenly you have to be aware of and correctly manage your memory explicitly, whereas before you were safely protected from having to think about it.
Lastly, not everyone can voice their opinions so well. Communication is a difficult thing, and understanding what you're trying to communicate more so. If someone says they hate something, it's not always baseless. Instead of jumping to name-calling, have more patience in trying to understand why.
comment 9y ago · link · parent
What happens when you add 1 + undefined? Other dynamic languages make the sane choice of throwing an error immediately. JavaScript, however, silently gives you back NaN and continues chugging along. By the time a "real" error happens, you're stack traces away from the cause.
What happens when you call a function f with one argument when it expects two? Other languages would throw immediately. Instead, JavaScript silently sweeps in an undefined and continues chugging along. Combine that with the other flaw I mentioned, and your runtime error will, again, be distant from the true cause.
There's a reason TypeScript is getting insanely popular. It's the only way to code large JavaScript projects and stay sane.
comment 9y ago · link · parent
http://www.phoenixframework.org/blog/the-road-to-2-million-w...
comment 9y ago · link · parent
comment 9y ago · link · parent
The "truths" I was referring to are things we can't verify ourselves (due to practicality or lack of knowledge), yet are commonly believed or taken for granted. Some examples:
- World maps
- Authorship (of music, books, etc.)
- Photos (see #bowwowchallenge for a good laugh)
- News
- The immutability of physics :)
comment 9y ago · link · parent
Here's a thought experiment. The government has assisted in pushing the idea of "eggs are bad for you" for decades. In effect, many people truly believe that "eggs are bad for you" is a fact. If you, being slightly more knowledgable in the subject, tell one of those people that this is a load of bollox, and have a paper to back it up... would you actually convince them? You'd be one voice against many; a rebel against history. If you did managed to convince them, would it be due to raw truth, or due to the effectiveness of your rhetoric?
comment 9y ago · link · parent
If I were well-versed enough to read the white papers, I would probably trust it a little more. But even then you can't be certain unless you perform the experiment yourself; it's not uncommon for scientists to leave out inconvenient data to get the result they want.
Such is the state of this world – you can't truly know a fact for a fact unless you actually see it for yourself. And even then there's room for doubt :)