3 ms·
I have programmed literally hundreds of thousands of lines of python without using classes or __metaclass__, as a counter example. When dealing in industry, we
by sharms 16y ago
I have programmed literally hundreds of thousands of lines of python without using classes or __metaclass__, as a counter example.
When dealing in industry, we can't always hire the best talent, so there is no need to make things overly complex. Simple solutions work best for a lot of scenarios, and I haven't been limited by it yet.
Not to bash Perl, but the whole reason we write in Python is because there were too many people on our team writing in Perl using too many obscure constructs that took too long to review / revise (especially years later when team members changed and code was forgotten in parts)
- dchest 16y agoAhem.
- sigzero 16y agoDon't blame Perl. Blame the programmers and your methodology that allowed them to do that.
- chromatic 16y agoYou can always delay fixing a social problem by switching technologies.
- jacobolus 16y agoYou’re implying that language syntax is primarily technical rather than social. I’m not sure I can agree. The reason that Python code uses standard idioms most places you go is that the larger-scale Python community is committed to quite a different set of social norms than the Perl community. Pulling in that language-community momentum can definitely make a difference to the social/technical dynamics inside a smaller group.
- chromatic 16y agoYou’re implying that... ... if you have multiple developers who cannot or will not find some way to write maintainable code, you have a problem independent of language. I've maintained some hideous code written by people who had no business being professional programmers. In every case, adhering to a handful of very simple rules would have improved their code dramatically. Only one case needed a language change, and that one was away from a proprietary 4GL.
- mkramlich 16y agoPerl is a methodology. ;)
- charlief 16y agojerf was being sarcastic and transitioned to his point with "Ahem". Let us all celebrate the ambiguity of text.
- jacobolus 16y agoKeep in mind too that the new class decorators can do a lot of what metaclasses were good for, in a way much easier for the uninitiated to figure out. (Partly because once you understand function decorators class decorators seem obvious and straightforward.) Metaclasses can do some pretty powerful stuff though. One of those features that you might never need, but if you do, you really do.