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

> I don't expect the caller to use the return value if err !=nil and haven't heard anything to the contrary on my team.

Yet you admit to following the advice for error, returning the zero value for err and making it useful when you do. If you don't have a meaningful error state, why not just return junk? Clearly you recognize the value of making the return values useful, always. Why make exceptions?

comment 2y ago · link · parent

Let's be real, Kubernetes is a Java project with code that just happens to share some resemblance to Go syntax. It's also one of the oldest projects using Go, long predating the "make zero values useful" proverb, so it is not surprising that it doesn't follow the idioms recognized today. Idioms cannot be conceived in advance. They emerge from actual use after finding out what works and what doesn't.

What new code being written today is violating that pattern?

comment 2y ago · link · parent

The government isn't something that exists off to the side. It is literally just the people. The laws in force are simply what the people choose to recognize.

Indeed, Quebec tradition ensures that most people will choose to recognize the laws crafted under the given framework and not beyond. But they can also choose to look beyond it if they so wish. Of course, they don't have to either.

comment 2y ago · link · parent

I expect at the end of the day they are one and the same. As in, certain races are treated the way they are because they are poor (generally speaking). It is not like, for example, the white "slack jawed yokels" (rednecks, hicks, white trash, whatever insensitive term you want to call them) are held in high esteem. They too are poor (generally speaking), so they get treated poorly.

Let's face it, if the rich list was comprised of mostly black women, we would be bowing down to them and praising their every move. They are marginalized because they, by and large, don't have a good answer to "But what can you do for me?"

comment 2y ago · link · parent

Not my experience. Some very early code did not recognize this, but since then pretty much everyone has come to agree that values should always be useful. If you are writing a function today, there is no reason to not observe this.

In practice, that typically means returning the zero value. To which idioms suggest that zero values should be useful. Rob Pike's Go Proverb[1] even states: "Make the zero value useful." Most commonly when returning (T, error) that zero value is nil. In Go, nil is a useful value!

If the caller wants to observe the error state, great. But it is needlessly limiting if you force it upon them. That is not for the library author to decide.

[1] https://go-proverbs.github.io

comment 2y ago · link · parent

Yes, once every thousand days (made up, but not too far from reality) when there actually is something for the group to come together and discuss, the standup is a useful tool. Although you're probably better to just schedule the meeting only when there is something to discuss. Gathering everyone each day just to see is kind of wasteful.

Granted, that waste keeps people employed. The tech layoffs of late is unquestionably because "Agile" isn't cool anymore, and those hours wasted to standups are now, by and large, put to productive use instead.

comment 2y ago · link · parent

You can always make your own laws.

Whether or not anyone else is willing to go along with it is another matter. Making a law does not automatically compel others to accept it as their law. Indeed, those who believe in the French civil law system, which describes the majority of Quebec residents, are not likely to accept laws that are made outside of that framework.

But they might. The only thing that would try to stop it is other people, but if those other people are also on board then anything is possible.

comment 2y ago · link · parent

> This is something I had not discovered yet

No doubt because the Go team disagrees. They have been abundantly clear that, from their point of view, goroutines should be used and even used as part of the public API when it makes sense.

That said, it is still probably really good advice for newcomers who won't have a good understanding for the cases where it does make sense, and especially because goroutines are the shiny thing every newcomer wants to play with and will try to find uses that don't make sense just to use it. As a rule, you don't want to force the caller into things they might not want. In the vast majority of cases, a synchronous API is what you will want to give them as it is the most versatile.

And, really, that's something that applies generally. For example, in the case of the common (T, error) pattern, you will want to ensure T is always useful even when there is an error. The caller may not care about the error condition. That's not you for, the library author, to decide. The fewer assumptions you can make about the caller the better.

comment 2y ago · link · parent

> no streaming videos

Funny, iCraveTV is the 90s 'dot-com' company I remember most.

> cell phones were only on tv

Perhaps you are referring to an 80s tech boom instead? That's when the "Zack Morris" phone was something for TV. By the 90s tech boom, everyone had a MicroTac.

> server side programming was done in C

And bash! Hard to imagine now. Although Perl reigned supreme.

comment 2y ago · link · parent

