Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alexcole
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
1.
▲
End-to-End TypeScript with Convex
(stack.convex.dev)
8 points
by
alexcole
3y ago
|
1 comments
2.
▲
by
alexcole
3y ago
Convex provides automatic type safety all the way from your database schema to your React app. How does it work? Hint: we use some wild TypeScript.
3.
▲
Fully Reactive Pagination
(blog.convex.dev)
2 points
by
alexcole
4y ago
|
0 comments
4.
▲
Intro to Convex Query Performance
(blog.convex.dev)
1 points
by
alexcole
4y ago
|
0 comments
5.
▲
by
alexcole
4y ago
Very short! We're trying to get beta keys to all of you today! :)
6.
▲
by
alexcole
4y ago
Absolutely. But if you decide to use Cloud Functions with Firebase you have to give up the reactivity and automatic optimistic updates that Firebase normally provides. Part of the difficulty of writing about Firebase is that it's actua
7.
▲
by
alexcole
4y ago
Thanks for the pointer! I'll update the article to be more accurate!
8.
▲
by
alexcole
4y ago
Author here! I think the comparison between Convex and Supabase is quite similar to Convex vs. Firebase! Supabase also encourages developers to load individual SQL queries from the client, supports edge functions without having a reactivity
9.
▲
Convex vs. Firebase
(docs.convex.dev)
111 points
by
alexcole
4y ago
|
83 comments
10.
▲
by
alexcole
7y ago
Well discriminated unions are TypeScript's implementation of ADTs (but whether they are "clean" is could be debated)
11.
▲
by
alexcole
7y ago
I think that Flow’s approach of using nominal types for classes and structural for everything else makes more sense. Are there really cases you expect classes to be structural types?
12.
▲
by
alexcole
7y ago
That’s not always true. If you are going to print the object to the console or send it in a network request it’s possible that the additional property is important.
13.
▲
by
alexcole
7y ago
> In Java you can assign any non-primitive typed expression to a variable of type Object. Sure, but if you do this in Java you must use different variable names for the reference of type Animal and the reference of type Object. I think a
14.
▲
by
alexcole
7y ago
Thats not 100% true in TypeScript. TypeScript actually only allows "up-casts" and "down-cast" (but if the type is neither a supertype nor a subtype the compiler will throw an error).
15.
▲
by
alexcole
7y ago
Author here! Yeah I think you are right that discriminated unions are useful more broadly than just legacy JS code. That being said, I still think TypeScript's solution to handling them of using "type guards" where the type o