How to navigate larger code bases

  Рет қаралды 10,241

Web Dev Cody

Web Dev Cody

Күн бұрын

Пікірлер: 54
@willmakk
@willmakk 5 ай бұрын
These bits of knowledge are so valuable you have no idea, real world stuff straight from an experienced dev. If you ever group all this in some way you could become a reference.
@HHJoshHH
@HHJoshHH 5 ай бұрын
I know it's somewhat basic but I learn from everyone so this was awesome! Plus your production quality is always A+. Good vid Cody.
@kyrregjerstad
@kyrregjerstad 5 ай бұрын
Wish I would have known this when starting my first junior role, would have made my life so much easier!
@insanityrodax8621
@insanityrodax8621 5 ай бұрын
When you add internationalization, you will resort to all the techniques mentioned React Component Extension + Text Search + URL. For me, in a real complex code, React Component Extension seems to work most of the time along with file search (when I get used to the code)
@danielcraciun456
@danielcraciun456 5 ай бұрын
Great tips! A video on monorepos with Next.js would also be amazing.
@vinialves12362
@vinialves12362 5 ай бұрын
Findind the entrypoint and fuzzy search is the exact workflow I use and teach my pairs. Good video
@xmaxfuture
@xmaxfuture 5 ай бұрын
1. Command Click: Quickly jump to the definition of a function or component by holding the Command key and clicking on it. 2. Command W: Close the current tab in your editor, allowing you to navigate back up the call stack. 3. Command Shift F: Search for text across the entire codebase. Useful for finding where a specific component or text is used. 4. Command P: Open the file palette in VS Code, allowing you to quickly jump to a file by typing its name. 5. Command P + # (hashtag): Search for a symbol in the codebase, such as a function or variable name. 6. Shift + FN + Option + F12: Find all references to a function or variable, showing every place in the code where it is used. 7. Command Shift Click: Open the closest component in VS Code editor (if supported by extensions).
@joshuwa3953
@joshuwa3953 5 ай бұрын
Thanks for teaching real world applications for devs
@Goyo_MGC
@Goyo_MGC 5 ай бұрын
I know your content is English centered but i don't think i ever heard you talk about internalization tools with nextjs. I've used next-intl and pretty happy about it. Would love to hear from you on how you would implement those type of tools. Great content as always that touch on subjects that really matter in professional environment
@WebDevCody
@WebDevCody 5 ай бұрын
Yeah I’ve never used i18n before. I’ve only worked on domestic apps in the us
@raygrant9673
@raygrant9673 5 ай бұрын
What keyboard do you use?
@shahzaibshahzaibkhan6480
@shahzaibshahzaibkhan6480 5 ай бұрын
Awesome, didn't know about the CMD+W one
@williamx0
@williamx0 5 ай бұрын
Thanks for this. Helpful for people like me. I was curious, how is the id after groups so short? It says groups/5. Typically I'm using a ulid() and the url gets really long. Any info on what id you're using to make your urls so short?
@WebDevCody
@WebDevCody 5 ай бұрын
I'm using auto incrementing database ids which are integers
@williamx0
@williamx0 5 ай бұрын
@@WebDevCody I see. Thanks man
@ivangechev4243
@ivangechev4243 5 ай бұрын
I use Cntrl + Shift + P to find the file I want and when I have a lot of opened tabs with files in my VS Code I found out if you hover over them you can use the scroll to easy find what you need.
@ziacodes
@ziacodes 5 ай бұрын
How did you implement logout from all devices? That's interesting to acheive with Lucia auth andddd database sessions I believe? Could you also make a video about thaT?
@WebDevCody
@WebDevCody 5 ай бұрын
Lucia has a built in method to do it if I recall correctly
@ziacodes
@ziacodes 5 ай бұрын
@@WebDevCody Yeah, I saw it... I kinda like Lucia compare to Next-Auth... It gives much more flexibility.
@zilaidawwab4252
@zilaidawwab4252 5 ай бұрын
What's the name of the VS Code theme?
@alec-dora
@alec-dora 5 ай бұрын
Which vs code theme _were_ you using?
@iamsomraj
@iamsomraj 5 ай бұрын
Does anyone know?
@bandekhoda7801
@bandekhoda7801 5 ай бұрын
Bearded theme stained blue, I've been using it since I remember lol
@alec-dora
@alec-dora 5 ай бұрын
@@bandekhoda7801 I want to kiss you bro. Thanks a lot!!
@zilaidawwab4252
@zilaidawwab4252 5 ай бұрын
@@bandekhoda7801 That's not what is used in the video. Do you know the exact name of which one he's using?
@bandekhoda7801
@bandekhoda7801 5 ай бұрын
@@zilaidawwab4252 he previously mentioned that the creator of the Bearded Theme himself is developing this current theme, but it's not publicly available yet. Not sure if it's still the case
@domson_0478
@domson_0478 5 ай бұрын
@Web Dev Cody How do you manage your db selects? I mean when you do select query (probably) by default you take all data related with some record(s). So probably you also take data that you don't need in some usecase. Do you ignore that additional data received from db? What's your point? I ask bc if I do lib functions for db related stuff, sometimes I need one portion of data, but in the orther case another one. But I take all (*) so I waste my transfer. How do you do that?
@WebDevCody
@WebDevCody 5 ай бұрын
if you want to minimize load times, you should only send back the minimum data needed to show in the UI, but often the extra work to achieve that makes the code a bit more messy
@holypowerenjoyer6059
@holypowerenjoyer6059 5 ай бұрын
It'd be cool if you had that thing that displays your keystrokes on the screen
@HorizonHuntxr
@HorizonHuntxr 5 ай бұрын
You can enable it directly from vs code too
@martiananomaly
@martiananomaly 5 ай бұрын
Locatorjs was one sick tool for blazing fast UI to code navigation which unfortunately doesn't work with the latest NextJS
@Sky-yy
@Sky-yy 5 ай бұрын
Wow , really awesome one .
@imransefat8770
@imransefat8770 5 ай бұрын
Idk if I should ask here, but this is somewhat related as I do the scenario, the codebase expands. If you could create another video to solve this would be great. So, what's th best use case of a CRUD application where I'm using trpc with t3-stack and using react form hook for the form validation. I feel like using react form hook with trpc slows down my development time.
@JerrenT
@JerrenT 5 ай бұрын
typo in alt tag of Image component in users/[userId]/posts/page.tsx - 'gruops' -> 'groups'
@alonsoalarconaguilar7113
@alonsoalarconaguilar7113 5 ай бұрын
great tips!, i didnt know the hashtag one
@dailynews7822
@dailynews7822 5 ай бұрын
Can you make grid layout on posts .
@jazzdestructor
@jazzdestructor 5 ай бұрын
Worst case if everything fails (in react) then search component in the router file.
@dailynews7822
@dailynews7822 5 ай бұрын
Nice work
@SeibertSwirl
@SeibertSwirl 5 ай бұрын
I love you! You’re doing great 😘
@dailynews7822
@dailynews7822 5 ай бұрын
How to check erro on deloy NextJs App ? Thank you
@SonAyoD
@SonAyoD 5 ай бұрын
Nice!
@3litepker
@3litepker 5 ай бұрын
Really thought this would be common sense for anyone that is anything above a beginner level
@WebDevCody
@WebDevCody 5 ай бұрын
sure, but beginners watch my content
@3litepker
@3litepker 5 ай бұрын
@@WebDevCody did you assume my level? Triggered mate
@48_subhambanerjee22
@48_subhambanerjee22 5 ай бұрын
As a newbie who will be entering in this IT sector.. this is what i will do 😢😢😢😢
@matteokinkela
@matteokinkela 5 ай бұрын
I gotta remember shift+fn+option+F12 somehow
@codinginflow
@codinginflow 5 ай бұрын
yolo
@shaked1233
@shaked1233 5 ай бұрын
Now convert this video to vim
@ElHeloint
@ElHeloint 5 ай бұрын
Php code igniter app deployed on a VM running on an old basement machine of the office, no docker, no readme about reproducibility, nothing. Commands like "find" and "grep" are your friends in those times. Well, also th exit door is friendly, to leave that sht hole
@killbit01
@killbit01 5 ай бұрын
#algorhitm
@sk4yb3n
@sk4yb3n 5 ай бұрын
Which keyboard are you using?
@WebDevCody
@WebDevCody 5 ай бұрын
Klack app
This is when testing in software starts to suck
20:22
Web Dev Cody
Рет қаралды 10 М.
How web applications are secured
19:54
Web Dev Cody
Рет қаралды 29 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
The 3 Laws of Writing Readable Code
5:28
Kantan Coding
Рет қаралды 791 М.
I can’t believe they built this in React
16:08
Theo - t3․gg
Рет қаралды 129 М.
This AI Software Architect AUTO DOCUMENTS your code
6:13
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
SWE Stop Learning - The Rise Of Expert Beginners
49:09
ThePrimeTime
Рет қаралды 342 М.
So I've Been Trying Other Languages...
30:59
Theo - t3․gg
Рет қаралды 73 М.
How To Handle Permissions Like A Senior Dev
36:39
Web Dev Simplified
Рет қаралды 306 М.
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,4 МЛН
The most important function to write performant next.js apps
5:36
Web Dev Cody
Рет қаралды 18 М.
HTMX Sucks
25:16
Theo - t3․gg
Рет қаралды 131 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.