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

Newsgroups comp.lang.javascript
Date 2016-12-30 10:13 -0800
References <4bd8c086-47df-4b8e-872f-fd783fee4ae2@googlegroups.com> <RaqdnVBM7L6Ci_vFnZ2dnUU7-e_NnZ2d@westnet.com.au>
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>

Show all headers | 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