Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

backend/admin area design question - one big switch() or break it down into separate sections?
So I need to track/manage news articles, users and links, quotes, etc. I
see that some people like this style, where you have one big switch
statemment:

switch($section)
{
case 'news':
# ... ... ...

break;
case 'links':
# ... ... ...

break;
case 'users':
# ... ... ...
break;

So then you can make a bunch of function calls etc. Now I can see why
you'd like this, because it's more C-like or C-oriented style.

But what about this:
/admin/news/list.php
/admin/news/edit.php
/admin/links/edit.php
/admin/links/edit.php

... but to me that seems more intuitive from a web page perspective -
any thoughts on this?





Report this thread to moderator Post Follow-up to this message
Old Post
asdf
03-27-04 04:12 AM


Re: backend/admin area design question - one big switch() or break it down into separate sections?
The alter of the two options is what I usually go for, mainly because of the
freedom in designing a look to the pages.
Certain products/news articles may differ in content in terms of fields to
complete. Plus the way in which we work here using dynamic editable text
instead of forms makes it easier to layout and code
hth
Craig
"asdf" <asdf@news.sf.sbcglobal.net> wrote in message
news:MPG.1ac8308ea08d88d5989680@news.sf.sbcglobal.net...
> So I need to track/manage news articles, users and links, quotes, etc. I
> see that some people like this style, where you have one big switch
> statemment:
>
> switch($section)
> {
>    case 'news':
>    # ... ... ...
>
>    break;
>    case 'links':
>    # ... ... ...
>
>    break;
>    case 'users':
>    # ... ... ...
> break;
>
> So then you can make a bunch of function calls etc. Now I can see why
> you'd like this, because it's more C-like or C-oriented style.
>
> But what about this:
> /admin/news/list.php
> /admin/news/edit.php
> /admin/links/edit.php
> /admin/links/edit.php
>
> ... but to me that seems more intuitive from a web page perspective -
> any thoughts on this?
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Craig Keightley
03-27-04 04:12 AM


Re: backend/admin area design question - one big switch() or break it down into separate sections?
"asdf" <asdf@news.sf.sbcglobal.net> wrote in message
news:MPG.1ac8308ea08d88d5989680@news.sf.sbcglobal.net...
> So I need to track/manage news articles, users and links, quotes, etc. I
> see that some people like this style, where you have one big switch
> statemment:
>
> switch($section)
> {
>    case 'news':
>    # ... ... ...
>
>    break;
>    case 'links':
>    # ... ... ...
>
>    break;
>    case 'users':
>    # ... ... ...
> break;
>
> So then you can make a bunch of function calls etc. Now I can see why
> you'd like this, because it's more C-like or C-oriented style.
>
> But what about this:
> /admin/news/list.php
> /admin/news/edit.php
> /admin/links/edit.php
> /admin/links/edit.php
>
> ... but to me that seems more intuitive from a web page perspective -
> any thoughts on this?
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Addison
03-27-04 04:12 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:38 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.