4 ms·
It's also possible you have a 60k loc python app because you aren't able to get near the amount of code reuse or abstractions due to the lack of static typing,
by runT1ME 13y ago
It's also possible you have a 60k loc python app because you aren't able to get near the amount of code reuse or abstractions due to the lack of static typing, and this is why you haven't run into issues with refactoring.
- Buttons840 13y agoIf Wikipedia is to be believed: "Dynamic typing typically allows duck typing, which enables easier code reuse." I would expect to see more code reuse in Python than in any statically typed language.
- coolsunglasses 13y agoIt's a true statement if you qualify it properly. It wins you more code reusability with less code written to accomplish aforementioned reusability. I always run into silly inheritance chains, type coercion or adapter fns/methods to handle reusing code for unlike-types, rather than relying on a common base of functionality regardless of where it was derived from (function API, inheritance, mixin, etc). Best way I've seen this done is in Clojure. Good mix of the best of both worlds in terms of static and dynamic typing, multimethods, protocols, essentially structurally typed arguments, etc.
- spamizbad 13y agoIf that was the case our codebase would be a serious pain to work on and I'd be much worse off than the OP. Also I should clarify, 60KLS is not all 1 app: it's spread across 8 discrete apps, an API, and data layer (models).