Better HN
topnewbestaskshowjobs
Log inSign up

gabes

64 karma · joined Mar 10, 2013 (13y ago) · 40 submissions

Submissions

comment 2w ago · link · parent

I've built a habit of completing a game of sudoku every night before bed. After being frustrated with how messy my board can get, I decided to build an app for my reMarkable Paper Pro. In my opinion, it's a big step up from both paper and phone apps.

https://garbles.github.io/sudoku/

comment 3mo ago · link · parent

Is inappropriate content on some random forum the same as deliberately manipulating children?

comment 4mo ago · link · parent

I think this misses what is undeniably the best part about zod. Yes, you could define all of your types this way, but it’s only necessary at the boundary of the program. Internal functions don’t need to validate inputs if the caller is trusted.

Being able to define a loose input schema at the boundary and then transform it into a shape that your program actually needs is extremely useful.

comment 5mo ago · link · parent

The entitlement of the gaming “community” is next to none.

I did what you said last year and it’s been a delight.

5.

Building a Robust Documentation Agent with DigitalOcean Gradient AI Platform(digitalocean.com ↗)

2 points · by gabes · 7mo ago · discuss

comment 1y ago · link · parent

This is exactly what I would do too if AGI was just around the corner.

comment 1y ago · link · parent

What does a migration look like with something like this?

comment 2y ago · link · parent

Meta doesn’t buy competition?

comment 4y ago · link · parent

You should have read the post before commenting.

10.

React Facade: Strongly typed dependency injection for your React hooks(github.com ↗)

3 points · by gabes · 4y ago · discuss

11.

Notes on maintaining an internal React component library(gabe.pizza ↗)

3 points · by gabes · 4y ago · discuss

comment 4y ago · link · parent

I was asking because American right wing news has frequently lied about what was happening here in Canada. To my knowledge there hasn’t been a single report of a frozen bank account over a donation except for some debunked tweet by a Canadian conservative politician.

Thus, I asked for a source.

comment 4y ago · link · parent

> Even people who donated to the truckers before the crackdown got targeted in the bank account freezes.

Source?

comment 4y ago · link · parent

This isn't _exactly_ true. JS will await on anything that is Promiselike (an object with a `then` function that accepts a callback). See the TS definition of Promiselike.

15.

Cloud Design Patterns(docs.microsoft.com ↗)

3 points · by gabes · 4y ago · discuss

comment 4y ago · link · parent

I've both personally and professionally worked on builder-type applications in the past and found that lenses are always the most elegant way to do state management. Over the past month I decided to hack on a general purpose library for React and lenses with the end goal of coming up with something that felt _good_ to use. Cheers!

17.

Show HN: Concave, a lens-like state management library for React(github.com ↗)

2 points · by gabes · 4y ago · 1 comment

comment 5y ago · link · parent

I think this suggestion highlights why I'm not a fan of the module-level mocking approach. It puts the onus on the developer to ensure that type checks are present where they wouldn't otherwise be. On larger teams, I've found that stuff like that is too easy to forget about or choose not to do.

comment 5y ago · link · parent

Yeah that’s fair. Not sure about you, but in the past I’ve struggled with keeping Jest module-level mocks in sync with their actual interface. Was playing around with how I could get around it and this is something I came up with.

20.

React Facade: Dependency injection for React hooks(github.com ↗)

2 points · by gabes · 5y ago · 4 comments

comment 5y ago · link · parent

Ah of course. Shows how I hold my bias toward Facebook :facepalm:

comment 5y ago · link · parent

Speaking of fuck you patterns, has anyone else been part of the A/B test where navigating to an Instagram page prevents you from using the back button? They somehow clean my tab history so that I can’t go back to Google. It’s been happening to me for months!

23.

Effective ML(blog.janestreet.com ↗)

2 points · by gabes · 7y ago · discuss

24.

Effective ML by Yaron Minsky(youtube.com ↗)

2 points · by gabes · 7y ago · discuss

25.

First-Class Modules(v1.realworldocaml.org ↗)

3 points · by gabes · 7y ago · discuss

26.

Fundamental theorem of software engineering(en.wikipedia.org ↗)

13 points · by gabes · 7y ago · discuss

comment 8y ago · link · parent

This game is incredibly good. It's everything Diablo 3 should have been.

comment 9y ago · link · parent

The definition of an introvert is a shy person.

29.

Ask HN: Who are your favourite conference speakers?

1 points · by gabes · 9y ago · discuss

30.

Flag: Feature flagging made easy for React and Redux(github.com ↗)

2 points · by gabes · 9y ago · discuss

12