GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes A good reason to use JavaScript ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "A good reason to use JavaScript ?" Watch "A good reason to use JavaScript ?" New topic
Author

A good reason to use JavaScript ?

Hugo Cesar Crohare Lavalle
Greenhorn

Joined: Mar 19, 2004
Posts: 4
Hi, I recently read about Ajax in Java magazines here in Brazil. Some people who I talked about say: "Ok, I know that we have best response times... but I will never use JavaScript".

In the late years we were always trying to avoid the use of JavaScript, but for me Ajax apears to be a good reason to use JavaScript.

Ryan and Nathaniel, what can you say about this ?
Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
To or not to use JAVASCRIPT depends on what you expecting from the site.

I use javascript to make the site for more user friendly.But i wont use JS for buisness rule validation.
Ryan Asleson
Author
Ranch Hand

Joined: Sep 15, 2005
Posts: 39
JavaScript got a bad rap in the late 1990's because there was a whole lot of JavaScript code written by Web designers who weren't programmers, and they just pasted together some JavaScript they found on the Internet until they got it to work. This lead to a lot of poorly written and maintained JavaScript code. In addition, browser support for JavaScript back then varied widely and caused frequent headaches when trying to write JavaScript that could work in any browser.

Today, the situation is much better. Developers are more likely to be writing JavaScript code, leading to higher-quality code. Standards bodies like the W3C and ECMA have pushed hard for a standard DOM and JavaScript implementation, which has lead to surprisingly stable JavaScript support across today's modern browsers.

In short, don't avoid JavaScript for the sake of avoiding it. Use it were it makes sense and use the same tools and techniques you use for other development, like IDE's and test first development.

Personally, I wouldn't implement much business logic in JavaScript, preferring to leave that on the server. But that's a different topic.


Ryan Asleson<br />Co-Author, <a href="http://www.amazon.com/Foundations-Ajax-Foundation-Ryan-Asleson/dp/1590595823/sr=1-1/qid=1158926537/ref=pd_bbs_1/002-7412154-2924860?ie=UTF8&s=books" target="_blank" rel="nofollow">Foundations of Ajax</a> and <a href="http://www.amazon.com/Pro-Ajax-Java-Frameworks/dp/1590596773/ref=sr_11_1/002-7412154-2924860?ie=UTF8" target="_blank" rel="nofollow">Pro Ajax and Java Frameworks</a><br /><a href="http://taconite.sf.net" target="_blank" rel="nofollow">Taconite</a> Lead Developer
Eric Gero
Ranch Hand

Joined: Jul 20, 2005
Posts: 73
I agree. I love JavaScript, but it has its place. Its great for making web pages more user friendly, and doing some client side form validation. But I never use it for my business logic. Keep that on the server.
Eric
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Eric Gero:
I agree. I love JavaScript, but it has its place. Its great for making web pages more user friendly, and doing some client side form validation. But I never use it for my business logic. Keep that on the server.
Eric


i'm agree with you.

I'm using AJAX in my application that it's good response time and good performance...


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A good reason to use JavaScript ?