News for hackers. Stuff that matters.
Re:Programming with Effects by mrkeen on Sunday November 24, 2019 @06:47AM (#21619814)
I replaced one type of Future for another in a large Java codebase. Not productive.

I had a colleague who wanted to rewrite the same piece of code using Observables instead.

Later in a different company I met someone who was working on the exact opposite, i.e. taking Observable code and rewriting it as Futures because "observables are confusing".

Just extract these things behind an interface and call it a day.

Re:Programming with Effects by AzzieElbab on Sunday November 24, 2019 @12:52PM (#21622022)
futures have a lot of gottyas that make them hard to replace. for example, where and how you initialize them matters