This is something I prefer to call my "programming list of shame". Although having a formal university education with courses on software engineering, enterprise software architecture & database design I have been guilty of every single one of those things at one time or another. This is completely subjective & Eclipse oriented
You are a lousy PHP programmer if you
- don't comment your code properly with something like phpDoc
- don't see the need and/or benefits of a good programming IDE like Zend Studio or Eclipse PDT
- have never used some form of version control like Subclipse
- don't adopt some coding & naming standards and general conventions and stick to to them at least throughout the project
- don't use a consistent methodology
- don't escape and/or validate properly input or sql queries
- don't plan your application thoroughly before starting to code
- don't use test-driven development
- don't program & test with error reporting on
- don't see the benefits of a debugger
- don't refactor your code
- don't keep the different layers seperated using something like MVC
- don't know what these stand for: KISS, DRY, MVC, OOP, REST
- don't return content but echo or print it from your functions or classes
- have never seen the advantage of unit tests or testing in general
- return HTML, not data, strings, or objects.
- hard code messages and configuration parameters
- don't optimize your sql queries
- don't use __autoload
- don't allow intelligent error handling
- use $_GET instead of $_POST for any destructive actions
- don't know how to use regular expressions
- you've never heard of sql injection or cross-site scripting
- don't allow simple configuration, can be parameters passed to a class’s constructor, set/get methods called later, or constants defined at a runtime.
- don't understand the benefits and limitations of Object Oriented Programming
- misuse OOP / everything you write , no matter how small is OOP
- you think reusable software equals/requires your code to be OOP
- don't choose intelligent defaults
- don't have one single configuration file
- don't want the file contents to be seen, but give it a .inc extension instead of .php
- don't use a database abstraction layer
- don't keep it DRY, Don't repeat yourself. If you have to copy and paste or duplicate something your design may be off.
- don't make a function/class/method do just one thing and don't make them interact.
- don't try to take advantage of OOP specific features like abstract/interface classes, inheritage polymorphism & access modifiers.
- don't optimize your application design with established design patterns
- don't allow your user to define a base directory if you have multiple files and/or directories
- pollute the global namespace, one option is to prefix the functions in your library with a common string
- don't allow a table prefix when using database tables
- use a separate template engine
- don't take a look at established php frameworks for inspiration, most of them have advanced web dev concepts and good code
Del.icio.us
Digg
Reddit
Facebook
StumbleUpon
5 comments:
I like your blog . They are really great. Ermunterung ++ .
some new style Air shoes is in fashion this year.Do you know Air Shoes is a best . another kinds of nike air rift is better . the Puma basket will make you feel very relaxed when you play basketball.If you want to buy the Cheap puma shoes shoes ,you can buy them online. Very high-caliber and cheap puma shoes as same as you buy from the authorized store..My younger sister's long hair is always chaotic. so i presented a hair straighteners to her for Christmas last year .she were very pleasantly surprised .
ralph lauren polo shirts
chaussure puma
puma CAT
ed hardy clothing
ed hardy sunglasses
Ugg Boots
hair straighteners
orange CONVERSE
You are currently spoilt for choice Polo Shirts On Sale with the selection of current star names to get put on the back of the polo ralph lauren, with such playres as Maldini, Toni, Di Rossi, Iaquinta, Pirlo, and Canavarro to name just a few cheappolos. And three are othre rising stars who might take your fancy burbrery polos, like Rossi, Balotelli, Pazzini and Aquilani. Ralph Lauren Polo Shirts are all going to be names that you’ll hear a lot more Burbrery Polo Shirts of in the future I’m sure.
In spite of the fact that many critics comment on ed hardy clothing as nothing but tattoo pattrens, being full of unnecessary and useless things, ed hardy clothes is widely acknowledged that ed hardy shirts draws the most attention of both common young people as well as many Hollywood welcomed stars for its punk rock styles. In fact, in today’s world, many ed hardy t-shirtsdesigns are more or less the same with each othre, and ed hardy mens and ed hardy womens , absolutely, brings a totally new shock in the fashion world for its design being out of ordinary ed hardy sunglasses.
辣妹視訊|美女視訊|視訊交友網|視訊聊天室|視訊交友|視訊美女|免費視訊|免費視訊聊天|視訊交友90739|免費視訊聊天室|成人聊天室|視訊聊天|視訊交友aooyy
哈啦聊天室|辣妺視訊|A片|色情A片|視訊|080視訊聊天室|視訊美女34c|視訊情人高雄網|視訊交友高雄網|0204貼圖區|sex520免費影片|情色貼圖|視訊ukiss|視訊ggoo|視訊美女ggoo|
080苗栗人聊天室|080中部人聊天室ut|ut影音視訊聊天室13077|視訊做愛|kk777視訊俱樂部|上班族聊天室|聊天室找一夜|情色交友|情色貼片|小瓢蟲情色論壇|aio交友愛情館|
哈拉聊天室|洪爺影城|kk123視訊俱樂部|6K聊天室|正妹視訊
情趣用品|情趣用品|情趣用品|情趣|情趣用品|情趣
Post a Comment