this post was submitted on 05 Feb 2025
532 points (96.8% liked)

Greentext

6134 readers
1482 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
[–] boletus 76 points 2 months ago (26 children)

Why would you sign up to college to willfully learn nothing

[–] [email protected] 44 points 2 months ago* (last edited 2 months ago) (4 children)

My Java classes at uni:

Here's a piece of code that does nothing. Make it do nothing, but in compliance with this design pattern.

When I say it did nothing, I mean it had literally empty function bodies.

[–] boletus 25 points 2 months ago* (last edited 2 months ago)

Yeah that's object oriented programming and interfaces. It's shit to teach people without a practical example but it's a completely passable way to do OOP in industry, you start by writing interfaces to structure your program and fill in the implementation later.

Now, is it a good practice? Probably not, imo software design is impossible to get right without iteration, but people still use this method... good to understand why it sucks

load more comments (3 replies)
load more comments (24 replies)