Observables, Side-effects, and Subscriptions

My previous articles on using AsyncPipe and data refresh patterns in Angular hint at some common anti-patterns dealing with Observables. If there’s any common thread in my advice, it is: delay unpacking an Observable into its scalar types when performing logic you can rewrite as side-effect-free, leaving code with side-effects for subscription callbacks and other downstream logic. […]

Data and Page Content Refresh patterns in Angular

Part of why I recommend using RxJS Observables all the way through in Angular TypeScript code, and only unpacking them at the closest point to where the UI is declared (often using the | async pipe), is because it makes other transformations on an Observable available and convenient. Two such examples include retry and refresh logic. Two […]

Use AsyncPipe When Possible

I typically review a fair amount of Angular code at work. One thing I typically encourage is using plain Observables in an Angular Component, and using AsyncPipe (foo | async) from the template html to handle subscription, rather than directly subscribing to an observable in a component TS file. Subscribing in Components Unless you know […]

The Subscription Model is the Future of Software—and for good reason

Microsoft recently announced the launch of Office for iPad. Many people took note about the pricing model behind Office for iPad: the apps are free to download, and the user can open and view documents, spreadsheets, and presentations for free, but must pay for an Office 365 subscription to edit these files. Many have taken […]

Some thoughts on the Anonymous/Hacktivist response to the Aaron Swartz tragedy

On Twitter, @AnonymousIRC claims to have been responsible for bringing the *.mit.edu network down for a few hours last night in protest of MIT’s legal “back-and-forth” with Aaron Swartz. Later on they went on to ‘hack’ two sub-domains in the MIT network (the “Cogeneration Project” and an RLE site, seemingly they just picked two random […]