4 ms·
I have a completely different feeling. It's ok if you depend on such code as long as it's actively supported by the creator himself. As soon as you need to modi
by viraptor 17y ago
I have a completely different feeling. It's ok if you depend on such code as long as it's actively supported by the creator himself. As soon as you need to modify it for your needs, or adopt the whole project, because it was dropped -- you start to appreciate clean and consistent code. If the code is too messy, you just end up rewriting most of it, in order to understand it. There would be no reason to do that if the original was clean and documented.
- _delirium 17y agoThere are different kinds of cleanliness though, I think. I've often found it easier to modify idiosyncratic code than code written in the Standard way, though things vary in both kinds. I do agree documentation is rather important; well-commented idiosyncratic code that explains the author's mental model is light-years easier than idiosyncratic code without any explanation. But, I do find that code written in sort of industry-standard style often is hugely over-architected, with a lot of boilerplate and cruft, and not all that easy to modify if I want to adapt it to my personal ends; i.e. my use-case is a single programmer wanting to put in 5-10 hours to make a small to moderate change. You end up in a maze of Factories and Interfaces trying to figure out where anything is actually done. The idiosyncratic code often just does away with all that architecture, which can sometimes be easier to deal with.