How I structure my next.js applications

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 150

  • @georgemwaniki
    @georgemwaniki 5 месяцев назад +28

    We need more videos like this, coding tutorials are everywhere but no one is teaching architecture specific to a framework, i usually struggle to decide what goes where, great video

  • @maazmunir9213
    @maazmunir9213 5 месяцев назад +52

    mythical beast: clean shaved cody

    • @SeibertSwirl
      @SeibertSwirl 5 месяцев назад +4

      Lmaoooooooo I’m going to call him this from now on

  • @kavehtehrani
    @kavehtehrani 16 дней назад

    Cody your videos are incredible. The one where you show how to make contributions to open sourced projects in my favorite.

  • @funkdefied1
    @funkdefied1 5 месяцев назад +4

    I’m loving Supabase right now. The business layer fits in really well with Postgres functions and edge functions.

    • @jonasj2627
      @jonasj2627 5 месяцев назад

      Hey, I am also using supabase right now and I also like it. I just dont know how to how to use types properly. Currently I just take the return type of my data access functions. Also I am not sure how to deal with joins. Should I create functions and types? For example: getApplicationsWithProfile and the Type ApplicationWithProfile.

  • @NizzyABI
    @NizzyABI 5 месяцев назад +19

    Thank you Cody! I’ve been developing in Nextjs for a while but seeing the perspective from a senior developer is unbelievably valuable

    • @Yusuf-ok5rk
      @Yusuf-ok5rk 5 месяцев назад +1

      i love cody but does he really count as senior? i don't know.

    • @WebDevCody
      @WebDevCody  5 месяцев назад +9

      I'm junior all day every day baby

    • @NizzyABI
      @NizzyABI 5 месяцев назад

      @@Yusuf-ok5rk true, not really sure. kinda assumed haha

  • @SeibertSwirl
    @SeibertSwirl 5 месяцев назад +19

    Good to see you back babe! Love ya! Great job

    • @juliocesarbenavente9590
      @juliocesarbenavente9590 5 месяцев назад +1

      Are you too related somehow? 😅

    • @Nurof3n_
      @Nurof3n_ 5 месяцев назад

      @@juliocesarbenavente9590 it's his wife

    • @z-aru
      @z-aru 5 месяцев назад

      @@juliocesarbenavente9590 she's his gf I guess

    • @hamzaa9429
      @hamzaa9429 5 месяцев назад +2

      @@juliocesarbenavente9590his wife, dope ass relationship. Shout out to Cody for being the 🐐

    • @Offiziersmesser
      @Offiziersmesser Месяц назад

      Hello Mrs. Cody

  • @dcmbassi
    @dcmbassi 5 месяцев назад +1

    Colocation makes the most sense. I don't know why I didn't think to apply this to server actions. Great video.

  • @tyeinstem
    @tyeinstem 4 месяца назад

    I knew something was wrong with how I was coding but didn't know what it was, this video is what I needed - ty!

  • @bucketcodes9456
    @bucketcodes9456 Месяц назад

    Your style of teaching is extremely helpful.
    I would love to see how you would approach having the "backend" aspect be decoupled from NextJS. For instance, when using a shared backend across multiple applications. I imagine the only difference would be that the business layer would be an external api, which then handles the persistence and database layers. Unless I'm missing something.

    • @WebDevCody
      @WebDevCody  Месяц назад +1

      I think that’s a good assumption, the actions could call your api

  • @devfren
    @devfren 5 месяцев назад

    16:50 100% agree at my work there is a component folder with hundreds of files in it and I know for a fact at least 10% aren’t even being used

  • @al3030
    @al3030 Месяц назад

    Helpful video. I split along the same lines. This is honestly why the nextjs paradigm feels off to me because you can end up mixing your code into a spaghetti pile. But hey, as long as we get rid of the spinners 😂

  • @emmanuelezeagwula7436
    @emmanuelezeagwula7436 5 месяцев назад +1

    I never thought of using Server actions in this fashion, I always thought that it was for forms

  • @tiagodev5838
    @tiagodev5838 2 месяца назад

    Great video! I've been thinking about how I could use clean architecture in NextJS. You even touched upon a few concepts from Domain Driven Design in there. Cheers!

  • @caseyspaulding
    @caseyspaulding 4 месяца назад

    Yea! I think your the only person talking about this topic in Nextjs community

  • @raphauy
    @raphauy 5 месяцев назад

    Hi, I use a very similar structure, except for some projects that I want to advance quickly, I unify the business layer with the persistence layer, but the separation of the view/controller layer is always there, it is super important. I communicate them with DAO objects.

  • @maddada
    @maddada 5 месяцев назад +2

    Really liked this. I feel Nextjs is overly complicated for the apps that I'm working on currently, so I'm sticking with bun + vite, which is very fast and stable. So hope you do some content for that too :)

  • @flnnx
    @flnnx 5 месяцев назад +2

    This is how we learned to build NodeJS apps a few years ago in the bootcamp I attended. You actually made me realize how I incorporated some of it into NextJS haha.
    I do the rate-limit part in the global middleware and the Auth + user Input checks within the server actions. I treat the server actions like a small middleware that checks if everything is correct before passing the data down to the business layer.
    My use-cases/business layer is basically also a persistence layer, but it's actually a good idea to separate them. It seems much more maintainable and scalable for larger projects, though it might be overkill for smaller ones.. I'll definitely give it a shot and refactor some of my projects.

  • @Ahmed_005
    @Ahmed_005 5 месяцев назад

    16:45 would you also recommend co-locating your unit-tests? So your unit tests would be in the same directory as the function that it is testing.

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      unit test yes, e2e tests, probably no

  • @endlessia
    @endlessia 4 месяца назад +1

    Hii Cody, I like this architecture type, everything gets way cleaner and its kinda looks like a backend architecture with Controller and Services, I love it !
    I have one question, inside the data-access & uses-cases files do we need to put « use server » ? Or maybe import server-only ? I thought it was necessary 🤔 (even tho I don’t know the difference between both of them lmao)

    • @WebDevCody
      @WebDevCody  4 месяца назад +1

      I wouldn’t add any react or next related things inside of either. Those should only live in actions or loaders

    • @endlessia
      @endlessia 4 месяца назад

      @@WebDevCody Oh I got it, I see now, so by default these use-cases and data-access are rendered on server. + it’s not related to next so another reason to not add these « use server ». Thank you so much ! 🙏

  • @guy-dk9cy
    @guy-dk9cy 5 месяцев назад

    Amazing!!
    can you add a second part to the video how you decide what files should have try, catch ? what files shouldn't have it and just throw errors ?
    how toast work with actions ? and maybe a user auth with custom jwt and not using clerk ?
    also, how can we use webhooks with this architecture? and 3rd party integrations.

  • @yassinesafraoui
    @yassinesafraoui 5 месяцев назад

    The way you write server actions is very similar to how actions/queries/mutations are written in convex, interesting 👍

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      I think trpc inspired a lot of things, same with react query

  • @Imk_Aslam
    @Imk_Aslam 5 месяцев назад

    Your work is exceptional. I am inspired by your videos and the fresh insights I gain from them. It makes me wonder if there's something new I may have overlooked. It would be great if you start adding unit tests as well. Keep up the great work.

  • @AlexM86
    @AlexM86 5 месяцев назад +3

    Is it wrong that I'm using server actions with tanstack query? Specifically for interactive components where user input is required, because I love the success and error workflow that it provides. For get requests I just call server actions in server components in 99.9% of cases.

    • @WebDevCody
      @WebDevCody  5 месяцев назад +5

      I don't think next recommends using server actions for fetching data. server actions were specifically created for form submissions. If you start using them for fetching data, you may see issues where doing multiple queries in your UI will result in a waterfall because server actions can only run sequentially. I do think server actions are highly coupled with RSC, so if you use server actions, you should probably be using RSC and calling revalidatePath to force your UI to refresh. If all you're looking for is a better success /.error workflow, maybe checkout that ZSA I mentioned.

  • @boy291-z8c
    @boy291-z8c 5 месяцев назад +1

    this is useful stuff. Thanks for the video, cody!

  • @ByteBound
    @ByteBound 5 месяцев назад +1

    Valuable content 🙏 Thanks for sharing

  • @ddaras
    @ddaras 5 месяцев назад

    Thanks Cody! This is so useful!

  • @jagrat12354
    @jagrat12354 2 месяца назад

    should there also be services after use cases ? Use cases will call diffrent services and the services will call the data access

  • @ahmedbg91
    @ahmedbg91 5 месяцев назад

    Hey there, great video! Glad to see that we have a very similar approach. I've been trying to figure out myself when fetching data in server components. I've been checking if the user is authenticated before fetching, but here's what I'm thinking: if the page is protected and the user has to be authenticated for the page and the component to render, the fetch call will never be made by an unauthenticated user, right? So, it's automatically protected. But i still do it anyway.

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      The loader approach I mentioned can be useful, maybe even make an authenticatedLoader helper which verifies the user is logged in so you don’t have to keep fetching the user and validating it every time

  • @kryttee
    @kryttee 5 месяцев назад

    Would love to see github repo of this, it's hard for me to comprehend the structure just by looking at the video

  • @LofiChillOut
    @LofiChillOut 5 месяцев назад

    Great stuff. Can you link to the safe server action package

  • @JohnCanCode
    @JohnCanCode 5 месяцев назад

    Cool vid, would like to see more on the entities and maybe services, ie would payment service be similar to db repository?

  • @jnsdep
    @jnsdep 5 месяцев назад +1

    Hey ! What is your visual studio theme ? It looks gorgeous :)

    • @WebDevCody
      @WebDevCody  5 месяцев назад +3

      Bearded theme stained blue

  • @kelvinxg6754
    @kelvinxg6754 5 месяцев назад

    Welcome back brother

  • @Luisllaboj19
    @Luisllaboj19 5 месяцев назад

    Next.js reccomends having a data-access layer where you make the checks for accessing the data. In your way of architecting your apps I assume that's the "data-access" folder, does that include checks for auth and authorization at all? Or you're trusting the layer above it to do those checks? why if i call (by accident) one of the exported functions from the "data-access" folder directly?

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      I’m trusting the layer above (use case) will check authorization, just like I trust the action validated a user is authenticated. I’ve seen some people put authorization checks in the data access layer,but that feels less maintainable to me imo

    • @amritniure465
      @amritniure465 Месяц назад

      ​@@WebDevCody But the problem is it won't go through the above layer (use case) if someone called the exported function form data access layer directly. This way there won't be any checks of use case layer going on. How do we solve this ?

  • @LeviCrider
    @LeviCrider 5 месяцев назад

    What kind of keyboard you rocking? Sounds immaculate.

  • @HarisVFX
    @HarisVFX 4 месяца назад +1

    I understand this abstracts/separates the 3 layers but could you just handle all of your business logic by chaining another zsa procedure say to check the group and pass it as context to the action etc ? I'm guessing this is inconvenient if you want to get group/role for other purposes/areas in the app?

    • @WebDevCody
      @WebDevCody  4 месяца назад +1

      That is an option, but I guess I wouldn’t want my business logic coupled to zsa

  • @williamx0
    @williamx0 4 месяца назад

    In the past, you would have recommended to do dependency injection on the use-cases or business logic so that it's not dependent on any external libraries (in this case drizzle-orm). Would you say injecting dependencies is just more cumbersome now and you're okay to have your business logic tied to the database repository functions or would you still dependency inject? I'm asking because I'm having the same issue

    • @WebDevCody
      @WebDevCody  4 месяца назад +1

      I don’t think dep injection is useful. I honestly think it was written in the context of having to compile modules and hook them together. If all your code is owned in the same code base, it adds little value (other than mocking maybe?), but adds indirection. I’d honestly avoid it.

    • @williamx0
      @williamx0 4 месяца назад

      @@WebDevCody I was thinking about it a bit more and reading more about DDDD and my updated thoughts on this is... I guess it really makes more sense in the context of using classes. Cuz dependency inject individual drizzle-orm functions is very cumbersome and leads to being feeling overwhelmed, but I would assume if injecting a whole repository class that might make more sense? Open to your thoughts. I'm leaning towards trying a whole DDDD approach right now (but not strict adherence and adapting when it makes sense) but I think the drawback of that is just a lot of code to maintain. But at the same time, writing it like how almost all nextjs projects are right now, is also making me a bit overwhelmed since things aren't very organized and mentally it's starting to get overwhelming.

    • @williamx0
      @williamx0 4 месяца назад

      @@WebDevCody So I'm thinking of using more classes in my nextjs app for domain entities and repositories etc. One thing I'm afraid of is that these classes potentially making nextjs take longer to load since I'm loading more code I'm not using, and I think that's probably a legit concern, but for now, using functions only when the codebase starts to grow and there are more entities and a bit more complexity ends up with the complexity being managed in my mind rather than the code... open to your thoughts though

  • @nasko235679
    @nasko235679 5 месяцев назад

    I have a question regarding server actions. So as far as I understand it you're using server actions mostly for writing to the database (which is logical since they are all POST requests). What I don't understand is how do I handle errors if the post request fails and doesn't get pushed to the database. Even in your demonstration where you get the post and you await for it to be published there was no form of error handling (as far as I could tell). Also I had a project where I lazily used server actions for everything (including fetching stuff from db) and while it was working there's gotta be some negative consequences right? The way you do it by fetching directly in the server components seems better and is the right way AFAIK.

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      I use use form hook on all my forms for client side validation errors. If the backend throws an error I use a hook called useServerAction and ZSA which sets state of is error true when the backend throws any errors

  • @aviadch
    @aviadch 5 месяцев назад

    Great video!
    Question - with this kind of separation, how can you implement a transactional business logic?
    For example if you have 2 use cases A and B, that you will need to call them both as an atomic action, how will you do that in this architecture where you abstracted the implementation of calling to db?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      personally you shouldn't be invoking 2 use cases as separate things, you should combine them into one. If you need transactions, I'd say just make a single persistence method which does the transactions you need. Pass whatever data into your persistence method and let it figure out how to do the transactions. For example, transferFunds(userAId, userBId, amount), this could all be abstracted behind a single persistence method.

  • @Danon2001
    @Danon2001 5 месяцев назад

    I'm wondering what about the Dependency Injection. Let's consider the simple use case of having option to connect different DBs. Let's say at the start I will need to use Drizzle, but later I need to switch to Postgress. In such a scenario, I would create a class that takes different DBs and provides simple methods for updating, querying or deleting. Then I could use that class in Persistence layer and provide another abstraction with the methods usch us updateGroupById, etc. Would that class be in the persistence layer or where would you guys put that?

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      That’s an adapter which if following clean architecture should be injected into your use cases. I’m specifically avoiding that in my project because I find it provides zero real benefits at the cost of a harder to understand code base. It helps in regards to unit testing, but we also have jest.mock which achieves the same thing. Refactoring individual persistence methods like I’m doing to connect to different databases isn’t hard to do since I’m using typescript anyway.

  • @wazzadev7209
    @wazzadev7209 4 месяца назад

    A question, say you have a usecase where you'll need to perform a db transaction involving multiple tables, how should this be implemented?

    • @WebDevCody
      @WebDevCody  4 месяца назад +2

      Good question. I’ll make a video on it

  • @BannanaJump
    @BannanaJump 5 месяцев назад

    If you actually implement testing in your app, you're implementing a similar structure shown in the video out of necessity. In fact, this is exactly how I'm developing in Next.js

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      you mean unit testing in particular right? Yes, if you're trying to unit test and mock out function calls, then this approach can help a lot.

    • @BannanaJump
      @BannanaJump 5 месяцев назад

      @@WebDevCody yep, exactly

  • @codinginflow
    @codinginflow 5 месяцев назад

    Is it possible to teach yourself Clean Architecture? I remember trying to read the book and everything went straight over my head lol.

    • @denisblack9897
      @denisblack9897 5 месяцев назад

      Just maintain a project for some time and youll come to it naturally😅

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      Honestly his diagram with the circles is a better outline of what you need to do compared to reading the book

  • @LucasFariaDev
    @LucasFariaDev 5 месяцев назад

    amazing video Cody! I always struggle on how to organize code in Nextjs apps when using server actions so this is great.
    You mentioned in the end using server actions vs react-query/more traditional data fetching APIs. How's your perspective on those trade-offs so far? What if you add Convex in the mix as well?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      if you're using convex, you don't need server actions. I enjoy server actions if you're just doing a standard next.js application. If you think you'll have a use-case of external people needing your data, then you probably should just make a rest api to begin with and use a better framework for rest apis instead of next.js. (such as nest.js, hono, etc). The rest api experience in next.js feels like an after thought.

    • @imkir4n
      @imkir4n 5 месяцев назад

      @@WebDevCody If we are using a separate backend like Nest for handling authentication, how can we authenticate users on Next.js and manage things like token rotation and fetching authorized API data in (RSC)?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      ​@@imkir4n you should be able to just hit a login endpoint on your nest.js endpoint which could set a cookie with a top level domain set. Assuming your api and next application are sharing the same top level domain, that cookie will be sent on any request to your domain (including both your api and next.js application). Then you'd need to use that cookie in your next.js application and invoke your api to get the user session in your RSC calls. If you want to prevent hitting your api on every single request, that's when you'd probably just want to use some type of encrypted cookie and both your api and next.js application knows how to decrypt to get the user id of the session.
      idk if that answers it.

    • @imkir4n
      @imkir4n 5 месяцев назад

      @@WebDevCody If it’s possible, please make a video covering these topics: lacking content for the next app router with a separate backend, which follows good practice.

    • @z-aru
      @z-aru 5 месяцев назад

      @@imkir4n The thing is, /login endpoint should not return tokens as a response json, but a cookie instead. The one who set and manage auth and refresh cookie token should be your backend team.
      On your frontend, you just need to set `credentials: include` on the fetch function (`withCredentials: true` on Axios), you don't need to think about token or where to store it at all.
      When Frontend hit an authenticated API, the backend should check the cookie token (and do some token rotation when the auth token is expired for example) before proceeding to the API actual business process

  • @yassinesafraoui
    @yassinesafraoui 5 месяцев назад

    This is very very very helpful, thanks!

  • @AjayCoding
    @AjayCoding 5 месяцев назад

    How does the architecture change when using external APIs instead of the built-in Next.js API routes?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      You wouldn’t do this in that case, your external api should imo.

  • @alexald783
    @alexald783 4 месяца назад

    How do you handle transactions if you have multiple data access calls? Like how do you keep things still de-coupled?

    • @WebDevCody
      @WebDevCody  4 месяца назад

      I'm not sure what you are asking, this is what I'm doing in this video. I have 2 functions which both make separate drizzle queries.

    • @alexald783
      @alexald783 4 месяца назад

      So I’m referring to using drizzle’s transaction functionality. I really like the pattern you demonstrate but not sure how to use multiple use cases and/or date access function calls under one transaction in a clean re-usable way, if that makes sense

    • @alexald783
      @alexald783 4 месяца назад

      Basically your data access function calls use the database object directly, but don’t accept a transaction object if it was under a transaction

  • @Brian-bo2fu
    @Brian-bo2fu 3 месяца назад

    What if i already have a backend service, should i just remove the usecase and repository layer and call the backend api directly?

    • @WebDevCody
      @WebDevCody  3 месяца назад +1

      The use base and repo layer are specifically for wrapping your backend logic

  • @patolorde
    @patolorde 5 месяцев назад

    I'm gonna try

  • @y8rRMNqiP4mAfHQ7tH6deX
    @y8rRMNqiP4mAfHQ7tH6deX 4 месяца назад

    what is your vscode theme name?

  • @ShivGamer
    @ShivGamer 5 месяцев назад

    Amazing Video 😊

  • @Naveenkumar-kp3qe
    @Naveenkumar-kp3qe 5 месяцев назад

    Do we need react query for nextjs projects?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      if you're using server actions and RSC, probably not really.

  • @JoshuaMcQueen
    @JoshuaMcQueen 5 месяцев назад

    What about the loading state? How do you handle that?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      Suspense with skeleton loaders

  • @radityadito922
    @radityadito922 3 месяца назад

    Can you give me the example repo

  • @Mark1-f2n
    @Mark1-f2n 5 месяцев назад

    What is the text editor on 0:22?

  • @robertm4934
    @robertm4934 5 месяцев назад

    Insanely informative! Thank you! So, for example, if I were using Tanstack/React Query, I would house that logic on the persistence layer right?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      no, react query is a presentation layer concern.

  • @juanofdark
    @juanofdark 5 месяцев назад

    Hey! Nice video! Can you Tello me the name of the theme? Please!!

    • @juanbarreto5487
      @juanbarreto5487 5 месяцев назад

      what is the theme? i would like to know!

  • @gamingwolf3385
    @gamingwolf3385 5 месяцев назад

    Hello devCody , this video really helps me
    For next video , can you explain error handling with drizzle orm ?
    I am using drizzle orm and postgres-js , and sometimes when i enter duplicate data on unique fields , wow new error and i don't know how to handle it

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      In the use case, you should probably be handling errors, so you should be catching errors from the persistence layer and running other business logic when things go wrong. For example, if you try to insert a record and there is a duplicate, you can either throw an error back to the user so they can change their input, or you could force overwrite the record, it all depends on your business rules.

  • @parkerrex
    @parkerrex 5 месяцев назад

    🔥

  • @zindev
    @zindev 5 месяцев назад

    zsa > next-safe-actions?

  • @RiteshNEVERUNIFORM
    @RiteshNEVERUNIFORM 5 месяцев назад

    Which theme is that

  • @stefano8840
    @stefano8840 5 месяцев назад

    Did you stop using Convex?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      no I still use it for one of my side projects

  • @Alex.Shalda
    @Alex.Shalda 5 месяцев назад

    awesome

  • @omomer3506
    @omomer3506 5 месяцев назад

    Is there a way to download all your knowledge, asking for a friend.... that friend is me... i am that friend
    I once had to replace my firebase with cloudinary cuz it was freaking slow, and was glad i abstracted, cuz all i had to fo was a few tweaks and write the query once

  • @shahzaibshahzaibkhan6480
    @shahzaibshahzaibkhan6480 5 месяцев назад

    This approach is great, but how the hell do you get anything done with all that mental overhead 😵?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      What part do you feel is overhead? Action calls a use case, use case calls persistence method. That’s basically it

    • @shahzaibshahzaibkhan6480
      @shahzaibshahzaibkhan6480 5 месяцев назад

      @@WebDevCody In my current setup, I'm just rawdoging trpc with drizzle directly in the procedures, it works great and I don't really have to isolate stuff that much, I don't know man, maybe I haven't made anything that complicated to realize the benefits of this but to me, this is severely excessive 😅. Although, I do aggree with the entities pattern, taht shit is a life saver for both client and server side validation 💯

  • @jsvrs
    @jsvrs 5 месяцев назад

    what keyboard do you use god cody?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      mac book keyboard, sound effects using klack.app

    • @jsvrs
      @jsvrs 5 месяцев назад

      @@WebDevCody that keyboard sounds neat. thank you god cody

  • @jonasj2627
    @jonasj2627 5 месяцев назад

    Hey, does anyone have experience using this architecture with Supabase? I'm not sure how to use proper types. I just don't understand how Supabase wants us to create types.
    I also have a question about joins. Should I create data access functions like getApplicationsWithProfile, or should I call two functions when I need an application and a profile separately?

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      You could have a single method which joins the profiles and returns all the data if you need that performance boost. Doing two function calls isn’t too bad

  • @srenhyer3895
    @srenhyer3895 2 месяца назад

    Instead of calling multiple use cases direcly inside your server components you might want to do it from a single controller instead :-) But great video.

  • @theizaananwar
    @theizaananwar 5 месяцев назад

    Can u make a tutorial on t3 with sst ion...

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      I haven't really used t3 in a while now

    • @theizaananwar
      @theizaananwar 5 месяцев назад

      @@WebDevCody will be a good exercise if you consider it

  • @5353055
    @5353055 5 месяцев назад

    how about using ddd

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      could you explain how much different DDD would be over what I showed here?

  • @jazzdestructor
    @jazzdestructor 5 месяцев назад

    RIP the beard (though shall be missed 🧔‍♂)............... also just wanted to know if you have a common component just for a particular section of files/folders how do you handle that? add it in common components or make a common components directory for that section itself?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      if it's something you know you'll be using in many pages, I'd say a top level components directory. If it's something only used 2-3 places only on a single page, I'd co-locate it in a _components directory in that route

  • @thejamalgillis
    @thejamalgillis 5 месяцев назад

    Bro what did you say you can do to SQL ?? 😂 13:01

  • @yanzhang3462
    @yanzhang3462 5 месяцев назад

    老师 很牛逼

  • @KalidAhmed-w5r
    @KalidAhmed-w5r 2 месяца назад

    A real stuff! Text a lot

  • @lucahoffmann8695
    @lucahoffmann8695 5 месяцев назад

    the keyboard click sounds are just horrendous 😵‍💫

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      You’re the first person who said they don’t like it 🤔

    • @lucahoffmann8695
      @lucahoffmann8695 5 месяцев назад

      @@WebDevCody i was listening with ear buds😅

  • @miguderp
    @miguderp 5 месяцев назад

    Dad, why did you shave 😭

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      So that people trust my advice less

  • @naughtiousmaximus7853
    @naughtiousmaximus7853 5 месяцев назад

    22 year old Cody

  • @sylarfx
    @sylarfx 5 месяцев назад

    the problem with architectures is that people tend to fall into mental masturbation about it and overcomplicate things into hard to maintain state

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      I agree, which is why I don’t fully follow clean arch. I use it more as a guideline

  • @150-150
    @150-150 5 месяцев назад

    Where is your beard?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      gone until I get lazy again

  • @Its-InderjeetSinghGill
    @Its-InderjeetSinghGill 5 месяцев назад

    Bro you looking -10 year from your age😂

    • @WebDevCody
      @WebDevCody  5 месяцев назад +2

      the power of never going out in the sun

  • @thanhminh5235
    @thanhminh5235 4 месяца назад

    Dislike the vid because you didn't upgrade those extensions and the line wasn't straight