Ask HN: Programs that saved you 100 hours? (2022 edition)
470 pointsI've asked this previously: https://news.ycombinator.com/item?id=22849208
But a few years have past and want to see what's emerged since. Although can be new to you vs. released in 2021 or 2022 necessarily.
Things I've come across in the meantime:
* mock AWS services https://github.com/spulec/moto
* query cloud services https://github.com/turbot/steampipe
* munge CSV https://github.com/johnkerl/miller https://github.com/BurntSushi/xsv
* page json https://github.com/PaulJuliusMartinez/jless
* text to tree structure [I use this as a hack to version control my music library] https://github.com/birchb1024/frangipanni
Comments (559) 186 threads
Earlier commentsThe are valid criticisms of Coplilot around copyright but I'm not using it to generate whole algorithms. It just knows your code and what you are trying to do.
Sure, you can bait it into reproducing stuff but why bother? Considering how convoluted it is to trick it you might just as well copypaste the algorithm straight from the repo. I almost find the discussion irrelevant because of how detached from reality it is.
It’s a small ORM with nice features and it saved me a ton of time. Just generate the classes from the database. Very fast to iterate from.
https://propelorm.org/
The problem with most ORMs is that language object models are way more expressive than SQL (due to having multiple subclasses of the same superclass / interface, or even multiple inheritance, and none of those mapping to SQL foreign keys).
Targeting the less expressive data model should automatically avoid most ORM footguns. I wonder how it works in practice.
I work with it every day and the the documentation is not the best, but for 95% of pure php projects it’s the Right answer. There maybe other right answers, but propel is definitely one of them.
If you iterate the database as you go, simply create the classes and there you go. I m amazed how good it works.
I m a single developer, so your results may vary, but for small to medium projects it works fine. And most of all projects are small to medium.
All comments shown.
Couldn't load more comments. Check your connection and try again.