Live data from Hacker News

Show HN: My Smoothie Stack – What are you using to build your smoothie?

mysmoothiestack.com

11–18 of 18 posts

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#11
post #4

Hi, I'm Justin, creator of My Smoothie Stack. I'm a new developer so I'm grateful for any feedback on my source code [0]. Here's my personal recipe [1]. If you take a look at that URL, you'll see it's quite long. I wanted to be able to share recipes, but I don't have any backend knowledge. I had to get creative and store the object representing the recipe in an object encoded in Base64. This presented some character…

Congratulations on your launch! > This presented some character escaping issues, but those were manageable. In case you were interested, there's a section devoted to that in RFC 3548: https://datatracker.ietf.org/doc/html/rfc3548#section-4 with the tl;dr of `s/[+]/-/; s/[/]/_/` and then omitting the trailing "=" characters and just padding the incoming b64 since (AFAIK) one can add as many "=" as they'd like and it'l…

Thanks for taking a look!

> In case you were interested, there's a section devoted to that in RFC 3548: https://datatracker.ietf.org/doc/html/rfc3548#section-4 with the tl;dr of `s/[+]/-/; s/[/]/_/` and then omitting the trailing "=" characters and just padding the incoming b64 since (AFAIK) one can add as many "=" as they'd like and it'll just ignore extra ones

Thanks! I'll check this out.

> Depending on your interoperability interests, you can shave a bit of text out of it by shortening the JSON key names `"i"`, `"a"`, `"n"`, and then also `.filter(Boolean)` to nuke those two trailing empty strings

This is a good idea. I might already be filtering those empty strings but I'll have to check.

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#12
post #6
post #4

Earlier quoted context omitted.

Congratulations on your launch! > This presented some character escaping issues, but those were manageable. In case you were interested, there's a section devoted to that in RFC 3548: https://datatracker.ietf.org/doc/html/rfc3548#section-4 with the tl;dr of `s/[+]/-/; s/[/]/_/` and then omitting the trailing "=" characters and just padding the incoming b64 since (AFAIK) one can add as many "=" as they'd like and it'l…

> In case you were interested, there's a section devoted to that in RFC 3548: https://datatracker.ietf.org/doc/html/rfc3548#section-4 with the tl;dr of `s/[+]/-/; s/[/]/_/` and then omitting the trailing "=" characters and just padding the incoming b64 since (AFAIK) one can add as many "=" as they'd like and it'll just ignore extra ones Just to add one thing: in case Justin isn't familiar, "s/original_thing/replaceme…

Thanks for clarifying, I was not aware!

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#13

Pretty cool. Congrats on getting launched! While I thought a favorites, browse, and top smoothies section would be cool... I read your comment about not knowing backend development yet, so your current implementation makes a lot of sense. I'm actually a huge fan of simple client-side sites that aren't over-engineered. Those are the kinds of things I do when I'm bored... try to make a simple, but useful, little site t…

Thank you!

I'm considering going in the direction of full stack development, so your feature suggestions could be great ways to learn backend.

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#14
post #3

Neat. I decided to play https://mysmoothiestack.com/?share=eyJpbmdyZWRpZW50cyI6WyJCY...

Thanks for playing! Makes me realize I need better syntax for cases where the ingredient is just a whole X.

I'd love to try your recipe but I seem to be allergic to avocado and would not have a fun time.

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#15
post #8

Would be nice if we were * able to browser recipies by others, maybe vote? * see the nutritional contents of each recipe (at least an estimate)

The second is particularly appealing to me. I wonder if there's some sort of open food API I could tap in to. Would also love to build your first idea as well once I start to learn backend development.

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#16
post #5

It'd be nice to be able to browse and search the recipes (e.g., to see what people have come up with for the ingredients you have on hand, etc.) I like the quick hack nature of it, though...

Thanks! And yes, I agree, that would be nice.

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#17
post #9

I like this! I worked on a passion project during the early weeks of covid / lockdown called Choose My Smoothie. Didn't continue working on it for long but always wondered where else I could take it - this would have been a nice addition.

Thank you! Is Choose My Smoothie still around? Would love to take a look.

Yes! https://choosemysmoothie.com

Re: Show HN: My Smoothie Stack – What are you using to build your smoothie?

#18
Pretty cool idea to practice skills, I'll take a look at the source code since I'm just getting into React now too :). I'm sure there's an API for something like myfitnesspal for nutritional information, and I second having a simple voting system for best public smoothie recipes.
Post reply on HN