Declarative vs. Imperative - JavaScript Tutorial

  Рет қаралды 2,829

ColorCode

ColorCode

Күн бұрын

Пікірлер: 44
@ColorCode-io
@ColorCode-io 2 күн бұрын
Episode 19: Declarative vs. Imperative programming 🎉🎩
@RyuDev_
@RyuDev_ 5 күн бұрын
Wake up babe, new ColorCode Video just dropped
@VishalPawarR
@VishalPawarR 4 күн бұрын
I finished watching videos and then saw there were no more videos left to watch! That's nice you are back!
@dylanrh
@dylanrh 2 күн бұрын
no matter how much time has passed i never remove my subscription from this channel because i know the content and the value it provides its not matched in any other channel. thank you!!! also love the jokes and overall silliness
@ColorCode-io
@ColorCode-io 2 күн бұрын
Appreciate that, and thank you!
@jhcarrell
@jhcarrell 7 сағат бұрын
First, I want to say that I have really enjoyed this series. You've done a great job in presenting a lot of concepts in an easy (and enjoyable) to understand format. I do think that the section in this video on DOM manipulation might confuse those newer to working with HTML/JS. The imperative examples added a click listener to the elements, whereas the declarative approach demonstrated adding an onclick attribute to the element. While end behavior in these examples would be the same, what you end up with is different. I think this is significant in that there can be many click listeners on an element, but only one onclick property (as one example of differences between the two). I realize that isn't the point of the example, but felt that a brief mention of the difference in the 2 solutions could help avoid confusion down the road. Thank you for providing such entertaining educational content!!
@ColorCode-io
@ColorCode-io 7 сағат бұрын
@@jhcarrell thank you for your thoughtful comment. You’re right in calling out the difference between the two. Appreciate your contribution.
@chinodanxd
@chinodanxd Күн бұрын
Hey man! Thank you for your content, it’s pure gold! I’m an audiovisual professional who transitioned into the developer world during the pandemic, and I truly appreciate the effort you put into not only explaining programming concepts in a clear and digestible way but also into the editing work that enhances it. The editing is genuinely the cherry on top! I completely understand why it might take a while between videos. I don’t mind waiting another four months for the next one. I really hope you continue creating content, and hopefully, the next series will be "20 Things Every React Developer Should Know." PS: what tool do you use for the coding side like 18:40 ?
@IftikharAhmad-zd7mx
@IftikharAhmad-zd7mx 4 сағат бұрын
i can't say that how much i respect you sir....
@SeRoShadow
@SeRoShadow Күн бұрын
I prefer imperative/explicit because: - it maps 1:1 with the actual client requirements, - its easy to troubleshoot and update, client can give information on how the process was changed - its predictible and without assumptions
@georgii_v
@georgii_v 2 күн бұрын
OMG! Finally! Your videos are pure magic! Thanks a lot for your job!
@c__beck
@c__beck 2 күн бұрын
11:43 " _A lot of you are going to comment that HTML is not a programming language…_ " Not me, I agree with you! It was my first, actually!
@deepsarkar992
@deepsarkar992 5 күн бұрын
Oh boy! Welcome back.
@karimmaged5024
@karimmaged5024 2 күн бұрын
your videos are getting much better every time, you are easily one of the best programming you-tubers. Keep this legendary work up 💪🏼
@ColorCode-io
@ColorCode-io 2 күн бұрын
Tysm!
@johneric2720
@johneric2720 Күн бұрын
Imperative logic is used to create declarative ones. For example, the functions `map`, `filter`, and `reduce` were all written in an imperative way to achieve a declarative call. React JSX, HTML, and CSS are written so that you tell their underlying interpreter/parser/processor what to do, and those processors are written imperatively. Imperative is often used to create an abstract tool that a declarative user can call without worrying about how it works internally.
@theEggBaron
@theEggBaron Күн бұрын
Would love a 20-part series on React! Your method of teaching would help break things down in an easily-digestible format for so many!
@64burger
@64burger Күн бұрын
LETS GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO This dude helped me land my Job! Thank you Mr Color Code 🐐
@Sandey8t
@Sandey8t 2 күн бұрын
I really enjoy watching your videos! Your JavaScript content makes learning so much fun and keeps me coming back for more. Keep rocking! 🙇🏻 Waiting for the next 🫶🏻
@ColorCode-io
@ColorCode-io 2 күн бұрын
Glad you're enjoying the content! New videos coming soon.
@javeedakhter324
@javeedakhter324 2 күн бұрын
Legend is back 🎉
@JonnyReturns
@JonnyReturns 2 күн бұрын
I’m a keyboard snob … I build and have many mechanical keyboards.. but I will say - the Apple Magic Keyboard is still one of my favorite typing experiences. I love that little thing and I don’t care who knows it.
@MuhammmadRiqqahIstihsan
@MuhammmadRiqqahIstihsan 5 күн бұрын
lets go colorcode upload more javascript video
@PanopticMotion
@PanopticMotion Күн бұрын
Svelte 5 takes declarative programming to the next level by further simplifying how developers express their UI logic. Unlike JSX, where you often need to manage more explicit state transitions and imperative steps, Svelte’s approach is more streamlined. With its built-in reactivity and syntactic simplicity, it allows you to write less code while achieving highly dynamic and complex behavior, making it feel even more intuitive and declarative.
@SOMAYAJULASAISRIHARSHA
@SOMAYAJULASAISRIHARSHA 2 күн бұрын
Waiting for your react tutorials 😊😊
@ColorCode-io
@ColorCode-io 2 күн бұрын
One day
@alokpandit4077
@alokpandit4077 4 сағат бұрын
11:44 completely destroyed people who say HTML is not a programming language. It is.😭
@honkhonkv2236
@honkhonkv2236 2 күн бұрын
Also a big point to me: Declarative is sugar, if i ever get to learn a language that doesn't provide all these sweet methods i want to be able to resolve the problem the imperative way!
@ColorCode-io
@ColorCode-io 2 күн бұрын
👍
@konfcyus4865
@konfcyus4865 2 күн бұрын
how is declarative more performant ? .map.filter.reduce is like 100 times slower while creating dozens of closures. Nice Tool reference btw
@yapayzeka
@yapayzeka 2 күн бұрын
shhhh!! quality in action just watch.
@muhammadpro
@muhammadpro 2 күн бұрын
New video 🎉
@azharalibhutto1209
@azharalibhutto1209 2 күн бұрын
Great ❤❤❤
@raghavenderkuppireddy7158
@raghavenderkuppireddy7158 2 күн бұрын
❤❤❤ Thank you ❤❤❤
@yubrajkhatri3519
@yubrajkhatri3519 2 күн бұрын
Where he codes? It is not normol browser console right?
@ColorCode-io
@ColorCode-io 2 күн бұрын
It's called RunJS: runjs.app/ColorCode
@bilalbeny4172
@bilalbeny4172 2 күн бұрын
Thank you for this fantastic video! It really helped refresh my understanding of imperative and declarative coding styles. Free Palestine!
@udaym4204
@udaym4204 3 күн бұрын
❤‍🔥❤‍🔥❤‍🔥❤‍🔥🎆🎆🎆🧨
@anandstephan6020
@anandstephan6020 Күн бұрын
what about next video
@mahfoudh_arous
@mahfoudh_arous 4 күн бұрын
🎩🎩🎩🌹🌹🌹
@mirijanyavo6532
@mirijanyavo6532 2 күн бұрын
In example 5 they aren't equivalent.
@CiscoZero
@CiscoZero 4 күн бұрын
Sina, pls do your Christian viewers a solid and don’t blaspheme in your videos. It’s cringe. 😬
JavaScript Event Loop -- Visualized!
29:43
ColorCode
Рет қаралды 26 М.
7 Benefits of First-Class Functions - JavaScript Tutorial
25:04
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
What's Actually Happening With JS Frameworks
8:59
Awesome
Рет қаралды 49 М.
FASTER JavaScript In 2025 With Sets
13:13
Jack Herrington
Рет қаралды 14 М.
Master DOM Manipulation | Part 1 | JavaScript DOM Manipulation
1:11:17
AI Is Not Designed for You
8:29
No Boilerplate
Рет қаралды 284 М.
Using AI To Detect AI Music (and other music industry data-porn)
19:42
JavaScript Pure Functions - Tutorial for beginners
19:20
ColorCode
Рет қаралды 15 М.
7 Design Patterns EVERY Developer Should Know
23:09
ForrestKnight
Рет қаралды 189 М.
The Biggest Mistake Intermediate React Developers Make
18:32
Cosden Solutions
Рет қаралды 35 М.
Why Your Backend Shouldn't Serve Files
19:40
Boot dev
Рет қаралды 65 М.
I Will Not Write Rust Again
7:19
ThePrimeTime
Рет қаралды 180 М.