HackerTrans
热门最新趋势评论往期问答秀出招聘

emptysea

no profile record

评论

emptysea
·4个月前·讨论
In Postgres you can define custom operators via `create operator`[0]

    -- infix
    select a <!!!> b;

    -- prefix
    select <||> a;
A lot of custom types end up using this [1].

    select @-@ '[(0,0),(1,0),(1,1)]'::path;
    -- 2

[0] https://www.postgresql.org/docs/current/sql-createoperator.h... [1] https://www.postgresql.org/docs/current/functions-geometry.h...
emptysea
·6个月前·讨论
Not OP, but I think building feature flags yourself really isn’t hard and worth doing. It’s such an important component that I wouldn’t want to depend on a third party
emptysea
·7个月前·讨论
Ruff’s ast is used by Ruff, Ty, and Pyrefly
emptysea
·去年·讨论
Also interesting, pyrefly uses Ruff’s parser!

https://github.com/facebook/pyrefly/blob/a8626110da034f8e513...
emptysea
·4年前·讨论
I’m pretty sure adyen requires a decent amount of volume before they will allow you to use them, like in the 10s of millions.

Stripe provides self serve with is nice for getting started and I’m guessing once you’re big enough to jump to adyen, you can likely get a discount on the sticker price since you have bargaining power
emptysea
·4年前·讨论
I’m guessing they’re looking for a reaction. Similar to people driving by and yelling out the window
emptysea
·5年前·讨论
Interesting, even some open source sites like: https://fbinfer.com are down

but https://glean.software and https://reactjs.org aren't
emptysea
·6年前·讨论
Also docker-compose doesn't have zero downtime deploys which might be a deal breaker depending on your application.
emptysea
·7年前·讨论
I can't seem the find the GitHub issue for it off hand, but I believe you can override the default indexing signature for arrays to return possibly undefined.

Otherwise, you're left to creating a wrapper function and a custom ESlint rule.

Edit: found it https://github.com/microsoft/TypeScript/issues/13778#issueco...

The suggestion is to maintain your own copy of `index.d.ts` with the array indexing interface modified. Yikes!