5 Tips For Writing JavaScript FASTER!

  Рет қаралды 5,054

James Q Quick

James Q Quick

Күн бұрын

Use these 5 tips to start writing JavaScript faster RIGHT NOW!
Original Tweet - jamesqquick/statu...
*DISCORD*
Join the Learn Build Teach Discord Server 💬 - / discord
*STAY IN TOUCH 👋*
Newsletter 🗞 - www.jamesqquick.com/newsletter
Follow me on Twitter 🐦 - / jamesqquick
Check out the Podcast - compressed.fm/
Courses - jamesqquick.com/courses
*QUESTIONS ABOUT MY SETUP*
Check out my Uses page for my VS Code setup, what recording equipment I use, etc. www.jamesqquick.com/uses
*TIMESTAMPS*
00:00 - Intro
00:15 - Using Intellisense in Your Editor
01:30 - Use Snippets and Snippet Extensions
03:40 - Github Copilot
05:25 - Plan For Errors
07:40 - Use TypeScript
09:15 - Additional Meta Examples
11:00 - Wrap Up

Пікірлер: 36
@JohnDoeX1966
@JohnDoeX1966 Жыл бұрын
Two things I’ve done is I write a snippet of code in chatGPT and say “can you optimize this piece of code” & I just ask chatGPT to write small JavaScript snippets of code for me. I’ve saved hours writing code the past few months
@wixoooooo
@wixoooooo Жыл бұрын
This is not the best idea :) better use word refactor instead of optimize. Optimize in most cases will only change you code syntax
@JohnDoeX1966
@JohnDoeX1966 Жыл бұрын
@@wixoooooo ooooh what’s the differences between the two in your opinion?
@jgamysta
@jgamysta Жыл бұрын
Optimize and refactor are separate things. Optimize you can optimize for speed or space. Refactor is for readability and reusability.
@wixoooooo
@wixoooooo Жыл бұрын
​@@JohnDoeX1966 If you have a piece of code and you want make it more performant you should look for Optimization. If you have Spaghetti code and want make it more readable you should look for Refactoring. But as far as I can see chatGPT has different view on this. If you will write for loop and ask GPT optimize it, it will upgrade code and will replace your for loop with .map(), but that's not optimization, because in many cases .map() is way way slower then for loop and more memory expensive. But if you ask chatGPT to refactor your code chatGPT can 1.) Change your algorithm 2.) use some techniques to improve performance ( like add cache functions ) 3. ) and make spaghetti into a more readable code - Like all in one
@codewithguillaume
@codewithguillaume Жыл бұрын
Absolutely incredible ! Thanks James !
@odehadejoh9966
@odehadejoh9966 Жыл бұрын
This is absolute gold. I always have to remind myself to focus on 1 thing at a time, as it is very easy to chase the different threads when implementing something.
@JamesQQuick
@JamesQQuick Жыл бұрын
Yeah that's a challenge for me too!
@user-dl6dz4vt2h
@user-dl6dz4vt2h Жыл бұрын
Hi James! Congrats for such a great channel! I loved your VS Code settings....what set of fonts do you use? Thanks!
@JordiSerra-fd8yt
@JordiSerra-fd8yt Жыл бұрын
I would like to know it aswell!
@JesseGilbride
@JesseGilbride Жыл бұрын
Funny, I saw James' Twitter post yesterday asking his question about code writing speed and didn't realize it would be used as fodder for a YT video. Good stuff!
@JamesQQuick
@JamesQQuick Жыл бұрын
bahaha yeah I take a lot of inspiration from Twitter :)
@Salah-YT
@Salah-YT Жыл бұрын
hi James please what is the extension name when u type the red line comes up next to the code + terminal I like to know that one u didn't mention that thx for the video so I'm not using co-pilot because I'm a beginner so maybe next year and other I know all of them thx
@javiercastanos9126
@javiercastanos9126 Жыл бұрын
I wanted to ask the very same question… could you please help us out?
@sebaur
@sebaur Жыл бұрын
I am completely new to JS and VSCode, but I think that the quokka extension gives out those comments. The terminal keps mentioning quokka...
@Salah-YT
@Salah-YT Жыл бұрын
@@sebaur thank u so much bro i got it thx
@Salah-YT
@Salah-YT Жыл бұрын
@@javiercastanos9126 quokka extension
@JamesQQuick
@JamesQQuick Жыл бұрын
Yep, it's Quokka. It's AMAZING!
@ondrejhavazik4124
@ondrejhavazik4124 Жыл бұрын
Great video, James :-) I personally couldn't live without "rfc" snippet (I think you know what I mean :-D). All types were very useful, I still consider trying co-pilot, but I'm still a junior developer. Do you think using a co-pilot is a good idea for me? And the last point, I personally think that Typescript is the future of JS, and it's necessary to know it. For example, if someone tries Angular, there is no other choice than use TS. And other frameworks, such as React and Vue, also went for TS in their new version, didn't they? In addition, in my opinion, TS captures a large number of errors already during code compilation, so it does not have to be complicated to debug in JS runtime, or even intelli sense in VS Code will catch them (depends how strict your TSConfig is ofc). Thank you!
@JamesQQuick
@JamesQQuick Жыл бұрын
I don't recommend Copilot for true beginners. The most important thing is to make sure that you understand all the things Copilot does for you. So, if you try it, and find it writing code for you that you couldn't write yourself, maybe back off. If you find it writing code that already makes sense for you, go for it!
@kushagra-aa
@kushagra-aa Жыл бұрын
Been using JS for over 2 years now but started using TS for about 5 months, JUST LOVE IT!!!! NEVER GOING BACK!!!
@JamesQQuick
@JamesQQuick Жыл бұрын
Same! I use it for every new project!
@AsenTrichkov
@AsenTrichkov Жыл бұрын
Great tips, I would definitely switch from using codepen to quokka ;d
@karlstenator
@karlstenator Жыл бұрын
Quokka is excellent. A real game changer. 5/5 ⭐⭐⭐⭐⭐
@tempaccount8256
@tempaccount8256 Жыл бұрын
I guessed the fifth one, when you said disclaimer about it in the initial video🤣🤣
@JamesQQuick
@JamesQQuick Жыл бұрын
hahahaha nicely done!
@anasouardini
@anasouardini Жыл бұрын
Why aren't you on odysee bro, your content is so amazing.
@JamesQQuick
@JamesQQuick Жыл бұрын
Thank you! Also what is odysee?
@karlstenator
@karlstenator Жыл бұрын
When is "Copilot X" due for release?
@JamesQQuick
@JamesQQuick Жыл бұрын
I don't know. I actually don't know what is? Care to share?
@soniablanche5672
@soniablanche5672 Жыл бұрын
You don't need to use typescript, jsdoc will do the same thing without needing to compile the code.
@Dev-Siri
@Dev-Siri Жыл бұрын
Now we need "5 Tips For Writing JavaScript that executes FASTER!"
@JamesQQuick
@JamesQQuick Жыл бұрын
Already planing on it!
@karlstenator
@karlstenator Жыл бұрын
@@JamesQQuick Bun? Bun.
@alwysrite
@alwysrite Жыл бұрын
like saying best tips to use Microsoft = > buy an apple computer
@JamesQQuick
@JamesQQuick Жыл бұрын
Not sure I'm really following that?
5 Tips for Writing BETTER For Loops in JavaScript
16:15
James Q Quick
Рет қаралды 70 М.
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 4,7 МЛН
Can teeth really be exchanged for gifts#joker #shorts
00:45
Untitled Joker
Рет қаралды 15 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 134 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
The different types of JavaScript functions explained
14:47
Kevin Powell
Рет қаралды 36 М.
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 405 М.
How to be a git expert
46:26
Floating Little Leaves of Code
Рет қаралды 146 М.
How I Made JavaScript BLAZINGLY FAST
10:10
ThePrimeagen
Рет қаралды 212 М.
Performance of JavaScript Garbage Collection | Prime Reacts
26:46
ThePrimeTime
Рет қаралды 70 М.
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 4,7 МЛН