8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
Stop and think. If you actually did somehow mistakenly believe it was a one-on-one with another person, why would you but your head into the conversation? That would be completely illogical. There is a curious contraction here.
comment 2y ago · link · parent
There are ORM toolkits that help produce the code to perform that mapping to save you from doing it by hand (although you can do it by hand, if you so wish!), but not even they could shove query building in the middle. Query execution has to happen before ORM can take place. You cannot perform ORM until you have the relation already in hand. (Mutation cases are in reverse, but I know you are capable of understanding that without it spelt out in detail)
What would it even mean for ORM to include query building?
If I'm reading you right, you seem to be saying that database helper libraries often include both query building and ORM toolkit features, usually along with other features like database migration management. Which is very much true. But why would you call one feature by the name of another? If you call query building ORM, is ORM best called database migration?
comment 2y ago · link · parent
Not really. Without ORM, your entire application is now tied to sets of tuples (i.e. relations) instead of rich graph structures (i.e. objects), but the relation need not be equal to the relation returned by the query. You could still have a transformation from one relation to another.
Not since the PHP days of embedding MySQL calls right in the middle of HTML have I seen anyone carry relations from end-to-end, though. The idea that anyone is not doing ORM these days seems like a straw man.
comment 2y ago · link · parent
Some ORM toolkits bundle query builders as a secondary feature, but they are still logically distinct features.
comment 2y ago · link · parent
This may be your misunderstanding. The 'equation', for lack of a better word, is supply and demand, not just supply. Market conundrums can normally be solved by change in either supply or demand.
A shortage occurs when a situation prevents price from rising, thereby warding off a change in demand. This is where an alternative selection mechanism — examples including a lottery, needs-based, or first-come, first-served — will typically step in to solve the dispute given the constraints in supply.
> Shortage is less information
Less information than what? As you can see, when we removed shortage in the above examples, the reader was left with the exact same information. No information was lost at all. Shortage added absolutely nothing.
comment 2y ago · link · parent
If there was a situation where price was unable to rise, and you found some way to enable price to start rising again thereby seeing a reversion to a price-based mechanism, yes, you 'solved' the shortage.
> For example, if there's a lottery then simply allow resale after the lottery runs.
Or just allow price to rise in the first place, not requiring a lottery to fall back on at all. If you can wave your magic wand like that so easily, I'm not sure what you've gained in the indirection?
Of course, in reality, if price is unable to rise before the lottery, for whatever reason, it's probably still not able to rise after the lottery. Sure, if it is policy driven you might be able to change the policy, but, again, why not change it right from the get go? You don't need to wait.
> We can establish a ballpark for what a sensible price is for most things.
Okay, let's put that to the test. OpenAI releases true AGI tomorrow. What's the sensible price for it? I've picked my number. Now you pick yours and let's see if we're in the same ballpark. What happens if you aren't in the same ballpark as me? Does that not invalidate your claim?
My intuition is that the only way we can come to agree on a ballpark is if we actually stop and talk about the numbers. Which is all well and good, but just saying "there's a shortage" does not get us there. "Shortage" does not communicate anything here.
> If every house costs $1-10, there is not a shortage. If every house costs $1B-10B, there is a shortage. I think over 90% of people you ask would agree with those two statements.
But what have you communicated with the use of shortage? Let's remove shortage and just say "Every house costs $1-10" and "Every house costs $1B-10B". What information was lost in the removal of "there is/there is not a shortage"?
Are you trying to use shortage as an indication of your emotions? As in, "Every house costs $1B-10B, there is a shortage." being roughly analogous to "Every house costs $1B-10B, I feel that is too expensive."? If that's the case, how can others agree? What grounds would you disagree on? You can't logically dispute how someone else is feeling. That like you saying "My romantic partner is great, I love them." with the retort "I disagree, you actually hate them!". It is nonsensical.
comment 2y ago · link · parent
Hard problem, though. I can ship to locals, which is the vast majority of my customer base, for practically free. But occasionally I get a far-away order where shipping is tremendously expensive.
If the price is inclusive, all my local customers have to pay substantially more just to cover the occasional order from far away. That's a lot for them to burden, and likely they'll stop buying. Nobody will pay an infinite amount for something. Alternatively, I could cut off sales to those in far away places, but that doesn't help me or them. They are buying from me because they want my product.
The obvious solution is simply to let those in far away places who still want to buy the product to pay a shipping fee on top commensurable with the added costs of getting the product to them.
comment 2y ago · link · parent
Here you go: https://www.youtube.com/watch?v=aEMT7D7O-ts
Okay, maybe not technically put on, but perhaps you don't actually need a faster horse?
comment 2y ago · link · parent
If you're reading articles about how some new tech is "almost here", you can be sure it's not. When radios start to go silent, that is when you might want to take notice.
comment 2y ago · link · parent
What it does not lack, however, is enumerations. Enumerations establish the number of something. Go has that feature. That's all enums are. Nothing more, nothing less. Other languages have additional features, like value constraints, that can enhance the use of enums, but those are entirely different features.
The idea that Go doesn't enums because it lacks those other features is like saying that C doesn't have loops because it doesn't have the equivalent of Go's range operator. How ridiculous. Obviously C has loops. Anything else that might enhance those loops is a separate feature.
comment 2y ago · link · parent
No...? That doesn't make any sense. People also have to give up when there is a shortage. Some people giving up is a constant here. I am sorry to report that the world does not have infinite resources. Economics is a thing only because we have to manage allocation of the limited resources.
If you want to take that angle, the mechanism by which they give up is what is significant. If they give up to a price-based mechanism, then you have what is considered a normally functioning market. But if price is unable to rise and thereby they have to give up to some other mechanism, then you have what is considered a shortage.
> You claim my definition makes everything a shortage
Frankly, I have no idea what your definition is. I stated that if you want to consider dreamers participants in the market then everything that comes with a cost is in shortage. Obviously. That's why there is a price. If we had the resources to allow everyone to have everything they could ever dream up, everything would be free. Any time you see a price of more than free – even just 1¢ - you know there are people wanting more of something than there are of those somethings available.
If it is that this does align with your definition – which I'm guessing is why you called it your definition – what are you communicating by exclaiming 'shortage', exactly? It doesn't say anything.
comment 2y ago · link · parent
You’re thinking of sum types, or at least something like what Pascal has which is a variant on sum types only with support for integer tags.
That’s not a property of enumeration. Enumeration is simply about numbering. Literally the dictionary definition.
comment 2y ago · link · parent
Maybe you’re thinking of the new definition that has recently emerged from confused Rust users that’s just another name for sum types? That’s actually sum types, not enumeration, though.
Letting an error bubble up isn’t handling it. Still interested in seeing what other languages are doing to eliminate the boilerplate when handling errors. For some reason you forgot to speak to it…
comment 2y ago · link · parent
But that's what the house is worth. As the saying goes, something is only worth what someone will pay for it, and $2 is the only possible offer here, given the hypothetical scenario.
Absolutely someone will give in to the $2 offer eventually. People pass on. The estate isn't going to leave the property just sitting there paying $6k per year doing nothing, when, again, it is only worth $2. It is not worth $1M in this hypothetical scenario. I don't know where you dreamed up that idea. Given the conditions of the hypothetical, there is literally only one buyer, and that buyer is only paying $2. It's a $2 house no matter how you slice it.
Again, it's other buyers willing to pay more that push you to pay more.
> But the overlap between home buyers in Toronto and tech investors who do seed rounds in Silicon Valley is very small, especially for entry level homes.
A few things:
1. Even just one party losing interest in buying a house who has decided to reallocate the funds to a different investment can start to change the dynamic. This idea that every homebuyer needs to consider investing in something else is unfounded.
2. There are knock on effects when someone provides seed funding. Maybe they sold their stocks in Coca Cola to cover the seed, for example. That opens a vacuum that someone else needed to fill – can't sell Coca Cola stock to nobody. Eventually the money is going to be drawn away from housing given the change in allocation, even if through many layers of indirection.
3. The money also isn't leaving necessarily because of investment. There is also an outflow on the consumer side. Tech wasn't showing promise because nobody wanted anything to do with it... If you were prepared to spend every last dime you have on your house to buy into a market you otherwise couldn't afford, but then Jobs just announced that "one more thing", that shiny new iPhone is beyond your grasp. But you want it! It's so cool. So now what you are willing to spend on a house has been reduced, and when you make an offer it isn't going to come in as high. Multiply that out across many players and soon there is a lot less interest in keeping the prices high.
comment 2y ago · link · parent
The difference is that once the meals are consumed, that's it. 91st in line can't buy food no matter what. No amount of money is going to produce the 91st meal. As such, when food stocks are tight, you cannot rely on price to determine the buyer. You have to resort to some other mechanism. Given the limited information you provided, it would appear that you chose a first-come, first-served mechanism.
On the other hand, 91st in line for a house, if he has enough money, will buy a house from someone in the first 90 who got there first. There is always a house for sale. They don't disappear (freak disasters excepted). They are not consumable items. Even during the tightest inventory periods we've ever witnessed, there were still many houses available for sale.
Price can continue to determine the buyer here. Those who cannot afford them leave the market. Economically, this is not a 90 houses for 100 people situation. If there are 90 houses, then only 90 people will remain in the market. The other 10 are priced out. Those 10 are not market participants, they are simply dreamers. Dreamers don't count.
Socially, there can be a 90 houses for 100 people situation. I get you are wishing you could use shortage here, but what are you communicating? Everything with a price attached has more people dreaming of ownership than there are units available. That's why there is a price attached. That's literally what price is for – to reduce the number of potential buyers until the number of buyers matches the number of units available for sale, with price increasing until that is satisfied. Basic supply and demand.
When using shortage to include dreamers, everything is in shortage, always. What is the point in drawing particular attention to something that is always the case? It's pointless. You are not saying anything. Nothing has been communicated.
comment 2y ago · link · parent
> It seems the dairy farmers I grew up with in Southwestern Ontario were living just above poverty.
Sure. Such is the life of owing a business. I mean, why take for yourself personally when you can buy another farm instead?
While not dairy or poultry, I operate a grain farm in Southern Ontario – along with involvement in tech – and I also live in near poverty. Not because I have to, but because the money is better spent on growing and improving the business. That's the name of the farming game.
If you wanted to live a comfortable personal life, you'd get a regular day job instead. That's a perfectly reasonable choice – nay, the most reasonable choice – but once you catch the farming bug...
comment 2y ago · link · parent
Clearly not. I just got finished pointing to government intervention as the most likely reason for a shortage. How did you manage to not finish reading the comment before replying?
Price fixing can also theoretically lead to a shortage, but this is the least likely case. Usually price fixers want to push the price higher than buyers are looking to spend, not the other way around.
> If there's only enough food for 90 people out of 100 today, it's easy for anyone with enough money to get fed, but it is also a shortage of food.
Agreed, in two ways:
1. It is apt to end up a shortage as many governments have 'price gouging' laws that would prevent the vendor of that food from charging the fair market value in this type of event.
2. In this scenario, eventually no amount of money can buy food. You could be the richest person on earth, willing to spend every last cent you have, but you're still not eating if you happen to come late to the party. Price is unable to select a buyer, relying on a first-come, first-served mechanism instead.
That doesn't match the housing situation, though. The richest person in the world isn't going to find himself unable to buy a home, even if he takes his sweet time deciding whether he wants one or not. Even at the peak of housing insanity, there were still many houses available for purchase by anyone in the market.
comment 2y ago · link · parent
Sales don't happen in a vacuum. The middle and upper-middle have to pay that much because second in line is willing to pay almost as much. Matthews could make an offer of $999,999 on every house for sale in Toronto. He may not get any of them in the end, but in doing so he forces you to pay at least $1,000,000 if you want one.
After all, if you were the only interested party you could just throw a couple of bucks out there and eventually some seller will have to give in. Landowners will not hold a property only worth a couple of bucks in perpetuity. If nothing else, property taxes will eventually compel them to unload it. It's other interested buyers that push you to pay more.
> "Tech started to show promise" so you're saying that people stopped by homes?
Sure. Again, not a vacuum. To stick with the hypothetical for the sake of illustration, let's say Matthews was making such offers but now is enthralled by some AI startup in Montreal instead. By removing those $999,999 offers from the equation, that gives more room for you to come in at a lower price.
comment 2y ago · link · parent
If there is some kind of useful benchmark, exclaiming "shortage" doesn't tell you anything about that benchmark. Again, nothing is communicated. Pointless, indeed.
> Price is always able to select a buyer.
Always, except for when there is a shortage. There are all kinds of examples of where price cannot select a buyer, most commonly as a result of government intervention making it illegal to pay more than a certain price, leaving many buyers all willing to pay the maximum allowable price for a given good or service, thereby requiring some other kind of mechanism, such as a lottery, to determine the 'winner'.
comment 2y ago · link · parent
An interesting choice.
It's pretty clear that Ontario's housing problem is directly related to its farmland problem. Southern Ontario farmland values have risen 900% since the United States changed its farm subsidy policies in the 2000s, which allowed farming in Canada to be much more viable.
Farmland being 900% more expensive means that urban areas can't sprawl cheaply like they once were able to, placing much more pressure on existing urban boundaries, thereby seeing the cost of urban housing rise.
If this successfully takes even more farmland out of the equitation, farmers will just pay even more[1] for the remaining farmland, and then urban areas will have to pay even more to sprawl, putting even more pressure on existing urban boundaries, making urban housing even more expensive.
[1] Supply managed diary and poultry producers are effectively given a blank cheque from the government. There is no end to how much they can spend.
comment 2y ago · link · parent
Pointless, yes, but I'm not sure pedantic is the right term for describing using a word in a way that does not communicate anything. But, to each their own.
comment 2y ago · link · parent
The housing crash happened in 2006, though. I suppose being able to predict the crash even a few months in advance is impressive, but as you're hazy about the years, it is possible that it was really 2006 and the crash had already happened, which isn't so impressive.
2008 was the securities crash. That is when the mortgage market started to crumble under the weight of housing no longer having the value it once did with mortgagers left underwater. The housing market had to crash beforehand in order for this to happen. Once one saw that the housing market had crashed, it wouldn't take too much of a Kreskin to realize securities were on the horizon.