HN user

gabes

64 karma
Posts21
Comments17
View on HN
www.digitalocean.com 3mo ago

Building a Robust Documentation Agent with DigitalOcean Gradient AI Platform

gabes
2pts0
github.com 4y ago

React Facade: Strongly typed dependency injection for your React hooks

gabes
3pts0
www.gabe.pizza 4y ago

Notes on maintaining an internal React component library

gabes
3pts0
docs.microsoft.com 4y ago

Cloud Design Patterns

gabes
3pts0
github.com 4y ago

Show HN: Concave, a lens-like state management library for React

gabes
2pts1
github.com 5y ago

React Facade: Dependency injection for React hooks

gabes
2pts4
blog.janestreet.com 6y ago

Effective ML

gabes
2pts0
www.youtube.com 7y ago

Effective ML by Yaron Minsky

gabes
2pts0
v1.realworldocaml.org 7y ago

First-Class Modules

gabes
3pts0
en.wikipedia.org 7y ago

Fundamental theorem of software engineering

gabes
13pts0
news.ycombinator.com 8y ago

Ask HN: Who are your favourite conference speakers?

gabes
1pts0
github.com 9y ago

Flag: Feature flagging made easy for React and Redux

gabes
2pts0
medium.com 9y ago

Randomized Testing in JavaScript Without Lifting a Finger

gabes
3pts0
github.com 10y ago

Why did you update? React patch notifying you when it makes unnecessary updates

gabes
1pts0
github.com 10y ago

ElixirScript: Converts Elixir to JavaScript

gabes
3pts0
github.com 10y ago

Yolk.js: A user interface library built on RxJS and Virtual-dom

gabes
74pts10
en.wikipedia.org 11y ago

Bread and circuses

gabes
3pts0
brewhouse.io 11y ago

Best Practices for Component State in React.js

gabes
6pts1
brewhouse.io 11y ago

Angular Sprinkles – Writing Rails-flavored AngularJS

gabes
3pts0
www.garbl.es 12y ago

Frictionless data preloading in AngularJS

gabes
2pts0
medium.com 12y ago

Effectively maintaing state in AngularJS applications

gabes
2pts0

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.

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.

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!

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.

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.

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!