Episode 19: Declarative vs. Imperative programming 🎉🎩
@RyuDev_5 күн бұрын
Wake up babe, new ColorCode Video just dropped
@VishalPawarR4 күн бұрын
I finished watching videos and then saw there were no more videos left to watch! That's nice you are back!
@dylanrh2 күн бұрын
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-io2 күн бұрын
Appreciate that, and thank you!
@jhcarrell7 сағат бұрын
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-io7 сағат бұрын
@@jhcarrell thank you for your thoughtful comment. You’re right in calling out the difference between the two. Appreciate your contribution.
@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-zd7mx4 сағат бұрын
i can't say that how much i respect you sir....
@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_v2 күн бұрын
OMG! Finally! Your videos are pure magic! Thanks a lot for your job!
@c__beck2 күн бұрын
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!
@deepsarkar9925 күн бұрын
Oh boy! Welcome back.
@karimmaged50242 күн бұрын
your videos are getting much better every time, you are easily one of the best programming you-tubers. Keep this legendary work up 💪🏼
@ColorCode-io2 күн бұрын
Tysm!
@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Күн бұрын
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Күн бұрын
LETS GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO This dude helped me land my Job! Thank you Mr Color Code 🐐
@Sandey8t2 күн бұрын
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-io2 күн бұрын
Glad you're enjoying the content! New videos coming soon.
@javeedakhter3242 күн бұрын
Legend is back 🎉
@JonnyReturns2 күн бұрын
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.
@MuhammmadRiqqahIstihsan5 күн бұрын
lets go colorcode upload more javascript video
@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.
@SOMAYAJULASAISRIHARSHA2 күн бұрын
Waiting for your react tutorials 😊😊
@ColorCode-io2 күн бұрын
One day
@alokpandit40774 сағат бұрын
11:44 completely destroyed people who say HTML is not a programming language. It is.😭
@honkhonkv22362 күн бұрын
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-io2 күн бұрын
👍
@konfcyus48652 күн бұрын
how is declarative more performant ? .map.filter.reduce is like 100 times slower while creating dozens of closures. Nice Tool reference btw
@yapayzeka2 күн бұрын
shhhh!! quality in action just watch.
@muhammadpro2 күн бұрын
New video 🎉
@azharalibhutto12092 күн бұрын
Great ❤❤❤
@raghavenderkuppireddy71582 күн бұрын
❤❤❤ Thank you ❤❤❤
@yubrajkhatri35192 күн бұрын
Where he codes? It is not normol browser console right?
@ColorCode-io2 күн бұрын
It's called RunJS: runjs.app/ColorCode
@bilalbeny41722 күн бұрын
Thank you for this fantastic video! It really helped refresh my understanding of imperative and declarative coding styles. Free Palestine!
@udaym42043 күн бұрын
❤🔥❤🔥❤🔥❤🔥🎆🎆🎆🧨
@anandstephan6020Күн бұрын
what about next video
@mahfoudh_arous4 күн бұрын
🎩🎩🎩🌹🌹🌹
@mirijanyavo65322 күн бұрын
In example 5 they aren't equivalent.
@CiscoZero4 күн бұрын
Sina, pls do your Christian viewers a solid and don’t blaspheme in your videos. It’s cringe. 😬