5 ms·
I've been using this for about six months now and I absolutely love it. Make never stuck for me - I couldn't quite get it to fit inside my head. Just has the
by simonw 4y ago
I've been using this for about six months now and I absolutely love it.
Make never stuck for me - I couldn't quite get it to fit inside my head.
Just has the exact set of features I want.
Here's one example of one of my Justfiles: https://github.com/simonw/sqlite-utils/blob/fc221f9b62ed8624b1d2098e564f525c84497969/Justfile https://github.com/simonw/sqlite-utils/blob/fc221f9b62ed8624... - documented here: https://sqlite-utils.datasette.io/en/stable/contributing.html#using-just-and-pipenv https://sqlite-utils.datasette.io/en/stable/contributing.htm...
I also wrote about using Just with Django in this TIL: https://til.simonwillison.net/django/just-with-django https://til.simonwillison.net/django/just-with-django
- rcarmo 4y agoYou don’t need to use all of make’s features (I’ve been using it for something like 30 years and still can’t fathom sets of it). But TBH I just don’t see anything in those Justfiles I couldn’t do with make without needing to do anything special…
- 0cf8612b2e1e 4y agoGetting the list of make targets by default is pretty nifty. As is not having to preface everything with PHONY. Do any of these make alternatives reinvent the paradigm? No, but they do offer some quality of life improvements I wish were within reach without jumping through hoops.
- enriquto 4y agoWhat's the problem with ".PHONY" ? Just the name ? Would it be alright for you if it had a different name, like "INTERFACE" or "COMMANDS", or "NOFILE" ? I never thought about .PHONY as a workaround to anything. Just a slightly unnecessary annotation that you may add to the makefile if you want to be pedantically correct.
- simonw 4y agoI'm sure you can do that stuff with Make. Like I said though, I have tried and failed to get Make to stick for me in the past. Maybe it's just that my brain has such a strong negative reaction to that PHONY hack that I was never able to get past it. Maybe Just's tagline should be "it's Make, but you don't have to remember what PHONY means".
- falcolas 4y agoAll phony means is there’s no output file. And frankly, it works fine without phony, unless you accidentally create that file. Make’s built around creating files. Phony works around that.
- vorpalhex 4y agoInvoking scripts with a language env and arguments both stand out to me. Both are possible in make, but are extremely non-obvious and come with a bunch of caveats and require some heady code blobs at the beginning of the file.
- pletnes 4y agoMake is a mess to install on windows. Just just works.
- dividedbyzero 4y agoMost people don't have the advantage/burden of three decades of experience with the tool. Make's only advantage as a task runner I see is being ubiquitous. If that isn't a concern, no reason to use upper Pleistocene Make that isn't even a task runner over a more ergonomic tool. Make is so warty I have yet to see a team using Makefiles not run into any of its idiosyncrasies, but with just? Smooth sailing. Just works. No surprises. I'm a fan.
- justin_oaks 4y agoAs someone who uses neither Just nor Make, I'm trying to understand the value proposition. From what I can tell, Just accomplishes what a set of scripts in a directory could also do, but in a more ergonomic fashion. Since the justfile is a single file, you're not cluttering up your directory. You don't have to look for all *.sh files, but can instead do a "just --list". And using "just target" is probably easier to type than "./target.sh" since the just version has no punctuation. What are some of the other benefits of Just that makes it superior to "a set of scripts in a directory"?
- arjvik 4y agoJob pipelines - it's easy to say that the build-release step requires the test step. Admittedly this is still possible in a shell script, but it is either messy (folder of helper scripts?) or requires code duplication.
- chillfox 4y agoYou know shell scripts can have functions right? And nice stuff like command/options parsing + nice help messages.
- dividedbyzero 4y agoJust has pretty ergonomic support for argument parsing [1] and help messages [2]. You're right about functions of course. 1: https://github.com/casey/just#recipe-parameters https://github.com/casey/just#recipe-parameters 2: https://github.com/casey/just#documentation-comments https://github.com/casey/just#documentation-comments
- simonw 4y ago"Just accomplishes what a set of scripts in a directory could also do, but in a more ergonomic fashion" That's exactly the value proposition here. It's a small quality of life improvement, nothing more.
- 4y ago
- kapilvt 4y agoI also love just, but I try to restrict my usage to projects that don't have larger communities or user populations, as the getting it installed aspect is nowhere near universal as make. my favorite is mixing scripting languages and shell in the same file, albeit its got some rope.. but its productive and intuitive. https://github.com/kapilt/aws-sdk-api-changes/blob/master/justfile https://github.com/kapilt/aws-sdk-api-changes/blob/master/ju...
- John23832 4y agoThere are like 15 supported platform specific installation paths of Just. It’s easy to install on any internet connected server that you have install privileges to.
- rollcat 4y agoI've been using Just since at least mid-2018 (that's the oldest commit I can find), and we're using it on almost every single project at $WORK. It's easier to comprehend than make, doesn't have random GNUisms or BSDisms, it's easier to work with than a collection of random 5-10 line scripts, and despite being a bespoke tool, it's intuitive enough to a point where it immediately feels familiar.