News for hackers. Stuff that matters.
Re:Show HN: Baller ToDo – a no-list todo app by tobyhinloopen on Sunday November 08, 2020 @06:01AM (#25024876)
Local storage only and no accounts is a feature to me
Re:Show HN: Baller ToDo – a no-list todo app by bko on Sunday November 08, 2020 @06:54AM (#25025152)
A really cool feature would be to be able to "save" and share charts by setting the url parameters:

e.g. https://ballertodo.com?n=first;second;third&i=0.5,0.3,0.7&u=...

Then you can just bookmark the link or share w/ someone

Re:Show HN: Baller ToDo – a no-list todo app by faeyanpiraat on Sunday November 08, 2020 @08:00AM (#25025515)
There is a limit to url length
Re:Show HN: Baller ToDo – a no-list todo app by bko on Sunday November 08, 2020 @08:44AM (#25025761)
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...

Re:Show HN: Baller ToDo – a no-list todo app by educated_idiot on Sunday November 08, 2020 @09:49AM (#25026102)
Eventually, depending on how it goes, the URL will contain a key to some DB entry, so multi-device persistence can work. Adding all this to the URL is doable too, I might just start with that, thanks for the idea ;)
Re:Show HN: Baller ToDo – a no-list todo app by bko on Sunday November 08, 2020 @10:46AM (#25026452)
If at all you could make it stateless, you should. For one, you don't need a db. Also, there were some people in the thread that liked the local storage feature. Finally, as a user, I can feel safe using your service because I know at any time, if you site disappears, I have the url and I can trivially parse the url into json and do whatever I want with it. You could even build the parser or have an export to json button.

If you want to add more stuff like images, longer descriptions, some links, etc, then yeah you'll likely need a backend

Re:Show HN: Baller ToDo – a no-list todo app by educated_idiot on Sunday November 08, 2020 @11:14AM (#25026679)
Yeah, I haven't given it that much thought. It only started as a weekend project. I would like to keep it as local as I can. Possibly, there will be 2 uses: a non-db, non-url, local version AND an account based thing.
Re:Show HN: Baller ToDo – a no-list todo app by catchmeifyoucan on Sunday November 08, 2020 @10:34AM (#25026358)
I’ve done this for a website, but when you’re pasting a really long link and texting to a friend, it can get a little frustrating, since it eats the entire chat window.
Re:Show HN: Baller ToDo – a no-list todo app by bko on Sunday November 08, 2020 @10:43AM (#25026429)
Good point, maybe leverage a link shortener built into the app?
Re:Show HN: Baller ToDo – a no-list todo app by catchmeifyoucan on Sunday November 08, 2020 @10:44AM (#25026439)
Yup, but you’d still need a database since you need to store that lookup somewhere from long URL to short url.
Re:Show HN: Baller ToDo – a no-list todo app by robotwizard on Sunday November 08, 2020 @11:07AM (#25026629)
What about using an IPFS key and using js-ipfs to look it up?
Re:Show HN: Baller ToDo – a no-list todo app by catchmeifyoucan on Sunday November 08, 2020 @12:07PM (#25027090)
If I'm not mistaken. I think IPFS keys might also be too long. Since a shortcode is only 6 chars long.

Here's the website[1] I built with base64 encoding to share weblinks. I've been trying to think of a non-db approach, but haven't found one yet for link shortening.

[1] http://share.getamna.com

Re:Show HN: Baller ToDo – a no-list todo app by usr1106 on Sunday November 08, 2020 @11:11AM (#25026652)
> Local storage only and no accounts is a feature to me Agree! But the privacy policy is missing. Who tells me that the stuff is not uploaded tomorrow and sold to advertisers?

A takeout as csv or json would also be needed. That could also be the basis for multi-device, which some people undoubtedly will need.

Ideally of course open source it. I am always hesitating to feed closed-source services with my data.

Re:Show HN: Baller ToDo – a no-list todo app by educated_idiot on Sunday November 08, 2020 @12:01PM (#25027058)
Fair enough. Yeah, I don't intend to make money off this, so will open source soon.
Re:Show HN: Baller ToDo – a no-list todo app by educated_idiot on Sunday November 08, 2020 @06:02AM (#25024885)
Haha, IKR! Too many accounts :D