Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

Cryptocurrencies were of interest at one point because they showed promise for providing a way to transfer money electronically in a universal fashion. Eventually the limitations proved too great and interest waned.

This AI wave of which we speak may be slightly different in that it has already proven to solve a certain class of problems, while I'm not sure cryptocurrencies ended up solving any problems in the end, but they both share a similar hallmark of people believing that early promise will lead to complete game changes in the coming years.

That is quite ripe for scams to take hold. It would hardly be the first time where we saw some incremental progress in AI, only to see it stall out and interest wane, but with the grifters trying to latch onto the early hype, convincing others that they have something magical to offer.

comment 2y ago · link · parent

Like a lot of things in life, it's fine. Not good. We could do a lot better, but only with considerable human effort, for which there is not a strong incentive.

comment 2y ago · link · parent

Perhaps I could have chosen to put you in your place, but why would I want to? It makes no difference to me what you think. You have clearly not thought this through.

By avoiding going down that pointless road to nowhere, you offered me some wonderful creative writing that I have been quite amused by. Had I put you in your place instead, all I would have gotten in the end is something to the effect of "Oh, yeah." How boring. That would have been the biggest waste of time ever. The outcome here has been much more beneficial.

And with that, I thank you for the amusement you provided. It has been fun.

comment 2y ago · link · parent

Fun story. If you had put that much effort into actually reading the thread in the first place you would have been able to answer your own question. For what it is worth, it is recognized that you did go back and eventually read the thread – and thus answer your own question – later once you realized how dumb the question was.

comment 2y ago · link · parent

I'm not sure a team is defined by individuals who may come and go. Look at professional sports teams that have been around for a long time. None of the people involved in the team today are the same people who were there in the beginning. The people don't define the team.

I expect you will find that service, product, and team all mean approximately the same thing in this context.

comment 2y ago · link · parent

No more than it is a pain in a service architecture – being the exactly same thing, just in a different economy. As always, if a service doesn't do what you need, you build your own in-house. Just because there is a product on the market is that is kind of, sort of, but not really, what you need doesn't mean you must use it.

comment 2y ago · link · parent

The statement is not considerable as stated. It does not provide enough information to be able to do so. Logically, rationality is context dependent, but the statement is made without defining the context under which it is posed.

The second half of the comment suffers much the same problem. If I wanted to say that the reason was rational (or not), I would need to know under what context it is being said. The reason is undoubtedly both rational and irrational, depending on context. There is not enough information in this thread to establish under what context the reader is intending to interpret the assertion should one want to assert it.

comment 2y ago · link · parent

The same way the economy has always built something new. We have thousands of years of experience in doing that.

You don’t try to build something new with 10,000 developers, if that’s where you have become confused.

comment 2y ago · link · parent

Your suggestion that humans might do something without reason is intriguing. Tell us more, if you are so inclined.

comment 2y ago · link · parent

Perhaps it is easier to understand when you remember that service is not a technical term? People provide service.

In the macro economy, service comes from other companies. If you integrate an LLM into your application, you may use the services of OpenAI. If you integrate payment processing into your application, you may use the services of Stripe. Microservices are just like services, except offered within a micro economy (think a single business).

In other words, it's a team separation technique. You let teams within a business organize as if they were separate businesses and let them offer services to each other as if they were operating different businesses.

How those teams design their software is ultimately irrelevant. The key aspect is keeping active communication between teams to a minimum, using published documentation and API contracts as the mode of communication between teams, just as we do on the macro scale. Getting another team on the phone should be as hard as getting Google on the phone – i.e. basically impossible, but also basically unnecessary.

This is done in large organizations to ensure that developers aren't forever bogged down in meetings. If you have 10,000 developers all trying to work on the same project the communication overhead will kill you. Microservices is a way to try to overcome that. Of course, it serves no purpose in a small company where an economy can't reasonably grow anyway.

comment 2y ago · link · parent

> SQL isn't meant to be used without joins.

Agreed. There was nothing to suggest otherwise. Did you not bother to read anything before replying?

> "users" and "posts" in the example are not unrelated.

