edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Chris Brannon <chris@the-brannons.com>
To: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] js befuddle
Date: Tue, 15 Apr 2014 08:18:49 -0700	[thread overview]
Message-ID: <87a9bmaaee.fsf@mushroom.PK5001Z> (raw)
In-Reply-To: <20140315103711.eklhad@comcast.net> (Karl Dahlke's message of "Tue, 15 Apr 2014 10:37:11 +0000")

Karl Dahlke <eklhad@comcast.net> writes:

> called js_befuddle(), that strips the whitespace and comments

It's called a JS minifier, and they're quite common.  When I worked at
Google, we used something called Closure, which compiles JS into
"compact, optimized code".  Part of my work there involved writing the
occasional JavaScript.  I'd write nice readable JavaScript, and Closure
would compile it into the inscrutable dog vomit of which you speak.
Minification is part of that compilation process.

I'm not spilling any secrets, as Closure is available to the general
public.

-- Chris

      reply	other threads:[~2014-04-15 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 10:37 Karl Dahlke
2014-04-15 15:18 ` Chris Brannon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9bmaaee.fsf@mushroom.PK5001Z \
    --to=chris@the-brannons.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).