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


Groups > comp.lang.javascript > #32038

Re: jQuery tries and fails to be modular

X-Received by 10.157.43.246 with SMTP id u109mr14321741ota.30.1483121591403; Fri, 30 Dec 2016 10:13:11 -0800 (PST)
X-Received by 10.157.39.129 with SMTP id c1mr2447203otb.15.1483121591371; Fri, 30 Dec 2016 10:13:11 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!75no4978527ite.0!news-out.google.com!g131ni11134itg.0!nntp.google.com!75no4978518ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.javascript
Date Fri, 30 Dec 2016 10:13:10 -0800 (PST)
In-Reply-To <RaqdnVBM7L6Ci_vFnZ2dnUU7-e_NnZ2d@westnet.com.au>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=72.49.195.178; posting-account=WTFS-AoAAABsiGRzE4MmIarYuIMkGBCZ
NNTP-Posting-Host 72.49.195.178
References <4bd8c086-47df-4b8e-872f-fd783fee4ae2@googlegroups.com> <RaqdnVBM7L6Ci_vFnZ2dnUU7-e_NnZ2d@westnet.com.au>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <e51c39a5-e5d7-4149-876a-0ad5db353bd2@googlegroups.com> (permalink)
Subject Re: jQuery tries and fails to be modular
From David Mark <dmark.cinsoft@gmail.com>
Injection-Date Fri, 30 Dec 2016 18:13:11 +0000
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.javascript:32038

Show key headers only | View raw


On Friday, December 30, 2016 at 3:09:14 AM UTC-5, Andrew Poulos wrote:
> On 24/12/2016 9:31 AM, David Mark wrote:
> > jQuery tries and fails to be modular. It jumps through hoops to try
> > to fit into CommonJS and NodeJS modules, but it's self-defeating.
> >
> > https://github.com/jquery/jquery/issues/3440
> >
> > Another ticket closed without understanding and with a typically
> > pointless rationalization:
> >
> > "We haven't experienced many problems with this design decision."
> 
> I'm in two minds about this. With light bulbs I wait until they burn out 
> before I replace them whereas my car's brakes are checked every 3 months 
> and repaired/replaced before anything goes.

The main point is that they are jumping through hoops to try to be a "modern" modular library, but examination of the code proves that their efforts are mostly pointless. Another recurring theme is that they rarely acknowledge, let alone fix issues. Often it seems they don't even understand basic issues with their own code.

> 
> For a given situation, if a failure isn't going to be potentially 
> catastrophic why put in excessive effort? It would drive me nuts to 
> regularly get out a light meter to check the luminance output of a light 
> bulb and a electric meter to check how much current it's using. 
> Sometimes, isn't "good enough" good enough?

I've always felt that because all browser scripts share the global DOM that modularity is often just an illusion. Certainly it can help avoid some issues, but jQuery isn't benefiting much from their attempts at it.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

jQuery tries and fails to be modular David Mark <dmark.cinsoft@gmail.com> - 2016-12-23 14:31 -0800
  Re: jQuery tries and fails to be modular Andrew Poulos <ap_prog@hotmail.com> - 2016-12-30 19:09 +1100
    Re: jQuery tries and fails to be modular Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-12-30 16:19 +0000
      Re: jQuery tries and fails to be modular David Mark <dmark.cinsoft@gmail.com> - 2016-12-30 10:20 -0800
    Re: jQuery tries and fails to be modular David Mark <dmark.cinsoft@gmail.com> - 2016-12-30 10:13 -0800

csiph-web