this post was submitted on 17 Jun 2023
19 points (100.0% liked)

Programmer Humor

33603 readers
11 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 8 comments
sorted by: hot top controversial new old
[–] 0xd@lemmy.world 5 points 2 years ago (2 children)

https://stackoverflow.com/a/5685943

Here is the answer, M$ changed their mind at some point and your university has a stale information but it seems it was true in the past.

[–] JustANoone@lemmy.world 2 points 2 years ago* (last edited 2 years ago) (1 children)

This is a reucurring theme at this specific subject unfortunately. He doesn't seem to put much effort into it, as most slides are just plain text and nothing else. I stopped attending after the second class.

[–] DrownedAxolotl@lemmy.ml 2 points 2 years ago

That truly sucks. Yeah, some professors can be like that. I had a math professor offer bonus points to the first 3 students completed the assignment, only for the majority to cheat and just look up the answer and turn that in. It became a contest of who could copy the fastest and one student even admitted to doing it, but she just didn't care and gave points to the cheaters anyway.

[–] apathytomorrow@feddit.uk 1 points 2 years ago

I swear all lecturer slides are outdated for programming.

I have never extended from or caught an application extension in my entire career. Agree with Microsoft, if it's an application exception it's coming from the framework. All of mine derive from exception.

[–] PlexSheep@feddit.de 1 points 2 years ago (1 children)

M$ Docu sounds like that doesn't make sense, do you have some more context?

[–] JustANoone@lemmy.world 0 points 2 years ago* (last edited 2 years ago) (1 children)

I should have elaborated, but basically what MD87 replied. During the development of .NET it was decided that every exception caused by programs should inherit from ApplicationException, and all system errors should inherit from SystemException. Unfortunately .NET devs didn't follow this and now everything should just inherit Exception since it's easier to check. Interestingly, both SystemException and ApplicationException seem functionally identical to Exception.

[–] Greg@feddit.de 1 points 2 years ago

Which actually makes sense. Java logic with exceptions that you cannot catch is a practice no other language has.