Quote:
|
Originally Posted by Colonel Ingus Do you have an example of this 'bloated' code? |
I guess I will spend some time explaining myself seeing you seem to be offended by my opinion!
First, to understand what I mean you must understand that PHP is a low level scripting language. It does not have the same rules that other programming languages have. For example in C you are responsible for memory management. So a good rule is to never create variable assignments that might never be used, because if you do your wasting memory that another instance of your application could be using. In PHP you don't have that responsibility, so without knowing how to manage memory properly, you create applications that become a resource nightmare. vBulletin fits into that category because it does many things that are not always needed, so the global scope gets filled with wasteful variable assignments that never get used, which uses more memory than what it should!
Application logic is a critical part to any development, what the application outputs is not how good application is judged, if you think that then you don't understand, standard logical programming. Now in PHP(s) case, it invites this problem, because PHP(s) learning curve is very easy, you end up with thousands of hacked up programs floating around the internet. Take look a HotScripts, it waste land of dangerous scripts. It's not PHP(s) fault, it's the persons fault for not learning how to follow some basic rules, because they are more concern with getting what they want done, then to write logical code that does what they want in more resource friendly, safer way.
As for the other vB
bloating, CSS as come long way, it has made developing HTML to be more cross browser compatible. But what is the point to design a style system that doesn't take full advantage of the current CSS standards. If you have good definition style system, then you don't need to throw style attributes all over your templates, or use deprecated tags where CSS could be used to bring the size of the output to almost half the size in some of the templates. If you compare forum software, vBulletin will always output (30%) or more in HTML than other forums that have the same basic forum display, and that is because the templates are not taking advantage of vBulletins own style system.
me!