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 6y ago · link · parent

I believe npm blocks publishing packages with similar names to existing packages.

https://stackoverflow.com/a/54135900/266535

comment 6y ago · link · parent

In this case, google cloud vision, it seems like the docs are fine. It’s the platform that’s confusing because it requires too much ceremony to get started.

comment 6y ago · link · parent

Admittedly, I jumped to conclusions thinking someone finally made the Jump To Conclusions game from Office Space :D

https://youtu.be/sDEL4Ty950Q

comment 7y ago · link · parent

Strange, this should have been a duplicate of the previous post here: https://news.ycombinator.com/item?id=21381172

125.

SWR – React Hooks for Remote Data Fetching(swr.now.sh ↗)

5 points · by styfle · 7y ago · discuss

comment 7y ago · link · parent

On iOS, you can tap the top of the address bar to scroll to the top (I think since iOS 3.0 or so). This became 2 taps when they started hiding the address bar (one to show it, and another to invoke the "back to top" feature).

In Chrome (and probably other browsers), you can use CMD+Up to jump to the top and CMD+Down to jump to the bottom.

127.

US Constitution – A Git repo with history of edits(github.com ↗)

1198 points · by styfle · 7y ago · 378 comments

comment 7y ago · link · parent

Thats a good point. It is probably rare for proposals to change after stage 3 which is why the TypeScript team does not implement a ECMAScript feature until it reaches Stage 3.

In this case, members of the TS team were actually championing these ES proposals :)

comment 7y ago · link · parent

Not to be confused with `const enum` which act more like a preprocessor and emits in the value at compile time.

    const enum Directions { Up, Down, Left, Right }
    console.log(Directions.Left)
    // emits js file with console.log(2)

https://www.typescriptlang.org/docs/handbook/enums.html#cons...

comment 7y ago · link · parent

This is my philosophy with most software. I expect to get 80-90% of the way with zero configuration and then maybe for some advanced features I’ll touch the config and personalize some things.

The added benefit to becoming proficient with default configuration is that it is really easy to upgrade to a new computer and start from scratch.

And of course with vim, the benefit is the ubiquity when using ssh or docker or VMs which typically use the defaults.

comment 7y ago · link · parent

Another similar approach is using “Serverless Pre-rendering” which is a fancy way to say serve stale and update in the background.

There is a demo using Notion as the “backend” which is kind of like Google Docs. I could see this being a great solution for less technical authors who only want to deal with content.

In the end, it’s like a static site but you don’t wait for a build step.

https://zeit.co/blog/serverless-pre-rendering

comment 7y ago · link · parent

The first three bugs you listed are related to source maps. I haven’t used Firefox in a long time but I have experienced the same behavior in Chrome and VS Code when debugging TypeScript. It turns out, there was a bug in the loader that was generating source maps. Perhaps your issue is tooling and not the browser?

133.

Now dev – Serverless on localhost(zeit.co ↗)

273 points · by styfle · 7y ago · 104 comments

comment 7y ago · link · parent

That’s a fascinating tool! Now I realize I need to use more enjoyable words when discussing TypeScript :)

comment 7y ago · link · parent

This reminds me of Fluid from 2007

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

https://fluidapp.com

comment 7y ago · link · parent

I'm guessing they sliced the "8" down the middle which makes a "3"

comment 7y ago · link · parent

There is one project I know of that is bringing webrender to desktop apps: https://news.ycombinator.com/item?id=18312983

comment 7y ago · link · parent

The source code says the data is only valid for 10 weeks. If Google releases a new version of Chrome every 6 weeks, then a user could never skip a single version of Chrome without becoming vulnerable.

That doesn't seem like it's enough time. I would expect one year or at least 6 months.

comment 7y ago · link · parent

Thanks for making DeskGap!

I have been watching these types of tools (desktop js frameworks) and I'm glad the DeskGap docs[0] explain the difference between existing tools like Electrino and Quark although the most notable difference is that those two projects are no longer maintained.

I just added DeskGap to my list of Awesome Desktop JS frameworks[1].

[0]: https://deskgap.com/#there-are-already-similar-attempts-elec...

[1]: https://github.com/styfle/awesome-desktop-js

comment 7y ago · link · parent

The Midwest has a lot of age 50+ devs. Java and ASP.NET rule the land and it’s almost all B2B like hospitals and other large orgs that don’t want bleeding edge tech. For example, trying to find React devs in the Midwest proved difficult.

141.

Open Graph Image Generator(github.com ↗)

1 points · by styfle · 7y ago · discuss

comment 7y ago · link · parent

I have to post this parody lightning talk because Gary Bernhardt is hilarious and the slides demonstrate some of the (exaggerated) confusion around static vs dynamic types.

https://www.destroyallsoftware.com/talks/useing-youre-types-...

comment 7y ago · link · parent

This links to the same code as my post. You might just have an older bookmark. See this PR[0].

[0]: https://github.com/agentcooper/typescript-play/pull/24

comment 7y ago · link · parent

> unfortunately when you share a TypeScript playground link, those settings are not saved in the URL. For this reason, you have to manually set them when you open any TypeScript playground link from this article.

There is a much better typescript playground[0] that supports all options in the permalink, for example see this link[1] that has `removeComments` enabled.

[0]: https://typescript-play.js.org

[1]: https://typescript-play.js.org/?removeComments=true#code/PTA...

comment 7y ago · link · parent

Also, this is very similar to ZEIT Now[1]

[1]: https://zeit.co/now

comment 7y ago · link · parent

NaCl was not cross platform and not standardized the same way that Web Assembly is.

147.

Dinatra – a web app framework for deno(github.com ↗)

1 points · by styfle · 7y ago · discuss

comment 7y ago · link · parent

It looks like that xlink syntax was deprecated in SVG 2 but it still works in most browsers.

https://css-tricks.com/on-xlinkhref-being-deprecated-in-svg/

comment 7y ago · link · parent

Is this documented anywhere?

comment 7y ago · link · parent

Google search results will be rendered useless.

"V8 release v8"

At least when it's spelled out like this, they always use capital V8 for the engine and a lowercase v8 for the version.

I can imagine the verbal V8/v8 confusion probably forces everyone to say "version 8"

1
456
18