3 ms·
"usually the dev will just poke around for that time and make small changes and debug it a few times to see how it works. 4-5k lines i would say 2-3 days tops b
by sheepmullet 12y ago
"usually the dev will just poke around for that time and make small changes and debug it a few times to see how it works. 4-5k lines i would say 2-3 days tops before they are comfortable with it."
It really depends what the OP means by messy. If by messy he means fairly straightforward code but not built for easy extension and lacking proper layout/architecture then a few days is enough.
On the other hand if by messy he means complex code implementing requirements in a non-obvious way then it could take much longer. I've seen plenty of code that uses multiple layers of indirection when a simple switch statement would suffice. Where code that looks like a simple mistake is actually implementing a critical requirement. Where you have to keep multiple heavily abstracted domain models in your head at once to understand the code because there is no clean separation.
It depends on how well you need to understand the code to be able to make changes. Reasonably well written code can be skimmed at speeds of up to 2500 lines of code an hour and only the core domain objects and algorithms need more intense study.
On the other hand if you have to understand the entire codebase in order to change it then 100 lines of code an hour is an upper limit.
So anywhere from half a day to two weeks depending on what you mean by messy.
- espitia 12y agoI can understand what most of the code does and I am really an amateur. So I think it is more along the lines of "fairly straightforward code but not built for easy extension and lacking proper layout/architecture then a few days is enough." Thanks for the input! I appreciate it.