8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
comment 2y ago · link · parent
It is certainly not irrelevant as that is the very topic of conversation. The topic of conversation was clearly and specifically defined by "In Go or Rust, returning an error is also a “color” that spreads out to the top of the call stack." But you're right to finally come around to realizing that there is no coloring effect created by that. Glad you were able to learn something today!
> errors suppose a specific kind of control flow that is different than non-error values
They might want a different kind of control flow in some circumstances, but it is not supposed. Email addresses might also want a different control flow in some circumstances (e.g. a "local" address).
> Again the correct analogy is the input type
It is quite possible to introduce an indirect dependence through inputs as much as it is possible through outputs, if that is what you are trying to say. I'm not sure your example successfully demonstrates that, though. There is nothing to suggest that email isn't relevant to `bar`, even if the actual "black box" implementation happens to call upon `foo`. I see no evidence of implementation details leaking, which can be demonstrated by removing `foo` and refactoring `bar` to:
function bar(name, email){
sendMail("Hello ${name}", email);
}
> You're projecting your own mindset on meNo, but I read what you wrote. Perhaps I have misinterpreted it? What did you mean by "tone" if not something that pertains to your emotions?
> despite repeated attempt on your side to heat things up.
Admittedly, in context, this too reads like you are referring to your emotions. But as you also seem to be trying to assert that they are not weighing on you, what are you actually trying to say here? You have not made yourself clear, I'm afraid.
comment 2y ago · link · parent
"Structured Query Language" is a so-called backronym. "Standard Query Language" fits the pattern as well. As does "Super Quick Lookup", if you want to have some fun with it.
comment 2y ago · link · parent
Uh, what? Convention in Go and Rust sees errors be returned. Earlier, when you defined the topic of conversation, which hasn't changed, you even said "In Go or Rust, returning an error is also a “color” that spreads out to the top of the call stack.", so you seemingly knew this at one time. Where did you get the idea that they are taken as input parameters now?
> or you need to propagate it upwards
Perhaps like you need to propagate email addresses. But that's the "normal color" of a function. If that is all you are doing, there is no secondary color. That's just "normal" use of a function.
async/await, and perhaps even "?", are not "normal" as they introduce to the caller dependencies on functions the caller didn't even call. This breaks the "black box" nature of a function, seeing implementation details leak, thereby no longer guaranteeing that a function is "black" and thus establishing functions that are of other "colors".
> When you use this kind of passive-agressive tone, don't be surprised if a charitable reader simply discards it
Oh, I wasn't surprised. It was clear from your first comment that your emotions aren't letting you think straight.
comment 2y ago · link · parent
But you didn't think to ask any followup questions to help with your understanding?
> The key thing is that as long as you have some effect [...] happening somewhere in the call stack then it infects all the call stack no matter what the language does.
In the same way email addresses do, I suppose. But that is the "natural color" of a function. Consider:
fn getEmail() {
return "joe@example.com"
}
fn getPerson() {
email = getEmail()
return "Joe Blow", email
}
fn getUser() {
name, email = getPerson()
return "joeblow123", name, email
}
fn main() {
username, name, email = getUser()
print(username, name, email)
}
Yes, you could say in a sense `getEmail` "infected" `getUser` in its need to get the email address to the top of the stack, but the dependence at each step remains direct. getUser returns an email address because an email address is relevant to the result of `getUser`, not just because it happened to call `getEmail`.That is different to async/await, where `main` now has to become aware of what `getEmail` is doing because `getUser` happened to call it transitively. The dependence is indirect.
async fn getEmail() {
return background { return "joe@example.com" }
}
async fn getPerson() {
email = await getEmail()
return "Joe Blow", email
}
async fn getUser() {
name, email = await getPerson()
return "joeblow123", name, email
}
async fn main() {
username, name, email = await getUser()
print(username, name, email)
}
I may be inclined to agree that the "?" operator can introduce a similar indirect dependence: fn producesError() {
return ProductionError("an error occurred")
}
fn doesSomething() {
value = producesError()?
return true
}
fn main() {
result = doesSomething()
match result {
ProductionError:
print("Error", result)
OK:
print("OK", ok)
}
}
Like async/await, `main` now has to be aware of what `producesError` is doing without calling it directly. But, then again, much like as we discussed in your Go example, you'd never actually write production code like that. There are so many things wrong with it. So, I'm not sure how significant that coloring actually is. And, regardless, is not related to the original discussion.comment 2y ago · link · parent
Just as you do with any value, such as an email address, returned by a function. It is curious that you avoided my question as it would help us better understand where you are trying to come from. If that is the stance you are trying to take you're not exactly wrong about there still being some sort of dependence – there is an inherit dependency created when calling a function, always - but there is not a different color of dependence found within that. You're missing the intent of "coloring" if that is what you are trying to say.
async/await introduces a different type of dependence than a function would normally present, where the dependence is no longer direct. I may even agree that the "?" operator introduces a similar indirect dependence. But a function returning an email address (or error; the type of the value is immaterial) is the "natural color" of a function. If that is all you have, there isn't a secondary color.
> as soon as you start calling a function that returns an error, you're going to write something that looks like
Only for internet memes. You would never write production code like that for so many reasons.
comment 2y ago · link · parent
I might buy into your idea the "?" operator colors functions. But that's something else entirely and obviously isn't what you were talking about originally as it isn't found in all of the languages originally mentioned.
comment 2y ago · link · parent
There are good reasons for why scripts are often interpreted and why systems are often compiled, but that's not what defines them. There are definitely scripts that are compiled and systems that are interpreted out in the wild.
comment 2y ago · link · parent
Not unless you're doing it wrong. Errors need to be handled. That may, in some cases, mean handling it with another error, but that isn't adding any "color". The new error is independent of any previous error state.
comment 2y ago · link · parent
comment 2y ago · link · parent
That's exactly what the article is saying. It, however, argues that the presence of women is what has caused that decline in value.
> In the particular case of college it's been ever more clear for more than ten years now that college is mostly only valuable if you treat it as a trade school
Right, while it posits that the historical value of college was that it offered a higher social status to those involved, which for those not reading between the lines means that it offered improved mating opportunities for men. Now that women are going to college in droves, men are no longer seeing a higher social standing from attending college – with it placing them on the same social plane as women. So men are moving on to the "next big thing" that offers higher social status today.
> something which cannot be prestigious because it is common and cannot command large wages.
It seems you are essentially on the same page as the article. I suspect that it would suggest that money is only a proxy for status, while you seem to be suggesting that status is a proxy for money, but I'm not sure that makes any difference in the grand scheme of things.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Perhaps true, but also keep in mind that Canada and the US were on more equal standing until the last five years or so, when we started to see a significant divergence emerge. You can ride on the past for a while. Assuming the trend continues, it may simply be that it is too early to see Canada turn into Mississippi.
comment 2y ago · link · parent
If someone is full of shit, and assuming you care, then logically you would put in the effort to fix their misunderstanding, not tell them off. Exclaiming that someone is "full of shit", politely or not, is stupid. If you don't care, then why not own it? Don't care.
> The only person being stupid here is the person making strong empirical claims without qualifying them or providing supporting evidence.
There can be more than one stupid party involved.
> I could see a reasonable complaint that asking for studies is being passive-aggressive
It is just straight up nonsensical. I get that is was only ever a silly meme and always understood to be nonsensical, but a meme that has become quite tired. It was funny 20 years ago, perhaps, but at this point it is time to lay it to rest. I mean, anything goes in discussion. If you still think it is edgy, go for it. But the rest of us will still think it is stupid.
comment 2y ago · link · parent
Kanban comes from the manufacturing world. You might find some overlap with Agile, but is not directly associated. Agile is abundantly clear that it is about software.
And yes, if you want to be pedantic, it might be more accurate to say that Agile is a generalization of XP and Scrum, rather than XP and Scrum being formalizations. Agile was written after. But I'm not sure that changes the intent of the original comment.
comment 2y ago · link · parent
comment 2y ago · link · parent
Anything is fair. It is a discussion forum. You can say whatever the hell you want. But it is equally nonsensical.
> so I'm looking to see why they think otherwise.
You looked for someone else – someone who prepared a study – to tell you why it might be otherwise. But if you want to talk to someone else, go talk to that someone else. If you want to come here, be happy with the people who are here. They might actually teach you something without having to defer to random other people.
comment 2y ago · link · parent
Factored by how cute the animal is. As a producer of plants for human consumption, it's quite obvious that orders of magnitude more animals are harmed in that process than are ever harmed in traditional meat production. But they're mostly ugly insects, so nobody cares.