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

Nobody said you should expose your database to the outside world. Do you not understand the difference between APIs and services?

comment 2y ago · link · parent

You don't, obviously – we already talked about how many don't. But if you don't have a graph of "microservices" in which to query, what do you need GraphQL for? Especially if all you are doing is returning the results from a database. The database will already have its own API. Why not just use it? The native API is always going be better than your attempt to translate.

comment 2y ago · link · parent

It doesn't. That's literally what GraphQL was designed for: To provide a resolver that sits between high latency clients and all of the various REST/RPC services in order to roll up all of the requests at datacenter speeds into one in order to overcome the latency issues.

But you still need all of the various single page REST/RPC endpoints to make use of GraphQL as it is intended. Some developers out there skip the REST/RPC part, making GraphQL their entire service, violating its principles.

If it works it works, but it does not come tradeoff free.

comment 2y ago · link · parent

I don't know about construction, but as a farmer it's pretty natural to look at what your neighbours are doing and if they adopt a new technology in their operation you're at least going to give some thought to doing the same.

But I think it comes with a lot more reluctance and skepticism. You are not likely to jump in head over heels, and even when you do give it a try I expect most farmers will do so with the attitude of "if it doesn't work at least I can always go back to the old way".

The "OMG this is amazing and will solve all of my life's problems" attitude I see in tech certainly isn't there in my experience.

comment 2y ago · link · parent

> Hence why I said "building more supply won't help if it is never for sale".

It doesn't need to be for sale to help with the situation, of course. It still relieves pressure on the demand side. An individual can never afford an infinite number of houses. Even if someone is, as you say, hoarding houses, at some point the last house they build will be the last house they can own and then they drop out of the demand side of the equation.

> who does cheap credit / inflation help more, people with assets or people without assets?

