17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions
Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.
And embersofvictory.com
Retro turn-based strategy game.
comment 5y ago · link · parent
Can you expand on that? The chain of reasoning is probably clear to you, but I can't follow it.
> For example, I do most of my development thru Hasura now. It writes insanely performant SQL queries translated directly from GraphQL. As a data consumer, you only have to worry about the shape of the data you want, and none of the implementation details. There is one endpoint, and you pass it queries against the schema it exposes. Implementation details are abstracted heavily here, but in a "good" separation of concerns way.
I like Hasura a lot, I've advocated it at a previous company I worked for, and after many months of meetings I got it approved to add to our stack - which was then never prioritized, but that's another story.
> I will never hand-write SQL again. Why would I? My front-ends can load everything in my data model expressively and with type safety thanks to graphql-codegen.
I don't think writing GraphQL is superior to writing SQL, and again you have to think not just in terms of GraphQL but also in terms of how Hasura translates that to SQL under the hood. I am slightly biased though, because I'm creating on a framework to query the db using SQL from the frontend, I'm curious how you think that would compare with Hasura: https://github.com/sqljoy/sqljoy
> Now imagine you read this and realize you work in a completely different method and this answers some of your problems. You may start parallel development, but you certainly can't stop forward progress just to evaluate your stack.
I'm not really sure how this connects to my argument about complexity, although I think the link is clear to you, can you expand on that?
comment 5y ago · link · parent
To use an ORM effectively you must learn both the API of the ORM and SQL. It does not absolve you from learning SQL, which I think was one of the unstated attractions to junior developers. Then you have to map between the API of the ORM and how it translates that to SQL under the hood. Then you have to understand how it handles caching and sessions and how that all works under the hood. This has been the source of so much complexity and so many bugs over the years that I no longer think the benefits are worth the cost. As always, there are exceptions and caveats, but I now believe it's better to use SQL directly than to use an ORM. In general there is too much complexity in all the layers of abstraction in software development these days, and I think the industry is strangely blind to the consequences of this. Complexity is death to software, and it should not be taken on lightly. The entire craft of a software engineer boils down to eliminating complexity and simplifying problems, the better you can do that, the more productive an engineer you will be.[1]
[1] https://github.com/sqljoy/sqljoy/blob/master/docs/pages/orm....
2501.
Breaking Free from the ORM: Why Move On?(medium.com ↗)
2 points · by eloff · 5y ago · 1 comment
comment 5y ago · link · parent
comment 5y ago · link · parent
The courts and regulators have completely failed the people here. Why do they not slap the banks and credit rating agencies down for this behavior? They are failing egregiously to protect the little guy here.
comment 5y ago · link · parent
/\*
\* A sleep function that returns a promise.
\*
\* @example
\* Sleep for 100ms
\* ```
\* await wait(100);
\* ```
\*/
export async function wait(ms: number) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
}comment 5y ago · link · parent
The problem is not that your SSN can be leaked, the problem is that it shouldn't be trusted in the first place.
How is it a thing that a bank can give a loan to anyone claiming to have my name and SSN, without verifying that, and then hold me legally responsible for their lack of judgment? And the court protects the bank?
The problem here is the banks are being dumb, and rather than letting them suffer the consequences of that stupidity - the court makes it my problem. The legal system has seriously failed Americans here.
comment 5y ago · link · parent
comment 5y ago · link · parent
That marginal effect is exactly that, marginal. It makes as much difference as adding a single drop of water to the ocean. If you're doing a risk calculation, which is what we're talking about - not a moral calculation - then adding zero to any term in the calculation doesn't change the result.
I know where you're coming from, your heart is in the right place, but your mathematically wrong here.
> Of course group action is more meaningful, and that's why this group of investors is pressuring a group of banks.
That's the only way it can work. I wish them luck.
comment 5y ago · link · parent
A certain amount of any job is going to be drudgery, that's why they have to pay you to do it. But if it is mostly drudgery then it's time to change jobs or careers.
comment 5y ago · link · parent
I turned the job down. The whole process wasted tons of my time and theirs and could have been avoided if they had just been upfront about their policies instead of writing useless crap about how great their culture is in the job ad.
comment 5y ago · link · parent
Try to be the best version of yourself, not the best in the world. This constant need to compare yourself with your peers and neighbors and edited Instagram models is very unhealthy. It is the exact opposite of the road to happiness.
comment 5y ago · link · parent
The stock market, no, but the ability to invest/allocate capital is quite fundamental to capitalism. The stock market is merely one incantation of that. Let's take your criticism as only pertaining to the stock market.
> The cost of the stock market is clear. The stock market causes and amplifies inequality. This isn't controversial.
I'm not going to give you that one. The stock market enables the public to invest in these companies. That's why they're called public companies.
If you ditch it, suddenly only wealthy venture capitalists can do that. This has been happening more and more with companies starting private longer and longer thanks to abundant private capital that doesn't bring the onerous regulations of being a public company. Unfortunately that seems to be increasing inequality, as the public has been cut out of these kinds of riskier but high growth investments.
I'm sure there is a better way of doing it, but it isn't as cut and dried as you suggest.
comment 5y ago · link · parent
comment 5y ago · link · parent
I've been working part time, fully remote last year and it was wonderful. I don't think I'd go back to full time work.
After achieving enough trust with the company, I negotiated working alternating weeks. Having a 9 day weekend every 5 work days is incredible. Yeah, I didn't make much money, but I spend that time on my startup, so maybe it will pay off one day. Either way it is a lot more fun!
comment 5y ago · link · parent
Elon Musk, with his brother received a $28,000 investment from their father in their first business. That's a lot, but not more than many kids receive toward their college education. When they started they could only afford one computer, so the site was up during the day and down at night so he could write the software.
Not nothing, but hardly ridiculous inherited wealth either.