unassert - encourage reliable programming by writing assertions in productionTakuto Wada
36 slides•18.1K views
unassert - Encourage Design by Contract (DbC) by writing assertions in production code, and compiling them away from release.
Takuto Wada
2015/11/07 @nodefest Tokkyo 2015
This document summarizes a presentation on teaching Haskell without requiring an understanding of monads. It argues that emphasizing monads early on causes unnecessary confusion and frustration for beginners. Historically, Haskell was designed to be practical and used in applications, not just academia. However, referring to I/O as the "IO monad" has been hugely misleading and harmful to newcomers, as it leads them to obsess over understanding monads before they are ready. In reality, Haskell's I/O can be easily used without knowing anything about monads.
This document summarizes Takuto Wada's presentation on reviewing RESTful web apps. It discusses best practices for designing RESTful resources and representations, including using nouns instead of verbs in URLs, making URLs reflect the meaning of resources, and ensuring resources are connected through hypermedia links and forms. It also covers appropriate use of HTTP methods, status codes, and content negotiation to build RESTful APIs in accordance with best practices.
The document describes a WordFilter class that can detect and censor sensitive words in strings. It allows specifying words to censor, and will replace matches with <censored> in the censor method output or return true/false from the detect method. The filter is designed to find and obscure matches without disturbing surrounding context.
The only one big thing every programmer should knowTakuto Wada
The document discusses the benefits of exercise for both physical and mental health. It notes that regular exercise can reduce the risk of diseases like heart disease and diabetes, improve mood, and reduce feelings of stress and anxiety. Exercise is also credited with boosting brain health and improving cognitive function as we age.