> Adjusting for education and experience?

That's largely the systemic problem with joining certain professions. Those are most often the qualities the market seeks, but education and experience are biased towards the wealthy. You need resources to attain them. For historical reasons, non-white people as a group don't have the same kind of wealth.

comment 2y ago · link · parent

Well, there wouldn't be anything special about it if were a woman and person of color landing on the moon themselves. We already know people can land themselves on the moon. Been there, done that. The white men on the ground at the NASA command centre remotely landing precious cargo on the moon is still somewhat novel, though.

comment 2y ago · link · parent

Sure. All governance, no matter how it is shaped, ends up representing the money. Remember, money is a token of debt. If you give someone money, you promise to give them something of yourself in return at a future point in time. When you are indebted to someone they hold power over you. There is no system or framework that can avoid that shift in power when you indebt yourself to another. The only way to avoid it is to avoid debt.

But ultimately that's just people.

comment 2y ago · link · parent

> The system needs to...

The system isn't handed down to us by a higher power. It's just people. It's shaped simply by what people decide to do. Want different? Then you must do different.

There is no alternative. There is no magical genie that will grant you three wishes. If you don't do the work someone else will, and they will do it the way they want it done, same as you would.

comment 2y ago · link · parent

Of course the system is not something that magically descended to the heavens, it is simply what people have agreed to go by. If it is unequal, it is so because the people have decided that they want it to be unequal.

No doubt because, as you point out, the typical person would rather spend their time making ends meet (i.e. pay for the luxuries of life) than the worry about making agreements with their neighbours day-in, day-out. You can technically survive on very little time commitment to "make ends meet". Just look at the homeless population. It is not a life you would want to live, but it could be done if you truly saw the need to assert your power. But, understandably, most people would rather focus on their personal goals and let the figurehead worry about the community problems.

What's the alternative? It's just people at the end of the day. There is no magic. Those who do the work are going to do the work the best way they know how. Even if they value your input and want nothing more than to work with you so that you can show your better way, they are not going to scour the globe to find you. If you don't put the effort in to make yourself known on a regular basis you will be forgotten about.

comment 2y ago · link · parent

> In practice there are no built-in mechanics to deal with representatives.

There is if the population agrees that the representative is not acting in accordance to wishes of the population: Off with their head – literally. What are they going to do about it with no head?

In practice, representatives by and large do act in accordance with the wishes of the constituency to the best of their ability. The larger problem they face is a constituency that doesn't want to be involved. I expect at least 95% of the population have never even spoken to their representative even just once. But the representatives are only human. They do not possess mind reading abilities, so they can only go on what the tiny fraction of the population who are active submit.

But, of course, the tiny fraction of the population who are active are probably not representative of the entire population as a whole, and so you get large disconnects even when the representatives are acting in good faith.

comment 2y ago · link · parent

> those with significant wealth [...] end up shaping policy.

Yes, of course. Those with wealth hire people, often referred to as lobbyists, to put in the hard work. Technically, representative democracy requires everyone to be, or have, their own lobbyist, but in practice that's a lot of work that most people don't want to put in. They prefer to defer to a figurehead. It's easier that way. And, as such, give up power because of it.

comment 2y ago · link · parent

CREA.

comment 2y ago · link · parent

In theory, a representative democracy keeps checks and balances by the people still routinely communicating with each other as if it were a direct democracy and if the representatives are not acting in accordance with the direct findings, then it's off with their heads.

But in practice that's a lot of work. The reality is that most people don't want to be involved and are happy to have some figurehead do the work for them, even if that means complaining about it later.

comment 2y ago · link · parent

The CBC might want to ease up on the 'revenge porn'. Magpie River has not consented to the sharing of that revealing imagery.

comment 2y ago · link · parent

Do you consider Rust to be the problem solver's kryptonite? If not, it is not clear why a problem solver cannot solve the problem of solving problems in Rust.

comment 2y ago · link · parent

> Agile done right is like this.

