Lurker News
I've worked on large products for large and small companies and written tens of thousands of lines of code across my career, solving complex, abstract, challenging technical problems in a variety of languages on a variety of platforms, sometimes under difficult conditions. I have often been a resource for my friends and co-workers when they have programming or technical questions.

I only recently learned how to correctly raise and lower window blinds--I had been doing it wrong my entire life. It was maybe the dumbest I have ever felt, and was a humbling reminder of how much I don't know about how much I don't know.
Have you had similar experiences?

Comments (680) 153 threads

Show all comments

Showing thread 33 of 153

malkosta2 replies#
When I was working in a queue feature (for example to buy tailor swift ticket), and was proud of my complicated real-time solution using websockets and CRDTs...then a more experienced guy came, rearchitected in a much simpler way using just the DB with long-polling, not real real-time (but who cares), and it ended up simpler to deal with network splits or crashes. Learned the hard way you can never rely on the network if you require consistency, and it's also often simpler code-wise.
jpeggtulsa1 reply#
One of the earliest projects I took over from a higher level developer was an auction website back around 1998. The site worked like eBay in as far as you could put a maximum bid, and it would automatically bid higher than the last bid up to that point. The problem was, it was all dependent on users being on that page so that the auto-reload http header would fire again and refresh the page. If nobody was on the site watching the auction, no automatic bids would happen and nobody would be declared the winner.
bombcar#
The number of "web cron" things in tools like Wordpress and friends is insane; I've been bit a number of times by this - if nobody hit the site for a day, none of the crons would fire.

Big website, no problem. Small internet site, big problem.
(Yes, for some cron + wget/curl was whipped out)

dehrmann1 reply#
People often forget that you have to poll to handle lost network connections, IP changes, etc., so there isn't always a real-world win to web sockets.
mdavid6261 reply#
How about reconnecting the websocket from the client?
dehrmann3 replies#
Sounds like polling. On an inactive connection, whatever it is, you have to always be polling to see if the connection is still alive.

Continue this thread — 3 replies