News for hackers. Stuff that matters.
Re:JavaScript Conquered the Web, Now It’s Taking Over the De... by falcolas on Tuesday September 13, 2016 @11:14AM (#12488970)
We apparently have a very different definition of DSLs. Both jQuery and Lodash are, to me, libraries with lots of functions. A DSL, to me, would be a change in the underlying language being interpreted.

i.e.

    describe file("foo") do
      it { should exist }
      it { should be_owned_by "root" }
    end
vs.

    _.map(["a"], function(s) {alert(s)})
Re:JavaScript Conquered the Web, Now It’s Taking Over the De... by spion on Tuesday September 13, 2016 @11:33AM (#12489158)

  describe("something", () => {
    it(should(exist))
    it(should(be_owned_by, "root"))
  });
Also

  _.map(["a"], s => alert(s))
Or just

  _.map(["a"], alert)
Re:JavaScript Conquered the Web, Now It’s Taking Over the De... by qwer on Wednesday September 14, 2016 @01:25AM (#12494412)
Except your rspec example isn't a change to the underlying language is it? Also, Check out mocha for the JavaScript equivalent.

Also, when you use only one function of lodash, you can't call it a language, but there are chains and flows for creating powerful pipelines for collection processing.