r/programming

Stop reaching for WebSockets by default: WebSockets vs SSE vs Long Polling

Real time communication isn't one size fits all. A common mistake in system design is picking WebSockets when all you really needed was server-to-client streaming.

I wrote a short 3 minute architectural comparison of the trade offs here:https://medium.com/@anirbansingha20/websockets-vs-long-polling-vs-server-sent-events-fa9bc1644cb8

What do you usually reach for first when building real time features ?

medium.com
u/Dull-File6231 — 4 days ago

Red, green and mud: fixing color mixing in Total Draw

I went into a bit of a rabbit hole of gamma-based color blending vs linear-based color blending vs perceptual-based color blending for my drawing app Total Draw, so I decided to create a blog post about it.

totaldraw.com
u/Rupour — 11 days ago

Your Xiaomi phone may be sending you phishing notifications.

TLDR: the ads on Xiaomi phone can imitate icons of apps you already have installed.

In my case some phishing "spotify casino" app was shown as if it was a legit notification.

This fake notification lead to the actual spotify app settings when clicking 'more' on the notifications.

It seems that MIUI has some whitelisted apps (i.e their system ads application ) that can show notifications on behalf of other apps

youtube.com
u/Cload_ — 10 days ago