Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions

Founder of revscope.co

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.

Submissions

comment 5y ago · link · parent

Surely most of it is in cold wallets of some kind that can't be stolen that way - or has nothing been learned since Mt Gox?

comment 5y ago · link · parent

I agree, I never remember the syntax for the json operators either. I'd rather functions which are readable if you don't remember what they do. Operators need to be looked up. This emphasis on terseness over readability was one of the reasons I abandoned perl long ago.

comment 5y ago · link · parent

I see, their long term goal is to make and sell an enterprise data access layer / tooling on to of databases and data sources, like those used inside big tech companies to mediate developer access to data.

comment 5y ago · link · parent

Thank you! I was freaking out about my beloved coffee addiction.

comment 5y ago · link · parent

You may be right, but I'm inclined, especially with government, to not attribute to malice that which can be adequately explained by incompetence.

comment 5y ago · link · parent

I think they don't, yet. I'm sure they have a plan for that, probably some kind of managed cloud service.

comment 5y ago · link · parent

> Well, I think if you're not blind to those things to some degree, you're stuck forever in a best-practices search, which I feel like more often than not ends up implying you have to rewrite your stack.

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

I get that the arrow function notation is less verbose, but I disagree with calling function syntax "tricky". It really doesn't matter much. You need the type on ms though (if using typescript), and export.

comment 5y ago · link · parent

That's not true if you just return the promise instead of using return await, right?

comment 5y ago · link · parent

I don't like ORMs, but Prisma is one of the better ones. It avoids a lot of shortcomings of popular ORMs. I hope they find a way to make it work as a company. I've been following them over the years from the beginning of their journey through various pivots.

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

I actually think we should do the opposite. Publish the name, birth date, email, ssn, etc of everybody in the country. Most of that is public knowledge by now anyway. But make one really good central db out of it open to all and companies will have to stop pretending it's a secret.

comment 5y ago · link · parent

And it could take up to a decade to sort out in the courts at your own expense.

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

You can also do this with a wrapper around setTimeout, if you're in an older environment:

  /\*
   \* 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

How does a blockchain solve it in a way that a centralized db does not?

The choice of db does nothing to address the underlying problems. Which was my point.

comment 5y ago · link · parent

Or you know, a centralized database.

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

esbuild changes the game. Before we have a dynamic language with a compile step that compiles slow like a C++ project. All the disadvantages of a dynamic language combined with the disadvantages of a compiled language. In the browser you have no choice, but to use that setup on the server with node or on mobile with react native was questionable. Now with instant builds, you've got a dynamic language back - and one that mops the floor with Ruby and Python in terms of performance. You now have just one language to hire for, all your developers can work on our understand any part of the code, and you can share code between server and client. The time for universal JavaScript is here.

comment 5y ago · link · parent

> There is a spectrum of possibilities, and marginal changes can have marginal effects.

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

Honestly, yes. You're going to be doing this for a long time. A sizeable percentage of your entire life. If you're not enjoying it while you're doing it - it doesn't matter how much money you're making. You're just not going to be happy like that.

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 had a job offer from an IBM company once. The offer negotiation part happened directly with IBM. The salary went to hell because I live in Canada, and although the position was fully remote, they took away the juicy US salary and offered me a sucky Canadian one. The main reason I work remote is to not get stuck with a Canadian salary. In addition they stated that everything I do at any time is owned by them. I had a side project, so I applied for an exemption. It went through legal for a couple weeks. It was denied.

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

I've come to this same conclusion over the years. I'm a good programmer, probably top 1%, but that means there are a hundred thousand better programmers out there. I've come across some that can do things I will never be able to. I'll likely never be the best at any one thing. But I strive to improve at all the things that matter to me. I even have a spreadsheet titled "better than yesterday" where I track my progress.

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

> That's a straw-man. I've said nothing questioning capitalism. The stock market isn't a necessary component of capitalism any more than subprime lending is.

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

Climate change is not the end of mankind. Your point is valid without the hyperbole, but see my comment above for why it doesn't necessarily matter to the bank.

comment 5y ago · link · parent

Not to the bank. The bank's actions won't make one iota of difference either way to climate change. All the banks acting together could - but each individual bank, much like each individual person can do nothing that will matter. It's a tragedy of the commons. So it's not an actual risk to the bank acting alone in its own interest - despite the fact that the risk to humanity as a whole is very real.

comment 5y ago · link · parent

I'll take what's behind door number two.

Teslas have all kinds of telemetry they report back. Shouldn't they be able to know for sure?

comment 5y ago · link · parent

We're not talking about that kind of risk to humanity here. We're talking specifically financial risk to the bank.

comment 5y ago · link · parent

Just look for part time positions. You can also try to make your own by applying for full time jobs and then springing the part time thing on them at the salary negotiation phase. Yeah, some will balk, but make a cogent argument about how working less hours means your performance per hour should be higher. Which is easily supported by current research. Provide citations if you want. It's sufficiently hard to find good developers, that if you're good enough you can get jobs like this.

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

Because they don't have bad credit. This is more similar to how some banks reuse service to pornstars. If banks are making decisions for non financial reasons that seems problematic to me.

If they really see it as a risky investment, that's fine.

comment 5y ago · link · parent

A great deal for Ireland, a terrible deal for Europe.

Ultimately I think there will need to be some kind of international agreements on taxation to prevent these kinds of tax dodges. They'll just find the next loophole now that this is closed.

comment 5y ago · link · parent

As a child of South African parents I find this quite offensive.

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.

1
838485
184