News for hackers. Stuff that matters.
Re:Ask HN: Why do coding bootcamps teach Ruby on Rails and J... by baybal2 on Friday January 13, 2017 @10:12PM (#13396614)
Ask ten people to write a hello world in js, and they all will do it, and do it the exactly same way - this is great for a production language. On that point, JS is as good as C/Cxx

The downside - ask 10 people for an example of proper use of advanced oop in js, and out of these 10 you will get 5 passible anwers all of which will be drastically different - horrid thing for production

Re:Ask HN: Why do coding bootcamps teach Ruby on Rails and J... by g00gler on Friday January 13, 2017 @10:17PM (#13396626)
document.write("hello world"); document.querySelector("body").innerHTML = "hello world";

alert("hello world"); prompt("hello world");

console.log("hello world"); console.info("hello world"); console.warn("hello world");

process.stdout.write("hello world");

Re:Ask HN: Why do coding bootcamps teach Ruby on Rails and J... by paulddraper on Friday January 13, 2017 @10:18PM (#13396631)
How many ways do people write Hello World in C, Java, Ruby, Python?
Re:Ask HN: Why do coding bootcamps teach Ruby on Rails and J... by purity_resigns on Friday January 13, 2017 @10:34PM (#13396695)
for letter in 'hello world?': print(letter, end='')
Re:Ask HN: Why do coding bootcamps teach Ruby on Rails and J... by paulddraper on Friday January 13, 2017 @11:55PM (#13396964)
Hm, yes, I think I have seen that once on HN.