770 karma · joined Apr 12, 2013 (13y ago) · 211 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
I just completed a big refactoring. We have a good suite of tests. But Sorbet has provided an added layer of confidence. Especially when it comes to the treatment of null values. Sorbet will raise an error if you try to call a method on an object that may be null. So it forces you to think through: what should happen if the object is null?
So the tests combined with Sorbet typechecking made that we could just almost blindly deploy refactoring after refactoring, with only a handful of bugs for several 1000s of lines of code changed.
comment 3y ago · link · parent
This explains why BigTech supports regulation. It distorts the free market by increasing the barriers to entry for new, innovative AI companies.
12.
We raised €500k and what it means for you(curvo.eu ↗)
2 points · by yoran · 3y ago · discuss
comment 3y ago · link · parent
16.
What a fintech company learned from posting 30 TikTok videos(curvo.eu ↗)
3 points · by yoran · 4y ago · discuss
comment 4y ago · link · parent
I also respect their honesty. They tell you "we get you from A to B the cheapest way", no more. Traditional airlines' ads are all about traveling in luxury, which is extremely dishonest considering 99% of their travelers experience a not-far-from-Ryanair level of comfort.
comment 4y ago · link · parent
I'm sure that there are limitations for larger teams or if you have specific requirements. But I think it's a great choice if you're a small team and/or your application is more or less run-of-the-mill from a technical point of view.
comment 4y ago · link · parent
- complex pure functions. For instance, I have a street address "cleaner". The input is an unclean street address (weird capitalisation and so forth) and ouputs a clean address. Unit tests are perfect here because they're fast, and it's an isolated piece of logic that has no side-effects (no writing to DB or network request).
- wrappers around third-party libraries. Yes, in theory you're supposed to trust that a library will respect its API unless major version changes etc. In practice, it's not the case. And I'm also lazy and don't want to read all the release notes of all the libraries when doing updates. By wrapping a utility function from a third-party library and unit testing that function, I can have real confidence that the library still works in the way I'm expecting it to work. And it fails loudly when it no longer does.
Outside of these, I only have end-to-end tests that test the whole stack: send a GraphQL query and check that the resulting JSON is what I expect.
comment 4y ago · link · parent
For your business to succeed, you must play each role:
1. The Entrepreneur: a future-focused visionary who pursues opportunities
2. The Manager: a past-focused worrier who plans and organizes
3. The Technician: a present-focused worker who concentrates on the task at hand
Solo developers (also technical startup founders) spend too much time in their Technician role. But you need all 3 for your business to succeed.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
I get your point that denoting it a "two-party system" only makes it worse. But I don't know how to bring it up without mentioning it :-)
comment 5y ago · link · parent
My hypothesis is that a two-party system creates the divide because it encourages such a powerful "us vs them" feeling. I've never seen such disdain or hatred towards people on the other side of the political spectrum as in the US. I'm from continental Europe and that divide there is much less present. And I think it's because we have so many different parties, that the "us vs them" feeling isn't so powerful.
Sure, social media and the completely politicized media landscape exacerbate the issue. But I think the root cause is the two-party political system.