Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bvirb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
bvirb
4y ago
For many cases I think you can refresh the page. The context (the same page) is mostly still there. I think it really depends on what the user is expecting to do next. For example if the modal was “are you sure you want to delete this recor
32.
▲
by
bvirb
4y ago
I have plumbers in my apartment right now fixing a leaky drain pipe between two floors. The first thing they did was show me why they were going to need to rip out a 10 foot length of ceiling and re-do a whole section of pipes to fix the le
33.
▲
by
bvirb
4y ago
We're working on a project that was inherited from previous engineers with no crossover. The first thing we did was write an end-to-end integration test suite for all the features we could find, which has grown more comprehensive over
34.
▲
by
bvirb
4y ago
Imagine you want to stop someone from brute-force password attempts on your users. You could add some code to lock a user out after a specific number of attempts within a given time period for that username. But then say it's a real us
35.
▲
by
bvirb
4y ago
Rodauth is really great. We had a partially hand-rolled solution and it was time to add MFA so decided to migrate rather than build more of our own authentication logic, it was definitely the right call.
36.
▲
by
bvirb
4y ago
That is interesting. To me I think the neat thing about Bitcoin is that the decentralization and lack of intrinsic value are exactly what make it (mostly) purely market driven. Blockchain/decentralization as a technology I'm not v
37.
▲
by
bvirb
4y ago
I thought Bitcoin was a really neat idea as an experiment of a completely market driven asset. It seems like it still could become/already is that (I think this is called the "digital gold" idea). Of course when the mania set
38.
▲
by
bvirb
4y ago
I can certainly see why someone with a history of being called crazy for whatever reason might be hurt when someone at works casually calls them "crazy" for something, even if they understand it was meant differently in that conte
39.
▲
by
bvirb
4y ago
Yeah this is the argument I usually hear for why things are this way. You have to keep the guy in the factory slaving away making widgets so he can afford the Mercedes that the ad promised would make him happier so that the girl in the lab
40.
▲
by
bvirb
4y ago
This is also usually the twist of the what makes a 10x engineer articles I've seen: "hey we don't actually need this, ticket closed" -- but all day.
41.
▲
by
bvirb
4y ago
The Sequel ORM (mentioned in this article) is absolutely amazing. There is a plugin for Rails to swap out ActiveRecord with it as well. It does a good job of letting the DB do its job. Like you can define complex constraints on tables in yo
42.
▲
by
bvirb
4y ago
I think what made this work for us at work is that we (maybe accidentally) made refactoring very cheap and easy. We write almost entirely integration tests that only interact w/ the UI, so not much about the tests is tied to our archit
43.
▲
by
bvirb
4y ago
We spend more on Heroku CI than we do running our app on Heroku and it's well worth it. CI runs on (almost) the exact same platform as production and we don't have to maintain any of it. When Heroku removes a package from their ba
44.
▲
by
bvirb
4y ago
It's pretty nice using RLS that the entire query will follow the rules applied in the database. So for complex queries with say joins and/or subqueries they will all automatically follow the RLS policies as well. In our case we al
45.
▲
by
bvirb
4y ago
We ran a multi-tenant SaaS product for years w/ a schema-per-tenant approach. For the most part it all worked pretty great. We ran into issues here and there but always found a way to work around them: * Incremental backups were a pain
46.
▲
by
bvirb
4y ago
In my experience I think it usually comes from a mistaken idea that all fields of science are equally predictive, which I think comes from a popular misconception that "science" = "physics". I think we colloquially get d
47.
▲
by
bvirb
4y ago
We're happily using Heroku in prod. One nice thing for us is that we also use Heroku CI so our tests run on the same infrastructure as prod, and the pricing for Heroku CI is just based on usage with no concurrency limits so everyone ca
48.
▲
by
bvirb
5y ago
I agree! I recently read this article about how everybody misunderstands the SRP and uses it wrong: http://www.softwareonthebrain.com/2022/01/the-misunderstood-... Notably it was retweeted by the author of the SRP
49.
▲
by
bvirb
5y ago
When the giant Equifax hack happened creditors had to start doing more diligence to make sure they weren't allowing fraudulent borrowing since it was happening so frequently. So optimistically maybe having lots of information public an
50.
▲
by
bvirb
5y ago
Is TDD really about never figuring out unknowns using untested code? What about using diagrams? Or white boarding? Test first design makes a lot of sense, but when you’re unsure about the design using code to figure it out seems just as rea
51.
▲
by
bvirb
5y ago
Same here. So much so we've basically just dropped "unit" testing in favor of integration testing. I guess we still call it TDD though. I was actually surprised what the author was describing was somehow _not_ TDD. I thought
52.
▲
by
bvirb
5y ago
When I find code I don't understand the purpose of in code reviews I ask the author to document the purpose in the code so that the next person (likely future them) won't be confused by it like I was. I find they often end up chan
53.
▲
by
bvirb
5y ago
This sounds like the same discussion I always see about the SRP. I think the root of it is that whether you're following the SRP can always be true, depending on how you're looking at your code. If the one thing your code is suppo
54.
▲
by
bvirb
6y ago
I think one way to look at it is that RH based their company off of amassing a huge number of retail customers and selling their deal flow. They then pissed off a huge number of those retail customers with a surprise and un-announced change
55.
▲
by
bvirb
6y ago
My (small) company didn't skip a beat moving from entirely in office to entirely remote. In retrospect we were already having all of our conversations on Slack when we were in the office. The key was we were always listening to music i
56.
▲
by
bvirb
6y ago
Interestingly I think they're not entirely incompatible. If the funds can't cover their positions they will attempt to get money from somewhere. This could be loans or selling ownership of the fund, probably to other funds as it l
57.
▲
by
bvirb
6y ago
https://www.powercycletrading.com/what-is-a-high-short-inter... . > Short interest as a percentage of float above 20% is extremely high > A high NYSE short interest ratio means that the stock market as a whole is vulne
58.
▲
by
bvirb
6y ago
I find trying to decide on "proper abstractions" can also cause the same issue as trying to design for scale: you have to make complex design decisions based on how the future might turn out (which components might you need to rep
59.
▲
by
bvirb
6y ago
I agree coupling your tests to your code will cause resistance to refactoring as the tests have to change w/ the code. Lack of coverage also causes the resistance due to breaking things. I think you have to find a balance. We write alm