HNHacker News
TopNewBestAskShowJobs

gabes

64 karma · joined March 10, 2013

submissionscomments
gabes··on Meta reaches $16.68B settlement over social media harms to children
Is inappropriate content on some random forum the same as deliberately manipulating children?
gabes··on Parse, Don't Validate – In a Language That Doesn't Want You To
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.

gabes··on I am a person who will look at the Steam Machine and cry
The entitlement of the gaming “community” is next to none.

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

gabes··on OpenAI looked at buying Cursor creator before turning to Windsurf
This is exactly what I would do too if AGI was just around the corner.
gabes··on Litdb – type safe SQL for JavaScript/TS
What does a migration look like with something like this?
gabes··on Amazon to invest another $4B in Anthropic
Meta doesn’t buy competition?
gabes··on Most of what you read on the internet is written by insane people (2018)
You should have read the post before commenting.
gabes··on Britain being forced to go cashless 'against its will'
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.

gabes··on Britain being forced to go cashless 'against its will'
> Even people who donated to the truckers before the crackdown got targeted in the bank account freezes.

Source?

gabes··on Ask HN: Why can't await be used from non-async functions?
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.
gabes··on Show HN: Concave, a lens-like state management library for React
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!
gabes··on React Facade: Dependency injection for React hooks
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.
gabes··on React Facade: Dependency injection for React hooks
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.
gabes··on The 'Fuck You' Pattern
Ah of course. Shows how I hold my bias toward Facebook :facepalm:
gabes··on The 'Fuck You' Pattern
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!
gabes··on Diablo devolved – magic behind the 1996 computer game
This game is incredibly good. It's everything Diablo 3 should have been.
gabes··on Public speaking for introverts
The definition of an introvert is a shy person.
gabes··on Show HN: An embitious Hacker News reader built with Ember.js
> Setup Readibility integration to enable article previews.