Better HN
topnewbestaskshowjobs
Log inSign up

rootlocus

3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions

Submissions

comment 6y ago · link · parent

npm for js is apt/brew for os

comment 6y ago · link · parent

Just goes to show C++ failed the zero overhead principle.

comment 6y ago · link · parent

OMG-DESIGN-4: Explicit is better than implicit

Ahh, straight out of the zen of Python!

    $ python -c "import this"

comment 6y ago · link · parent

The (games) in the title pretty much limits the article to C / C++

comment 7y ago · link · parent

You're comparing apples to gnomes.

comment 7y ago · link · parent

> Cos sure as hell no user is waiting for this.

Why do you assume Google implements features that users want? They implement features that their clients want: the ones paying for ads.

comment 7y ago · link · parent

If k8s is a complicated software system, then it's specific to k8s (among other systems).

comment 7y ago · link · parent

Not until we finish raking the forest floors.

comment 7y ago · link · parent

Trump's campaign was finely tuned to win the electoral college, because that was the winning condition. If there was no electoral college, his campaign would've been different, and he might've won either way.

comment 7y ago · link · parent

Another great unit of measure is the bus factor.

comment 7y ago · link · parent

If it's safe for your work, you're probably the intended audience.

comment 7y ago · link · parent

> Latest iteration is to write the majority of the app in Go and communicate with a native frontend over TCP

You need a protocol over TCP. Something standard and easy to use, hopefully one that people already know and has wide support from libraries. HTTP?

Native UIs are nice, but the cool kids like to stylize their UIs. Things like gradients, shadows, highlights, animations, etc. And wouldn't it be cooler if you go to all that trouble to stylize your UI to have it look the same on all platforms? What if you add another layer on top of the underlying UI framework? Something that lets you compose UI elements from basic shapes, maybe a way to separate the layout from the style? HTML + CSS.

Oh wait, we reinvented electron again.

comment 7y ago · link · parent

A breaking change in API should mean a major version bump. You're either not using the public API, using the 'latest' version, or the library is, pardon my french, poop.

comment 7y ago · link · parent

Whatever the bug, git reset is the solution.

comment 7y ago · link · parent

It speaks to the priorities, attitude and / or the work ethics of the developers involved. I wouldn't trust people who care about using teenager slang and looking cool to write secure and efficient services that I could use in production with customer data. I may be wrong, but my confidence is still low.

comment 7y ago · link · parent

The original qmail was widely known for being very secure and fast. This implementation on the other hand, is apparently marketed using warez slang?

> Netqmail 1.06 is produced by this motley krewe

comment 7y ago · link · parent

Except.. that's pretty much how raw images are represented. Substituting "integers" for "bytes" if you want channel resolution, or leaving integers if you have 32bit pixel depth.

https://github.com/nothings/stb/blob/master/stb_image.h#L120

https://wiki.libsdl.org/SDL_Surface

comment 7y ago · link · parent

You said:

> If they took the time to have “relaxation” rooms, i doubt its as bad as the story makes it out to be.

The article said:

> Facebook contractors are required to use a browser extension to report every time they use the restroom, but during a recent illness, Lola quickly took all her allotted breaks. She had previously been written up for going to the bathroom too many times, she said, and so she felt afraid to get up from her desk. A manager saw that she was not feeling well, and brought a trash can to her desk so she could vomit in it. So she did.

comment 7y ago · link · parent

I'm sorry, but these kind of straw men are making discussions on the subject impossible. I argued that we shouldn't judge adults based on the stupid things they did as children.

> Do we really want to be haunted by our past in such a way?

To which my reply was: let's be mature about it and not care about trivialities from someone's past.

Now you change the subject to: "What if its you kid who's being bullied or who got bullied?". My kid being bullied "right now" is not the same as "my kid did some stupid shit 10 years ago and people are making fun of him now because of it". This is another problem with another solution, and it's not something I argued about.

comment 7y ago · link · parent

Yes, we all agree children and teenagers do stupid shit. Since we all acknowledge it, can we be mature about it and not "haunt" people with it?

comment 7y ago · link · parent

> 2. Need to remove a post that is actively agitating/acting as a focus point for some group that rises to the level of physical threats.

Mobs have short attention span and are mobilized by the newest controversy of the day. We're talking about recording history. You remove a bug from git, but you don't alter the entire history for it. You remove passwords from git, but you also change the current passwords.

There's no reason we can't 'fix' the present and record the past at the same time.

comment 7y ago · link · parent

> Hardware has come a long way since the mid-'90s

Too bad Wirth's law states that software is overcompensating for that.

comment 7y ago · link · parent

TL;DR Yeah, but I don't care.

> You are simultaneously reaffirming your neighbor's standards for themselves, and rejecting them for yourself.

Yes, because we are complex, subjective, multidimensional humans, and we can judge each other based on different referential systems. If I don't care about your subjective perspective, I don't have to prove myself in your eyes. And if I don't care what your referential system is then I'm only a hypocrite in your eyes.

- You have a clean yard, you must be a good person. I have a messy yard, but I like it / I don't care. I can still be a good person for other reasons, but I don't care to be that person in your eyes. I do care that you're pestering me with comments, so please stop.

comment 7y ago · link · parent

1. That's not how the implication operator works

2. You don't necessary have to agree with the premise, but you're proposing it because you think the other person agrees with it.

comment 7y ago · link · parent

Is this the "no serious programmer" fallacy?

comment 7y ago · link · parent

> You can learn something here, if you pay attention.

I'm all for learning and debating, but this comes off awfully patronizing.

> In a sound design, objects more usually get their attributes at construction time, and keep them until they are destroyed.

Immutable objects are nice and I always try to use them when I can, but arguing that everything should be immutable or you have a design problem... that's exaggerated.

> When something needs to change, from outside the object, it is usually better to make another object.

As with everything, there's a trade-off with any solution. Allocating and copying data isn't cheap. And the fact that you just pick one way of doing things and discard anything else as "bad design" doesn't inspire confidence.

> The key here is that the public member functions should be doing useful work for you.

No, the "key" is that you are abstracting access to data. Your setter may do validation or transformation on the data. You may only offer const access to data. You may even do a defensive copy of the data. You may set breakpoints or log access to the data.

> If the object doesn't abstract anything, it isn't earning it keep.

Not all objects need to represent functionality. Some represent data. And mutating data is fundamentally what every program does. Just because you have an aversion to mutating data outside your object and you are willing to pay the price for immutable structures, doesn't mean everyone else is following a "classic anti-pattern".

> Another indicator of bad design is public virtual functions.

I really don't see the wisdom behind this one.

comment 7y ago · link · parent

Some people can do both, but choose the second (using a library) because of all the reasons reusing existing libraries instead of rolling your own. From this point of view, I'd rather hire someone who doesn't suffer from the "not invented here" syndrome.

comment 7y ago · link · parent

I don't have any sources for this, but I always assumed they dropped the magplug because it was too thick and they wanted to use usb-c exclusively.

comment 7y ago · link · parent

By IDE level, you mean compile level. Types are at compile level.
1
111213
40