They are related as per the graph, but that does not make them related in a relation. These are not equivalent models. After all, if they were suitably related in a relation you wouldn't have two tables in which to join. They would already exist in one relation. A simple `SELECT * FROM kitchen_sink` would do.

> On the contrary there are very good reasons for doing exactly that.

Yes, we went over them in detail. How did you end up here without reading a single word?

> consequently it's not true that there's no business joining them.

That's right, there is a good reason to join them: To overcome the overhead problem, better known as the n+1 problem. That would still be a hack if using an idealized system, or even a practical system that focuses on minimizing said overhead, like SQLite.

In fact, the SQLite docs even tell you should not resort to such hacks while using SQLite as it is not necessary.

> there's nothing inherently wrong with it

That's right. Nobody said there was anything wrong with it. I even explicitly stated it was a good solution in many cases. I still don't understand how you managed to get here without reading a single thing.

> the people who created GraphQL said what they meant and this isn't it

I also said what I meant, but that didn't stop you from going off to la-la land. What makes you so sure you understood what they said when you can't even manage this simple conversation?

> In my view, you are causing real harm but spreading false information on this subject.

You haven't even read the discussion... But go on, let's assume I spread some falsehood. What harm has been caused?

comment 2y ago · link · parent

Same reason why I write anything. Why would this be different?

comment 2y ago · link · parent

When confused, it is best to read the whole thing, not just arbitrarily chosen snippets.

comment 2y ago · link · parent

Joins are fundamental to where joins are a logical operation. But given the specific example of trying to pack unrelated datasets into one relation, to unpack them again on the client, to save on overhead costs is not at all what joins are designed for.

What you are talking about is commonly known as the n+1 problem. It is a problem because the mathematically pure solution does not usually work in the real world due to real world overhead constraints. If computers operated in an idealized world the n+1 problem wouldn't exist, but we live in a harsh reality where not everything works out so perfectly. If joins were meant to be used this way, obviously it wouldn't be a problem in the first place... But it is a problem because that is not what joins are designed for, even if they can help deal with the problem in some cases.

Obviously you can use things beyond what they are designed for, but in this case it only works in the small scale. Give us a complicated example and watch the nightmare unfold. Again, SQL is designed for working with the relational model. The example GraphQL schema is not relational. It describes a graph model. There is, as they say, an impedance mismatch. The closest approximation to a graph in the relational model is multiple relations, and multiple relations in SQL requires multiple queries. In SQL, one query always returns just one relation.

comment 2y ago · link · parent

> the world needs cheaper food now more than ever.

We are getting there. The price of food has crashed pretty hard over the last couple of years, and we're already back to 2019 levels, with little sign of that trend stopping. Barring some major shift, food will be cheaper than ever by next year.

It may not actually be cheaper food that you need, but rather cheaper retail workers. While food has crashed, the price of food in the grocery store still seems to be climbing.

comment 2y ago · link · parent

If you were to use SQL as designed, with an idealized implementation, you would first query the users and then run a query for each user to retrieve the the corresponding posts. That is what the example given describes.

I know that's not exactly practical in the real world. Maybe if you dataset is tiny you can get away with it, but any more you'll soon be killed by the overhead of all those queries in the datacenter, let alone over flaky networks.

So, in the real world you have to find a workaround. Using a join here is a decent workaround with decent tradeoffs. You can condense what might be hundreds of queries into one. It does not come free. There is no free lunch. But the tradeoffs are acceptable in a lot of cases.

But we're also talking about the simplest case imaginable. While it is a reasonable tradeoff for that simple example, those hacks don't scale particularly well as the complexity grows. SQL is not designed for one query to return everything and the kitchen sink.

comment 2y ago · link · parent

> If it's smart, it will resolve the whole thing with one join.

Yes, as a practical engineer that is what you would do to deal with the overhead you have encountered in the datacenter, but you would realize that you are abusing SQL to hack around overhead issues. That is not what you would do in a less constrained environment. Logically, users and posts are distinct relations as it pertains to that example. They have no business being joined here. There is a place for joins, but that's not it.

