r/javascript • u/Pancakw • Sep 23 '21
I built a CRUD recipe app without using a framework. Your recipes are saved in local storage to avoid user auth and database maintenance. Typescript helped a ton.
https://jonkarrer.github.io/Recipe_App/3
u/_gro_ Sep 24 '21
Nice and playful look. I would add some kind of delete confirmation. I was surprised when I used the button to delete the recipe (which doesn't have a label) to see my recipe be instantly lost forever.
3
u/RobertSkaar Sep 24 '21
Great work 👍 Not a fan off the way you save/delete a recipe though.. it feels counter intuitive (e.g. while adding a ingredient, I can delete or save the recipe at the same time, I actually clicked delete at this step, expecting to just cancel my I gradient Input..
Another thought, I sure do like working with frameworks, but when I can I usually work framework free.. my argument is that frameworks come and go, but JS remains. Sure a framework speeds you up a bit.. but over time i've worked on loads of projects that keep switching frameworks, either because they are the new big thing, or because the team change and there's new competences on board, changing your framework every x years might be equally slow as just using no framework(tried once a 3 year period just switching codebase to a new framework... also if you make a component, that's pretty lucked up to whatever framework you're using while a vanillaJS component can be used in anything, even blazor supports initializing the web components.👌
So I tend to work JS when able to over frameworks, this specially applies for when I make web components, so I can share with everyone regardless of framework... now. Change my mind 😎👍😂
1
u/AutoModerator Sep 23 '21
Project Page (?): https://github.com/jonkarrer/Recipe_App
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
19
Sep 23 '21
[removed] — view removed comment
8
u/Scary-Ad5696 Sep 23 '21
Things naturally evolve into libraries and frameworks if you start abstracting your duplicate code. Thats why there are countless JS Ui libraries
4
u/oh_jaimito Sep 24 '21
You can start a fire by rubbing sticks together or a lighter. In the future, I will stick to lighters
I love this!
3
u/oh_jaimito Sep 24 '21
Simple misspelling: categories & separate.
My only suggestion is to pre-populate it and have some a recipe or two already in there. Provide a sense of structure and "How To".
Looks great by the way!