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 Жыл бұрын
This is not the best idea :) better use word refactor instead of optimize. Optimize in most cases will only change you code syntax
@JohnDoeX1966 Жыл бұрын
@@wixoooooo ooooh what’s the differences between the two in your opinion?
@jgamysta Жыл бұрын
Optimize and refactor are separate things. Optimize you can optimize for speed or space. Refactor is for readability and reusability.
@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 Жыл бұрын
Absolutely incredible ! Thanks James !
@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 Жыл бұрын
I wanted to ask the very same question… could you please help us out?
@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 Жыл бұрын
@@sebaur thank u so much bro i got it thx
@Salah-YT Жыл бұрын
@@javiercastanos9126 quokka extension
@JamesQQuick Жыл бұрын
Yep, it's Quokka. It's AMAZING!
@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 Жыл бұрын
Same! I use it for every new project!
@karel-varona Жыл бұрын
Hi James! Congrats for such a great channel! I loved your VS Code settings....what set of fonts do you use? Thanks!
@JordiSerra-fd8yt Жыл бұрын
I would like to know it aswell!
@karlstenator Жыл бұрын
When is "Copilot X" due for release?
@JamesQQuick Жыл бұрын
I don't know. I actually don't know what is? Care to share?
@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 Жыл бұрын
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!
@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 Жыл бұрын
Yeah that's a challenge for me too!
@AsenTrichkov Жыл бұрын
Great tips, I would definitely switch from using codepen to quokka ;d
@karlstenator Жыл бұрын
Quokka is excellent. A real game changer. 5/5 ⭐⭐⭐⭐⭐
@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 Жыл бұрын
bahaha yeah I take a lot of inspiration from Twitter :)
@soniablanche5672 Жыл бұрын
You don't need to use typescript, jsdoc will do the same thing without needing to compile the code.
@anasouardini Жыл бұрын
Why aren't you on odysee bro, your content is so amazing.
@JamesQQuick Жыл бұрын
Thank you! Also what is odysee?
@tempaccount8256 Жыл бұрын
I guessed the fifth one, when you said disclaimer about it in the initial video🤣🤣
@JamesQQuick Жыл бұрын
hahahaha nicely done!
@Serjgap2 ай бұрын
lol I dont need to TYPE code faster, I need it to EXECUTE faster...
@Dev-Siri Жыл бұрын
Now we need "5 Tips For Writing JavaScript that executes FASTER!"
@JamesQQuick Жыл бұрын
Already planing on it!
@karlstenator Жыл бұрын
@@JamesQQuick Bun? Bun.
@alwysrite Жыл бұрын
like saying best tips to use Microsoft = > buy an apple computer