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
-
hexc11196yDepending on the language, it might be acting as an interface where a function with the same interface is later is overriding it. Imo see if you can remove the body of the function and still have the code work, if so, this is probably the case.
-
This is very common in a very large projects where you don't know half of the codebase and a single function maybe used at hundred diffrent classes
-
hexc11196yI should also mention throw a breakpoint in the function to see if anything ever calls it, if for whatever reason breakpoints aren't an option, add a message log in the function to see if it's ever called. If the project is in a properly configured IDE, they usually have the ability to jump to any uses of the function, this is true for visual studio, eclipse, intellij, and many others. No project should have garbage code in it just for the sake of ignoring the underlying problem.
-
pilvi326yOr - if this is JavaScript - you can have somewhere an ‘eval’ that calls up this function as a result of different variables/texts concats. That’s been my world for quite a while now. I hate ‘eval’ with my whole heart. I am very thankful of the debugger, I would still be chasing this stuff otherwise.
-
fckIE4996yIf he can't figure out why, then he should probably quit his job?
By the way, welcome to Devrant! -
Similar thing happened in my first project, it was a screen with list of data along with filters, search and sort.
And that shitty screen took 10-40 sec just to load data (10k-50k list Android).
I was told to search a way make it faster, and consultant before making any changes.
I re-factored it anyway, to a point that list loaded like flash, search, filter and sort experience became usable after that.
Related Rants
Well... It happens...
joke/meme
code