Better HN
topnewbestaskshowjobs
Log inSign up

styfle

1,940 karma · joined Sep 20, 2016 (10y ago) · 531 submissions

https://styfle.dev

[ my public key: https://keybase.io/styfle; my proof: https://keybase.io/styfle/sigs/k5Jx2P3fJ9JOZsHyU2TLChLetDsvmL2mHK7wJMj-nKk ]

Submissions

comment 8y ago · link · parent

Hello, I made/maintain this list and am happy to accept PRs!

If GitHub is blocked in your workplace, you can view the list here: https://ide.ceriously.com

comment 8y ago · link · parent

I have been keeping a list[0] of Awesome Online IDEs that you might be interested in. It's difficult to explain the differences between them (in one line of text) so you might have to try it out yourself.

[0]: https://github.com/styfle/awesome-online-ide

comment 8y ago · link · parent

A couple years ago, I wrote a container than periodically polls the Docker Socket to check for currently running containers with exposed ports and a special label applied.

It then iterates over those containers and writes a nginx.conf file to a shared volume, then sends a SIGHUP signal to another container running nginx as a reverse proxy to the containers.

The "polling job" container doesn't expose any ports and is not reachable from the outside world and the only input into this program is reading data from the Docker Socket.

Do you think this is still vulnerable to attacks like Traefik is or does this 2-container routing protect against the attacks you're thinking of?

comment 8y ago · link · parent

I think you answered your own question.

The people using the automated phone services are the people without internet or even computers.

Believe me, they exist ;)

comment 8y ago · link · parent

Since my company uses .NET and a lot of MS products, I was tasked with learning SF in early-mid 2016. I don’t remember specifically what I didn’t like but it was probably poor documentation and slow build/deploy. It didn’t feel production ready.

Shortly after, we adopted Docker which was nice because we could run some Node.js services and some .NET Core services.

Although Docker introduced its own problems, namely orchestration.

comment 8y ago · link · parent

> There's very few things JS classes can do that ES6 modules/named exports along with closures returning plain objects can't do better

That's a really good point. I was about to disagree with you but then I created a thought experiment.

Thought Experiment:

I wonder what the JS landscape would look like if ES6 Modules were introduced as part of ES5 about 8 years ago? I could definitely see how that would make classes fare less appealing if we already had a great module system (sure CJS existed but browser didn't support it).

Looking at the timeline of when these features were implemented in all major browsers:

* ES6 Class[0]: implemented 2.5 years ago * ES6 Modules[1]: implemented 1 month ago

[0]: https://caniuse.com/#feat=es6-class [1]: https://caniuse.com/#feat=es6-module

comment 8y ago · link · parent

This is the first I’ve heard of Substack.

I thought I recognized that name and then I remembered....there’s a developer[0] who has written many packages on npm[1] with the same name: substack

I’ll have to check this out just because of the name :)

[0]: https://github.com/substack

[1]: https://www.npmjs.com/~substack

comment 8y ago · link · parent

You might find Package Phobia[0] useful. It determines the size of a package before you install it including it's dependencies. Disclaimer: I wrote it.

Another good tool to use before you pull in a dependency is this dependency visualization[1].

[0]: https://packagephobia.now.sh

[1]: https://npm.anvaka.com

comment 8y ago · link · parent

Is it a private server? It might be a shared host so that many domains are pointing to the same IP.

comment 8y ago · link · parent

Here's the mobile friendly version of the article:

https://www.theverge.com/platform/amp/2018/4/19/17252486/goo...

comment 8y ago · link · parent

There is some black magic[0] going on with BedrockDB. They are using a single node at Expensify and getting 4 million queries per second.

[0]: https://news.ycombinator.com/item?id=16118776

comment 8y ago · link · parent

One thing that stands out to me that differentiates Netflix vs Spotify is what happens when a license expires and content gets removed.

With Netflix, my reaction depends on if I watched the content before it was removed.

With Spotify, it's almost always rage.

Why? I often listen to music more than once but I often don't watch movies more than once.

comment 8y ago · link · parent

No, react is not purely front-end. You can do server-side rendering (SSR) with react[0]. It can replace a view engine such as ejs or handlebars.

The article mentions that the HTTP framework "hapi" was replaced with "spife".

So yes, they changed the backend and the frontend at the same time.

[0]: github.com/styfle/react-server-example-tsx

comment 8y ago · link · parent

When you say it’s designed for enterprise applications, what does that mean? How would that be different then non-enterprise applications?

comment 8y ago · link · parent

Those examples are stunning!

There is a ticket explaining where it works well and where it doesn't:

https://github.com/chrissimpkins/Crunch/issues/15

comment 8y ago · link · parent

Anyone catch the smoosh reference in there?

I think type Flatten<T> should be renamed to type Smoosh<T> hehe

227.

WebAssembly Studio – Online IDE for WebAssembly(webassembly.studio ↗)

3 points · by styfle · 8y ago · discuss

comment 8y ago · link · parent

Here's a link to the docs with a Travis CI example:

https://docs.npmjs.com/cli/ci

comment 8y ago · link · parent

I don’t think GitHub actually labels #2 as a fork, but traditionally that’s been the meaning.

They just needed a word to show that the repo is not original and is tied to an upstream repo.

For example, when I wanted to “fork” a project[0] that was no longer maintained and not accepting PRs, I actually had to contact GitHub to “unlink” my repo so that I my repo could be standalone and utilize all the features on GitHub (can’t remember which features off the top of my head).

[0]: https://github.com/styfle/geoslack

comment 8y ago · link · parent

Worst user experience ever

- Comic book guy

comment 8y ago · link · parent

It’s possible for Arizona to start using DST in the future. Indiana used to not observe DST until 10 or 15 years ago.

comment 8y ago · link · parent

> it is 3am, is it time for lunch now?

Why can't you eat when you're hungry?

Why can't you go to sleep when it gets dark?

A better way to manage when things should happen is to create a schedule which could be defined in UTC. I don't think the time zones really solve this problem.

For example, I might assume that I can eat dinner when my plane lands in my destination around 8pm. But when I look for a local restaurant, they all close at 8pm because it's a smaller town. I still need to look at the hours of operation for that business.

So I can't really make assumptions based on the local time anyway so why do we need to adjust them.

> how we will manage time once we become a multi planet species.

Excellent question! We would probably need to remove the concept of "days" because that is relative to the current planet.

comment 8y ago · link · parent

What about code review process? Surely someone else verified the fix before deployment.

comment 8y ago · link · parent

As someone who travels a lot, do you think timezones are valuable or do you think there would be value in everyone adopting UTC?

comment 8y ago · link · parent

Why Arizona time? Isn’t it easier to use UTC?

comment 8y ago · link · parent

React Components can almost do this. There are React dev tools to inspect each Component on the page (not just html element). You could jump to source and copy/paste the Component in another app.

comment 8y ago · link · parent

I vaguely do but I seem to recall it was short lived.

238.

The official GitHub mirror of the Chromium source(github.com ↗)

2 points · by styfle · 8y ago · discuss

comment 8y ago · link · parent

You have piqued my interested. Is the problem at a social level? We want leaders who are assertive and strong willed?

I think most organizations suffer from this problem, not just governments.

For example, there are megachurches[0] that have gained huge followings only to collapse due to leaders with this personality and the will to hold onto power.

[0]: https://en.wikipedia.org/wiki/Mars_Hill_Church#Church_reorga...

240.

Docker Cloud/Hub Security Scanning Deprecation(success.docker.com ↗)

1 points · by styfle · 8y ago · discuss

1
789
18