Comment

Comment by bko

Correct, safely you can make the url 2,000 chars [0].

The base will be 29 chars (https://ballertodo.com?n=u=i=)

Then each additional todo would be 6 chars (impact and urgency score to 2 decimal places e.g. .65, 1., .7) + the length of the name

So assuming the average to-do name is 14 chars, you can safely fit 98 to-dos in the url ((2000 - 30) / (14 + 6))

If the name is 40 chars, you can fit ~41

I think that will fit 90+% of use cases.

[0] https://stackoverflow.com/questions/417142/what-is-the-maxim...

parent bko 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton