Tumgik
About
Privacy Policy
Removal Request
Visit Blog
Explore Tumblr blogs with no restrictions, modern design and the best experience.
Fun Fact
Tumblr has been banned in Indonesia for providing people with access to pornographic content.
#ive recently fallen in love w typescript branded types
zvaigzdelasas
·
1 year
Text
OpenAPI generated type interfaces are literally so sexy
#typesafety is just for letting your devs just put round blocks into round holes
#the more you can prevent other shapes from fitting into the hole the better
#ive recently fallen in love w typescript branded types
#which just adds a little flag to a string or number saying 'hey im a special kinda string/number'
#lifesaver if ur working w a bunch of different kinds of ids & lookups n stuff
#& openapi types can also flag if ur sending smth in the wrong format to the wrong endpoint
#im doing a thing where i glue together a bunch of data from a bunch of different rest APIs & its incredibly helpful not only for that
#but also for giving me access to the datatypes to build the app around
#then a lot of its just paint by numbers
#literally if you have a commensurate type sustem for the problem you literally dont have to think
18 notes
·
View notes
Last Seen Blogs
trichstop
TrichStop.com's official tumblr
paella-passion
Donde comer paella
modifiablebitch
Est. 2O17
meantaylorsversion
SPEAK NOW TV IS HERE !!
sadkr
sadkr