Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ste0910418yWow 😂 50 parameters constructor
Btw, thumbs up to you for not giving up just because "it's a school project" -
I'd slap that man round his face... Then deck him if he attacked me... After I hit him with the screen filled with his code.
Anyway going to get on with my day. -
ericwu911788y@rokxer funny reading that. Because not only I imagine working with people like that, I did. For two bleeding years.
-
irshu1548yAre u rally allowed to stuff 50 parameters into a constructor?Compiler really accepts that kind of s***??
-
It's like storing all the data for your app in one table - anyone remember Lotus Notes?
Working on a project with 2 other students. One of them makes a C# "super class" with 50 fields, and manually creates getters and setters for each and every one. Then he proceeds to write a constructor that accepts 50 parameters, because why not.
I comment on the git commit, telling him that he can just write " get; set; " in C# and that he should model the problem in smaller, more manageable classes ( this class had 270 lines and did everything from displaying data to calculating stuff). Tried to explain to him that OOP works kind of differently from how he did it.
....
His answer: "Yeah, I don't really care. If it works once, it's okay for me".
This after the most beautiful code review I have ever done...
Fml
undefined
groupproject fml