Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Marl3x268342dThis is the stuff I hate the most about programming. Undocumented code. Undocumented libraries.
It drives me mad.
Demolishun789142dReading code is a skill. Welcome to the fire.
sudo-compile60342d@Redd I started of as an undergraduate as well, maintaining legacy Python2 code with dirty hacks, fucked up classes, zero meaningful comments, zero threading/multitasking, even syntax errors and plain simple wrong logic.
1year 3months and a major unauthorised rewrite later, half of it is smooth like butter. But I still find some jewels like this. They appreciated me when they came to know about the refactoring anyway. I basically refactored and documented each module/class/job which had any bug/feature implementation assigned to me.
Gets better with time.
jiraTicket75641dIf it makes you feel any better I think anyone would struggle being alone on a 10 year old codebase, even a good one.
Sounds like one I had to deal with for a while. Had a mix of codeigniter, zend, angularjs (1.x), two extra node servers (because some people didn't want to deal with the mess that was the PHP side anymore, so started porting stuff, never finished).
An API endpoint could be in one of 3 repos, you had to search stuff you saw printing out or getting returned, to find where.
PHP side used raw SQL, then there was a node app that used raw SQL, and then another node app that used ORM (sequelize).
These would call each other in completely undocumented and unpredictable ways.
On many pages, half of the database was pulled straight into the browser so that there's no need for complicated endpoints to fetch the required data.
Summary: If you can't move to another project, don't bother for too long...