Twitter hasn’t been the most pleasant place over the last year. There has been large-scale trolling, much hurling of abuses, and even bans over inappropriate behaviour. But every now and then, Twitter ends up showing its kinder side – and the immense power it holds.
Paul Irish, who works on the Google Chrome team, sent out this tweet earlier today.
https://twitter.com/paul_irish/status/818568243350630401
Irish wanted to know why the JavaScript console behaves in a certain way. He is pretty big on Twitter, and has 210k followers. Replies soon started streaming in to his query with people chiming in with their thoughts.
Variable declaration hoisting?
— Inactive Anthony Ricaud – @[email protected] (@anthony_ricaud) January 9, 2017
https://twitter.com/dokas/status/818569844417130499
However, 7 minutes after Irish had posted his original tweet, he got a reply from one Brendan Eich. Brendan Eich also happens to be the creator of JavaScript.
It's not a return value, rather a statement completion value. Consider 'for(var x=42; false;);' which has no completion value.
— BrendanEich (@BrendanEich) January 9, 2017
Now there’s a lot of discussion and opinion on Twitter around programming, but nothing ends a debate like a response from someone who created the language. Turns out all the initial responders were wrong, and Eich had provided a reason why JavaScript behaves that way.
https://twitter.com/paul_irish/status/818571338499506176
Now Brendan Eich isn’t exactly trawling Twitter for queries that he can help with – he also cofounded Mozilla, and is currently the CEO of Brave Software, a startup that aims to make the internet safer and more secure. But the fact that he took time out to answer to a user query is just how the tech community works. More often than not, people are willing to help out fellow developers, no matter how big or important they are. And while the rest of Twitter is busy dealing with political correctness, the alt-right, and discussions over whether Donald Trump really mocked a disabled reporter, it’s nice to see some communities are still using Twitter the way it was always meant to be used.