home.social

#statictyping — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #statictyping, aggregated by home.social.

  1. Today at work I learned that you can make `.d.ts` files adjacent to `.js` files and TypeScript's compiler (and IDEs) can treat it just like Ruby + RBS sidecars! 😍

    #JavaScript #TypeScript #Ruby #StaticTyping #TypeHints #DynamicLanguages #Programming

  2. @mdhughes @screwtape @smlckz @sektor @clew @eduardoochs @dougmerritt

    The point is not that static type checking is omnipotent: it isn't, of course.
    The point is that it catches _very many_ mistakes that programmers are _prone_ to make.
    I say again: mistakes that are _often_ made, not all that can be made _in principle_.

    > function addints(int x, int y) : int { return 3; }

    This is too trivial.
    Warning: variable declared but never used.

    #StaticChecks
    #StaticTypeChecks
    #StaticTyping

  3. Typed Lisp aficionados offer a *mind-blowing* revelation: you too can experience the joy of static typing, but only if you're prepared to navigate a labyrinthine manifesto of type hierarchies and algebraic data types, all while still loving #Haskell 💻✨. Because, apparently, there's nothing more exhilarating than making Lisp even more confusing for beginners 🤯📚.
    alhassy.com/TypedLisp.html #TypedLisp #StaticTyping #TypeTheory #ProgrammingJoy #ConfusingBeginners #HackerNews #ngated

  4. Typed Lisp aficionados offer a *mind-blowing* revelation: you too can experience the joy of static typing, but only if you're prepared to navigate a labyrinthine manifesto of type hierarchies and algebraic data types, all while still loving #Haskell 💻✨. Because, apparently, there's nothing more exhilarating than making Lisp even more confusing for beginners 🤯📚.
    alhassy.com/TypedLisp.html #TypedLisp #StaticTyping #TypeTheory #ProgrammingJoy #ConfusingBeginners #HackerNews #ngated

  5. Typed Lisp aficionados offer a *mind-blowing* revelation: you too can experience the joy of static typing, but only if you're prepared to navigate a labyrinthine manifesto of type hierarchies and algebraic data types, all while still loving #Haskell 💻✨. Because, apparently, there's nothing more exhilarating than making Lisp even more confusing for beginners 🤯📚.
    alhassy.com/TypedLisp.html #TypedLisp #StaticTyping #TypeTheory #ProgrammingJoy #ConfusingBeginners #HackerNews #ngated

  6. Typed Lisp aficionados offer a *mind-blowing* revelation: you too can experience the joy of static typing, but only if you're prepared to navigate a labyrinthine manifesto of type hierarchies and algebraic data types, all while still loving #Haskell 💻✨. Because, apparently, there's nothing more exhilarating than making Lisp even more confusing for beginners 🤯📚.
    alhassy.com/TypedLisp.html #TypedLisp #StaticTyping #TypeTheory #ProgrammingJoy #ConfusingBeginners #HackerNews #ngated

  7. This Friday I had the privilege of giving the Zagreb #Python meetup a talk on the why, when not and how of #statictyping in Python.

    We in the Python community are given this incredible choice between writing dynamically typed code for fast prototyping or using a pretty sophisticated (IMO stronger than Java, Go or even C#) type system for bigger projects. Or anything in between.

    The situation isn't perfect, of course, but this is still pretty amazing. Most programming languages don't get this.

  8. type annotations are cool, but there are definitely cases when they get in the way, like traversing some unknown data structure:

    github.com/cthoyt/orcidio/blob

    context: this traverses an OBO Graph JSON to find ORCID identifiers, and would be way too complicated to get all corner cases

    #typing #statictyping #python #orcid #obo #json #recursion #dynamic

  9. type annotations are cool, but there are definitely cases when they get in the way, like traversing some unknown data structure:

    github.com/cthoyt/orcidio/blob

    context: this traverses an OBO Graph JSON to find ORCID identifiers, and would be way too complicated to get all corner cases

    #typing #statictyping #python #orcid #obo #json #recursion #dynamic

  10. type annotations are cool, but there are definitely cases when they get in the way, like traversing some unknown data structure:

    github.com/cthoyt/orcidio/blob

    context: this traverses an OBO Graph JSON to find ORCID identifiers, and would be way too complicated to get all corner cases

    #typing #statictyping #python #orcid #obo #json #recursion #dynamic

  11. type annotations are cool, but there are definitely cases when they get in the way, like traversing some unknown data structure:

    github.com/cthoyt/orcidio/blob

    context: this traverses an OBO Graph JSON to find ORCID identifiers, and would be way too complicated to get all corner cases

    #typing #statictyping #python #orcid #obo #json #recursion #dynamic

  12. type annotations are cool, but there are definitely cases when they get in the way, like traversing some unknown data structure:

    github.com/cthoyt/orcidio/blob

    context: this traverses an OBO Graph JSON to find ORCID identifiers, and would be way too complicated to get all corner cases

    #typing #statictyping #python #orcid #obo #json #recursion #dynamic

  13. For long there has been debate about #StaticTyping vs #DynamicTyping in #programming. Frequently claims are made that static typing reduces bugs. Purely anecdotally I have not personally found that to be significantly true, and static typing can make coding slower with less flexibility (then again I am a #Tcl guy, and also prefer pure #Javascript to #TypeScript).

    Here is a great read that analyses various studies made on the topic: danluu.com/empirical-pl/

  14. My back burner side project to get mypy and other type checking into @ParslProject is now explicitly enumerated in one of the grants that funds me, so I'm ramping up on slightly more aggressive rearrangement of code, now the almighty dollar has blessed me.

    #MyPy #Python #StaticTyping

  15. Hi all 👋

    I'm moving from mastodon.social/@alexelcu, again; still experimenting, and with a self-control problem 😅

    I'm a . I love and on top of , , and . I'm from , , and I like to contribute to programming libraries.

    I write at alexn.org, and I contributed to monix.io and to typelevel.org.

    My bois said hi 👋