worstcodeever's profile picture. Dedicated to the proposition that some people should never be allowed to write software.

Worst Code Ever

@worstcodeever

Dedicated to the proposition that some people should never be allowed to write software.

The hardest part of building a @magento module is their cryptic, undocumented configuration


Also, don't bother documenting how to add external JavaScript. Nobody ever does that @magento


Way to provide sample data without an admin login @magento


1. Create a configuration based MVC. 2. Never document the configuration. 3. Release as a complete project. Way to go @magento


.NET is great if you want to only ever use Windows to develop your site and overpay for hosting.


Make your email templates in some weird language and then don't document it. Way to go @magento


Controllers are irresponsible. Better to let a block control sending data between the controller and the view. #magento


Nobody will ever search for your class name, so don't bother documenting them. #magento


This is a perfectly valid reason for using your crazy extension instead of just hard coding the JavaScript include. i.imgur.com/m5evBkL.png


Also, be sure to use confusing XML files to determine what external code shows up instead of just putting it in the template file. #magento


If you're writing a framework, be sure to force people to download an extension so they can reference external JavaScript files. #magento


When in doubt, loop over the array. Even if you don't actually repeat operations. To ensure the operations are done properly.


Let's instantiate variables called $fruit_name for no apparent reason. i.imgur.com/Nyw9UtY.png


You can have good code or proper indentation but not both.


Got an example of the worst code EVAR? @ me and I'll retweet it! Misery loves company.


Welcome new followers! Want to see some bad code? Go to rottentomatoes.com and view the source.


Magic numbers are great because they're MAGICAL


HTML is like pizza: The deeper it is the better. So nest as many divs as possible. 8 or more is recommended.


Loading two versions of jQuery on one page makes perfect sense.


Putting the user's default password in the password box is a feature, not a security hole.


Tài khoản này hiện không theo dõi ai

United States Xu hướng

Loading...

Something went wrong.


Something went wrong.