3 ms·
Is that really a good comparison? The PHP code you linked to is basically a class with a bunch of getters and setters. The Python code, on the other hand, han
by PommeDeTerre 13y ago
Is that really a good comparison?
The PHP code you linked to is basically a class with a bunch of getters and setters.
The Python code, on the other hand, handles numerous real-world HTTP requests that do actual work.
So it's not unexpected that the PHP code is lighter; it doesn't really do anything useful!
Although it helps implement a wiki system, the Python code is still very readable and comprehensible with minimal effort.
I think I know the point that you're trying to make, but those examples surely don't back it up in any way.
- memla 13y agoWell, wherever you look you'll find the same thing as the whole framework is written in the same way: specific classes with small methods. And you can't say that the framework as a whole does nothing. I agree about the python code that it is reasonably readabale, but i still think it's ugly. Those two things are not the same.