Readit News logoReadit News
yeswecatan commented on Delete tests   andre.arko.net/2025/06/30... · Posted by u/mooreds
recursivedoubts · 8 hours ago
One of the most important things you can do is move your tests up the abstraction layers and away from unit tests. For lack of a better term, to move to integration tests. End-to-end tests are often too far from the system to easily understand what's wrong when they break, and can overwhelm a development org. Integration tests (or whatever you want to call them) are often the sweet spot: not tied to a particular implementation, able to survive fairly significant system changes, but also easy enough to debug when they break.

https://grugbrain.dev/#grug-on-testing

yeswecatan · 7 hours ago
I find testing terminology very confusing and inconsistent. Personally, I prefer tests that cover multiple components. Is that an integration test because you test multiple components? What if you system is designed in such a way that these tests are _fast_ because the data access is abstracted away and you can use in memory repositories instead of hitting the database?
yeswecatan commented on Plain – a web framework for building products with Python   plainframework.com/... · Posted by u/brylie
brylie · 5 months ago
Relatedly, in case it's useful, the django-stubs package provides mypy compatible type stubs for Django:

https://github.com/typeddjango/django-stubs

yeswecatan · 5 months ago
While it's truly a great ongoing effort and I am grateful to all the contributors, it's not nearly complete. You may think you're using the correct type until, surprise, you are not.
yeswecatan commented on The Pain That Is GitHub Actions   feldera.com/blog/the-pain... · Posted by u/qianli_cs
hinkley · 5 months ago
There's a long set of steps to making a tool mandatory in a development environment, but the final step should always, always be, "And you will find yourself on a PIP if you refuse to use the mandatory tools."

If people want to die on a hill that is demonstrably causing problems for all of their coworkers then let em.

yeswecatan · 5 months ago
Oh how I wish engineering leadership would actually mandate certain things such as this.
yeswecatan commented on The Pain That Is GitHub Actions   feldera.com/blog/the-pain... · Posted by u/qianli_cs
PhilipRoman · 5 months ago
You can put hooks on the server side of git. It can do pretty much anything that CI/CD can.
yeswecatan · 5 months ago
That requires Github Enterprise (if using GH, of course), no?
yeswecatan commented on The Pain That Is GitHub Actions   feldera.com/blog/the-pain... · Posted by u/qianli_cs
lemagedurage · 5 months ago
I wonder if the complexity of fixing trivial code mistakes in CI is worth it compared to catching them in a pre-commit hook.
yeswecatan · 5 months ago
Unfortunately people will use --no-verify to bypass hooks.
yeswecatan commented on Upgrading Uber's MySQL Fleet   uber.com/en-JO/blog/upgra... · Posted by u/benocodes
anonzzzies · a year ago
Not in our experience; for our cases it is still a resource hog. We discussed it even less than a year ago with core devs and with a large postgres consultancy place; they said postgres doesn't fit our use case which was already our conclusion, no matter how much we want it to be. Mysql is smooth as butter. I have nothing to win from picking mysql just that it works; I rather use postgres as features / not oracle but...

Edit; also, as can be seen here in responses, and elsewhere on the web when discussing this, the fans say it's no problem, but many less religious users feel it's a massive design flaw (perfectly logical at the time, not so logical now) that sometimes will stop users from using it, which is a shame

yeswecatan · a year ago
What is your use case?
yeswecatan commented on Stripe's Monorepo Developer Environment   blog.nelhage.com/post/str... · Posted by u/edran
aidos · a year ago
Maybe a silly question, but why all this engineering effort when you could host the dev environment locally?

By running a Linux VM on your local machine you get a consistent environment that you can ssh to, remove the latency issues but you remove all the complexity of syncing that they’ve created.

That’s a setup that’s worked well for me for 15 years but maybe I’m missing some other benefit?

yeswecatan · a year ago
I came to ask the same thing. We use docker-compose to describe all our services which works fine.
yeswecatan commented on Ask HN: Who wants to be hired? (July 2024)    · Posted by u/whoishiring
yeswecatan · a year ago
Location: San Francisco Bay Area

Remote: Preferred

Willing to relocate: No

Technologies: Python, Django, Terraform, Docker, all things AWS, Jenkins, Github Actions, Postgres/RDS/Aurora

Resume: upon request

Email: glik22@gmail.com

Hi! I bring over a decade of experience as a software engineer. I spent a solid portion of that time as a backend engineer building out APIs in Django. In my current position, I have built upon those skills and acquired plenty of new ones as a platform engineer. A significant part of my role has involved evolving and optimizing our infrastructure (AWS) with a focus on cost savings and maintainability with improved Terraform practices. In addition, I have built and improved multiple internal libraries and services to make our engineers' lives easier. In my next role, I'm looking to leverage these skills and help advance a team to the next level.

yeswecatan commented on How to get the most out of Postgres memory settings   tembo.io/blog/optimizing-... · Posted by u/samaysharma
sgarland · a year ago
Aside from these (most of which have reasonably sane defaults with RDS / Aurora), the biggest thing you can do to help the existing RAM you have is to stop making stupid indexing choices.

You probably don’t need (or want) an index on every column.

You shouldn’t index a UUIDv4 column if you can ever help it (and by extension, you shouldn’t use them as a PK).

Finally, you almost certainly need to REINDEX what you have periodically. I’ve seen indices shrink by 400%, giving back GB of RAM. You want a quick win for speed with zero cost? Gain back enough RAM to have your entire working set cached.

yeswecatan · a year ago
How do you know when you need to reindex?
yeswecatan commented on Is Target selling its excess inventory on eBay and Poshmark?   modernretail.co/technolog... · Posted by u/pavel_lishin
antiterra · a year ago
You can buy Target return/overstock pallets at auction, and a deals account likely just resells that. Target doesn’t have to deal with it on an item level at that point.
yeswecatan · a year ago
How does one find these auctions?

u/yeswecatan

KarmaCake day268June 9, 2017View Original