Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2499

Re: LINTing Javascript in a Java WebApp

Newsgroups comp.lang.java.help
Date 2013-02-13 14:56 -0800
References <kfb9jr$69d$1@dont-email.me> <3b447074-316f-4e1a-bb0f-0b54b4a547b6@googlegroups.com> <kfdgms$4f4$1@dont-email.me> <c7e5d4de-59ea-4309-acc4-e83bb698cfd6@googlegroups.com> <kfgpb3$hau$1@dont-email.me>
Message-ID <dc752c04-8531-4a2a-a0d7-eb49c42297c9@googlegroups.com> (permalink)
Subject Re: LINTing Javascript in a Java WebApp
From Lew <lewbloch@gmail.com>

Show all headers | View raw


Steve wrote:
> Lew wrote:
>> Are you familiar with "technical debt"? It sounds like you're paying a lot just
>> in interest.
> 
> 
> 
> I haven't heard the term before.  Does it mean a lot PITAs from legacy 

That's about the best definition I've ever heard.

> code?  The javascripts aren't bad.  My problem with them are my own 
> typos when I get change requests.   I don't have a way to find out about 
> them before I test the WAR that takes less time than doing just that.

If they can run standalone maybe you can run them on node.js. I'm reaching.

>> I recommend that you gradually (since management won't buy in or give you time)
>> refactor the JS to make sense. Dump old, unsupported versions of any frameworks
>> you're using, and clean up the separation just between the JS parts.
> 
>> Consider using Facelets/XHTML with new stuff. Make sure your changes remain
>> compatible with existing code and you won't need to make sweeping, all-at-once
>> revolutionary upheavals.
> 
> 
> I have read those terms, haven't used them yet.  It didn't occur to me 
> that those things could be used to reduce/eliminate javascript.   Can 

Not to reduce it, but to reduce your direct involvement with it. These things have JS 
already built in and you treat it like a black box.

> you check for simple syntax errors with these technologies before you 
> run your app?  That is my problem with javascript so far.

No.

-- 
Lew

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-11 12:26 -0500
  Re: LINTing Javascript in a Java WebApp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-11 11:42 -0800
    Re: LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-12 08:40 -0500
  Re: LINTing Javascript in a Java WebApp Lew <lewbloch@gmail.com> - 2013-02-11 12:45 -0800
    Re: LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-12 08:40 -0500
      Re: LINTing Javascript in a Java WebApp Lew <lewbloch@gmail.com> - 2013-02-12 09:45 -0800
        Re: LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-13 14:26 -0500
          Re: LINTing Javascript in a Java WebApp Lew <lewbloch@gmail.com> - 2013-02-13 14:56 -0800
    Re: LINTing Javascript in a Java WebApp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-13 18:43 -0800

csiph-web