HN user

neilpa

40 karma

https://neilpa.me

Posts0
Comments14
View on HN
No posts found.
Zod 4 1 year ago

We're currently evaluating both Zod and ArkType as a replacement for earlier JSON schema validations. The thing I can't get over with Zod is the syntax is _so_ different from defining TS types.

Are there reasons to go with Zod over ArkType?

You can extend this trick further by specifying the User in your SSH config to make for even shorter URLs.

  Host gh-me
    Hostname github.com
    User git
    IdentityFile ~/.ssh/id_rsa

  Host gh-work
    Hostname github.com
    User git
    IdentityFile ~/.ssh/id_rsa_work
Then all you need is a `git clone gh-me:org/repo` or `git clone gh-work:work/repo`. I've been using this for sometime and it's not too hard to remember. Although when I don't it's easy enough to fix the origin url by editing `.git/config`.