4 ms·
I really like this kind of introduction; they let you get into what the authors consider the main reason for their products existence straight away - this is wh
by Normal_gaussian 8y ago
I really like this kind of introduction; they let you get into what the authors consider the main reason for their products existence straight away - this is what they will spend most time on and other features will exist at these features expense.
It is also the best place to start evaluating how "complete" a solution is; particularly when faced with multiple choices.
It was a tutorial very similar to this one that led me to choose flow over typescript - I did the equivalent of setting the "user" in this example to null, flow would tell me it wouldn't work and typescript just happily compiled away. In short, this kind of quick evaluation led me to deduce typescript is JS with loose types sometimes (but you aren't sure where) so as not to be annoying and flow is JS with restrictive types everywhere (that may not get your indirect but correct logic) so as to provide the most guarantees.
- jwmerrill 8y agoTypescript has flags for turning on more strictness, and I highly recommend using them. For example, strictNullChecks for your example above. There’s a “strict” flag that you can use to turn on most of the more specific strictness flags all at once.