Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain

Search:

CA114      CA170

CA668      CA669      Projects


Client v. Server - Putting a program online

Your server has some code that needs to run.
Where should the code be run: Client-side or Server-side?
We often have a lot of choice.



Demo program

Here is a demo program implemented using different choices for client-side code and server-side code.



Comparison of different ways of putting a program online


Method CPU load Can access server files Programming language User can see source code User input security issues Submit opens new page Can link to program with arguments
Server-side code (visible) Server Yes Any No Yes Yes Yes. Easy.
Server-side code (hidden)
(Javascript Ajax)
Server Yes Any No Yes No Possible but complicated
Client-side Javascript Client No Javascript Yes No No Possible but complicated


ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.

Wikipedia: Sometimes I link to Wikipedia. I have written something In defence of Wikipedia. It is often a useful starting point but you cannot trust it. Linking to it is like linking to a Google search. A starting point, not a destination. I automatically highlight in red all links to Wikipedia and Google search and other possibly-unreliable user-generated content.