From Idea To Robust Database Design

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 43

  • @nasko235679
    @nasko235679 7 หลายเดือนก่อน +11

    Whenever I'm starting a project I always rush through the initial design phase and lean heavily on chatGPT to make my db models and solve my engineering problems for me. It has been a huge issue for me as a learning developer and I've realized that just taking the time and spending a few hours (or even days if you have to) on designing the infrastructure of your app manually and gathering a deep understanding is way more important than rushing through and coming out the other end not having learned anything.

    • @LjupcheVasilev
      @LjupcheVasilev  7 หลายเดือนก่อน +2

      Thanks for sharing that and yeah I completely agree. I didn’t have ai tools when I was learning to code but once in a while I would just copy and paste a whole solution and at the end realise that I’m only fooling myself :)

    • @readywhen
      @readywhen 6 หลายเดือนก่อน +1

      Yeah that's wise. Db modeling is as much of a business problem as it is an engineering problem, in my opinion. For now, AI won't be solving business problems for you.

    • @codewithtae6637
      @codewithtae6637 4 หลายเดือนก่อน +2

      My former lead engineer used to tell me,"Haste makes waste". It sounds like you're learning from your past. Keep up the good work!

    • @TannerBarcelos
      @TannerBarcelos 3 หลายเดือนก่อน

      Don't rely on AI to do it all, but use it like a coworker / expert in the field of a problem you are solving. You can move fast AND learn at the same time. That is the most optimal to ensure you move a little faster but also learn and retain it all as you go rather than just letting the AI do it all and then being clueless.

  • @DanielBergholz
    @DanielBergholz 6 หลายเดือนก่อน +5

    How on earth this video doesn't have 100k views? Amazing content!

    • @LjupcheVasilev
      @LjupcheVasilev  6 หลายเดือนก่อน +2

      I keep wondering the same thing bro 🤷‍♂️

  • @HimanshuChanda
    @HimanshuChanda 7 หลายเดือนก่อน +2

    This is genuinely helpful 🎉

    • @LjupcheVasilev
      @LjupcheVasilev  7 หลายเดือนก่อน

      Glad you found it helpful :)

  • @maso4u
    @maso4u 6 หลายเดือนก่อน +2

    great video man, keep making more

  • @omojjegomosc8211
    @omojjegomosc8211 8 หลายเดือนก่อน +1

    You have helped me a lot with my project. Thanks!

    • @LjupcheVasilev
      @LjupcheVasilev  8 หลายเดือนก่อน +1

      Glad I could help!

  • @zainahsan5175
    @zainahsan5175 3 หลายเดือนก่อน +1

    Thanks for sharing brother. Good practical use case.

  • @willl0014
    @willl0014 3 หลายเดือนก่อน +1

    I will need something like this in the future

  • @codewithtae6637
    @codewithtae6637 4 หลายเดือนก่อน +4

    Is the reason you created a separate ingredients table is so you wouldn't break 1N (first normal form) rules:storing a repeating group of items?

    • @LjupcheVasilev
      @LjupcheVasilev  4 หลายเดือนก่อน +2

      I think so. I couldn't really articulate it at the time but the experience probably came through and felt like the right thing to do.

  • @ItsMe-fj1co
    @ItsMe-fj1co 8 หลายเดือนก่อน +4

    what is thne name of this DB design tool you are using in the video?

    • @LjupcheVasilev
      @LjupcheVasilev  7 หลายเดือนก่อน +3

      It’s called eraser

  • @ThatGuy_Nick
    @ThatGuy_Nick 7 หลายเดือนก่อน +1

    0:47 so should model your data if you’re likely to pivot?

    • @LjupcheVasilev
      @LjupcheVasilev  7 หลายเดือนก่อน +2

      I'd say yes, modelling the data helps understand the structure and realise where things can be improved. Also certain things that you know are going to be expanded in the future can be set up in a way where that is made easy

  • @CarlPham
    @CarlPham 3 หลายเดือนก่อน +3

    What's tool you use for design db in this video?

    • @rxnniiee
      @rxnniiee 3 หลายเดือนก่อน +2

      looks to be Eraser io

    • @LjupcheVasilev
      @LjupcheVasilev  3 หลายเดือนก่อน +1

      Yep it’s Eraser io

  • @shifaurrehman4925
    @shifaurrehman4925 3 หลายเดือนก่อน +2

    What software is this!!?

  • @minhhieple6483
    @minhhieple6483 3 หลายเดือนก่อน +1

    If there is ingredientsAmout in the mealIngredients table
    How can you calculate the calorie value of that meal?
    Suppose we have chicken as an ingredient in the ingredients table and in the mealIngredient we select 100 grams of chicken?
    If Ui wants to display the calories of the meal, how will it be done?

    • @LjupcheVasilev
      @LjupcheVasilev  2 หลายเดือนก่อน

      The mealIngredient table will have an ingredientId and the ingredients table will have macros like how many calories per 100g. A simple join can give us the information combined so then we just need to multiply the ingredient calories by the ingredient amount.

  • @reynardlee3667
    @reynardlee3667 6 หลายเดือนก่อน +1

    hi what is the tool used here? subbed

    • @LjupcheVasilev
      @LjupcheVasilev  6 หลายเดือนก่อน +1

      Thanks! I used Eraser to model the db if that’s what you meant

  • @dhnguyen68
    @dhnguyen68 5 หลายเดือนก่อน +1

    Can we export the diagram to sql statements to create the database
    ?

    • @LjupcheVasilev
      @LjupcheVasilev  5 หลายเดือนก่อน

      Yes there’s an SQL/ORM but depending on what database you use it might not fit exactly. I used Prisma when filming this and had chatGPT transform the sql to prisma table definition

    • @dhnguyen68
      @dhnguyen68 5 หลายเดือนก่อน

      @@LjupcheVasilev Thanks for the insight, do you send the ER diagram as prompt to ChatGTP 4o to get the SQL statements to create the database ?

    • @LjupcheVasilev
      @LjupcheVasilev  5 หลายเดือนก่อน +1

      No the Eraser tool provides the code for the data model which I give to ChatGPT with the prompt to change it to postgresql for example. More info on the eraser data model feature here: www.eraser.io/use-case/data-model

  • @starlord7526
    @starlord7526 7 หลายเดือนก่อน +1

    does the user provide any input or not? are all the meals predefined? I am unable to understand the purpose of web app

    • @LjupcheVasilev
      @LjupcheVasilev  7 หลายเดือนก่อน +1

      I probably could have explained that better. At this point I didn’t have plans for adding users but the idea was there will be forms to create/update meals.
      I am currently implementing most of that but have added users and roles so if you watch my latest video it might make more sense

  • @allyoucansearch
    @allyoucansearch 2 หลายเดือนก่อน +1

  • @Kimo.Codess
    @Kimo.Codess 3 หลายเดือนก่อน +1

    So we buying 2 kilos of chicken or nah 😅

    • @LjupcheVasilev
      @LjupcheVasilev  3 หลายเดือนก่อน +1

      2kg per week 😂

    • @Kimo.Codess
      @Kimo.Codess 3 หลายเดือนก่อน +1

      @@LjupcheVasilev 😂😂😂

  • @TheBlackGentlemanGeek
    @TheBlackGentlemanGeek 8 หลายเดือนก่อน +1

    Nice one bro! Another demystified section of software development done well.
    It begs the question, why is it that all these years software/programming was mystical with jargon words, poorly written articles and books, etc. I've been saying this for years, software development itself is not that difficult; but the devs make it look difficult, either on purpose to look smart, or because most devs themselves don't have teaching and communication skills.
    A lot of devs speak too fast, use jargons, complicate things for no reason, thinking that everyone can follow their way of thinking and pace. I've noticed that a lot.
    Devs are socially awkward (borderline autistic), hence why the poor teaching skills.

    • @LjupcheVasilev
      @LjupcheVasilev  8 หลายเดือนก่อน +1

      Thanks! Yeah, maybe, but I haven't felt the same way tbh. I started learning about 16 years ago and everything I've learnt came from people on the internet.
      I would come across complicated tutorials but never really dwelled on it just thought there's more I need to learn in order to understand that one and then after a while it clicks.
      And also I think it's not easy trying to explain something in a very simple way, especially when it requires prior knowledge.