#Interfaces
5 notas · última:
Possibilities of abstractions
The article compares ways to abstract multiple implementations in F#: function records, interfaces, supplied functions, and discriminated unions. It weighs brevity, naming, optional parameters, documentation, and state handling.
Dependency Injection made simple
The page explains dependency injection as passing an object to the constructor or setter of a dependent class, which decouples the code, makes testing easier, and uses interfaces in strongly typed languages.
Dependency inversion in architectural patterns
The article says dependency inversion is common in architectural patterns because it protects a core from change through interfaces or adapters. It distinguishes cases where suppliers follow a defined SPI from cases where adapters translate between incompatible APIs.
Stop using Behaviour to define interfaces, use Protocol!
The post argues that Behaviour fits impure interfaces with shared logic, while Protocol is the right tool for pure interfaces. It also proposes growing pure interfaces into richer ones and introduces Objext.
Como a ciência está ajudando seu cérebro distraído a processar telas num relance
O texto mostra como estudos sobre legibilidade e distração estão orientando o design de telas pequenas, com testes em fontes, tempo de leitura e diferenças de uso em dispositivos como smartwatches e HUDs.
