HNHacker News
TopNewBestAskShowJobs

styfle

1,940 karma · joined September 20, 2016

https://styfle.dev

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

submissionscomments
styfle··on GitHub Stars !== Usage: React Is Still Blowing Vue and Angular Away
I have a couple projects that are getting a decent amount of stars recently and I'm looking at the stats for the last two weeks:

- One has 3750 unique visitors, and 680 stars in 2 weeks

- Another has 80 unique visitors, 20 stars in 2 weeks

styfle··on Styfle/awesome-online-ide:A list of awesome online development environments
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

styfle··on GitLab Web IDE
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

styfle··on Backdoored images downloaded 5M times removed from Docker Hub
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?

styfle··on Chatbots were the next big thing: what happened?
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 ;)

styfle··on ServiceFabric: a distributed platform for building microservices in the cloud
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.

styfle··on Things I Regret About Node.js [video]
> 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

styfle··on AMA with Substack and Matt Taibbi about a new business model for journalism
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

styfle··on The Node.js Ecosystem Is Chaotic and Insecure
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

styfle··on A Recycled IP Address Caused Me to Pirate Books by Accident
Is it a private server? It might be a shared host so that many domains are pointing to the same IP.
styfle··on Chat is Google's next big fix for Android's messaging mess
Here's the mobile friendly version of the article:

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

styfle··on CockroachDB 2.0 released
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

styfle··on Spotify opens on NYSE, valuing company at almost $30B
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.

styfle··on Re-inventing npmjs.com
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

styfle··on Ant Design – A UI Design Language
When you say it’s designed for enterprise applications, what does that mean? How would that be different then non-enterprise applications?
styfle··on Crunch Awesome PNG Image Optimizer
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

styfle··on Announcing TypeScript 2.8
Anyone catch the smoosh reference in there?

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

styfle··on Introducing `NPM ci` for faster, more reliable builds
Here's a link to the docs with a Travis CI example:

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

styfle··on A fork on GitHub is no fork
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

styfle··on The IRS collects data on Coinbase account holders
Worst user experience ever

- Comic book guy

styfle··on On its 100th anniversary, the madness of Daylight Saving Time endures
It’s possible for Arizona to start using DST in the future. Indiana used to not observe DST until 10 or 15 years ago.
styfle··on On its 100th anniversary, the madness of Daylight Saving Time endures
> 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.

styfle··on Getting any Facebook user's friend list and partial payment card details
What about code review process? Surely someone else verified the fix before deployment.
styfle··on On its 100th anniversary, the madness of Daylight Saving Time endures
As someone who travels a lot, do you think timezones are valuable or do you think there would be value in everyone adopting UTC?
styfle··on On its 100th anniversary, the madness of Daylight Saving Time endures
Why Arizona time? Isn’t it easier to use UTC?
styfle··on HyperCard Zine
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.
styfle··on Hulu.com: A new way to watch TV (2008)
I vaguely do but I seem to recall it was short lived.
styfle··on Linus Torvalds Rants
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...

styfle··on UCLA introductory programming classes should focus more on Python, not C++
I beleive UCI switched to using Python for most CS courses. Previously they were using Java and I’m sure C++ prior to that.
styfle··on Burning Out: What Really Happens Inside a Crematorium
Are you suggesting that the furnace that heats your home is fueled by burning deceased people?
← PreviousPage 7 of 15Next →