Jump to content


Photo

Java vs PHP for web applications


  • Please log in to reply
32 replies to this topic

#21 Romanul

Romanul

    title available

  • Hosted
  • 2,461 posts
  • Location:Romania,Bucharest

Posted 12 July 2009 - 06:35 PM

It's a mockery of standards since it has none. Flash only websites are generally slow, way too flashy, hard (or impossible) to navigate and an eyesore half the time. Give me a damn HTML page to display content.

Flash is great for specific things but an entire website is not one of them.


Yeah,well,had fun saying those first words and find out I'm wrong :p

Nah,but I've been recommended to work with flash,and looks pretty easy to use,tbh.

Not that I'd be any webdesigner,but for me its OK for a small website.

#22 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 12 July 2009 - 10:10 PM

Flash is fine for specific elements like a video/audio player or for other bits and bobs but an entire site in Flash is a mockery of standards.

I'm not saying it's a horrible technology that should die but it's not meant for certain things. Have at learning it...

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#23 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 13 July 2009 - 08:50 AM

To be technical, they don't consist of any 'mark up' so to speak.

Yes, very good, you that was indeed my meaning :D :p

I also don't surf Thunderbird or Outlook with my webbrowser, so yeah.

The point is that proper markup makes information accessible. A web application (as opposed to a web site) does not contain information that should be accessible to machines, just to you. Something like GMail is the same as Thunderbird, but hosted in a web browser. This is exactly why we should come up with a new kind of web application platform, and stop abusing browsers.

Also note that my views on PHP have changed somewhat since I opened this topic. PHP5 has a lot of improvements which solve many of these things, such as autoloading and namespaces (5.3). Mixing functional programming with OO isn't that bad either, if you're talking about closures (I still think it's ugly to define normal functions in an OO app, mostly because you can't autoload them). The lack of exceptions from old functions can be caught with a custom error handler that wraps them in exceptions. It also has some advantages over Java in that it is very dynamic, and that you can edit->save->test without having to compile and deploy stuff.
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#24 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 13 July 2009 - 06:29 PM

This is exactly why we should come up with a new kind of web application platform, and stop abusing browsers.

Why? It would just be another redundant application people would need. The browser only does so much for a web application anyway since most of it all is handled by the server and not by the browser. The browser only renders the UI elements and does not interact directly with server side code short of interacting with a form and sending data. Otherwise, all else is handled through the server and its OS or Apache, et al.

I don't see the point in having ANOTHER application to process web applications.

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#25 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 13 July 2009 - 06:48 PM

Why? It would just be another redundant application people would need. The browser only does so much for a web application anyway since most of it all is handled by the server and not by the browser. The browser only renders the UI elements and does not interact directly with server side code short of interacting with a form and sending data. Otherwise, all else is handled through the server and its OS or Apache, et al.

Eh...have you ever used something like GMail, Google Reader of Hotmail? The Javascript in there is insane. Also, assumming you're not a web developer, you have no idea how much harder is is than it should be to develop an application using languages and tools that were designed tens of years ago for web documents.
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#26 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 13 July 2009 - 07:20 PM

That's what JavaScript is for... it's entire purpose is client-side work and interactive elements. It all ties together really well so I don't see the point a new application or any changes to the current set up until the next super great technology comes along.

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#27 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 13 July 2009 - 07:25 PM

That's what JavaScript is for... it's entire purpose is client-side work and interactive elements.


The browser only does so much for a web application anyway since most of it all is handled by the server and not by the browser.


Why do you say two completely different things on one day?

Even so, Javascript isn't that bad (though it has flaws), but the things it has to interact with (HTML and CSS) are. They're perfect for websites, but for web applications it's so hard to build a good interface and you have to use so many workarounds, it's not fun anymore. Things like Flash, Java and Silverlight own HTML in this regard as they have much more power and flexibility, but they have other disadantages (need a plugin, no open standards except for Java, takes longer to load).

(Also, your signature is too large. Make it smaller or we'll have to remove the big image :p)
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#28 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 14 July 2009 - 08:09 AM

Most of it still IS handled by the server. IE - all of the stuff that matters like the content. That's not handled by the browser and even still, the JavaScript isn't necessary since a lot of web applications that use it work without it enabled so it's just loading pages and posting back more often.

My point still stands - the browser itself doesn't handle the actual application, it just renders out the results and sends new result sets, which are still handled by the server.

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#29 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 14 July 2009 - 03:42 PM

I give up, it's pointless to argue :thumbsupsmiley:
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#30 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 14 July 2009 - 07:41 PM

Meh. You could say the user is the most important element anyhow. You can't have a web app without users. :thumbsupsmiley:

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#31 Jeeves

Jeeves

    I write the interwebz

  • Members
  • 4,156 posts
  •  Friendly neighborhood standards Nazi

Posted 23 July 2009 - 02:37 AM

I had to do a unit on Flash last semester. It only furthered my belief in how utterly useless it is.
The only thing Flash has going for it is the userbase of the plugin.
SVG can do anything Flash can do in a much more lightweight and easy to use fashion, and without the need for propriety software that takes intuitive interfacing and practicality to record lows (I had to spend 6 months learning and still can't find a way to draw a bloody straight line).
Javascript can do anything Arsescript can do, but with DOM, so you can actually do stuff with it.
The only thing Flash can do is font-embedding, and given a majority browser share now actually supports @font-face{} thats obsolete.
So again, the only reason I can see why anyone uses flash is because Adobe also make PS. Even Silverlight is a far superior format if you need the DRM associated with Fhrush

World Domination Status: 2.7%


#32 {IP}Gil-Galad

{IP}Gil-Galad

    ClickerMonkey

  • Hosted
  • 1,122 posts
  • Location:Pennsylvannia, USA
  • Projects:Too many to name.
  •  T3A Team Chamber Member

Posted 02 August 2010 - 05:05 AM

Hmmm as much as I love java, I would go with PHP. With the PHP you can easily implement the MVC pattern, in java it's 'messier'. And in my opinion the MVC pattern is the only logical way to go with a website (even small sites benefit from it). I've had experience with both for large and small websites, and I always found it easier to get a PHP site up and running quicker.

Its completely up to the programmer though, If you know how to structure your PHP code you can get the same design benefits as if you were using java.

Take a look at Quercus, it's part of a java webserver and it's a PHP interpreter. You can write java code and see it in PHP... maybe useless, cool nonetheless.
Also CodeIgniter and CakePHP are nice MVC libraries.

#33 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 02 August 2010 - 09:22 AM

Oh hi, long time no see :crazed:

Anyway, since this topic is very old, I've since found ways in PHP to make it a lot more usable, alleviating many of the issues I mentioned in the first post. Still, it has many quirks that make it less comfortable to use (particularly involving error handling).

Ideally (in a project that is big enough to warrant it) I'd make a site MVC with the M in Java and the VC in PHP
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users