Lurker News
I learned about a ton of useful CLIs, desktop apps, and SaaS products from this thread (https://news.ycombinator.com/item?id=13887237).

But it was posted 3 years ago, and perhaps some useful stuff has emerged in the interim, hence my starting this thread.

Comments (516) 196 threads

Earlier comments
l0b01 reply#
Black, flake8, isort and mypy (with several type strengthening flags) have together ensured that Python editing and code reviews are an absolute breeze. The structure basically disappears, and all that I ever need to concentrate on is the actual change.

Sure, you can use your IDE to achieve some of this, but this is where the 80/20 rule really breaks down: since each IDE differs in the details, at some point auto-formatting the code is going to waste more time than it saves by having to undo or work around mutually incompatible formatting rules. You can't reasonably expect everyone to use the same IDE, but you can expect them to use the same Makefile targets and CI pipeline.

iamcreasy3 replies#
Python beginner here. Can you please elaborate on how you use Black, flake8, isort and mypy for code editing and code reviews?
jsmeaton#
For me, it's being able to have a consistent code-style that is completely unambiguous for all collaborators. You configure the tools to run in your editor (or as make targets, or as pre-commit scripts) and you run the same checkers on your CI which prevents non-conforming changes from being merged to master.

Here's a config file for running some of these checks with https://pre-commit.com/ both locally, and then again on CI:
https://github.com/kogan/django-subscriptions/blob/master/.p...
https://github.com/kogan/django-subscriptions/blob/master/.c...

l0b01 reply#
For sure!

Black and isort complement each other in formatting your code, and both have flags to check whether they would change anything in your code. You can do the former either as a script or Makefile target, and the latter in CI to verify that the code is actually lint-free.
flake8 is your standard linter - it checks for idiomatic Python. I prefer to set it quite strict, with `max-complexity` starting at something like 4 and only moving it up if I really can't figure out a way to make the code simpler. And you shouldn't have to ignore any lints unless there's a linter or formatter bug or conflict. The only place I've seen this is with E203.
mypy is a tricky one if you're not yet used to Python type hints. I would recommend starting with no configuration and then introducing stricter rules as you understand more of them. My current go-to configuration sets all of check_untyped_defs, disallow_any_generics, disallow_untyped_defs, ignore_missing_imports, no_implicit_optional, warn_redundant_casts, warn_return_any, and warn_unused_ignores.
To list all the files in your project tracked by Git (because you don't want to lint or format any third party files) NUL-terminated (because you want to handle weird file names) run `git ls-files -z -- '[star].py'`. To instead list only the files changed from origin/master (your typical target branch for a merge request) except for those you've deleted locally you can run `git diff --diff-filter=d --name-only -z origin/master -- '[star].py'`. You can then pipe the result of either command to `xargs --no-run-if-empty --null black` and similar. Use the first Git command in CI to lint all the files, so that you don't miss out on any changes for example when any of the linters change their rules. Use the second Git command locally to format and lint your changed code. And make sure you have some way to force formatting/linting all the code for when you update any of these programs.
Finally, running all the linters as part of a pre-commit hook is a great way to make sure you never commit broken code. Having a bunch of lint fixup commits is ugly and counter-productive.

iamcreasy#
Thank you!
BiteCode_dev#
If you are a python beginner, don't try to do everything at once, it's too hard.

Start with black. It's very easy to setup, and the reward is great.

cgranier#
Excel's Power Query just saved my countless hours last week in cleaning up and merging two huge csv databases.

Learning the YouTube APIs saved me thousands of hours on editing video metadata, organizing playlists, etc (https://github.com/cgranier/pytube).
Everything (https://www.voidtools.com/) is a wonderful file search tool for Windows.
Thanks for all the links and ideas... new things to try this week.

bogidon4 replies#
- keeping all your configuration files (“dotfiles”: shell, git, etc) in one, version controlled place. Makes setting up new machines so much less stressful. Here are mine in case you’re interested, for macOS and Ubuntu: https://github.com/Bogidon/dotfiles

- setting up a personal vpn with a reserved IP if you connect to services that require your IP to be whitelisted and you move often
- for git cli: dashes take you back to your previous location (eg `git checkout -` will take you back to the previous branch). On zsh: `cd -n` will take you to n directories ago
Mac only:
- the Paste clipboard manager has been a most delightful tool, though I don’t know if I’ll ever upgrade to the new subscription version: https://pasteapp.io/
- the workflows feature in Alfred.app as a convenient place to keep utility applescripts / other kinds of little scripts that you want to invoke through global shortcuts or through Alfred

hoistbypetard#
> - keeping all your configuration files (“dotfiles”: shell, git, etc) in one, version controlled place.

The thing that finally made this worthwhile for me is GNU stow.
https://alexpearce.me/2016/02/managing-dotfiles-with-stow/
Stow is available from homebrew if you prefer to get your Mac stuff that way.

AdamGibbins2 replies#
Alfred has a clipboard manager built in, what does Paste offer over it that justifies its fee for you?
bogidon#
Mainly iCloud sync, tabs, and larger previews where more than one is visible at a time
iamuser4#
Similarly, I use the clipboard plugin for quicksilver.
newsbinator#
I've been using "Copied", but in the last few months on Catalina it suddenly loses the ability to copy out of its history window, whether via cmd+c or clicking. Only an app restart solves it. I emailed the developer over a month ago and never got a reply, so... guess I'm switching to "Paste App".
ivank3 replies#
Overcast says its Smart Speed feature has saved me 30 hours (over the last ~5 months), so I expect it to save me 100 hours within a year. It is especially useful for podcasts and language learning material with a lot of pauses, but I have become used to it, and so I now keep it enabled for most audiobooks that I load into Overcast just to get the dynamic playback speed.
knur1 reply#
How does it work? Does it really change the speed dynamically? Or it just trims the silences like pocketcasts?
ivank#
Based on my observations and the details that Marco has blogged about, it seems to use a silence-detection algorithm that rapidly adjusts playback speed, so the silences are not cut out in a jarring manner, but rather played through at a typical 2.5-4x.
pottertheotter2 replies#
I'm at 173 hours! I've liked Overcast (I've been a premium customer for two years), but I find myself wishing it has better features now. It feels like it was the best a couple years ago but hasn't done much since. Smart Speed is the one thing that has kept me from switching to something else so far.
slg1 reply#
296 hours myself. I have also been pleased with Overcast until just recently. Now that I am stuck at home, I went from listening to all my podcasts from my phone to listening to most of them from my computer. Overcast's lack of desktop app and pretty poor web interface are causing me to consider switching for the first time.
hoistbypetard3 replies#
I don't love its web interface. But its ability to do the smartspeed thing + sync the played status to my phone for when I move from my desk to walking the dogs has been enough to stave off the switch for me.

What are you thinking about switching to?

Continue this thread — 3 replies

pfranz#
When software grows I notice there can be a lot of dev done on features I don't end up using. I don't use CarPlay, watch, Smart Speed, Voice Boost, or playlists.

Last year it looks it launched a sharing interface with what looks like a non-trivial backend to it. In January, a rewrite of Voice Boost and support for Air Play 2 was released. So it's pretty actively developed.
What kind of features do you think is lacking? I feel like I have very simple needs. The only time I've wanted for something is occasionally wishing to use it on my desktop and the web interface is okay-ish for those brief periods.

PascLeRasc1 reply#
Maybe this will be unpopular, but I feel like speeding up podcasts is really disrespectful to the creator. It'd be incredibly rude to tell someone in real life that they're talking too slow, and in my opinion this is the same thing. Podcasts don't need to be so transactional.
RobertKerans#
> in my opinion this is the same thing

It definitely isn't the same thing. I kinda understand why you think that way, but it's pretty much completely illogical (see avoiding ever skim reading anything written by someone, or never fast forwarding any filmed media where a person is speaking).

Load more comments