Better HN
topnewbestaskshowjobs
Log inSign up

MathMonkeyMan

2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions

Submissions

comment 3y ago · link · parent

On Android there's Ubuntu Touch if you have a supported rooted phone. You still never get the full flexibility of a Linux (still Android running proprietary drivers under the hood), but it's nice to ssh in and do whatever.

Easier still is UserLAnd. Don't even need root. Works pretty well. http://www.davidgoffredo.com/phone-server

comment 3y ago · link · parent

> appearing to be busy is more important than being productive

It's like a bad code review, or bike shedding. It's so easy to look at who's at their desk with their heads down. It's hard to look into what they're doing and how it fits into larger objectives.

comment 3y ago · link · parent

I live in that neighborhood today, and love this story. Don't have anything else to contribute to the conversation.

There are what look like "supernodes" for LinkNYC near the park, and somebody set up receiver hardware on my roof for the other network, but I haven't yet figured out who.

comment 3y ago · link · parent

The mystery of The Other.

comment 3y ago · link · parent

https://www.google.com/url?q=https://www.jneurosci.org/conte...

comment 3y ago · link · parent

Maybe this is true. I'm an American and I know Americans who speak this way, but none of them have ever fought against a corrupt domestic foe.

And how often do the violent victors reveal their true ambitions? To be exactly those they deposed.

comment 3y ago · link · parent

This is a natural progression balanced by layoffs, for whatever reason.

The idea that irks the Marxist in me is that middle managers might sometimes be exempt from layoffs due to their class. No idea if that happens, though.

comment 3y ago · link · parent

This is evil, and I love it.

I wonder if the codec could use python's lexer (assuming it's exposed) to parse the for loops and nothing else. Then replace the loops with a placeholder, and then replace the placeholder in the AST after a parse. Might be cleaner than source->source transform by the codec, maybe not.

comment 3y ago · link · parent

Writing a recursive descent parser with nested for loops would sure be a pain.

comment 3y ago · link · parent

I hadn't thought of it this way. Good perspective. I'll inject some cynicism, though:

> It is useful, it works, it is very likely easy to understand.

It probably mostly solves the intended problem, and might be so close to coming apart that nobody dares improve it.

comment 3y ago · link · parent

> [...] with no documentation [...]

There's the problem.

comment 3y ago · link · parent

I prefer to stay inside...

comment 3y ago · link · parent

It costs nothing to ask for extra money, and sometimes people give it.

comment 3y ago · link · parent

People interested in monitoring developers under a microscope are not interested in those developers "thinking outside the box."

comment 3y ago · link · parent

At first I thought that implied that coworkers might not mind the lingering turds, but now I see it implies that visitors' impressions are more important than coworkers'.

It's meant to shame, then. "Don't forget to flush!" would have been infantilizing but probably effective. Instead, it's "Remember that one time I was embarrassed? We don't know who it was, but I will try to control all of you even here."

comment 3y ago · link · parent

It's the same as in C. The observation here is that variables with static storage duration can be initialized by running user code before main() begins.

comment 3y ago · link · parent

Reduce is perfect for this, nice point.

comment 3y ago · link · parent

Do you mean this?

    [cond ? expr1 : expr2]
Or maybe this:

    [(() => {/*code*/})()]

comment 3y ago · link · parent

The counterargument is that this selects people who are similar to that one guy, produces inconsistent results, and doesn't scale up well.

comment 3y ago · link · parent

Can't javascript already do [this][1]?

    const thrush = (value, func, ...funcs) =>
        func ? thrush(func(value), ...funcs) : value;

    // no new syntax required
    thrush(
      envars,
      Object.entries,
      x => x.map(([key, val]) => `${key}=${val}`),
      x => x.join(' '),
      x => chalk.dim('$ ' + x, 'node', args.join(' ')),
      console.log);
[1]: http://www.davidgoffredo.com/thrush.html

comment 3y ago · link · parent

My teammate says he does this. Writes everything three times, and is careful not to let _anyone_ see the first two, lest somebody tell him it's "good enough."

comment 3y ago · link · parent

Careful. This perspective lends to [SaaSS][1]. We _could_ give you the software and have it run on your machine, but then we couldn't justify charging a subscription. So, we'll give you a thin client, run the software on our hardware, and be sure to charge you much more than our costs. As a bonus, we can change the behavior of the software at any time without your knowing.

[1]: https://www.gnu.org/philosophy/who-does-that-server-really-s...

comment 3y ago · link · parent

Good point. These are test clusters that we use to reproduce customer issues. They usually have three or even just one node. It is in no way a production environment.

comment 3y ago · link · parent

> I couldn’t tell you why uses has a dash in front, and node-version does not.

Yes you could. I agree that YAML is hard to parse, but a moment's reflection reveals that "steps" is an array of things, and "node-version" is a property of "with", which is a property of the second element of "steps" (along with "uses").

The thing that has tripped me up about YAML the most is the question of when I have to indent, and by how much.

Generating configuration for a system is a pain in the ass and carries all the ills of a build system, but a loud comment saying "this is generated from X!" and a Makefile do well enough most of the time.

Some ideas for configuration formats:

- .js file that evaluates to a JSON-compatible value

- [EDN][1] and other s-expressions

- a file system tree

There are two extremes. On the "no code" side there are gigantic reams of JSON/XML/YAML whose overall structure is all but impossible to understand. On the "all code" side there is a bespoke program that concisely produces the configuration but that can't be understood without already knowing the output.

I aim for the middle.

[1]: https://github.com/edn-format/edn

comment 3y ago · link · parent

As are you, and so am I.

comment 3y ago · link · parent

on each node

comment 3y ago · link · parent

With a good boss, the 1:1 is a time to catch up with someone who is playing a different role in helping achieve the team's goals.

With a bad boss, the 1:1 is a regular compulsory reminder of who is the boss, and gives the boss something to do.

comment 3y ago · link · parent

I've never seen somebody get fired for too often being late to ship, but I have seen someone get fired for shipping changes that too often break customer workflows.

comment 3y ago · link · parent

It's handy to allow my teammate onto my kubernetes cluster without having to ask him for his public key.

comment 3y ago · link · parent

I think we work at the same company.

Write your RFCs as markdown in a git repository. Stick it to the man!

1
313233
38