51 karma · joined Feb 8, 2019 (7y ago) · 20 submissions
comment 6mo ago · link · parent
The null is a high price to pay because eventually someone will make some type assertion somewhere in the TS codebase that will end up biting you. Sure, you can be diligent, but will every contributor during the lifetime of a project be?
Not sure about Scala, but I did see NullPointerException every so often, and what is the practical advice to handle them in Scala? It’s to use Option[T]
comment 6mo ago · link · parent
I must admit I’ve never had this problem in application development. In fact, I do want to change my callers because strengthening the contract is an opportunity to simplify the callsites - they no longer have to handle the optionality. The change might carry some semantic meaning too, why are you getting x instead of Maybe x all of the sudden? Are there some other things you should reconsider in the callers? I can see how it could be useful in library development, but there are also patterns to account for this that are idiomatic to Haskell.
comment 4y ago · link · parent
VS Code is probably a pragmatic choice if you want to start coding right away and don't care about any customization, but if someone is interested in productivity and efficiency, Emacs should be considered (along with other high-performing tools).
comment 5y ago · link · parent
This lends itself very nicely to functional programming (especially with typescript IMHO)
comment 5y ago · link · parent
Array methods convey meaning a lot better. There are some cases where performance matters, but usually the performence cost is negligible.
comment 7y ago · link · parent
comment 7y ago · link · parent
Is Node not happening in the real world? Most job ads I see look for node, far more than python or php, so it makes perfect sense for bootcamps to teach that, not to mention keeping everything in one language.
comment 7y ago · link · parent
comment 7y ago · link · parent
I would say: 1. HTML 2. CSS 3. Flexbox & Bootstrap 4. Javascript 5. React