By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Efficency?

P: n/a
Hi. I was wonderin what are peoples views on writing efficient code. For
example I've done a registration sytem for a chat room. In it I have a
registration page which is used to register the user (obviously) however
this page also shows the details to the user to confirm the registration and
then again if they wish to edit their details at a later date. All of these
are accessed using a lot of if tests inside the registration page. Do people
think that it would be better if it was written so each seperate function is
written as different pages or as I have it the one single page. EG testing
which page is required and then calling that or having all the pages as one
and getting the required data outputted depending on what is needed at the
time. Basically you would get the same result.

--
Martin Cunningham.
Macro-Tek
http://www.macro-tek.cjb.net/

Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello, Martin!

I think that code efficiency doesn't depend on wether all user functions
are implemented on one page or many pages.
It depends on reusing of functions to handle data like 'display user
profile' 'add new user', 'update profile' etc. When you
insert new entity like 'chat user' into project model you should think to
implement all necessary methods to manipulate this entity. And using those
methods is a matter of choice and actual web site design...

Kindest Regards,
Olexiy Merenkov
http://www.merenkov.com/olexiy
"Martin Cunningham" <mu****@iol.ie> сообщил/сообщила в новостях следующее:
news:bh**********@kermit.esat.net...
Hi. I was wonderin what are peoples views on writing efficient code. For
example I've done a registration sytem for a chat room. In it I have a
registration page which is used to register the user (obviously) however
this page also shows the details to the user to confirm the registration and then again if they wish to edit their details at a later date. All of these are accessed using a lot of if tests inside the registration page. Do people think that it would be better if it was written so each seperate function is written as different pages or as I have it the one single page. EG testing
which page is required and then calling that or having all the pages as one and getting the required data outputted depending on what is needed at the
time. Basically you would get the same result.

--
Martin Cunningham.
Macro-Tek
http://www.macro-tek.cjb.net/

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.