[HN Gopher] New Clojure Project Quickstart
       ___________________________________________________________________
        
       New Clojure Project Quickstart
        
       Author : yogthos
       Score  : 89 points
       Date   : 2022-07-31 14:22 UTC (3 days ago)
        
 (HTM) web link (blog.michielborkent.nl)
 (TXT) w3m dump (blog.michielborkent.nl)
        
       | eduction wrote:
       | The context (per my limited understanding) is that Leiningen, the
       | older and still quite popular way of scaffolding and packaging
       | Clojure projects, is easy to use but not simple; if you want it
       | to do something a little different, it's tricky because various
       | tasks are complected together (I remember hearing this was due to
       | its heavier reliance on Maven?).
       | 
       | Meanwhile the newer and officially more blessed way of making
       | projects, deps.edn, is simple but not easy; to do basic things
       | you need to assemble the pieces yourself, but if you want to make
       | your own custom build pipeline it's probably more intuitive than
       | Leiningen.
       | 
       | borkdude's new project seems to be trying to bridge the gap by
       | providing some pre-canned equivalents of popular Leiningen
       | commands, but built on top of deps.edn. Instead of lein this is
       | neil.
       | 
       | (I only use lein myself at the moment but curious about deps.edn)
        
         | brundolf wrote:
         | When I briefly played with Clojure a few years ago, I was
         | surprised and disappointed that there was no official toolchain
         | (just the informally-agreed-upon leiningen, which it sounds
         | like they're moving on from now?). It was bewildering and a
         | turn-off for me as a new dev, and very surprising given how
         | cohesive and practical the language and standard lib themselves
         | are
         | 
         | Easy or simple- I could see arguments for either. But I can't
         | understand why they'd just punt on something so important in
         | this day and age
        
         | user3939382 wrote:
         | Nice use of complected. Rich, is that you?
        
       | christophilus wrote:
       | This looks great. I was just getting back into Clojure with some
       | spare time while on my beach vacation, and I have to say... Lein
       | was much more n00b friendly than deps.edn. Neil looks like just
       | the thing I wanted.
       | 
       | Also, Borkdude is a beast. He's the Shakespeare of Clojure in
       | that five hundred years from now it will be common knowledge that
       | "of course, he was actually a team of people". Or possibly the
       | common knowledge will be "he was the first sentient AI". I'm not
       | sure.
        
         | agumonkey wrote:
         | Every week there's a new clojure thing, it's "them" 80% of the
         | time.
        
       | threatofrain wrote:
       | Is there a de facto NextJS of Clojure/script?
        
         | CraigJPerry wrote:
         | I'm really not qualified to comment but someone else will be
         | able to keep me honest here.
         | 
         | Fulcro maybe? https://fulcro.fulcrologic.com/ It's a bit more
         | than NextJS though. I've never used it but there's some clever
         | ideas in data management in there.
         | 
         | There's luminus too but that's again more than Nextjs, i'd
         | compare it to something like blitz in nextjs world.
         | 
         | The folks that created luminus are working on something new
         | too.
         | 
         | There's reframe which is less than nextjs but is so
         | refreshingly simple to write in. The domino model is so easy to
         | grok and work with in my limited experience.
        
       | leobg wrote:
       | I found setting up Leiningen and the JVM and deps.edn so
       | difficult and confusing on my old Mac that I gave up on learning
       | Clojure because of it.
        
         | JoshCole wrote:
         | This might be less painful.                   brew install
         | openjdk         brew install leiningen         lein new project
         | cd project         lein run
         | 
         | Ditto for the linked article.
        
           | leobg wrote:
           | Thank you. Will try that!
        
             | didibus wrote:
             | You can also do:                   brew install openjdk
             | brew install clojure/tools/clojure         brew install
             | babashka/brew/neil         neil new app myapp         cd
             | myapp         clojure -M:run-m
             | 
             | If you're interested in trying out what the article is
             | about (which I would say is more likely to become the new
             | standard way as things evolve).
        
       | krn wrote:
       | How does this compare with
       | https://github.com/practicalli/clojure-deps-edn ?
        
         | didibus wrote:
         | Basically, tools.deps is configured through a deps.edn config
         | file.
         | 
         | clojure-deps-edn is just a pre-configured deps.edn file to get
         | you started.
         | 
         | `neil` is a command line that lets you edit your deps.edn using
         | commands, instead of manually having to edit the config file by
         | hand in an editor for example.
        
       | jcpst wrote:
       | I've written tiny little apps in clojure and really enjoyed it.
       | But I did find getting started to be a bit tricky.
       | 
       | Cool to see stuff like this tool. I think one of the best getting
       | started tools I've seen lately is Calva for VS Code.
        
       ___________________________________________________________________
       (page generated 2022-08-03 23:00 UTC)