That doesn't sound like Agile, at least not the Manifesto one. Agile is pretty clear that there are no managers. It, ultimately, offers suggestions of what you need to think about if you are to move to an ad-hoc organization structure. For instance, per the 12 Principles, "Business people and developers must work together daily throughout the project." There is no room for a manager in that. There is no independent "keeping the runway clear" or "coming up with ideas behind the scenes". That's the work developers and business people are doing – why they are working together.

Here's a few more:

* "Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale." – Translation: Without a manager keeping tabs on everyone's progress, the easiest way for the team to stay on top of progress is to see it.

* "Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done." – Translation: Don't accept people into your group who need someone (i.e. a manager) to hold their hand.

* "The most efficient and effective method of conveying information to and within a development team is face-to-face conversation." – Translation: There is no manager ensuring everyone is aligned and on the same page.

* "The best architectures, requirements, and designs emerge from self-organizing teams." – Translation: With no manager to organize the group, you need to figure out who is going to do what on your own.

* "At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly." – Translation: You don't have a manager watching over to see where improvement can be made. Figure it out for yourselves.

Whether or not Agile is suitable for your organization, or any organization!, is another matter. Indeed, one should not accept Agile into their life just because it has a catchy name. Probably not at all. One must remember that the Agile signatories live in a different reality to most developers.

> If you hate the idea of a meeting like this it's possible your managers suck and don't listen to you.

Whether or not they are listening, I'm not sure what I would want to tell them? What I do know from many, many years of experience is that when you have a good manager, you won't even know they exist. A manager who needs to gather the group around the campfire each day is decidedly not a good manager. Heck, even most staunch standup supporters will tell you that managers shouldn't be invited to the standup as it easily becomes a crutch for bad management.

comment 2y ago · link · parent

Windows hasn't been personal since 'Me'. The NT line was always a multiuser system. Does iTunes even support those old versions of Windows?

comment 2y ago · link · parent

> This business of hour-long standups sounds insane and so wasteful.

The media has been proclaiming "Agile is dead" recently. I wonder if all these tech layoffs have come simply because that hour was gained back for productive use?

comment 2y ago · link · parent

> Standups should be for tracking progress on tasks and nothing more.

Then what's the point? I probably don't care about someone's status in the first place, and when I do a big fat notification informs me when the status has changed the second it changes. "Duh. I'm still working on it, obviously." doesn't tell me anything.

> If someone is blocked they should briefly state why and follow up ASAP

If someone is blocked by my doing, they would have already told me 23.5 hours[1] before the scheduled meeting came around, when they became blocked. I don't need to hear it a second time. If it has nothing to do with me, I don't care. What's the point?

[1] Or even longer if not on a daily meeting schedule. Way too long if you sit around and wait for the meeting to finally come around before talking to anyone.

comment 2y ago · link · parent

Most people don't fear hard work, they fear being beholden to other people. Ain't nobody hiring a contractor under the terms of "Yeah, go ahead and build me a house however you like, whenever you feel like it. I don't care about what you do."

comment 2y ago · link · parent

> The grass needs to be severely overgrown before you need a bush hog.

Use of a bush hug does not imply the need for a bush hog, though. Even for routine maintenance of the grass you're apt to choose the bush hog out of convenience and practicality. It's not like you're going to waste time puttering around with the push mower you cut your grass at home with for a tower site out in the middle of nowhere.

comment 2y ago · link · parent

There was the crash of 2022, seeing a nearly 30% haircut nationally while at the bottom. For comparison, the US housing crash of the oughts saw a peak decline of 33%. Everyone in banking was surely around to see that major correction happen.

Granted, the market had ramped up so quickly, and then crashed so fast, that the number of underwater mortgages was likely small – and probably haven't come up for renewal yet. So, you're right that there isn't much management experience, and may never be.

comment 2y ago · link · parent

> How did we get here?

Because it is easier. Most people don't want to put in the hard work that democracy requires. They want to go to their job, play with their children, see their friends, exercise at the gym, go on dates, etc. They quite like that there is a "great leader" ready to take the load of community off their backs so that they can focus on the personal things they deem more important.

A terribly unsettling event can cause people to change priorities pretty quickly, but when things are comfortable and everything appears to be running smoothly enough, it's hard to see why, when someone has happily stepped up to do the work, there is any reason to put in the time and effort too.

1
666768
256