4 ms·
Are you expecting vue to prevent you from doing something wrong?
by DJBunnies 4y ago
Are you expecting vue to prevent you from doing something wrong?
- ramraj07 4y agoImagine if you write a java program and you execute it to get BSOD on windows, is that reasonable?
- badthingfactory 4y agoI'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.
- Etheryte 4y agoYou 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.
- croes 4y agoIn that case you should blame Windows not Java.
- spiderice 4y agoCorrect. And in this case, Chrome seems to be working as intended. Crashing the tab when bad code is written sounds like the correct behavior.