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
-
Yes there are.
Yes they are mostly uncommented.
Yes the code in production has a good chance of not being in the repo, if there is a repo.
And these are Fortune 100 companies. -
I've never seen one quite that large but yes they definitely exist. I worked on an Android project several months ago that had a class with 4 methods in it and it was well over 1000 lines. All it needed to do was retrieve JSON from an api and convert it into usable objects. I was like seriously? There are libraries for this but you would rather do it yourself in the worst way possible? I fixed it and moved on.
-
jeeper59687yOne method being that long is kinda rare but a lot of our stuff is in 7k line to 15k line files with that file doing the heavy lifting
-
Froot75547yYes.
And most likely they were written by some dude 10 years ago who has since left and all the documentation he left behind was a brief verbal overview to another dude, who also left 4 years ago.
So basically working with these files goes like this:
1) get a JIRA ticket on it
2) open the file
3) close the file
4) close the ticket: won't fix. -
C0D4681387y@harrizsb
I could write the same thing in c# to be just as long.
The language isn’t the issue here.
You will probably find this function has a shit load of switches dropped in via the array of args to determine what the PDF outputs. -
C0D4681387y@T3hbeowulf closing tag?
What is wrong with a closing tag?
Only bad thing i can remotely think of is old editors that add new lines that could create header errors, surely your not using notepad to do php files? -
Biggest seen here was a C++ function comprising 2800 lines. It read a file and saved data 🙂🙂🙂
The funniest thing is since the data structures used made no sense and were totally random, it needed a 300 lines wrapper class with functions to correct the shit that dude made.
It's still kept that way because atm no one has time to do that. -
bahua129047yI have yet to see an implementation of java web services that wasn't a massive copy pasted uncommented memory leaking CPU eating hair-filled ball of shit. But holy shit those devs love them.
Literally every job I've ever had was supporting systems that run this garbage. Java may have some good use on some faraway moon of planet Happy, but here on earth, it sucks my asshole with spicy mayo. -
@C0D4 with php closing tags are really useless in an all phones file. Not only that but sometimes it can actually break applications (MVC frameworks for example)
-
@Froot wait your allowed to 'won't fix' the ticket?.. Damn if I would do that some people surely would get mad at me
-
Froot75547y@incognito Well not really 😄
I was just being satirical 😄
I think I have "won't fix"-ed one ticket but that needed some discussion with the PO aswell.
Related Rants
A method that contains over 9000 lines of code.....
Are there really production codebases out there with stuff like that? If yes I am scared as hell because I don't want to work with that kind of code once I graduate
Tell your stories!
undefined
badcode
legacycode