Dijo: A terminal-based habit tracker written in Rust
github.com
github.com
The comment you link uses Rust tools as a justification for adding “cargo install”, but doesn’t attempt to limit its applicability to other binaries.
[1] https://github.com/rust-lang/rfcs/blob/master/text/1200-carg...
It it only the most lazy and selfish developers who would not utilize this. I am speaking as someone who has distributed both Rust and Go programs.
Even a once a year executable release would be better than just saying "build it yourself".
Please refrain from making ad-hominem attacks on people that make different decisions than you would, even if they’re anonymous.
Open-source developers make their own decisions for their own reasons. They donate their time and effort to provide something to the community, and only they are in a position to determine what activities are worth their time.
Are you calling the whole Gentoo community lazy ?
If anything, I'd consider them to be the opposite of lazy, since making sure that all software always builds properly on each of your users machines takes a lot of work (IMO much harder than only making sure that it builds on your package manager controlled servers), and Watts.
FWIW the few rust devs I know do it exactly like this.
I, for one, cannot install this on the latest Debian Stable, I'm getting 'failed to parse Cargo.lock file' errors with cargo. So since there's no other way for me to install this or try this out, that's it.
Now I could probably install a more recent cargo version, but really, should I have to? I'm not a rust dev at all, and it seems like a high tax to pay for installing a tool I don't even know I will really use. I'll also know that raising a support issue about this would come off as entitled, and I'm not too familiar with Rust's ecosystem so I don't know if I step on anyone's toes, so I won't do it.
> It is expected that all major Rust projects will still invest effort into distribution through standard package managers, and Cargo will certainly have room to help out with this, but it doesn't obsolete the need for cargo install.
If you're not a Rust developer, expecting you to have cargo and the right toolchain installed is too high a burden.
You don’t have to: You always have the option of not using the tool. It’s provided for free, and it’s not reasonable to expect it to be appropriate for everyone (or really anyone except the developer).
If their chosen installation method makes it unsuitable for you, so be it.
(NB: I am not affiliated with and do not speak for this project)
I specifically stated that I do not want to raise any issues as that would be entitled behavior.
Also, really cool that this is written in Rust!
[0]: https://100r.co/site/ronin.html
[1]: https://www.reddit.com/r/unixporn/comments/dekj2i/oc_a_spoti...
But I agree, the author did really good job in creating a clean an visually pleasing UI only using text and standard symbols
Perhaps terminals should have cascading style sheets ...
But little wishes for extra expressiveness aside, i really don’t think terminal UIs would benefit from anything like CSS. The terminal functions as my working environment. I rely on being able to visually pattern scan for errors, warnings, typical command output, time stamp and log alignment etc. I do not want anything messing with how I set all this up.
I've avoided looking too deeply into cursive in the past because I naively assumed it would be difficult to make it look like like anything other than a late-90s BIOS, but this is exciting.
Eg blessed https://github.com/jquast/blessed
Linux: /home/alice/.config/dijo/habit_record.json
Windows: C:\Users\Alice\AppData\Roaming\nerdypepper\dijo\habit_record.json
macOS: /Users/Alice/Library/Preferences/rs.nerdypepper.dijo/habit_record.json
https://github.com/NerdyPepper/dijo/blob/master/src/utils.rs...https://docs.rs/directories/0.8.5/directories/struct.Project...
/home/alice/.local/share/dijo/habit_record.json
on XDG compliant Linux.Even worse are the programs which use it to cache runtime data; I should be able to add the entire ~/.config to a dotfiles repo without accidentally including personal data (other than that which might reasonably appear in a config file) or ephemeral data.
And yes even Microsoft does it, but what to expect when younger teams have the cool ideas to rewrite VS installer with node or use it to drive VS plugins.
Still not every graphical application is Electron based, whereas in what concerns the UNIX terminal hardly anything has changed in 50 years.
TUIs could be designed in a similar way to GUIs, but the culture around their development is much different. So while TUIs aren't inherently better (and based on their limitations, they should be worse), they almost always are.
Probably because the average user is. I don't mean that offensively, but literally everyone on this site lives in a tech power-user bubble. The average user doesn't care to have a dense display of information, keybindings, and ways to input commands directly. They want an easy to use and nice looking app that does what they want.
For an app that's specifically meant for and targeting power users, that might be an acceptable choice to make, but if you want to target "people", then you're likely not going to be investing in power user features.
Modern UNIX has the necessary IPC tooling for REPL workflows like on Xerox Workstations REPL, Amiga REXX, Oberon, Powershell/COM/.NET, Inferno, yet the large majority uses it hardly any different from V6.
I want a thing in my terminal that I can use to track my habits
I would argue that people want a more traditional app instead, with what I'm sure you'd consider a bloated and inefficient GUI. Considering that most people don't even know what a terminal even is, and that form regularly trumps functionality in day-to-day lives.
I am arguing that what the parent commenter wants is valid, but is likely not what the general population wants.
In that respect, not sure how exactly your comment is relevant.
Perhaps I'm being overly charitable to the original commenter.
Ignoring REPL based workflows, structured IPC with GUIs apps for automation, ability to use any library directly, cramping text into a little window in a high definition screen.
Then since it is a full programming language REPL, not only you have text, there is also structured data to act upon.
On top of that comes the capability to directly access dynamic link libraries, the libraries of the language being used, and when the OS exposes it, application automation APIs.
So you can do stuff like select an open application, or something inside it, then switch to your REPL and execute some script over that selection.
Basically you open something like Jupyter Notebooks on the OS, and interact in a graphical way with everything that is running, not just executables that can only talk text via stdio.
Some real life examples, were the Xerox PARC workstations (Interlisp-D repl, Smalltalk transcript, Mesa/Cedar devenv), AmigaDOS shell with REXX, OS/2 with REXX as well, Native Oberon with its command modules, and for something more up to date, Powershell with COM/DLL/.NET/OLE Automation/WMI integration, AppleScript / Automator.
In modern UNIX clones something similar could be achieved via DBUS, KParts and a scripting language of your liking, like Python, Ruby whatever, but it remains a niche thing.
https://www.freecodecamp.org/news/python-for-system-administ...
I found this toy to be very cute. Too bad my friends are not the typical software engineer that can use this. I'll just point them to a native macOS habit tracker on the app store instead. Friendly enough for them and efficient enough unlike the Electron alternatives.
Actual progress rather than re-creating the prehistoric 'good old UNIX days' or turning the users laptops into stove burners with many Electron apps running.
In GUI-land, this is hardly ever the case. I can't compose different software together, which is something I do all the time with the shell.
There are certainly some tools that work better as GUIs, but there are also tons and tons that really are great as terminal tools. No, this may not be a very approachable design for the average non-terminal-user, but that doesn't mean we should decry those who will find it useful. It's okay for different people to use different things.
I think I don't agree with the top-level comment in this thread that "everything should live in the terminal", and instead I believe what another response to that comment said: "everything should be exposed to the shell". Being able to compose tools is a huge productivity gain for those of us who care to do it and are used to it.
Assuming those programs have been written to be usable from the CLI to start with.
Likewise GUI applications can be written to be automated by REPL environments automation, specially if the OS exposes application IPC like COM, DBUS, XPC, Binder, REXX, ....
One contrived but possibly very common workflow for video creators: snip out a piece of a video with one tool, record new video from webcam with another, edit an image with photoshop, create sound effects in sfx util, create/record music with another, import all of the above into video editor and export a composited/rendered out video, do more lossless video compression/reduction with another utility.
- Messages (macOS)
- Slack
- web browser
- various notes apps
- iTunes
- Discord
- plenty more
These are tools I use all the time throughout the day. There is no simple pipe-like interface that allows me to easily take the output (graphical display) and pass it elsewhere to do something with it. In the terminal, everything shares a universal output system: text.
GUIs are not composable in principle. Sure, there are some workflows where you can do it, but that is not generally the case because they lack this common interface as a standard. CLI tools, on the other hand, have the standard of text output.
It is like the "Everything is a file", except when it is not.
Saying "Your point isn't true when there are exceptions" is a lazy argument, honestly. It is overwhelmingly the case that CLI applications use text as output, and my original point was specifically about how I wish this were more often the case with GUI applications — that you could somehow interface with them and compose them in the same way you generally can with CLI applications.
That said, in my experience, trying to use a real programming language's REPL for shell-like things is (at best) almost as bad as trying to write a meaningfully sized program in a shell's language.
I've many times tried to pin down exactly why. I think it's mostly a matter of focus and the various affordances provided by the ecosystem that have in fact been developed over the past however-many years.
I wouldn't be terribly surprised if you've found a niche and setup where it works out great for you - the important things are compositionality and putting what you need close at hand.
So you can from the confort of your REPL get the text selected in e.g. Excel, and use it as input for a function that was actually imported from a DLL for data conversions, for example.
Very contrived example, just to show my point.
- The constraints force designers to use the space efficiently. That means less details like borders, shadows or hover effects which is relaxing.
- It has a (relatively) uniform look and feel and automatically uses my system colors through the terminal configuration.
But I don't think every GUI program needs to be TUI. Like, if it's a bad fit for your user base or inconvenient to use or implement for you, it's fine. Do what works best for you, not every app is equal.
(Aside from that, most of my "apps" are just shitty Bash scripts that store data in some ad-hoc plain text or JSON file, break when you look at them the wrong way and are hell to debug but I love it. Do give me a good non-interactive CLI or API if you can!)
Said can get a different meaning, such as the reflexive voice of "decir" (fué dicho) -> it has been said.
[1] https://taskwarrior.org/ [2] https://github.com/scottkosty/vit [3] https://github.com/tools-life/taskwiki
some of the complexity of Rust is just necessary to get C speed with memory safety, some is just not being used to the “parens”
It looks like the best mix of abstractions like first-class Result, Option, Future, and Trait with some of the best performance.
In Go, I write twice as much code for code that's slower than Rust. I can't even reuse code without copy and paste. Python and Clojure don't even have Rust features. Python doesn't even have .map. Go is barely statically-typed (bet you're gonna use interface{} implementing this too), Python and Clojure aren't at all -- so that's also going to be a source of gut-reaction "whoa this must be complex".
The code looks very pleasing to me.
The only other low-level language that is pretty that I found is nim.
I've started using mypy in all Python projects, but it's a joke of course compared to proper strong typing.
I don't want a cli habit tracker, but I'm still here looking at how they built it, bikeshedding with my commiserators.
You may be more interested in Product Hunt. Not sure I understand your complaint, though. Makes me think that you would leave it off of your HN submission in some weird masturbatory idea of modesty. "Well, so what was it built with?" "Oh, I couldn't say ;)"
document.querySelectorAll(".storylink").forEach(link => link.innerText = link.innerText.replace(" written in Rust", ""))
Done