Better HN
topnewbestaskshowjobs
Log inSign up

bfrydl

605 karma · joined Nov 8, 2017 (9y ago) · 144 submissions

Submissions

comment 5y ago · link · parent

This is a terrible article. I'm not even sure the author researched this before writing it. There's straight up false information about each of the languages.

comment 6y ago · link · parent

You can't list objects by tag.

comment 6y ago · link · parent

I'm quite tired of “What Color is Your Function”. In the five years since it was written I have yet to care about this supposed explosive problem in any language that uses async/await. It just seems like something that gets trotted out whenever anyone dares to suggest there are benefits to the approach or to talk about Rust. I'm not sure why I am supposed to accept it as meaningful truth.

comment 6y ago · link · parent

I think it's likely that's the joke.

comment 6y ago · link · parent

One issue I have with this is that on many of the “battlegrounds” of the “culture wars”, non-participation is effectively the same as fighting for one particular side.

comment 6y ago · link · parent

I think the people disagreeing with this greatly overestimate what is actually contained in a library like Redux. An entire ecosystem sprang up around it and most of it is completely unnecessary and overly complex. The base library itself is almost nothing at all and should not be hard for anyone with experience to independently create.

comment 6y ago · link · parent

I agree that Rust is more suited to ECS than hierarchies. However, the choice is not between ECS or inheritance. The reason I say that the community is overly fixated on it is that many of the benefits attributed to ECS aren't unique to ECS.

comment 6y ago · link · parent

I think this is because of Rust. In my opinion the Rust game dev community is overly fixated on ECS.

On the bright side, Rust has some damn good ECS libraries.

comment 6y ago · link · parent

I don't know if I think Helm is garbage but I feel like it's almost always more trouble than its worth. Most charts can be boiled down to just a couple resources and instead of sifting through its weirdo templates you might as well just look at the actual resource configs. It's almost always just a single Deployment or similar + RBAC.

I've actually been using Terraform to manage Kubernetes resources at my latest job, along with literally everything else. I don't even use alb-ingress-controller or external-dns or any of that. I just have Terraform make target groups from the service resources. It breaks a lot less.

comment 6y ago · link · parent

Sure, there's nothing that says established practice is better. That is not, in my opinion, a good defense of Go which makes many baffling design decisions. Besides, an appeal to the authority of Rob Pike is surely not a valid defense if mine is not a valid criticism.

I'm (perhaps unfairly) uninterested in writing out all the details, but “they think they know better” is because I see Go as someone's attempt to update C to the modern world without considering the lessons of any of the languages developed in the meantime. And because of the weird dogmatic wars about generics, modules, and error handling.

comment 6y ago · link · parent

I would argue that Go's design as a whole is characterized by an attitude of ignoring established ideas for no other reason than that they think they know better.

comment 6y ago · link · parent

In my opinion, the first is a terrible interface because I have no idea what any of the parameters do, not because there are so many. The second is a good interface to me because all of the values are labeled. I don't see any problem with having this many parameters when all of those parameters are relevant (see: Vulkan). Named parameters often implies default values too, which means you wouldn't have to specify them all.

I basically emulate this in other languages, like Rust, with an “options” struct that has default values.

comment 6y ago · link · parent

I personally think reasons like this are just pulled out of thin air to justify simple style preferences. For example, `this` is an entire word that the editor draws in a different color, so it seems unlikely that `_` is easier to scan for. Even I'm not claiming to have objective reasons for preferring `this`.

comment 6y ago · link · parent

I adopted this style after working in TypeScript for a while and then going back to C#. I came to really like having an explicit receiver on every function. I work in a lot of languages where that's required, such as TS and Rust, and now the “normal” C# style of calling a method without receiver is confusing.

Also lots of people love to add _ or m_ before fields to distinguish them from local variables, so why not just use `this.`? I think once you actually use this style it starts to make a lot more sense.

comment 6y ago · link · parent

How exactly does the default state work if that's the case? Is it just up to the user to treat the state as immutable and copy it rather than modifying it?

comment 6y ago · link · parent

Seems like compared to Redux this would make server-side rendering very challenging. Each atom is a global singleton so I'm not sure how you could render individual requests.

comment 6y ago · link · parent

I find it really annoying how JavaScript is treated on developer forums like this one. Why is it that when the same exact things are done in a typical language it's called “tooling” but in JavaScript it's “duct tape hacks on top of hacks”?

Don't get me wrong, my favorite language is Rust, but pretending the JavaScript ecosystem is unusable doesn't make you cool. I can be extremely productive in TypeScript.

comment 7y ago · link · parent

> Isn't this missing the point? It's not about the overhead of declaring a new function, it's that you've made one of the props change on every render, so your child element needs to run its render function every time.

This is the larger issue, but the `useCallback` hook can be used to memoize anonymous render functions based on given values to avoid this problem.

comment 7y ago · link · parent

Describing ops as “writing yaml files” is like describing software engineering as “typing.”

comment 7y ago · link · parent

I mean that's all well and good but I can't switch over my company's infrastructure to GCE for the next two days.

comment 7y ago · link · parent

Organization may not be a “business” thing but Trello, Asana, JIRA, and Slack sure are.

comment 7y ago · link · parent

Nesting multiple branches of ternary operators doesn't work well but if it's a sort of “if elseif elseif else” situation I think this looks pretty nice:

    x > 0 ? 'positive' :
    x < 0 ? 'negative' :
    'zero'

comment 7y ago · link · parent

There's a balance to it for sure. It sounds like estimation was taken far too seriously on your team if it was affecting you outside of work too. However, estimation is one of the primary skills of a software engineer. It's always hard to estimate well, but it's infinitely harder for a less technical person to do it for you. I think it's important to understand that and do one's best to improve at it over time.

comment 7y ago · link · parent

This point of view seems ignorant of history and human nature. For example, after slavery was abolished in the south, prison wardens realized they could just rent out their prisoners to former slave owners to make some extra cash. In support of this, the state governments came up with all kinds of nonsense like truancy laws so they could put black people in jail for any reason, even being unemployed. They just made them slaves again, legally.

Using prisoners for profit means there is profit in imprisoning more people.

comment 7y ago · link · parent

If these people are actually your friends, maybe you should show them more respect and stop assuming that the reason they are single is that they are less mature than you and chose to “chase hedonism” and “Instagram followers” over long term relationships. Despite what you might believe, it isn't easy for every person to find a long term partner, and not everyone wants to do it at the same point in their lives.

comment 7y ago · link · parent

> Firstly, life is pointless and meaningless without children

That seems like a very personal opinion you should be stating with much less certainty about other people's lives.

12345