8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
Well, no, of course not. Us older people with wealth have strongly advocated for decades that they not take on the debt. Of those who thought they knew better, why would we want to pay for their stupidity?
But if we agree that we should pay for stupidity because that's the nice thing to do, why stop at college? What about the dumb kid who bought a Ferrari he can't afford? Are we going to pay for that too? Logically we should. There is no difference.
~60% of the population (in the USA) have not attended college. Why not let them reap the rewards of their choices?
comment 2y ago · link · parent
Us being increasingly more accepting of diversity hiring has helped somewhat. Now employers can say "To everyone not a gay black woman, thanks for applying, but no thanks." without much legal scrutiny, but that has only come on somewhat recently. 30 years ago when we were at peak "degree required" that would have been as unacceptable as saying the same about straight white men.
Employers have flirted with other filtering mechanisms, like credit score, but when that was gaining traction there was immediately calls to make that illegal[1] too. A degree is the only filter that has been consistently upheld and accepted. Nonsensically, but that's the power of marketing, I suppose.
[1] https://www.thestreet.com/personal-finance/employer-credit-c...
comment 2y ago · link · parent
In fairness, some political parties who subscribe to reactionaryism operate under a capital C Conservative banner to try and muddy the waters, but to consider them conservative because of that is like considering the Democratic People's Republic of Korea democratic.
comment 2y ago · link · parent
On one hand it seems liberal, wanting to see a change that gives individuals who might be subject of deepfakes more autonomy.
On the other hand, AI is changing the world and it seems like an effort to try and hold the things around AI in place as to not seem them change.
It could go either way. So could the state of the economy right now, for that matter.
comment 2y ago · link · parent
Courts have previously deemed cartoon imagery of children to be equivalent to a real child, so considering the deepfake to be a real person that needs to give consent is not without precedent.
comment 2y ago · link · parent
Perhaps housing is important enough to see the people do that. But even if you could somehow faithfully recreate the entire supply chain, the house won't be up to code. That 100-billion dollar company is going to spend all that money in the courts. Why bother?
Okay, sure, if the people can come together to recreate the supply chain they can also change the code. But then who actually wants to live in a 1960s home? Even the homes actually built in 1960 that are still standing, which is generally going to be those that were built to a higher standard, have been upgraded to modern standards, at significant cost, over the years because nobody actually wants to subject themselves to the 1960s.
And even if you could build the perfectly equivalent house with modern supplies and people actually wanted to live in them, there is still that pesky labour cost, which is a significant portion of the building cost. Yes, the median income of a full-time male in 1960 is almost exactly the same as the median income of a full-time male today, but the median income of the population at large doesn't tell the story of those building houses. Someone who would have worked on a job site in the 1960s is more likely to work in something like a restaurant today. As a result, of those who still are willing to build houses, you have to pay a lot more to get them to show up. "The trades are where the money is now" may have become somewhat of a meme, but there is also a kernel of truth to it.
Now, a business that can make modern houses less valuable will be on to something. That's a 100-billion dollar company. But also a hard problem to solve.
comment 2y ago · link · parent
It kind of is. That's what makes it confusing, I suppose.
If you buy a house of equal value as compared to 60 years ago, then the amount in dollars you will pay, when adjusted for inflation, will be equivalent to 60 years ago (within some margin of error; inflation is impossible to calculate perfectly). If we live exactly like they did in 1960, then inflation and the change in cost of living are the same thing.
But, people expect more today. As mentioned in several comments up-thread, take housing: They are bigger, safer, more energy efficient, more attractive, more comfortable, etc. Alongside that, the married family unit is quickly dying – people are more likely to be single nowadays, so we place more value on being able to live alone. Land is more valuable too. This is particularly noticeable anywhere near agricultural areas, where climate instability and more mouths to feed in the world has made food more valuable, making farmland more valuable, making urban sprawl out into the farmland more expensive. It goes on and on and on. So, even if the dollar was of constant value, you would unquestionably paying more for a house today as compared to in the past. But you're getting more! People are willing to pay more, in constant dollars, because it is worth it.
Only on the dollar side are you getting less. The so-called 'hidden tax'. This is what inflation tries to find. If you are a politician speaking to the people, especially on a national scale, this is the only thing in your control, the only thing that is relevant to you. People choosing to buy bigger and better things is not really of your concern. Why shouldn't someone be able to buy something nicer if they want to?
> Given that a word is defined by what the majority of the people using it mean by it
In the absence of any other definition, that is true. If a speaker defines a word, though, then that new definition takes force while they are speaking. And economists and the President have most definitely provided a specific definition for "inflation".
> I think inflation in common English is closer in meaning to COL than to the technical economics term
I'm quite sure the most common definition is "that single number they talk about on the news", which is equivalent to CPI, which is most definitely not a cost of living measure.
comment 2y ago · link · parent
We track this information, though. Anyone doing any economic-related work will be well familiar with the data. We just don't publicize in any grand fashion because who else needs to hear it? I'll grant you that people who write comments on the internet tend to be completely out to lunch, but most people have some kind of handle on their COL situation. They aren't going to learn anything they don't already know, so there is no reason to listen in. You need demand in order for supply to show up.
Inflation doesn't mean much to Average Joe either, to be fair, except it is a leading indicator of interest rates, and Average Joe does care about interest rates, so this is why Average Joe is listening for inflation information.
> But political leaders won’t.
The leaders are the people. The very same people.
If you are trying to imply that the leaders are as lazy about democracy as they are accounting, and are willing to let the hired help do whatever it wants because they don't want to ever have to take the time to talk to them, I'm with you. Not much you can do there. But if they don't care, nobody else is going to either.
comment 2y ago · link · parent
But it is undeniable that doctors are paid considerably more than most other jobs. This is why.
comment 2y ago · link · parent
The vast majority of people can do the same. What do you think public/cooperate ownership is, exactly? It isn't something that magically comes down from space by aliens or sent to us by god. They are by the people. All the people have to do is do it!
> Also a part from sogetel, those are either very small or regional.
So? They still exist in Quebec. The question was really trying to ask why you didn't mention them?
If you like their model, and want to see them grow, then you'd think you'd be preaching their existence to high heaven. The only way small businesses can grow to cover the nation is to have people talk about them. No business has ever swept the nation in secrecy. Yet here we are, even after we started talking about them, being told that they shouldn't be talked about because they are too "insignificant".
Why is it that the people who complain about the "Big 3" most are the ones who seem most happy to keep on using their service?
comment 2y ago · link · parent
Which is interesting as you'd think actually living, and incurring the costs that go along with it, would be a much more useful gauge.
Probably goes along with my suspicion that most people, especially those not already accounting for business activities, don't keep any meaningful record of their transactions. Hard to calculate COL without data.
But at the same time, there isn't much effort in publishing national COL metrics as it is presumed that people will already know their own situation, which is always going to be way more telling. Individual COL can vary widely, even between neighbours, let alone on a national scale.
comment 2y ago · link · parent
With a gun to your back, eh? We can use whatever source of inflation we want. Nobody is selecting for us. But, as it happens, CPI is the one we've chosen as the default. If we change our minds, we don't have to default to it forevermore. It's up to us.
> Are you blaming others for the way you think?
I don't think. You do enough of that for all of us. No need for me to duplicate efforts.
I relay the state of the world to the thinkers so they don't have to. The efficiency of specialization!
> Good enough to satisfy people that want to be satisfied, but not good enough to satisfy all.
Which, again, is why we have many sources of inflation. Pick a different one if need be. Indeed, there is good reason why there is more than one.
And if inflation isn't the right tool for the job, which is probably the case, use a different economic measure. There are many tools in the toolbox. You don't have to measure distance with temperature.
Let's be real, the only reason we talk about inflation at all is because it is shares a relationship with interest rates. Interest rates are what people actually care about here. As principal value declines with inflation that makes borrowing more attractive, thus interest rates need to compensate, thus a change in inflation rate serves as a useful leading indicator of interest rate movement. If it weren't for that, it is doubtful that anyone, economists and statisticians aside, would even know that inflation is a used measure.
Beyond interest rates, it doesn't mean much to Average Joe. Average Joe is more worried about things like cost of living. Inflation isn't meant to be useful to Average Joe, though, it is for economists who need to look at much more than Average Joe. Average Joe is free to use it if we wants, but it's funny when he starts complaining that it doesn't work right when misapplied.
comment 2y ago · link · parent
But quite relevant as they provide a proven, working model that can be used anywhere in Canada. That's the beauty of public/cooperative ownership – all people have to do is do it.
> here in Quebec it's either Videotron or bell
What about CoopTel, Sogetel, and Téléphone de Courcelles?
comment 2y ago · link · parent
Regular people understand inflation just fine. How useful it is to them is debatable, but it doesn't have to be for everyone. It's okay if some measurements are only useful to scientists and economists. The measure of the speed of light doesn't mean much in my day to day life either, but we don't have to abolish it because of that.
> We need a concept for debasement / hidden tax that allows people to hold their policymakers accountable.
I think what most people are looking for is simply cost of living measure. They want to know by how much the costs to live (housing, food, etc.) have increased over inflation. Which we have. But that one might actually be a case of being "too dumb to understand", explaining why it is not commonly put to use. Inflation is, indeed, a much simpler concept. Or it may be that the ultimate cost of living measurement comes from one's own personal accounting records[1], negating the need to reach for any 'universal' perspective.
[1] But I suspect most people don't keep any accounting records, so most likely the first one.
comment 2y ago · link · parent
Right. I am referring to all those who want to know only this, along with everyone else. Because those who want to know something else would use another measure. Those complaining that inflation doesn't give you some other economic indicator is like someone complaining that temperature is not a good measure of distance. Well... duh.
> Some people (not many) want to know what is going on comprehensively
Absolutely. Which is why we have many different ways to look at inflation. In fact, don't White House economists use 30-some-odd different measures of inflation throughout the course of their work?
But eventually you are going to want to put it to practical use, mathematically, and our formulas require a single number. CPI is the one we picked to standardize on (but, of course, you can choose another if you want). It won't be 100% accurate – determining that is fundamentally impossible and you know that going into it – but it will be good enough.
comment 2y ago · link · parent
With inflation, we want to know about the change in value of the dollar only. We don't want to factor in the change in value of houses, food, etc. There is a place for understanding that too, but inflation is not it. Something like a cost of living index is more suitable to that kind of information.
On that note, houses are unquestionably more valuable today. For one, they are twice the size they were 60 years ago. We can all agree that a bigger house has more value than a small house, at least within reason. You can fit more in it, it is more comfortable, etc. and that is valuable. They are also a lot safer. That too is more valuable.
As such, a housing costing x% more today than as compared to some time in the past does not mean that inflation is x%. Again, we only want to know about how the dollar changed in value, not housing. Of course, if you only have numbers, it is impossible to know what share is due to housing being more valuable and what share is the dollar being less valuable, although we can say with great certainty that it is some combination of both.
CPI tries to tess out what is the dollar portion only by looking at a large basket of goods of things people buy frequently. Where you see common moment in the change in price across all items in the basket, that is assumed to be the change in value of the dollar. It's not perfect. There is no perfect metric. You are quite right that one should look at many different models, even though none of them will be perfect either. It is all good information, none of it great, but at some point you have to pick a single number.
On average, it will be close enough.
comment 2y ago · link · parent
But is actually warm comfort as it shows a proven model that anyone, anywhere in Canada can also do. It's just a matter of whether or not the people actually care if they are a customer of an independent, or if being a customer of a major is just as good or better.
> Moreover, looking at Sasktel's website[1], their prices don't look too competitive.
Sure. Nobody said owning your own business allowed it to operate for free. Publicly-owned and co-op businesses are not a panacea. But they are independent and free of a major private business, which is the topic at hand.
Saskatchewan's population is ~80% rural, and Sasktel doesn't operate outside of Saskatchewan. It isn't terribly surprising that it costs more to service rural areas, and without much in the way of an urban base to help subsidize the operation. But this does indicate that other providers are operating within reasonable margins. Indeed, Canada is a very expensive place to do business in, and not just in telecom. You are never going to see cheap internet compared to other countries, or much of anything, without radically upheaving what the country stands for.
comment 2y ago · link · parent
The mobile space is more challenging. A number of those co-ops and government ISPs were running mobile service back in the mid 2000s, but they never found the customer base and most of them eventually shut it down, Tbaytel and Sasktel being the exceptions.
That said, many of those ISPs have more recently turned to reselling Big 3 service, so you can still at least minimize how much the Big 3 take, giving the small guy at least some of the cut. Maybe some day they can take that small cut and build out their own network again? But, you get what you choose to become a customer of, I suppose.
comment 2y ago · link · parent
Value is the opposite side of the transaction, though. Money is the promise of value, not value itself.
> Which is basically bartering.
Yes, it most definitely is, but the difference with bartering, by definition, is that the value is always delivered immediately. As in, you give me grain and I give you sheep at the same time. We both have what we want, the deal is done, and there is no need for accounting as there is no reason to ever think about it again.
But if, instead, you give me grain and I give you nothing but agree to later give you sheep after they have been fed the grain and are ready for slaughter, then we have an unbalanced transaction. You gave me value, but I gave you nothing – just a promise.
Enter accounting. I record that you gave me grain and I record that I made you a promise (money created). You record that I gave you a promise and that you gave me grain. My books will show a loss (promises outstanding) and you will show a profit (promises yet to be delivered). This gives us both a reminder that the deal isn't yet done, which is useful because people are prone to forgetfulness. Also, perhaps even more significantly, you can pass on the promise. The person who finally receives the value in the future may not be the person who made the deal originally, so accounting is critical to settling the promises across a chain of trades.
comment 2y ago · link · parent
Money is just a promise. Anyone can create those. Which should be quite obvious. When you go to work to, as we literally say, make money, your employer is making a promise that in exchange for you work you can take something of some defined value later. Later, you will take that promise and turn it into something of value, such as food. Once spent, the money is destroyed. The promise is no longer valid. The deal is done.
Currency is a promise to a particular entity, such as a central bank. A central bank will loan you something of some value, you equally promise to give them something of equal value (we'll ignore interest for simplicity) back at a later date. Indeed, only the central bank can accept promises made to the central bank. If you accepted a promise on behalf of the central bank, without explicit authority, then you are quite right that trouble is coming your way.
Because there is a trust component required in promises, often promises made – such as the promise of your employer to feed you later – will be backed by a promise to the central bank. The central bank has a military to send if someone really tries to play nasty with promises made, so that carries a lot more trust than if you and I wrote up our own 'IOU'. This may be why you see money and currency as being one and the same. Often they are, but not necessarily so.
Accounting is simply for keeping track of promises. That's why we invented it. You don't need accounting for barter. It is the promises that necessitate accounting in order to keep track of what promises are outstanding and what are fulfilled. A bookkeeper doesn't create money per se, but they certainly account for money created and destroyed by the entity they are bookkeeping for.
comment 2y ago · link · parent
Indeed. Hence why I said that they can both be considered stubs (or whatever you want to call them). We already went over this. But one comes without all the devastating baggage of mockery, which is a pretty big deal.
> The nice thing about these mocker libraries is they integrate with the testing framework to show nicely formatted error messages about what exactly went wrong
Except you also need all of that same information when the same thing happens in production – for your logs, the end user, or even plain functionality – so you haven't gained anything. You're just duplicating efforts for no reason.
That or, knowing the average programmer, they'll just haphazardly throw in that information and not test it since they think mockery gives them the information anyway, and then the future programmer won't be able to figure out when it does some particular thing, which would have been avoided if properly documented in test. Indeed, programmers by and large seem to hate other programmers for some reason. That doesn't seem like a good justification, though.
> Essentially if you take your concept further and try build a general purpose library for building out those stub functions you'll get something that looks like the mock library.
It may be that mockery is just a poor implementation of the concept. There are some obvious improvements that could be made to mockery to at least begin to help with its grievous problems, so we know it is not as good as it could be. Is there a tool that does it better?
Or is this a classic case of someone taking DRY much too literally? As the Go proverb goes: A little copying is better than a little dependency. Is an abstraction truly warranted in the first place?
comment 2y ago · link · parent
type quotaNetworkFailure struct{ quotaSuccess }
func (quotaNetworkFailure) UpdateQuota() (bool, error) { return false, quota.ErrNetworkFailure }
func TestTransaction_QuotaUpdateNetworkFailure(t *testing.T) {
tx := &Transaction{
Auth: authSuccess{},
Payment: paymentSuccess{},
Storage: storageSuccess{},
Quota: quotaNetworkFailure{},
Notification: notificationSuccess{},
}
_, err := tx.Request("12345", "valid-token", "product123", 100.0, "USD", []byte("file data"))
if !errors.Is(quota.ErrNetworkFailure, err) {
t.Errorf("unexpected error: %v", err)
}
}
While still contrived, surely you agree that is much more understandable, not to mention a whole lot easier to write? Now we know why something might fail, and the reader learns what they should look for when handing a network failure.Yes, okay, you got me. That isn't the HTTP service anymore. But it should have never been. The transaction processing is not an HTTP concern. In fixing that, now you can make the HTTP end of things far less obtuse:
var errGeneralError = errors.New("general error")
type transactionFailure struct{}
func (transactionFailure) Request(id, token, productID string, amount float64 /* yikes */, currency string, file []byte) {
return false, errGeneralError
}
func TestBuy_Failure(t *testing.T) {
srv := httptest.NewServer(&Server{
Transaction: transactionFailure{},
})
defer srv.Close()
c := client.New(srv.URL)
_, err := c.Buy("product123")
if !errors.Is(transaction.ErrFailed, err) {
t.Errorf("unexpected error: %v", err)
}
}
But, this is still not a good example of input. Input doesn't matter when the network fails. Let's say we want to cover the case where the product ID being purchased doesn't exist instead: type transactionNoProduct struct{}
func (transactionNoProduct) Request(id, token, productID string, amount float64 /* yikes */, currency string, file []byte) (bool, error) {
if productID != "product123" {
return true, nil
}
return false, transaction.ErrProductNotFound
}
func TestBuy_ProductNotFound(t *testing.T) {
srv := httptest.NewServer(&Server{
Transaction: transactionNoProduct{},
})
defer srv.Close()
c := client.New(srv.URL)
_, err := c.Buy("product123")
if !errors.Is(transaction.ErrProductNotFound, err) {
t.Errorf("unexpected error: %v", err)
}
}
There is still plenty of room for improvement here that I will cut short as who cares for an HN comment, but man, I don't see how anyone can think that mockery monstrosity is preferable to... anything else. Where is it actually useful?comment 2y ago · link · parent
I willingly accept your unconventional usage if it greases discussion, but the dictionary is right there. It records how most people use words. What mockery gives appears to be what most people consider a fake. It clearly does not fit the definition of mock. It arguably matches the definition of stub and I think you could reasonably call it that, but I posit that doesn't tell the whole story, which is no doubt why fake emerged.
That said, I don't know what your definitions are. You seem to flail around with them.
> Stubs do not react based on their input parameters.
All of mocks, stubs, and fakes react based on input...
> How would you test the case where the quota update fails with a stub?
... Although this seems like a poor example. It is not clear if the failure state is due to invalid input or due to some other issue.
This, I must say, makes for a really bad test. Tests are, first and foremost, the contract and documentation for your users. They are written so that other people can learn about the system and know what they can depend on during use. The self-validation offered by testing is there merely to ensure that what is written in the contract is true. –– Not that we were expecting anything more from ChatGPT, but this does, interestingly, indicate yet another problem with mockery. I hadn't even picked up on that one earlier. Glad we were able to keep the discussion going to learn more!
But, importantly, we lack necessary information to respond to your question. Perhaps you can clarify the intent here?
comment 2y ago · link · parent
I don't follow. Under no circumstance would the test pass under invalid inputs, be it whether you use mocks, stubs, or even mockery (fakes?).
- Obviously it cannot pass while using mocks – a mock matches the real thing to every last detail. If it will fail while using the real thing, it will fail here as well.
- Obviously it cannot pass while using stubs – a stub matches the real thing, partially, to at least the minimum amount necessary for the sake of testing. If it will fail while using the real thing, it will fail here as well.
- Obviously it cannot pass while using mockery – mockery does not match the real thing in any way, but does require you to specify matching inputs with failure when they don't match. If it will fail while using the real thing, it will fail here as well.
I don't know what you are imagining, but I'm not convinced it is a thing. I mean, you could make it a thing - you can do anything your little heart desires, but there would be no reason to ever make it a thing.
Maybe we need some concrete tests to better illustrate what you are talking about?