this post was submitted on 08 Oct 2023
999 points (96.7% liked)

Programmer Humor

25699 readers
1249 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Chriszz@lemmy.world 16 points 2 years ago (8 children)

There’s no way you teach a uni course and do this kind of thing unless to demonstrate poor practice/run time difference. Are you sure you were paying attention?

[–] Successful_Try543@feddit.de 16 points 2 years ago* (last edited 2 years ago) (5 children)

Yes. He really thought it was efficient and would avoid errors if literally all variables were defined in a single Matlab function he called at the beginning of the script. We students all thought: "Man, are you serious?" As we didn't want to debug such a mess, in our code, we ignored what he was doing and kept using local variables.

[–] magic_lobster_party@kbin.social 8 points 2 years ago* (last edited 2 years ago) (2 children)

Lecturers at universities tend to have little to no industry experience at all.

[–] Techmaster@lemm.ee 3 points 2 years ago

That's why when your job hires new people right out of college they have no idea what they're doing and now must be trained how to actually do the job. "What, you mean we aren't writing this enterprise application in python!?"

load more comments (1 replies)
load more comments (3 replies)
load more comments (5 replies)