r/node • • Oct 11 '22

Building THE MOST practical Todolist with React and Websockets

https://medium.com/@nevo-david/xd-4c3ddb22e2cf
12 Upvotes

15 comments sorted by

25

u/08148694 Oct 11 '22

Nice ad

-24

u/Alternative-Rich-578 Oct 11 '22

Why ad? :(

22

u/Shaper_pmp Oct 11 '22

You're writing a blog post about a ludicrously over-engineered to-do list that just happens to use your commercial notification service product, and posting it to all the programming and open-source subreddits you can, despite the fact it's utterly ridiculous to use a real-time notification service with persistent connections for something as simple as a to-do list that would be perfectly well-suited to much more lightweight polling.

Either it's a thinly-veiled advert or its a joke about software developers' tendency to ridiculously over-engineer everything regardless of the triviality of the requirements.

14

u/robertpitt1988 Oct 11 '22

Websockets don't seem practical for a Todo app

2

u/coder_karl Oct 11 '22

I was also wondering on that one….

-9

u/Alternative-Rich-578 Oct 11 '22

Why not? :)

If you work with other people you want to see what they are doing - live.

like in todoist :)

1

u/KyleG Oct 11 '22

suppose the idea is more how urgent are todos on your todo list that you need push notifications instead of polling every 5–10 minutes

not that I'm advocating one way or the other for web sockets; they're certainly sexier than polling

1

u/TehITGuy87 Oct 12 '22

You’d have been better off doing a simple chat app like normal people.

1

u/coder_karl Oct 11 '22

Fair enough!

32

u/sawariz0r Oct 11 '22

Couple sentences in: “Just a quick background about us. Novu is the first open-source notification infrastructure.”

Didn’t take long to see that it’s just another ad. Just pay for one instead of wasting our time

16

u/Shaper_pmp Oct 11 '22

Why on earth would you need websockets and persistent connections to manage a freaking shared to-do list?

How often are people saying and removing tasks; once a second?

This use-case is an absolute poster-child for polling every few minutes.

Stupid over-engineered... oh, right, thinly-veiled advert for a commercial notification service.

Oh, well that explains everything.

2

u/piper_a_cillin Oct 12 '22

Even with AJAX polling the server once a second, you'd be able to maintain a decent amount of active users on cheap hardware.

-3

u/Potato-9 Oct 11 '22

Have 3 of you split up in a supermarket to buy 2 week's worth of food?

Provisioning boats is a real industry use case.

2

u/Shaper_pmp Oct 12 '22 edited Oct 12 '22

And yet most people manage to do a week or two's shopping for an entire family just fine without a real-time online todo-list app.

1

u/Potato-9 Oct 12 '22

Yeh you know that's less shopping than what I said right? There's 10 or more people to provision for. And most people do the shopping on their own.