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 Moving from Disqus to Schnack
Yeah, I have a love-hate relationship with Medium.

The fact that every comment is another "article" is bizarre. Also, comments have become increasingly hidden behind suggested articles and require a click to load.

But I like that you can highlight a word or sentence and comment on that. The clapping thing is kind of interesting because you can give more "internet points" to better articles.

The one thing that Medium is great at is getting an article into the eyes of the people who want to read it, which is something that my personal blog will not do.

Also, there is something nice about consistent look n' feel with the same font when reading blog posts, so someone who is used to medium might be more likely to click on a medium.com link than a ceriously.com link.

styfle··on Oh shit, git: Getting myself out of bad situations
My oh shit moment is that `git add .` doesn't stage deleted files. I almost always use `git add -A` because that is typically what I meant, especially for someone coming from another Version Control system.
styfle··on Elasticsearch For Beginners: Indexing your Gmail Inbox
Yes. I'm just adding to Cyberdog's comment that it's not immediately obvious from the title of the article that the instructions are for indexing a static file.

The title makes it sound like it's instructions to setup up an alternative API to Gmail search. I was thinking something like Algolia.

styfle··on Moving from Disqus to Schnack
I cross post to medium from my blog. I figure if people want to comment, they can do it there. Here's an example of the original[0] and the copy[1].

[0]: https://www.ceriously.com/blog/post.php?id=2017-10-16-es6-mo...

[1]: https://medium.com/@styfle/22969cd360f0/

Medium allows you to import pretty easily and sets the canonical URL so Google (hopefully) won't get confused with duplicate content.

styfle··on Bundle Phobia: find the cost of adding an npm package to your bundle
Agree, Set is a disappointment.

I think the “Why” is because it’s easier to get everyone to sign off on small changes than large changes that can never be removed.

The web platform has to live for a long time and be backwards compatible.

styfle··on Bundle Phobia: find the cost of adding an npm package to your bundle
Some packages ship with both importable module as well as a global CLI. So it’s hard to categorize packages on into a single category.
styfle··on Elasticsearch For Beginners: Indexing your Gmail Inbox
Also, any new emails you received since exporting your mailbox will not be available.
styfle··on Bundle Phobia: find the cost of adding an npm package to your bundle
They are bundled, it’s called ES6/ES2015. But for backwards compatibility, the userland packages are still used regularly.
styfle··on Clang 5 in a Docker container for C++17
“Docker Engine” doesn’t but “Docker for Windows” provides several tools including a wrapper around Hyper-V. I’m sure “Docker for Mac” does something similar.

A year or two ago, it used to spin up Virtual Box.

styfle··on RESTyped: End-To-end Typing for REST APIs with TypeScript
I’ll have to give this a go.

I usually shared types from the backend to the front end in the same repo. Then change

    (data: any) 
To something like

    (data: User)
See this repo

https://github.com/styfle/react-server-example-tsx

styfle··on Essential Image Optimization
This was posted yesterday

https://news.ycombinator.com/item?id=15933687

styfle··on The Last JSON Spec
> doing some validation on the content of the values is easy

How can you validate a JSON string to see if it matches a TypeScript declaration?

styfle··on Don’t keep cell phones next to your body, California Health Department warns
What about if I don't have a cell phone but I'm standing between a cell tower and someone talking on their phone?
styfle··on A full port of LINQ for JavaScript
https://github.com/Anstinus/lazy-linq/pull/1
styfle··on Server-Side I/O Performance: Node vs. PHP vs. Java vs. Go
Where did you even find the source code?
styfle··on Microsoft Adds an OpenSSH Client to Windows 10
This is what I do too.

I used to use Cygwin but it became a pain to manage the packages and it couldn't update it's own setup.exe last I checked.

I recently tried out WSL and I still run into problems with the file system. My home directory is in a new place which is kind of annoying. And cloning a repo with Git changed all the line endings. autocrlf didn't do anything for me either.

Back to good ol' git.exe

styfle··on Show HN: Airmash – Multiplayer Missile Warfare HTML5 Game
Works fine on the iPhone 6 running iOS 11
styfle··on Show HN: Λ-News: Hacker News comments (chrome extension)
I don't understand the screenshot
styfle··on Apple is close to acquiring Shazam, sources say
Does Siri save the result anywhere? It’s nice to get an instant response but my memory isn’t very good.
styfle··on Show HN: A New, Clean Geolocation API
How accurate can you get with an IP address? I seems like it could act as a fallback if the geolocation web api is blocked.

I have a side project[0] that uses the geolocation api to post to Slack and seems to be pretty accurate, even on mobile. Maybe I'll try this as a fallback.

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

styfle··on Gotchas in Writing Dockerfile
Thanks, a lot of these I've read elsewhere but it was a good refresher and it's nice to have it all in once place.
styfle··on How China’s unmanned stores allow people to live with almost zero human contact
I used to work at Target and they had a system in place that would time the cashier from when they scanned the first item to the time the payment was placed and gave a letter grade based on how fast the experience was for the customer.

It was a bit of gamification but also served as way for managers to see which cashiers were slow and not meeting company standards.

styfle··on Amazon Prime Video arrives on Apple TV in over 100 countries
I have been waiting a lifetime for this! Ok that's an exaggeration but I'm happy Amazon Prime is finally available on the Apple TV.
styfle··on Ditching Go for Node.js
Good point.

What do you think about shared components using React SSR?

https://github.com/styfle/react-server-example-tsx

styfle··on Why funding open source is hard
TLDR; Code Sponsor brought funding to small and large projects on GitHub. But GitHub didn't want ads and Code Sponsor shutdown.

Starting in January, Code Sponsor will take on a new role of matchmaker between sponsors and developers. Funding will be provided at a flat monthly rate. Code Sponsor will represent the developers as an "agent" and negotiate the highest rates on a month-by-month basis.

styfle··on Save net neutrality in the US
I'm more concerned about small blogs like my own[0] who will never pay an ISP to be in the fast lane.

My blog doesn't get huge amounts of traffic now but I could imagine that it could get blocked by ISPs unless you have the Wild Wild West package that lets you visit any website, not just the big names.

We can't treat websites like cable channels because cable channels are separate streams. But websites are all linked.

[0]: https://www.ceriously.com/blog

styfle··on I tried emailing like a CEO and it made my life better
I think you missed a key point in your example which you demonstrated but didn’t explain. The last sentence of the email should be an action for the reader. Don’t make them scroll back up.
styfle··on Git hash function transition plan
This doesn’t render very well on mobile. I wish the Git team would write their docs as a .md so GitHub could render as HTML with word wrap in all its glory.
styfle··on Introducing Nullable Reference Types in C#
This is great! TypeScript (another Microsoft language) did something similar not long ago but used a flag to opt-in to strict null checks. It seems this setting is strongly encouraged.

Looking at the examples, the compiler can determine if not null by reading the if statement like so

    if (str != null)
But what about if the code uses the following?

    if (!string.IsNullOrEmpty(str))
TypeScript has a way to solve this using the `is` keyword but I'm not sure if this is introduced in C# yet.
styfle··on Code Sponsor is shutting down on December 8
As a dev, that was my favorite part of Code Sponsor: being able to see which repos were doing well and on what days impressions/clicks increased.

I could see a correlation between posting to Hacker News and the amount of impressions/clicks for that day.

← PreviousPage 10 of 15Next →