You need to sign in or sign up before continuing

@noelrap having worked with both ruby and c# I'd say quite a few. But not which are caught by just turning types on. You need to lean into it and really use them.

My easiest example is have a type for each id (like user id, so that you cannot compare user_id with todo_id).

I'm not sure how hard this would be with rails though

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Noel Rappin

@mark At the risk of being accused of moving my goalposts, I'd say a bug that is caught by having a type for each idea is not one that is “trivially” caught by a type system.

I think the closest Rails equivalent is global_id

0
1y
Replies