Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: fryzel20030306

Message # 1016329:
Date: 04/30/03 08:15
By: Jack
Subject: This is a HORRIBLE design

This breaks every rule of proper design. There should not be one file which handles including code throughout the application. Each file should include the code it requires.

For example:

If index.php uses ConnectionManager.php, it should include it. If ConnectionManager.php needs Authentication.php, it will include it.

There is no need for a monster switch statement. Every file includes ONLY the code it needs directly. If the files included need other code, they should include it themselves.

This is why there is the function include_once() people. It will handle this stuff for you.

Previous Message | Next Message


Comments:
RE: This is a HORRIBLE designFryzel05/07/03 10:34
RE: Another suggestionanon_coward04/30/03 11:54
This is a HORRIBLE designJack04/30/03 08:15
Another suggestionRob04/20/03 15:51
RE: Real MVC frameworkEd Williams04/16/03 12:00
RE: RubbishAlejandro Vasquez04/13/03 12:52
appreciation and suggestionpuzling03/29/03 22:27
RE: RubbishPests03/25/03 11:02
The TruthPriyank03/21/03 01:02
RE: RubbishMichael Peres03/19/03 01:37
Real MVC frameworkAlexandru COSTIN03/14/03 18:45
RE: RubbishIn-Hwan, Kim03/13/03 01:31
O_O!!!Josep03/11/03 04:38
Rubbishanon03/10/03 07:53
So basically...Jester03/08/03 14:29
SimplisticKriek03/07/03 18:45
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.