So already, for the simplest case imaginable, you are using SQL outside of the way it was designed to be used. Which is fine if it gets the job done. Purity can step to the side for the sake of engineering, of course. We are not purists here. But as the complexity ramps up, there will be a point where it stops being a decent tradeoff and enters a point of being ridiculous – where you've ended up recreating GraphQL... but poorly.

comment 2y ago · link · parent

> But SQL is strictly more powerful.

I'm not sure I understand. GraphQL doesn't need to be, nor is it meant to be, powerful. Its only purpose in life is to roll up multiple actions into a single response made from a single request. It was originally designed for those actions to be REST/RPC endpoints, but if you have an SQL API endpoint the same applies.

SQL as an API isn't some novel thing. Your DBMS already does exactly that! We've been using SQL as an API for 50-some-odd years and will probably still be using it for APIs in 50 more. But, there is good reason why we have added layers on top in the datacenter. Don't expect SQL to be a suitable API for the entire world to use.

> which allows to aggregate all necessary data within the same SQL query and being returned as a single response.

If you push SQL to really pained lengths it can be done, but with a whole lot of added overhead elsewhere. There is no free lunch. Best to leave SQL to the job it was designed for; the job it is good at. It's okay to let it have help.

comment 2y ago · link · parent

The trouble with SQL is that it is designed around the idea of being able to execute many queries without any overhead. No problem when you are within the confines of local memory. Manageable when you are in a well connected datacenter. But you will quickly find yourself in a world of hurt when you have clients on flaky, high latency mobile connections.

Okay, so now you find some way to bundle many queries, with allowances for connecting the result of one query to another, into a single request with all the results in a single response. Congratulations, you just recreated GraphQL.

comment 2y ago · link · parent

Consumer preference around food is largely steeped in tradition – i.e. people generally eat what they grew up eating. It is quite possible that a tradition was lost over the generations due to the species decline. In other words, the grocery store might be full of them today if they had remained abundant.

That said, chestnut trees were only ever common in the depths of Southern Ontario. And a quick search suggests that some grocery stores in that region do carry chestnuts, so it seems the tradition has remained alive to some degree.

comment 2y ago · link · parent

> We still to this day struggle to hire qualified engineers.

Yes, that's right. Qualified engineers won't sign non-competes. That is why the business ended up with you instead. But that only goes so far. When nobody will sign non-competes, then businesses have no choice but to abandon the idea, and then they can go after the qualified engineers, which leaves you on the outs.

You are accepting of it because you know it is your way in to a job you otherwise wouldn't be selected for – like you said, they have no interest in employing you otherwise. They are accepting of it because it reduces the risk as an employer, even if that means getting the dregs. It is a mutually beneficial arrangement.

> Tell me how your arguments don't apply to company towns

I guess it might apply to company towns if you hate your neighbours just as much as you hate other workers in your current environment. Although in that case you may be doing them a favour by pushing them out of town. In this case you are clearly acting with malicious intent – selling your soul, so to speak, just to ensure that the worker more deserving and a better fit but who is unwilling to give up themself in the quest for profit is kept out of the job.

comment 2y ago · link · parent

If it mattered to him he would do something about it, not seek your attention.

comment 2y ago · link · parent

They as in he and his bladder.

comment 2y ago · link · parent

McDonald’s doesn’t own those small-town locations. They are franchised, typically by locals. The employer of those low-wage workers is a completely different “corporate” – one that is in tune to the local realities.

The fake agenda pushing is funny and all, but why don’t we just stick to reality? There are real reasons why non-competes are a problem. What is gained from the "But won't someone please think of the (adult) children?" narrative?

comment 2y ago · link · parent

If that scenario ever played out, the workers would not be able to sign the agreement, so the employer would just have to concede. It would be far more costly to close down business (unless it was going to close anyway, in which case your comment is moot) than to take a stand and hire nobody.

Bedsides, if we want to pretend that in your made up scenario that the workers did somehow end up signing the agreements, the employers would quickly run out of people to hire. A small town – one too far away from anything else for others to come in to work – and where everyone has legally taken themselves out of the job market is not a good place to be in as an employer. While employers can benefit from non-competes under certain conditions, they are not universally beneficial.

You offer a fun thought experiment, but in reality a non-compete would not be offered here in the first place.

1
808182
256