Better HN
topnewbestaskshowjobs
Log inSign up

thwaway2423

0 karma · joined Nov 13, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

My personal opinion is that malformed data shouldn't be reaching domain code.

A unique schema for each route that is strongly typed which can be turned into a specialized streaming JSON parser.

Given Rails is heavily dynamic, it reaches lawlessness and with no regards to data integrity, eventually leading me to decide to exit ruby and rails altogether.

With Ruby (& Rails) every single parameter is suspect and cannot be trusted. Stripe's type checker does alleviate some of this stress and anxiety.