Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kamilafsar
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
kamilafsar
2y ago
That's pretty insane Dimitri. If you like stuff like this I really recommend Dimitri's TypeScript challenges series: https://www.youtube.com/playlist?list=PLOlZuxYbPik180vcJfsAM...
2.
▲
by
kamilafsar
2y ago
This sounds like a marketing post for this feature to me.
3.
▲
by
kamilafsar
3y ago
That’s not a downside. That’s part of building and being a team. We’re human, not machines. If you hire the right people, they’ll know when to have a laugh and when to work their ass off.
4.
▲
by
kamilafsar
3y ago
I personally hate the TS bindings. That's one of the reasons that drove me to create Phero: https://phero.dev
5.
▲
by
kamilafsar
3y ago
I think the majority of people here understands the commercial considerations Apple makes. But you asked what would you expect. At least don’t block me to update. Tell me it’s not officially supported. But let me install whatever OS I want,
6.
▲
by
kamilafsar
4y ago
There is a difference with approaches like openapi/swagger/graphql though. With Phero you define your models with plain TS. Our code-gen will "just" copy the exact same models to your client SDK. The DX is night and day.
7.
▲
by
kamilafsar
4y ago
Yes, Phero has a build step. Phero does come with a CLI and will watch code changes, build your TS alongside with an client SDK. In our experience the latency between changing something in your API, and seeing compile errors arise in the cl
8.
▲
by
kamilafsar
4y ago
Good point! We use Phero extensively in mobile apps projects, so we know the pain of maintaining API versions and backward compatibility hell. Phero generates a declaration file with all functions you expose, and bundles dependent domain mo
9.
▲
by
kamilafsar
4y ago
Shameless plug: I’m one of the authors of Phero [1]. It’s goal is similar to tRPC: fullstack typesafety between your server and client(s). One difference is syntax: Phero leverages the TS compiler api to generate parsers for your backend fu
10.
▲
by
kamilafsar
4y ago
The relevant TS feature is called template literal types: https://www.typescriptlang.org/docs/handbook/2/template-lite...
11.
▲
by
kamilafsar
4y ago
Yeah agree 100%. Unless you’re implementing a standard, software engineering is 50% communication with peers/clients/users, if not more..
12.
▲
by
kamilafsar
4y ago
Please keep in mind, he didn't send you there personally. The algorithm did. I've experienced this several times my self, very frustrating and sometimes even dangerous. I think it's unavoidable if you take into account that t
13.
▲
by
kamilafsar
4y ago
I wonder what the correlation between consistency of written/spoken language is for the breakdown per language here: https://github.com/openai/whisper/blob/main/language-breakdo... For instance, I
14.
▲
by
kamilafsar
4y ago
But then in “userland”.. So you could use it on a chromebook as well. I like the idea, and as PG often says the best ideas often sound crazy at first. Glad someone other than me is trying I guess :-)
15.
▲
by
kamilafsar
4y ago
Shameless plug to my project Phero [0]. It’s a bit like gRPC but specifically for full stack TypeScript projects. It has a minimal API, literally one function, with which you can expose your server’s functions. It will generate a Typesafe S
16.
▲
by
kamilafsar
4y ago
I was shocked when he "knew" I had a sodastream. I wanted to believe this thing so badly. It had nice things to say about me.
17.
▲
by
kamilafsar
4y ago
One of the benefits of these extra steps is being able to use enums. Using enums is not really that different from using type aliases. It’s a nicer way to write string/number values.
18.
▲
by
kamilafsar
4y ago
Interesting, we’re the opposite: use enums where possible. We think it adds more clarity to the reader. Besides, sometimes number values make more sense then string values. Especially when you want to do bitwise operations, which are not po
19.
▲
by
kamilafsar
4y ago
Smart move to be compatible with TypeScript’s declaration files. Not sure if this provides me enough benefit to move from TS. On the contrary it removes “non JS” features like enums. I can’t live without enums..
20.
▲
by
kamilafsar
4y ago
For me moving farther away from my family has been key to spend more time with them. They live about 150km away from me. Because it’s a relative long distance they will always sleep over when they come (and me when I go to them), and we get
21.
▲
by
kamilafsar
4y ago
Whoa, that’s so similar to our project [1] it’s almost scary :) How are errors handled though? What happens when you “throw Abort()”. https://github.com/samen-io/samen
22.
▲
by
kamilafsar
4y ago
> The name "Hotmail" was chosen out of many possibilities ending in "-mail" as it included the letters HTML, the markup language used to create web pages (to emphasize this, the original type casing was "HoTMaiL&
23.
▲
by
kamilafsar
4y ago
Haha, oops, in Dutch it means "together".
24.
▲
Show HN: Samen – build API's with TypeScript, get a typesafe client SDK for free
(samen.io)
5 points
by
kamilafsar
4y ago
|
3 comments
25.
▲
by
kamilafsar
4y ago
Hi HN! After years of lurking and reading, I'm thrilled to post my very first Show HN. We are a small development agency from the Netherlands, we build web apps, mobile apps and API's for our clients. All with TypeScript. For most
26.
▲
by
kamilafsar
4y ago
Thanks! Yes, it will do that automatically by generating an SDK for your client (which will include all types you expose on your backend).
27.
▲
by
kamilafsar
4y ago
Wow, what a coincidence :D We are about to launch something similar: https://samen.io
28.
▲
by
kamilafsar
4y ago
I guess not all land is the same. Undeveloped land around NYC is scarce, and that’s where you want to have solar panels for the city.
29.
▲
by
kamilafsar
4y ago
People like to hate everything related to JS these days. But when I see libs like these I'm just very grateful for the person(s) who invented JSX [1]. And evenly for MSFT implementing it into TS as a first-class citizen. It's just
30.
▲
by
kamilafsar
4y ago
Wow, thanks so much for sharing your learning journey here. Gonna bookmark this comment.
More ›