3 ms·
One of the awesome things about Lisp is how easy it is to build DSLs with. I used to think this wasn't that useful of a feature, but recently I've had an idea f
by hacker_9 9y ago
One of the awesome things about Lisp is how easy it is to build DSLs with. I used to think this wasn't that useful of a feature, but recently I've had an idea for a few web apps and instead of writing all the tedious GUI logic I've written a DSL in Clojure instead. This has allowed me to jump straight into the feature building, and quickly build prototype versions of my ideas. For example, when working with code, switching between a list structure and tree structure is trivial. But in a GUI you need to write a load of boiler plate to change how it displays, how selection works and so on.
Additionally the hotswapping allows me to interact with the application in real time, just like a GUI. Pretty powerful stuff.
- wiz21c 9y agoThe question for me, my my day to day use cases, is : can you propose the power to someone who is less proficient in functional programming. That is, a "regular java developer" (I don't say this in a disrespectful way at all, the simple fact is that some people are trained or like to just program and don't always see the advantages of DSL which are, to me at least, outside of the realm of regular software development)