Watched you when I wrote my first line of code and still watching 4 years later as a professional
@kashtonsebastian4802
3 жыл бұрын
i know Im asking the wrong place but does anyone know of a trick to log back into an instagram account?? I was stupid forgot the password. I love any tricks you can offer me!
@anakinjulio2003
3 жыл бұрын
@Kashton Sebastian instablaster =)
@kashtonsebastian4802
3 жыл бұрын
@Anakin Julio Thanks so much for your reply. I found the site thru google and Im trying it out now. I see it takes a while so I will get back to you later when my account password hopefully is recovered.
@amrmohamed2608
6 жыл бұрын
you are without question one of the best tutors on KZitem, i really enjoy watching your videos and the way you teach is very interesting.
@ark333
4 жыл бұрын
yes and he's pretty funny too, I love his videos
@MJ-ih1yu
3 жыл бұрын
Definitely ,,,,,, 👌a best teacher
@ahlambeyoud1709
6 жыл бұрын
the amount of energy in your videos makes coding so fun, I am a beginner and just wanna tell you that you make things very clear and simple thank you very much !
@krawieck
7 жыл бұрын
Const is very useful in node.js for including libraries. Eg.: const fs = require ('fs') // filesystem module
@TheCodingTrain
7 жыл бұрын
Thanks, great point!
@calonyoutube
6 жыл бұрын
also in react.js to declare components
@alekmoth
7 жыл бұрын
Most people that argue that you should use const whenever you can are not going to even mention the single argument you did, the premature optimization. The reasons to use immutable references are mostly for the writer and reader of the code. To avoid bugs and be clearer about the intention of that reference when it was defined. It stops "other people" (like you fifteen minutes later) from reusing the "variable" later in the code and this duplication causes unknown side effects with the original intended code.
@TheCodingTrain
7 жыл бұрын
Thanks for this clarification. I am considering redoing this video as I overemphasized non-existent optimization benefits and de-emphasized the code maintenance benefits! Thank you for commenting!
@purpleice2343
7 жыл бұрын
While premature optimization is worst thing possible you could do, doesn't mean you should completely stop thinking about it (just like what pretty much 99% of people do once they hear that it's "evil"). If you know that variable will never change, make it constant, it doesn't change readability in any way and it's free optimization which doesn't slow down your progress by any means... There's no reason to "oh I'll change all 300 variables, if I need a little bit more performance, that never change later, that's fun thing to do, right?", how about just do it right now.
@benjhabert
7 жыл бұрын
for me const is useful for clarity when I am working on a collaborative project. If someone uses const it explicitly says "don't mess with this variable"
@TheCodingTrain
7 жыл бұрын
Great point!
@farhanaditya2647
3 жыл бұрын
Never thought about that, thanks!
@gkarapeev
5 жыл бұрын
Dude, you are awesome at explaining things. No matter how simple or difficult they are. I watched a video of you talking about fractals and imaginary numbers and it was just as clear as this one. Thanks for the quality content!
@amirmehrizi6045
2 жыл бұрын
OMG - Finding you and your channel is like finding unlimited access to the treasury. GOD bless you man
@TheCodingTrain
2 жыл бұрын
Welcome aboard!
@evhwolfgang2003
7 жыл бұрын
Last time I did any programming, HTML5 was brand new and jQuery did all of my front end stuff (I was more concerned with PHP at the time). Your channel is awesome for catching up and filling in those "self taught" gaps. Subscribed when you dropped your marker in the Var vs Let video. Love your style man!
@watchdogman9956
4 жыл бұрын
Super Helpful! Watching this right now as I am trying to become a programmer to support my family! Thanks, friend!
@AliBaba-hn8tv
3 жыл бұрын
Learn with lots of fun, the best teacher ever.
@yuyafujikawa1729
6 жыл бұрын
6:43 to 6:54 the summary of this video. Thank you!! I now understand this! You explain things so good!!
@voltihd4287
2 жыл бұрын
Great teacher, your videos are a go-to for my school work since there is not enough clarity with assignment instructions. Thank you!
@victorirekponor6858
4 жыл бұрын
I love this guy! I am making a switch from Python to Js and with your tutorials everything just feels so seamless and super easy!!! Great videos.
@Sworn973
7 жыл бұрын
No more neural network :'(, I was following with my project, crazy to see how you explain and use it. You explain waaaayyyyyyy better then every one else.
@TheNewGreenIsBlue
2 жыл бұрын
The underlying reason *const* allows you to change the values is because when you create an object, the *ACTUAL* thing that is being stored as the value is the memory address which POINTS to the data. It's like storing *123 Main Street* as the value... and saying you can NOT change that. It is forever 123 Main st.... although you can alter what's inside the house. When you use let, you're still assigning a memory address (when creating an object), but it's more like you're saying... hey this is a mobile home, so I need to be able to destroy, move or point it at a different mobile home. Using const prevents you from doing something like this: `const china = { democracy: false }; const taiwan = { democracy: true }; china = taiwan;`
@bearded-cat
6 жыл бұрын
I can't get enough of your videos!
@TheLargedwarf
6 жыл бұрын
One of the strengths of cost is that you might find yourself with a loop containing a "let" for a variable that doesn't change this is slower than it needs to be because let goes and finds some memory, and then sets it to the required value. Const stops the need to find or set the memory more than once, essentially it's a line of code that will only run on the first cycle of the loop. To preserve this use it's important you can't break it by reassigning the value somewhere.
@dwhxyz
7 жыл бұрын
If your starting to discuss ES6 then it might be helpful to do a couple of videos on TypeScript. Btw, love your videos :D
@kubimogero
7 жыл бұрын
Looking forward watching arrow syntax!
@HamdiRizal
7 жыл бұрын
Your videos are really fun to watch. Please make more video about learning javascript. :)
@zinsy23
4 жыл бұрын
I thought I pretty much knew what there was to const. Now I watch a 7 minute video where I learn a bunch of stuff I never knew!
@ky-effect2717
3 жыл бұрын
Thanks for the detailed descriptions!
@Shoutlikeatwebpunktd
7 жыл бұрын
5:18 ... actually the equivalent of "function go() { }" is "var go = function() { }" and not "let go = function() { }" because functions are also hoisted...
@olatrials
7 жыл бұрын
Actually, none of them are equivalent to "function go() {}", as a named function is defined as soon as its surrounding function/script is executed, while an anonymous function declared as a variable is only defined when its line is reached. go() // logs "Hello!" function go() { console.log("Hello!") } ...and go() // Uncaught TypeError: go is not a function var go = function() { console.log("Hello!") } ..and go() // Uncaught ReferenceError: go is not defined let go = function() { console.log("Hello!") }
@sadhlife
7 жыл бұрын
Ola Kaldestad okay, so it is not equivalent to var go() = function(), but this does mean that functions are hoisted, which is great!
@sampsonorson
6 жыл бұрын
Remember it will hoist the variable "go" and not it's content (the function).
@rachanaa6745
2 жыл бұрын
thank you for detailed explanation !!
@kamoroso94
7 жыл бұрын
Another difference between var and let/const is redeclaring variables. You can do that no problem with var, but let/const will not let you redeclare the variable in the same block. But you can redeclare a let/const variable in a nested block that will hide the other variable from being changed. That's very important behavior to understand.
@TheCodingTrain
7 жыл бұрын
Thanks for this clarification
@arielmarvin8890
3 жыл бұрын
i really apreciated your video i understand the idea of a function , maybe some exercises more and i can love the javascript more than now , new follower
@BloodyScythe666
7 жыл бұрын
thank you for the video and its useful information. I'd be glad if you also explain "=>"
@mikakataja5783
6 жыл бұрын
Feature request for ES7: modifier word "it" for let, where you can insert "this" into the newly created variable scope, thus we could make by then very dated "let it go() {}" jokes.
@uchejaphet1344
4 жыл бұрын
Nice video...lively too. Do you have a video for beginners to become professionals?
@syeddanialnabi9813
6 жыл бұрын
Const is simply Great :)
@newbprogramming5043
7 жыл бұрын
6:57 anonymous functions are awesome // Instead of function gotData(data) { } loadJSON(url, gotData); // You can do this: loadJSON(url, function(data) { }); // Or even this: ('arrow syntax') loadJSON(url, (data) => { }); // And the most simplest way: (no parenthesis needed cause it's only 1 parameter) loadJSON(url, data => { }); // If you dont want to use the data optionally you can do this: loadJSON(url, () => { }); // Confusingly you can do stuff like this, it'd be better explained with a better example tho... let isTrue = check => check; let add = (a,b) => a + b; if(isTrue('true' == true)) { console.log('Yeah it's true'); } console.log(add(2,2));
@persenbp4160
3 жыл бұрын
incredible ! thank you !
@KDC_365
3 жыл бұрын
I love you, boss. From Bangladesh
@0791679
7 жыл бұрын
I've been using ES2016 (Not ES6 anymore) for couple of years now. And I use const more then let. For node development I rarely use let. So my default behaviour is to use const and if needed I use let. Watching this video with a Junior developer...
@TheCodingTrain
7 жыл бұрын
Thanks, I am very behind the times!
@GSquaredOG
7 жыл бұрын
You could also make a video about parameter defaults. Those are kinda cool.
@dannyblack9705
5 жыл бұрын
const Car = { color: red, speed: 150} Car.color = brown means that you can change style in your car as u want and as u need but cant add more space to your car or add one more door or something like this. its main idea of change const object I think
@WistrelChianti
2 жыл бұрын
very clear thanks!!
@playingwithdata
7 жыл бұрын
"constant variable" - Ugh.
@TheCodingTrain
7 жыл бұрын
ooops
@playingwithdata
7 жыл бұрын
It's not an oops for you. It's an oops for coding terminology in general. It's just such an awkward use of language. "It's constant because it can't change, but it's a variable because that's what we call labelled values in our programs because they're things we like to change."
@grainfrizz
7 жыл бұрын
mwtbones hahahaha
@kenhaley4
7 жыл бұрын
mwtbones: Well, if we can say "jumbo shrimp" and "virtual reality" and "living dead," why not?
@atimoca5758
6 жыл бұрын
The Coding Train HOW DARE YOU
@drivgest
7 жыл бұрын
great explanation.... var, let, const........ 👍🏻
@onlybrad8434
6 жыл бұрын
a const object is actually making the pointer constant not the object itself. it's like the "final" in java
@TheCodingTrain
6 жыл бұрын
Thanks for this clarification!
@mehtisup
Жыл бұрын
Thank you.
@TheNeonRaven
7 жыл бұрын
Last I checked (js engines are updating all the time) const actually does not do anything as far as memory optimization vs let. Sure the possibilities are there, but that's just not how the VMs are optimized. The main reason to use const everywhere you can is so that you know a "variable" isn't going to change, which can be a problem in asynchronous code. If your program uses const everywhere that it can, then it is a red flag to other developers when they see "let", that they can assume that that variable is significant in that it is going to change.
@TheCodingTrain
7 жыл бұрын
yes, yes I am learning about this now, I should have done my research more before making this video! I might redo it.
@TheNeonRaven
7 жыл бұрын
No worries at all! It's still a great video and intro to ES6 variable assignment. :)
@surajkawale2763
5 жыл бұрын
Loving this playlist. Could u explain about closure in javascripts
@TheCodingTrain
5 жыл бұрын
Does this help? kzitem.info/news/bejne/jqCv2X9mp56ranY
@surajkawale2763
5 жыл бұрын
@@TheCodingTrain Awesome...sorry didn't explore ur whole channel yet...there is a lot to learn here and I'm loving it....thanks a lot again...
@kenhaley4
7 жыл бұрын
Great explanation, Dan, as well as the previous one about let and var. One comment: I don't think const has as much to do with performance or efficiency (if anything at all) as it does with making code clearer (by declaring, "this variable never changes") and preventing errors. By using const in a library, for example, you can prevent users of the library from inadvertently using that variable for something else, and perhaps creating very strange bugs in the library's behavior. Incidentally, "let" has its roots in the original version of BASIC; i.e., Dartmouth BASIC (see www.dartmouth.edu/basicfifty/commands.html), which is now 50 years old! I remember when it first came out. (Dating myself--I'm 70.)
@TheCodingTrain
7 жыл бұрын
Wow, I love learning this about let! And yes, thank you for the comment about const and performance. I should have done my research more before making this video! I might redo it.
@kenhaley4
7 жыл бұрын
Well, I don't know whether there's a performance benefit, I just kind of doubt it. I haven't researched it either. I'm just speaking from what I've learned about other languages. So don't redo the video--it's fine, I think. One point you might make in general: Javascript, historically, has been rather "loose," i.e., no strict data typing, no need to declare variables, etc. While that seems nice and convenient, at first it becomes very inconvenient when you have large programs or projects, as you struggle with misspelled variable names, bugs from scoping errors, etc. So, I think one of the objectives of ES6 is to rectify this. That, and improve readability and maintainability. Don't get me wrong--I love your presentations. Your style is so inviting--especially to novices--as you present complex ideas as if they're no big deal. I can see from the comments that people love it. I think the thing I like best about you is that you never hesitate to get in front of the camera and start talking and coding and white-boarding, etc., whether perfectly accurate or not. You get the point across effectively and the mistakes are forgivable because of your self-deprecating sense of humor. Nonetheless, you deliver great value, and a whale of a lot of it! I've never seen so many videos from one person. The only thing I could do without is the occasional random number readings. ;-)
@TheCodingTrain
7 жыл бұрын
thank you for the nice feedback!!
@Akhaada
5 жыл бұрын
I like the way you teach Sir, IMO those dislikes are from ECMA
@Quidoute
3 жыл бұрын
0:08 when I heard this sentence I feel a pro programmer not beginner anymore
@ndenkha
5 жыл бұрын
I believe the ability to change the const properties is a bug. Once a variable is declared as 'const' it should not be allowed to be changed in any way.
@nurharizulaimanmatharith4023
4 жыл бұрын
Great videos
@luisschubert6438
7 жыл бұрын
let function aFunction(){} is not the same as function aFunction(){} as the former can only be used after it was been declared whereas the latter is defined globally
@papinkelman7695
7 жыл бұрын
I lime the shorts about keyword very much. Looking forward to =>. Does js has something like lambda?
@onlybrad8434
6 жыл бұрын
=> is the lambda
@angelcaru
5 жыл бұрын
Make a video about "Pass by refference" and "Pass by copy"
@TheCodingTrain
5 жыл бұрын
Try this one! kzitem.info/news/bejne/yYSInJqppKV2qG0
@arun105k
5 жыл бұрын
I have a question. How do we free the memory assigned by const?
@insideTheMirror_
5 жыл бұрын
Very curious what's in that sc playlist bookmark man.
@ivanm.g.7442
3 жыл бұрын
great
@SHRGP
7 жыл бұрын
i would like to see a video with 'class' in javascript.
@hussainwaliwali6798
6 жыл бұрын
u just walked more KMs than I walk in a whole day
@EMonzon
6 жыл бұрын
very funny guy! very good for learning difficult things.
@DiegoMQuinteros
7 жыл бұрын
Thanks sir!
@olatrials
7 жыл бұрын
Great video as always, though I think you're putting too much emphasis on the "performance benefits" of using const. It's basically so minuscule that the two extra chars ("const" is five letters, "var"/"let" is only three) in the .js source file might very well cause a larger performance hit than what you might gain from potential memory optimisations done by the js engine. The real benefit in using const is maintainability and error handling :)
@TheCodingTrain
7 жыл бұрын
Yup, this is very true! I might have to redo this video!
@faisaltaher851
7 жыл бұрын
thx
@emmanuelvillegas4403
7 жыл бұрын
Thanks!!
@Synapse-id6ej
7 жыл бұрын
In python var cat can be used in Def or class for a larger interact in one value for one topic func
@lauriejmusic
6 жыл бұрын
let go
@18bovende
5 жыл бұрын
Is there a full p5.js playlist somewhere? The intro playlist only goes to 7. And this is video indicates that 16 exists...
@TheCodingTrain
5 жыл бұрын
If you look at all the playlists you'll find them, I wish I had a better way to organize this!
@alexcsillag7816
7 жыл бұрын
Why is this video not listed? I am just curious. Great video!
@TheCodingTrain
7 жыл бұрын
I release the videos one at a time over time, but you can always find them in the playlists!
@dropyghost
7 жыл бұрын
Hello Dan. How come I already watch this video? did you re upload?
@TheCodingTrain
7 жыл бұрын
I re-upload edited pieces of the live stream as stand-alone content, yes.
@nortoncraas4084
7 жыл бұрын
Hi would it be possible for u to make a video how to set up p5 the way u have? Im having problems using p5 :(
@nortoncraas4084
7 жыл бұрын
And love ur videos! I'm learning so much from them! And maybe one more thing, could u take back the timed challenges? They where so amazing!!
@goodev
6 жыл бұрын
Problem setting p5? Post in the Processing's forum. People will help you there.
@2happygamer14
6 жыл бұрын
youre awesome
@ahmadhabibi9582
3 жыл бұрын
i like you man
@franchello1105
7 жыл бұрын
Is const is like final in java?
@Bokbind
7 жыл бұрын
I believe it is. Once the variable is pointing to something, it cannot be changed in the same scope. I one major difference is you have to also initialize them to a value when declaring them, which I think you don't with Java's finals.
@zayanwatchel8780
6 жыл бұрын
What happens if before es6 came out some dude had var let = "something" Wouldn't that web page break?
@TheCodingTrain
6 жыл бұрын
my brain just exploded
@zayanwatchel8780
6 жыл бұрын
You're welcome
@kamilbolka
7 жыл бұрын
Could you in some point consider building using Python to build AI?
@cmdlp4178
7 жыл бұрын
How to set const members of an object? const this.name = "Bob"
@mikeprincivil7615
3 жыл бұрын
"It's forever 50."🤣😂
@OmarAhmad293
7 жыл бұрын
anything like #define in c++ for javascript?
@TheClonerx
7 жыл бұрын
Omar Ahmad nope
@CfarFR
7 жыл бұрын
#define is a preprocessor directive in C++, 'cause source code of C++ is compiled. A preprocessor directive is interpreted by a compiler. JavaScript is an interpreted language, so there is a compilation step called JIT by the interpreter. The compilation steps between JS and C++ aren't the sames.
@hachij_
7 жыл бұрын
"Fat arrow" if you like xD
@alexcsillag7816
5 жыл бұрын
The 5 dislikers are stuck in 2014.
@JackFlashTech
4 жыл бұрын
Lol. Disregard my comment on 16.1. Here it is.
@battlefist6884
4 жыл бұрын
next time stop dancing and try to explain things much better I came here to look the behaviour of const in for loop for(let i=0;i
Пікірлер: 125