Viewing profile — alexcole
alexcole
HN member- Joined
- Sat, Feb 01, 2020, 1:40 AM UTC
- HN karma
- 82
- Public activity
- 16 items
- HN profile
- View on Hacker News ↗
About alexcole
No profile information was provided.
Recent public activity
-
comment
Comment #35866529
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.
- story
- comment
- story
- story
-
comment
Comment #31838480
Very short! We're trying to get beta keys to all of you today! :)
-
comment
Comment #31832797
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 …
-
comment
Comment #31832305
Thanks for the pointer! I'll update the article to be more accurate!
-
comment
Comment #31832296
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…
- story
-
comment
Comment #22214584
Well discriminated unions are TypeScript's implementation of ADTs (but whether they are "clean" is could be debated)
-
comment
Comment #22208697
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 type…
-
comment
Comment #22208687
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.
-
comment
Comment #22208674
> 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 o…
-
comment
Comment #22207968
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…
-
comment
Comment #22207948
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…