Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you expecting vue to prevent you from doing something wrong?


Imagine if you write a java program and you execute it to get BSOD on windows, is that reasonable?


You can write a program that locks up your computer in most any language, it's called a fork bomb. Of course, there are guards against the most basic versions these days, but the point still stands that there's nothing stopping you from writing an endless loop that takes up more and more resources.

You can open the browser dev tools on this very page, write in `while(1);`, hit enter and watch the tab freeze up.


I've written C# code that deadlocked a webserver, C++ code that crashed a computer lab, JavaScript code that made the browser unresponsive, a SQL migration that accidentally deleted too much data. I don't really know what point you're trying to make, but bad code typically behaves badly.


In that case you should blame Windows not Java.


Correct. And in this case, Chrome seems to be working as intended. Crashing the tab when bad code is written sounds like the correct behavior.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: