aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to respond to such claims? 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 "How to respond to such claims?" Watch "How to respond to such claims?" New topic
Author

How to respond to such claims?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
A lot of savvy web developers don't like generated code, some like to have full control on what being done, others may don't trust the generated code.
How to respond to these claims?
Personally, I believe in GWT and I can't imagine building an enterprise Ajax application without it and I'm pretty sure the generated code is much, much more better than mine.
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

If you can't come up with any compelling reasons that generated code and maintaining a UI in Java code is superior, perhaps there aren't very many?
[ November 15, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

For me, maintaining a Java code is much more easier than maintaing JavaScript code.
I was working on HTML page that is supposed to create HTML DOM elements at runtime as the user is clicking on some buttons.
No need to say it is a nightmare due browsers incompatibilities.
For the generated JavaScript from GWT compiler, I have a blind faith that Google is putting their JavaScript
experience in GWT.
Josh Brown
Ranch Hand

Joined: Oct 09, 2007
Posts: 35
Originally posted by John Todd:
For the generated JavaScript from GWT compiler, I have a blind faith that Google is putting their JavaScript experience in GWT.


I'd recommend against using this statement to convince others that GWT is a great tool. From my experience, blind faith is never a convincing argument.

Some questions to think about:
  • Does the generated code perform better than hand written code?
  • Does generated code speed up the development process?
  • Is there a reason not to trust the generated code? Any evidence?


  • Perhaps searching for the answers to these questions will help you answer your origninal question. I'm not going to tell you one way is better - in order for you to argue your point effectively, you'll have to find out what their issues are with generated code and address them appropriately. Ask why they don't trust it, and structure your argument in a way that addresses their specific concerns.
    [ November 16, 2007: Message edited by: Josh Brown ]

    Josh
    Inside the Machine
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 61224
        
      66

    Originally posted by Josh Brown:
    blind faith is never a convincing argument.
    Indeed. You might as well just say "I have no evidence whatsoever to base my assertions upon so I'm just making something up".
    Hussein Baghdadi
    clojure forum advocate
    Bartender

    Joined: Nov 08, 2003
    Posts: 3479

    Does generated code speed up the development process?

    My personal experience with GWT, I say yes.
    Does the generated code perform better than hand written code?

    According to Google yes and the pay attention to Internet Explorer memory leaks.
    Yes, I understand Google is trying to sell us a software and it is not possible to say it is a bad one but with their all great web based applications (GMail, Reader, Docs, Maps), I think their argument is valid.
    Sorry if I looked GWT fanatic but GWT gives me the ability to build a fancy Ajax applications without worrying about JavaScript issues (I'm not a web developer).
    Gregg Bolinger
    GenRocket Founder
    Ranch Hand

    Joined: Jul 11, 2001
    Posts: 15299
        
        6

    Originally posted by John Todd:
    Sorry if I looked GWT fanatic but GWT gives me the ability to build a fancy Ajax applications without worrying about JavaScript issues (I'm not a web developer).


    Great! Then use it. I choose not to.

    How to respond to these claims?

    Why do you feel you need to respond?


    GenRocket - Experts at Building Test Data
    Hussein Baghdadi
    clojure forum advocate
    Bartender

    Joined: Nov 08, 2003
    Posts: 3479

    Great! Then use it. I choose not to

    Would you please tell us why?
    Why do you feel you need to respond?

    No need
    But as the ranch is hosting Mr. Ryan, it is nice to ask the expert.
    Me too, I don't like generated code (particularly Java code) but GWT benefits were great to me.
    Gregg Bolinger
    GenRocket Founder
    Ranch Hand

    Joined: Jul 11, 2001
    Posts: 15299
        
        6

    Would you please tell us why?

    Because I prefer something else that makes my development easier.
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 61224
        
      66

    Originally posted by John Todd:
    gives me the ability to build a fancy Ajax applications without worrying about JavaScript issues (I'm not a web developer).

    Which makes you GWT's target audience -- people who know little about web development. Most web developers would find it much easier to write the code for real rather than faking it with generated code.

    Sort of like the Hamburger Helper of web development.
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 61224
        
      66

    P.S. This in no way denigrates our guest's book, which I'm sure is wonderful. It is merely my opinion on the target audience for tools such as GWT.
    Hussein Baghdadi
    clojure forum advocate
    Bartender

    Joined: Nov 08, 2003
    Posts: 3479

    I use Prototype & Scriptaculous, I'm not that bad :roll:
    jQuery is also on my list.
     
    wood burning stoves
     
    subject: How to respond to such claims?