Recent submissions

Comment · 5 years ago
I think this is a minimization of the harmful nature of statements made by Donald Trump. We're not talking about not liking his political views. No, we're talking about dangerous encouragement of violence.

It's not just that YouTube and Twitter think Trump is mean.

Comment · 5 years ago
This is not possible if your password manager itself requires a password. Unless you mean "password managers don't work because someone might know the master password" which is true, but realistically the alternative is just using the same weak password all over the web, which is way worse.
Comment · 5 years ago
Password management is better, not worse, for security.
Comment · 6 years ago
Sorry for the late response.

> execute relatively small snippets of shell code/one-liners as part of an asset management pipeline without having to "shell-out" and invoke an external process

This is indeed a small part of the value of my shell, though I wouldn't view it as the primary reason. I'm trying to make a nice experience for an interactive command line shell first, then will think about scripting use cases.

Blurring that line between shell + scripting is my intention, so it would be good to capture your case here at some point.

> Requirements for shell control constructs are modest, but piping and redirection should work, as well as limited shell var/macros expansion, and maybe if/then.

I'm struggling to understand one detail of your use case here. Is this a script (stored as some e.g. .js file), or something you'd be executing interactively? If the former, my shell does have as part of its library a suite of tools for executing shell commands (including piping + redirect) from within the Deno runtime. That would make something like the following possible:

const jsFilesInDirectory = await exec('ls | grep .js');

if (jsFilesInDirectory.includes('index.js') {

  // some logic
}

The above is also strikingly similar to shelljs, but my solution differs in a key way: where shelljs is re-implementing many commands, I've developed logic for parsing and evaluating any shell-like "pipe-separated" commands.

In any case, the primary intention of my project is to create an interactive shell, not a scripting language. That said, it would be possible to tease out and reproduce my logic to parse and execute piped commands in Node.js, to allow for a slightly more capable "shelljs" clone.

Hope that helps.

Comment · 6 years ago
Thanks! It's Deno only I'm afraid. I'm interested in what would make it more useful for you as a Node project (so that I can gather info on the sorts of use cases that would be good).
Comment · 6 years ago
Thanks for this
Comment · 6 years ago
I don't understand this part. As far as I can tell, utility monopolies can only form with government assistance (i.e. lobbying).
Comment · 6 years ago
Here's a question I have about these types of frustrating monopolies, and I'd love a point towards a book or something that can explain.

Let's say I have a bunch of money (or funding) for a big new internet provider that could easily outperform the existing provider. What makes it so hard to do it?

I hear complaints (and complain myself) about seemingly unfair pricing and slow speeds. The tech is there to make > 100mb internet, why isn't it more widespread? Surely consumers are willing to pay for a competitor that can provide it.

Comment · 6 years ago
The pursuit of sustainable living and the pursuit of a multi-planetary existence are parallel endeavours, not serial ones. Perhaps the view from Mars will instil a renewed perspective on our dependence on Earth, and teach us lessons on ecological management via terraforming.
Comment · 6 years ago
For me, no formal metric can capture what I get out of buying books at an independent book shop. I feel like I'm trading with an old currency, only the books I own and buy are a reflection of my own character, or even soul.

When I lend or trade a book with a friend, it's a transaction using those same fragments of our souls and we grow slightly closer. We now have a shared experience in those books and each understand each other's view of the world a little better.

Reading might be a largely solitary experience, but the passing of a book from one pair of hands to another achieves a communication far beyond reading a review or even a personal recommendation. Somehow the mass of the book itself carries with it a greater weight to the recommendation.

Comment · 6 years ago
I really enjoyed it too. Some HN commenters could do well to learn about opinions!
Comment · 6 years ago
In my opinion, this is simply an over-extended metaphor. Programming ultimately is not carpentry, and custom tooling is justifiable in many more cases.
Comment · 6 years ago
You can even export as PDF and print
Comment · 6 years ago
But then, everything we look at paints an image onto our retina, so using it as a hook for a headline feels disingenuous.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton