Live data from Hacker News

Viewing profile — alexcole

alexcole

HN member
Joined
Sat, Feb 01, 2020, 1:40 AM UTC
HN karma
82
Public activity
16 items

About alexcole

No profile information was provided.

Recent public activity

  1. 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.

  2. story
  3. comment
  4. story
  5. story
  6. comment
    Comment #31838480

    Very short! We're trying to get beta keys to all of you today! :)

  7. 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 …

  8. comment
    Comment #31832305

    Thanks for the pointer! I'll update the article to be more accurate!

  9. 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…

  10. story
  11. comment
    Comment #22214584

    Well discriminated unions are TypeScript's implementation of ADTs (but whether they are "clean" is could be debated)

  12. 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…

  13. 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.

  14. 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…

  15. 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…

  16. 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…