from Hacker News

Three-Step Lifted Interfaces

by lukasschwab on 1/5/24, 2:06 PM with 2 comments

  • by peter_l_downs on 1/5/24, 3:55 PM

    This is a wonderful elaboration of something that senior engineers do effortlessly and that junior engineers often struggle with. The writing is clear and the diagrams help make it even more so. I foresee that I will be sharing this in PR reviews in the future!
  • by lukasschwab on 1/5/24, 2:06 PM

    Strongly statically typed languages let you safely refactor in ways that would otherwise be risky. This is my trick for one very common example: lifting an interface out of a concrete type.