It Recently Occurred to Me…

Posted on Sun 09 September 2018 in data-science

… I should get back into writing/blogging things that come to mind. For example, that type annotations and type-checking with mypy are great tools for data scientists as well as day-to-day developers - e.g.,

def circle_area(radius: float) -> float:
    pi = 3.141
    return pi * (r ** 2)

Makes it so much easier to understand how to use functions and methods as well as providing extra piece of mind that code will work as expected.