News for hackers. Stuff that matters.
Re:Software I’m thankful for (2021) by dividedbyzero on Friday September 23, 2022 @02:07PM (#32955233)
The fish shell, makes using the shell feel almost painless.

Hammerspoon, I use it to automatically switch audio devices based on context, so every call uses the best microphone currently available, window management via keystrokes, limiting media keys to Spotify, tons of other things. Indispensable.

Arduino, I don't think I would be able to tinker with microcontrollers as much if I had to write C and use obscure toolchains directly.

Solvespace, a limited but usable free CAD for simple parts to be 3d printed. Wish there was a real contender to the commercial ones though, or a free tier that doesn't smell like it's going away any time. Still very thankful that SolveSpace exists.

The Scala 3 compiler and the VSCode plugin for v3. Absolutely love the language and the experience is so much better than with IntelliJ, haven't had as much fun writing code in ages.

This will be a bit controversial, but Kubernetes, because if people use it via GKE, EKS etc. then I won't have to learn their organically grown solution to the same dozen-or-so operations problems, and I have yet to see one that isn't a hot mess in some way or other. Also anything running on top of Kubernetes won't be built the very old-fashioned vi-edits-on-server way, great for sanity.

Various modern messenger apps (Telegram, Whatsapp, Instagram's direct messages, ...) because I would hear a lot less from some highly cherished and very non-technical people in my life without these incredibly slick and fun and convenient apps. As one who's old enough to remember being dependent on landlines and payphones and letters, this still feels like a miracle.

Re:Software I’m thankful for (2021) by preseinger on Friday September 23, 2022 @04:26PM (#32956646)
> This will be a bit controversial, but Kubernetes, because if people use it via GKE, EKS etc. then I won't have to learn their organically grown solution to the same dozen-or-so operations problems, and I have yet to see one that isn't a hot mess in some way or other. Also anything running on top of Kubernetes won't be built the very old-fashioned vi-edits-on-server way, great for sanity.

I appreciate this perspective. It's sane. But my consistent experience has been that the complexity permitted by the Kubernetes configuration surface area tends to be larger, more complex, and ultimately more difficult to wrangle than the complexity introduced by (reasonably coherent) home-grown systems.

I would generally prefer to be responsible for a bespoke solution, with all of its warts and pathologies, than for a Kubernetes deployment. The problems of the former tend to be at least tractable; wrangling Kubernetes to a reasonable level of availability is in my experience only possible if you dedicate your career to it.

Re:Software I’m thankful for (2021) by wan_ala on Friday September 23, 2022 @04:44PM (#32956844)
I use fish as my main shell and haven't seen anyone else that has. Honestly its really good, the autocomplete feature is my favorite.
Re:Software I’m thankful for (2021) by quyleanh on Friday September 23, 2022 @06:08PM (#32957693)
Actually you can use fish-like autocomplete feature in zsh with this plugin [1]. It works well for years in my machine.

[1] https://github.com/marlonrichert/zsh-autocomplete

Re:Software I’m thankful for (2021) by wan_ala on Friday September 23, 2022 @08:26PM (#32958665)
I didn't know that, thanks! I wonder why i haven't seen this for BASH considering its probably the most common shell other than Command Prompt.
Re:Software I’m thankful for (2021) by behnamoh on Saturday September 24, 2022 @12:04AM (#32959652)
I don’t think people who use bash actually want to use it. even macos switched to zsh a few years ago.
Re:Software I’m thankful for (2021) by latexr on Saturday September 24, 2022 @08:02AM (#32961721)
The macOS change was likely driven by the license which keeps the shipped Bash at version 3.

The numbers for Homebrew installations of Bash suggest hundreds of thousands of people choose to use it.

Re:Software I’m thankful for (2021) by dividedbyzero on Saturday September 24, 2022 @03:46PM (#32965988)
I have it for running scripts, not for use as a shell
Re:Software I’m thankful for (2021) by sva_ on Saturday September 24, 2022 @08:47AM (#32962028)
I don't think it parses manpages for autocomplete?
Re:Software I’m thankful for (2021) by 9935c101ab17a66 on Saturday October 01, 2022 @09:45PM (#33051949)
I've been using fish as my primary shell for probably 5-6 years, and it's honestly fucking delightful. I have my own custom theme/prompt, a bunch of custom functions I use on a very regular basis, an extensive config and I use fisher for third party add ons. I've seen a lot of people say things like "oh you can modify ZSH to be like a slightly worse version of fish" and I just don't get why I would bother? I'm already using a non-standard shell...
Re:Software I’m thankful for (2021) by hiepph on Saturday September 24, 2022 @04:04AM (#32960606)
Also Fish user here. Fish offers many superior features. I use it personally for quick scripting (compared to arcane Bash syntax).

But people just don't want to move away from Bash due to its widely usage. So: + In my company I still use Bash. + I switch all my personal shells to Fish.

Re:Software I’m thankful for (2021) by Smar on Friday September 23, 2022 @11:49PM (#32959584)
Long-time fish user here too. It's pretty widely available, so I suppose it has fair share of use.
Re:Software I’m thankful for (2021) by jstanley on Friday September 23, 2022 @02:59PM (#32955723)
If you like SolveSpace but want something more powerful, you should try FreeCAD.

Yes, it's harder to get started, and it's less fun to use, but it is more powerful. I wrote a comparison of the two earlier this year[0].

[0] https://incoherency.co.uk/blog/stories/freecad-vs-solvespace...

Re:Software I’m thankful for (2021) by alanbernstein on Friday September 23, 2022 @04:38PM (#32956778)
Got any Hammerspoon config to share? I've used it for simple stuff for years, but recently noticed that people use it for window management, and macos' handling of windows on my second monitor is driving me nuts...
Re:Software I’m thankful for (2021) by NateEag on Friday September 23, 2022 @08:42PM (#32958743)
I spent years furious with OS X's flaky handling of windows on disconnect/reconnect of windows.

A few hours with Hammerspoon have made that a non-issue, and I've hardly had to think about window positioning or size since hammering this logic out:

https://github.com/NateEag/dotfiles/blob/5d47773e0e7cacb9139...

Re:Software I’m thankful for (2021) by nonissue on Saturday October 01, 2022 @09:50PM (#33051991)
I know your comment is stale at this point, but my hammerspoon config is quite extensive.

Here's the Spoon I created for window management:

https://github.com/nonissue/hammerspoon/blob/main/_Spoons/Fe...

Essentially, `cmd + alt + left / right` resizes the frontmost window to 50% the screen width, and moves it to the specified side of the screen.

`alt + space` maximizes the frontmost window. `cmd + alt + ctrl + P` sends the frontmost window to your next screen, and you can repeat it to move windows between multiple monitors. I also have an undo function that lets you revert any of the window management actions you've taken.

Let me know if you have any questions / concerns!

Re:Software I’m thankful for (2021) by barrenko on Saturday September 24, 2022 @04:56AM (#32960877)
Scala Metals team are absolute beasts, I can't really tell of other instances where it's so easy to get almost a full blown IDE out of vim so easily (as a total beginner).
Re:Software I’m thankful for (2021) by d3nj4l on Friday September 23, 2022 @07:47PM (#32958407)
If you don't mind me asking, why do you prefer Scala 3 specifically? What did it change over 2 that you made such a big difference?
Re:Software I’m thankful for (2021) by physPop on Saturday September 24, 2022 @08:49AM (#32962047)
Not OP but it's almost a whole new language. They removed a lot of boilerplate and it just feels a lot better planned out.
Re:Software I’m thankful for (2021) by zuhsetaqi on Saturday September 24, 2022 @01:19AM (#32959910)
Do you mind sharing your Hammerspoon config?
Re:Software I’m thankful for (2021) by nonissue on Saturday October 01, 2022 @09:52PM (#33052000)
You didn't ask me, but here's mine:

https://github.com/nonissue/hammerspoon

Quite extensive! My custom Spoons (Hammerspoon's version of plugins) can be found in the _Spoons directory. Let me know if you have any questions or need any help with your own config!

Re:Software I’m thankful for (2021) by lake_vincent on Saturday September 24, 2022 @01:22AM (#32959920)
I second the motion
Re:Software I’m thankful for (2021) by nonissue on Saturday October 01, 2022 @09:52PM (#33052002)
Not the parent commenter but here's mine:

https://github.com/nonissue/hammerspoon

Quite extensive! My custom Spoons (Hammerspoon's version of plugins) can be found in the _Spoons directory. Let me know if you have any questions or need any help with your own config!