this post was submitted on 13 Dec 2024
5 points (100.0% liked)

Greentext

7558 readers
744 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 2 years ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments
[–] lime@feddit.nu 2 points 1 year ago (3 children)

how tf would a missing semicolon result in a http server error

[–] stinky@redlemmy.com 2 points 1 year ago (1 children)

In ASP.NET applications, specifically in ASP.NET Web Forms and ASP.NET MVC (pre-Core), the compilation process is dynamic and happens at runtime if source files like .cshtml, .aspx, and .cs files are present on the server.

ASP.NET uses just-in-time (JIT) compilation for views (.cshtml, .aspx, .ascx, etc.) and sometimes for code-behind files (.cs). When a request hits a page, ASP.NET dynamically compiles these files into temporary assemblies.

If there’s a syntax error, missing semicolon, incorrect type, or any other compilation issue, the process will fail and throw a 500 error.

[–] lime@feddit.nu 0 points 1 year ago (1 children)

why would you use asp in an introductory course

even if you have like a student learning platform so they don't have to install anything, surely it would wrap the code that's submitted so it doesn't crash the application

[–] stinky@redlemmy.com 1 points 1 year ago

my guess is he had all the boilerplate written, and was using a single line or two of "working code" to show what the technology was capable of

but it's 4chan greentext so it could be fake and gay

[–] joyjoy@lemm.ee 0 points 1 year ago (1 children)

File fails to compile, web server tries to run the file, error.

[–] echodot@feddit.uk 0 points 1 year 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.

[–] merc@sh.itjust.works 0 points 1 year ago (1 children)

If the web server is implemented in any of the languages that require semicolons.

[–] lime@feddit.nu 0 points 1 year ago (1 children)

why would you demo a for loop with a web server

[–] taladar@sh.itjust.works 1 points 1 year 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.