If the web server is implemented in any of the languages that require semicolons.
Comment on Anon is a math prodigy
lime@feddit.nu 1 week ago
how tf would a missing semicolon result in a http server error
merc@sh.itjust.works 6 days ago
lime@feddit.nu 6 days ago
why would you demo a for loop with a web server
taladar@sh.itjust.works 6 days ago
For the same reason our OS memory management class was in Java, a language without pointers, because some idiot decided all courses had to be standardized on the same language because the industry says they need people who know that language now.
merc@sh.itjust.works 6 days ago
As one step of building a bigger project that demonstrates something web-ish.
joyjoy@lemm.ee 1 week ago
File fails to compile, web server tries to run the file, error.
sugar_in_your_tea@sh.itjust.works 6 days ago
Nodejs exists. Here’s a JS snippet that would throw an exception:
echodot@feddit.uk 6 days ago
If the file failed to compile the server wouldn’t execute it because a file wouldn’t be created. A compile error stops the process, It doesn’t result in a corrupted output, since that would be really stupid.
joyjoy@lemm.ee 6 days ago
You must have never used the eclipse Java compiler.
lime@feddit.nu 6 days ago
if your server runs user-submitted code server side, that’s a paddlin
Black616Angel@discuss.tchncs.de 6 days ago
It never said user code.
This could as well be an intro to php and the server may be set to not show errors and instead just fail.
The lecturer then writes some code, forgets a semicolon and gets a 500.