Live data from Hacker News

Small programming tricks

will-keleher.com

191–195 of 195 posts

Re: Small programming tricks

#191
post #37

`find` does a lot more things than that.

Definitely. The whole Unix philosophy of each command doing one thing and being easily composable always seemed to break down in my mind when it came to find. find does a lot. similar to ripgrep, though, fd is a modern replacement that’s a bit friendlier to use.

find is absolute agony once you get a taste of fd.

Re: Small programming tricks

#192

> At a previous company, I shared a trick on slack every day with the engineering team, both technical and company-specific, and folks found them pretty useful. I would find that annoying, however to not be seen as a jerk I wouldn't say anything.

As long as they do that in separate channel and don't tag all, i'm fine with it.

Re: Small programming tricks

#194
post #190
post #117

Earlier quoted context omitted.

(hi! I work on atuin!) yes, it's improved a lot in the last couple of years! what in particular bothered you?

Not the parent commenter, but I also tried it a year or two ago and my recollection is that I had a similar experience. I have a really long history file that dates back like a decade and if remembering correctly I tried to import it, and it made using my shell very laggy so I ended up removing it. I'm not 100% positive that I'm remembering the exact way that I started experiencing the lag though, so if I have time t…

Ahh yes, we’ve done a lot of performance optimisation since then. We regularly test on >1m records and have no issues

Make sure you’re using the daemon (the install script will handle this) and you should be good to go

Very happy to help if you have any problems. Ellie at Atuin dot sh

Re: Small programming tricks

#195
post #77

The thing with a lot of these tricks is that you have to get into the habit of using them. I knew `Ctrl+r` for history since I learned about the command line. I even have a nice shell integration with fzf. But I still used the up/down arrow keys for years or scrolled up when I was looking for a previous command, because I never remembered the shortcut and just took the path of least resistance to find something. Usua…

Bonus: if you write all your tricks in a document, people will love your document. Whenever I offer a new student my CHEATSHEET.md file, their eyes absolutely light up.
Post reply on HN