« When in Russia, don't driveWelcome »

JavaScript vs. Flash

The whole idea behind using JavaScript for web pages, would be to enable a clear MVC separation on the client side: HTML for data, CSS for view, JavaScript for the control.

If I've already got MVC on the server so, why do I need any client MVC?

Well, it's all due to bandwidth usage and having smart clients vs. dumb clients (meaning the programs).

In a "web application" we would have the following:

  1. Server
    1. Modelo - MySQL/PostgreSQL/Oracle
    2. Control - PHP/Java
    3. View - PHP/templates
  2. Client
    1. Model - HTML/XML
    2. Control - JavaScript
    3. View - CSS

It's worth to note that the whole Client is the "view" of the server application. This means it's actually good for it to be easy to write -in ECMAScript- and that choosing the same language for Flash is no wrongdoing (which itself also represents the "view" of the server application).

On the other side, if the question was what amount of business logic should be displaced onto the client, you would have the following choices:

  1. Reduced - HTML+CSS+JavaScript / Flash
  2. Medium - Java applet
  3. High - specific client

The difference between JavaScript en Flash would lie in how important it is to show the data at any cost, even though it might not get rendered the same way everywhere. If we value more the data reaching the user, we should place them in HTML/XML and thus use JavaScript. But if what's more important is the actual view, the right way would be to use Flash... hoping perhaps for a better integration between SVG and the major browsers, and an improvement in JavaScript engines.

From this point of view, the availability of the data, some badly applied AJAX, that would "get possession" of the page (so that it would degrade cleanly) would indeed be a dangerous beast; a crossover between awarding the most value to the data, while completely disregarding any compatibility with browsers that might not support it.

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

¿Cuántos MOVILES hay en la foto?

(si fallas, puedes volver a intentarlo... al menos por ahora)

Jaroslaw Filiochowski
jar<QUIT@ESTO>fil@gmail.com
(e-mail, jabber, gtalk)
Desde: Bilbao, España

November 2008
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Ordenar por:

Yo NO veo TV

Yo NO veo TV
00 horas de TV a la semana

powered by

powered by b2evolution free blog software

+

Gentoo
Gentoo


photos powered by

Foto de una cámara de fotos difital Nikon Coolpix 7600
Nikon Coolpix 7600

+

Foto de un móvil Nokia 3650 con logo personalizado
Nokia 3650

Por cortesía de NokiaGame 2002


Creative Commons License
Esta obra está bajo una licencia Creative Commons salvo donde se especifique explícitamente otra licencia.


IBSN: 3-3718-9164-1