logoalt Hacker News

lo1tumatoday at 11:51 AM1 replyview on HN

15 years ago I was a big fan of this chaining methods pattern. These days I don’t like it anymore. Especially when it comes to unit-testing and implementing fake objects it becomes quite cumbersome to setup the exact same interface.


Replies

phpnodetoday at 12:12 PM

unfortunately it's unavoidable if you want to preserve type safety. I did consider parsing Cypher in typescript types, but it's not worth the effort and it's not possible to do safely.

show 1 reply