8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
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
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
comment 2y ago · link · parent
I expect you will find that service, product, and team all mean approximately the same thing in this context.
comment 2y ago · link · parent
comment 2y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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.