News for hackers. Stuff that matters.
Re:Show HN: Beautify-with-words unminifies JS with unique wo... by anorwell on Monday January 27, 2014 @01:39PM (#7132165)
I forked the original to address this [1]. Here's a sample:

    var strategy = moduleInterfaceFactory.Events = {
        on: function(strategyFacade, strategyFactoryDecorator, interfaceFacade) {
            if (!flyweight(this, "on", strategyFacade, [ strategyFactoryDecorator, interfaceFacade ]) || !strategyFactoryDecorator) return this;
            this._events || (this._events = {});
            var strategyPattern = this._events[strategyFacade] || (this._events[strategyFacade] = []);
            strategyPattern.push({
                callback: strategyFactoryDecorator,
                context: interfaceFacade,
                ctx: interfaceFacade || this
            });
            return this;
        }
[1] https://github.com/ANorwell/beautify-with-words
Re:Show HN: Beautify-with-words unminifies JS with unique wo... by michaelmior on Monday January 27, 2014 @06:25PM (#7134124)
While I find this humorous (which I assume was the goal), I think using common development terminology could be worse than complete jibberish since you start to apply irrelevant meaning when reading the beautified code.
Re:Show HN: Beautify-with-words unminifies JS with unique wo... by angersock on Monday January 27, 2014 @06:11PM (#7134063)
Wow, it's like an EnterpriseBridgeAdaptor for JavaScript!