jfroelich / rss-reader

A simple Chrome extension for viewing RSS feeds
Other
10 stars 0 forks source link

Remove type sanity and magic #801

Closed jfroelich closed 5 years ago

jfroelich commented 5 years ago

It was fun experimenting with magic props, but there are a few problems. One is that it really is not providing much safety outside of parameter checking. Two is that I designed the db module incorrectly, the abstraction was wrong, it was leaky, everything outside the db should just be plain data, and type sanity is only important inside the db module itself.