Whomever finds opportunity in it, I suppose. Same as always. Someone sitting on cash assets will be worse off (after all, that's what inflation is: a devaluing of a currency), while someone with no assets can leverage the situation to build real wealth. Even the job market tends to improve in a cheap credit / low inflation environment as businesses use that to chase more labour-requiring opportunities, which is a boon for those who have nothing. There is no one answer here.

comment 2y ago · link · parent

> But if you draw your boundaries to include that additional supply that's hoarded and not for sale, the theory no longer holds. Do you see what I mean now

In the same vein, if we consider the earth to be flat then the law of universal gravitation no longer works. I see what you mean, but I have no idea why anyone would ever want to convey such meaning. Of course you can "invalidate" every law in existence if you completely redefine the conditions under which the law is made, but that's rather nonsensical.

> So when it comes to building more housing supply, it will never help housing prices no matter how much we build, if that supply which gets built is never for sale.

While I am unsure of how this relates to our discussion, I expect you will find that virtually every house is for sale. Sure, there is always a "stubborn old mule", but I'm certain the vast majority of homeowners would not say no to you dropping a billion dollars in front of them.

The biggest trouble is that new construction costs even more than used houses. Nobody is going to purposefully go out of their way to build a home in order to lose money on it. So while building endless new homes would theoretically reduce prices, it would never happen in the real world because who is going to do it? Houses most certainly don't just magically spring out of the ground.

comment 2y ago · link · parent

> Thus price is no longer determined purely by the market supply/demand of the good, but also profit margin of the monopolist.

In fact, the price is "purely determined" by supply/demand in the scenario you gave. The monopolist is using their monopoly position to create artificial scarcity, thus driving up prices. This is consistent with the law of supply and demand.

> would that indicate the world has a water shortage?

Impossible to say without more information. What is happening around the 2L for sale? Are you rejecting the sale based on price (i.e. preventing price from rising), instead selecting who gets it using some non-priced-based mechanism, such as a lottery or first-come, first-served? If yes, then that indicates that there is a shortage. If it is sold using a price-based mechanism, then clearly not. That is a "normally functioning" market.

Once the water is all used up and there is no remaining water supply, where no amount of money can buy more (i.e. preventing from rising), then perhaps you might say that there is a shortage. However, in the real world, absent of some other factor (e.g. price gouging laws), price will keep rising until you are compelled to make more of that water available, so that still wouldn't be a shortage situation.

comment 2y ago · link · parent

> Ask yourself, do Canada, Australia, New Zealand, the US, Britain, Ireland, etc, all have the same inability to build

Of course. Remember, homebuilding continues to be incredibly labour intensive. Meanwhile, all of those countries have enjoyed "full employment" for many, many years. Which means that workers have all kinds of job options.

In other words, you can't build without people. Ask yourself, why would the people choose construction? Wouldn't sitting at a comfy desk programming computers all day be more desirable? The small few who enjoy it can’t keep up.

Do you work in construction as a career? If no, why not? What would it take to get you to start building houses? Higher compensation than other jobs, perhaps? But guess what high compensation brings...

comment 2y ago · link · parent

> What many people seem to not even know, is that the theory only holds true under competitive free market conditions and falls apart under captive/uncompetitive markets.

Why would the law of supply and demand fall apart under captive/uncompetitive markets? A captive or uncompetitive market may impact the quantity of a good or service available and/or the quantity of a good or service willing to be purchased at a given point in time, but that doesn't change the law.

> Many also assume trade volume is necessarily representative of a supply shortage, when that isn't always the case, as "supply" and "supply for sale" are two different things.

Huh? Supply is characterized by being "for sale". Of course, a shortage occurs when price is prevented from rising. Housing certainly doesn't have that problem. The so-called "housing shortage" is really an issue of latent demand – people desire homeownership but can't afford it.

comment 2y ago · link · parent

> and protons a negative one.

A "pro" negative? That introduces a whole new confusion.

comment 2y ago · link · parent

Stands to reason. The brain has to constantly resolve ambiguity when reading natural languages, while artificial languages are (usually) designed to be free of ambiguity.

comment 2y ago · link · parent

> Instead of calling B from A, you have to wrap B in an interface, instantiate it, pass it to A, and make the call.

There is a place for interfaces, but not all dependencies need to be interfaces. The database handle mentioned in the previous comment is a good example of where dependency injection can be useful without the need for interfaces. In your configuration example, a string path to the configuration file might be the useful dependency.

comment 2y ago · link · parent

> I suppose you live in a bubble where "script" is almost all code ever written.

Most tasks humans perform are in following a "script" so stands to reason that software would carry that forward. Why wouldn't most code be of the script variety? It would be quite surprising if that wasn't the case.

> which makes me think you're not even a software engineer at all, are you?

Appeal to authority and ad hominem at the same time. Intriguing.

> I guess that you're talking about embedded development???

I am talking about scripts and systems. You had this figured out earlier when you linked to Wikipedia. It was right there in front of you. Why the confusion again all of a sudden?

It is probably true that embedded device work is generally system in nature. It is likely that their typical workload isn't amenable to scripts, although there are some obvious exceptions, so perhaps that is what you had in mind there? But systems certainly aren't limited to embedded work.

> Where Exceptions are not used because they're a bit too costly

While I respect your ability define words as you see fit, if you really want to be the word pedant, we're talking about errors, not exceptions. Specifically carrying errors via exception handlers. It is not unusual for embedded systems to store exceptions, even in C, but that is well beyond the topic at hand.

It is always funny when the pedants aren't even technically correct. Well, at least you tried. You will always have that.

comment 2y ago · link · parent

That's fine. Obviously words can mean anything and naturally one would ensure that they are aware of what they are intended to mean in a given context before going any further if there is any lack of clarity. As there was no earlier questioning of what they might mean, there clearly was no issue with clarity. To backtrack now is strange and hilarious.

But I posit that the "definition" is consistent with the literature. Scripts carry out a defined set of tasks and if something goes wrong they can simply fail, wait for the problem to be resolved, and then try again. Systems don't have the same luxury. They have to find alternative solutions when fault occurs. "An error occurred. Try again later." is not acceptable for systems, but is acceptable and perfectly valid for a large class of computing problems.

Again, "try/catch" is great for scripts as most of the time you just want the error to "bubble up to the top" to notify the user, or whatever, anyway. Such a thing would be unthinkable in systems, though. When you actually have to deal with errors at every turn, "try/catch" is a slog, and I would argue a poor mental model to boot (what's special about errors that deserves something different?).

It turns out that software development is an engineering endeavour, not a religious one. Different tools for different jobs.

comment 2y ago · link · parent

It seems you agree. Systems and scripts are not differentiated by the size of the codebase. The way you speak about errors, like "being tempted to swallow errors" and "returning Result from every single function", suggests that you are accustomed to writing scripts. Which isn't unexpected as a lot of computing workloads are script in nature. And, indeed, the 'try/catch' model is well suited to it.

But it not fun when writing systems. That is why we have different tools for different jobs.

comment 2y ago · link · parent

> I don't understand the hiring people industry.

Not many do. Especially those doing the hiring. The thing is, there isn't much business value in making it a core competency, so employers just wing it mostly based on copying what they see someone else do, without any attempt to measure effectiveness, combined with plain old hope and prayer. The result is what you have witnessed.

comment 2y ago · link · parent

> error passing is via try/catch, which is the best error handling pattern we've figured out so far

The best error handling pattern for scripts we've figured out so far, but at the same time the worst error handling pattern for systems known to man.

comment 2y ago · link · parent

The root problem is that democracy requires active engagement. It turns out the hired representatives are not mind readers. However, those with means are able to give more engagement, and thus are disproportionately represented. The squeaky wheel gets the grease, as they say. The guy who is in their representative's face every single day is going to be more apt to get his way. The people who have never even spoken to their representative, even just once, most definitely won't get their way unless by sheer coincidence.

There is no solution to that problem other than to give up democracy, but the alternatives come with their own set of trade-offs. The wonderful world of people problems.

comment 2y ago · link · parent

While there may be some material value to a property, as the saying goes: Location, location, location. In other words, it is the things like crime that ultimately define a property's value. That is why property value decline is of concern to property owners. It is all the same at the end of the day.

comment 2y ago · link · parent

> None of the athletes are going there looking to conceive.

You certainly won't be winning a gold medal in conception with that attitude. At least you wouldn't in the progressive society that hosts said Olympic sport.

comment 2y ago · link · parent

To call a person with agency and rights a "deepfake" is the most bizarre thing we have seen yet. Get back to us when you get around to reading the discussion.

comment 2y ago · link · parent

This is a bizarre take. If your doppelgänger stars in a porn video, or whatever else, that is for them to choose. You don't have rights to them just because you happen to share the same likeness.

> When a news reporter is doing man-on-the-street interviews, you have to sign a release that allows them to broadcast footage of you.

If used commercially, yes, without such release you could claim that you were party to the commercial business venture and thus are owed due compensation. Indeed, the broadcaster will seek protections against such a claim. But a hobbyist filming you, the "man on the street", for sheer enjoyment would not require a release.

comment 2y ago · link · parent

> You do not have a right to put me in porn of your choosing.

He does not have the right to use your flesh to produce a porn of his choosing, but does he not have the right to employ your willing doppelgänger? There is no reason to think that likeness is exclusive.

comment 2y ago · link · parent

> they would do well to address the issues that prevent young adults from feeling financially secure in this way.

To be fair, that does appear to be happening, if slowly. The largest financial drain on young people, college, has shown decline over the past several years. There is still a lot of social entrenchment to overcome, though; like trying to convince marriage hopefuls that they don't need to buy an expensive diamond.

comment 2y ago · link · parent

Perhaps, but there is nothing free market about financial services.

comment 2y ago · link · parent

Different people with the same name?

comment 2y ago · link · parent

> It's just a struct though, not an object. There's no functions or methods on it

Object-relational mapping was originally coined in the Smalltalk world, so objects were in front of mind, but it was really about type conversion. I am not sure that functions or methods are significant. It may be reasonable to say that a struct is an object, for all intents and purposes.

A pendant might say that what flimsy definition Kay did give for object-oriented programming was just a laundry list of Smalltalk features, meaning that Smalltalk is (probably) the only object-oriented language out there, and therefore ORM can only exist within the Smalltalk ecosystem. But I'm not sure tradition ever latched onto that, perhaps in large part because Kay didn't do a good job of articulating himself.

comment 2y ago · link · parent

Spring seems like it comes later and later to my eye. When I started farming in Canada we would have the ground prepped in mid-April and were really to start planting May 1st.

In the last 5-10 years we struggle to even get on the ground until mid-May. This year is no exception. May 13th already and we have only half of a field planted so far.

1
454647
256