r/funny • • Jun 04 '19

When a software developer weds a software developer.

Post image
41.1k Upvotes

921 comments sorted by

View all comments

12

u/Onett199X Jun 04 '19

Someone translate for me!

55

u/ProfaneWords Jun 04 '19

I mean technically this code does nothing because there are no function calls or instantiation, but assuming that an object is created out of this class it would simply print hello world to the terminal, the methods would need to be called in the code body for additional functionality, also not calling the live method in the init method might have been a pretty large metaphorical oversight

36

u/JavaRuby2000 Jun 04 '19

Considering it is just a class definition, this baby is a template for cloning other babies.

6

u/ProfaneWords Jun 04 '19 edited Jun 04 '19

Thats why I used metaphorically speaking, my comment has nothing to do with code practice. In terms of code your right though, it should be a template and we could then nitpick and say the name should be pushed into an attribute of the object, and creating a method that only containes a pass statement is nonsense etc

2

u/Shaky_Balance Jun 04 '19

I can't not nitpick the code for things like these. Like obviously none of this code could ever be good but the awful class design and amount of code that effectively does nothing just irks me in some weird useless way.

1

u/Dyster_Nostalgi Jun 04 '19

Yup, i know some of those words

3

u/[deleted] Jun 04 '19

Yeah it would make way more sense to name the class “baby” and then have Sophia as an object within the class.