Object Oriented vs Functional Programming with TypeScript

  Рет қаралды 758,124

Fireship

Fireship

Күн бұрын

Learn how object-oriented 🎁 and functional ❄️ programming are awesome in their own ways. Also, get infallible answers answers to questions like "composition over inheritance?", "GIF over JIF?", "Is a hotdog a sandwich?" and more!
Special Thanks to Patrick Mullot - you rock!
Functional Cake Recipe probablydance.com/2016/02/27/...
Full Article: angularfirebase.com/lessons/o...
TS Mixins www.typescriptlang.org/docs/h...

Пікірлер: 483
@TheFeriner
@TheFeriner 3 жыл бұрын
Ironic naming when SuperHuman is a subclass of Human and Human is its superclass lol
@TheVanuPhantom
@TheVanuPhantom 3 жыл бұрын
Save me, Superclass! I will, though I don't have a method to handle lasers. _Gets vaporized by a laser._
@charliebrewer1668
@charliebrewer1668 2 жыл бұрын
@@TheVanuPhantom 😂
@alexismandelias
@alexismandelias 2 жыл бұрын
Not really
@amiine90
@amiine90 2 жыл бұрын
A SuperHuman is basically a Human who finished his studies 🤣😂
@zzzzzz1039
@zzzzzz1039 2 жыл бұрын
It makes sense if you think of clasess as sets.
@Fireship
@Fireship 5 жыл бұрын
🚨 Warning 🚨. This video makes an attempt at sarcasm in the first 60 seconds. Watch the chat replay above for the full experience
@Microphunktv-jb3kj
@Microphunktv-jb3kj 5 жыл бұрын
If anyone interested i found this interesting video about Object Oriented Programming and why it's bad -> kzbin.info/www/bejne/h36Umoiba66inK8
@TheDeathMongrel
@TheDeathMongrel 5 жыл бұрын
Actually the guy who created GIF says it's pronounced "JIF" and the sound comes from GEE the letter, not what it stands for, Graphics. This will be a never-ending argument... to-may-to, to-mah-to.. :)
@nikhilshankar4190
@nikhilshankar4190 4 жыл бұрын
dude do you really have to use so many emojis ? are you gen z?
@braindeveloperdimensional5579
@braindeveloperdimensional5579 4 жыл бұрын
@@nikhilshankar4190 why do you have a problem? We are gen Z and we love it. If it wasn't for the emojis then I might not have subscribed.
@Guiguiandange
@Guiguiandange 4 жыл бұрын
@@TheDeathMongrel yiff
@osmankirpat
@osmankirpat 5 жыл бұрын
I love how you talk fast enough so that I don't have to set the speed to 1.25.
@khaki32
@khaki32 4 жыл бұрын
Or too fast so that you'll need to set the speed to 0.75.
@oleksiikryvtsov6938
@oleksiikryvtsov6938 4 жыл бұрын
It is not about 'speaking fast' it is all about 'already prepared pieces of code' which create such an effect
@skullteria
@skullteria 4 жыл бұрын
I still have him at 1.5x
@mtheos
@mtheos 4 жыл бұрын
1.25x?? 2x and waiting for KZbin to let me go faster!
@marisouza5060
@marisouza5060 4 жыл бұрын
Gg
@idedary
@idedary Жыл бұрын
This mostly depends on what you are doing right now. OOP is better for making closed complex systems and FP is better for universal multipurpose code. From my experience It's best to mix them, I believe it works very nice combined.
@idedary
@idedary 3 ай бұрын
@@prajjwalsharma. OOP for wrappers, FP for everything else. If your functions have the same prefix, it might be a good idea to make them methods on object instead
@slapmyfunkybass
@slapmyfunkybass 4 жыл бұрын
What’s better, oop or procedural? Answer: yes
@Microphunktv-jb3kj
@Microphunktv-jb3kj 4 жыл бұрын
better : the way it gets the job done
@Limpuls
@Limpuls 4 жыл бұрын
You use both. Inside you classes you write methods that does procedural stuff.
@ml_serenity
@ml_serenity 4 жыл бұрын
@@Limpuls What are you referring to is "imperitive" programming. OOP and procedural programming are not the same. They both are imperitive (mostly), but no, they're not the same. Just because you're writing functions doesn't mean it's a procedural or functional programming. There are certain traits specific to functional (like pure functions only, very declarative approach etc) and to the procedural (modules, procedures/functions, side-effects allowed, structure is purely imperitive). Each of us in our day to day work uses some parts of imperitive and functional programming to some degree and very few of us actually doing pure functional (Haskell etc) or pure procedural (well, pure procedural is nearly non-existent nowadays... like COBOL for example). The most commonly used nowadays is OOP imperitive programming with some functional programming on top of it to make life easier. Pure functional is VERY hard to do properly, believe me...
@bestintentions6089
@bestintentions6089 3 жыл бұрын
Procedures have side effects functions do not
@VictorMartinez-zf6dt
@VictorMartinez-zf6dt 3 жыл бұрын
functional programming is not procedural programming
@jonatangall3715
@jonatangall3715 4 жыл бұрын
The metaphor about the sandwich and the hotdog was brilhant! You guys are Genius, I love this channel, thanks a lot for share it!
@roxchkplusony
@roxchkplusony 10 ай бұрын
In the compositional world, it does not matter whether a hotdog is a sandwich. You can hold it and eat it like a sandwich, and that is good enough :)
@SaifUlIslam-db1nu
@SaifUlIslam-db1nu 4 жыл бұрын
Not a TypeScript coder ( yet ), but definitely helped me get a more flexible understanding of OOP. Thanks!
@kevingarubba1370
@kevingarubba1370 3 жыл бұрын
I like how you took something trivial like the hotdog question and wrapped it in with the theme and made it relevant.
@PeepingOtterBot
@PeepingOtterBot 5 жыл бұрын
It took me almost a hour and a half to get through this while rubber ducking the ideas and taking notes to make sure I take everything in, but it made everything super understandable. Thank you!
@Kevin192291
@Kevin192291 5 жыл бұрын
Thanks for all of the videos this year!
@Fireship
@Fireship 5 жыл бұрын
Thank you Kevin. Ready for a much needed break, but have some cool stuff in the works for 2019.
@victorlongon
@victorlongon 3 жыл бұрын
I have worked with React for several years. My life totally changed embracing composition. I am very happy not haven't written a loop in some years. But the one of the points where composition win over inheritance is testability, which is something I put a lot of focus into. That's my personal opinion from experience of course. If oop is more of cup of tea great. I love that we can choose
@fenrir5211
@fenrir5211 Жыл бұрын
i had a stroke reading your comment
@peterpandit8625
@peterpandit8625 Жыл бұрын
I had a stroke reading this too
@dertuman
@dertuman 10 ай бұрын
had a stroke too
@benyosu843
@benyosu843 8 ай бұрын
@@fenrir5211 Was wondering if that was me or his comment LOL
@arcane3327
@arcane3327 2 жыл бұрын
Thank you so friggin much. I just wanted to pick up typescript and i found your channel. Now i have a broad idea on how typescript works and i finally understood how the idea of Interfaces actually work out. Kudos! :)
@stephane4487
@stephane4487 2 жыл бұрын
3 years old vid that is still spot on and very informative. Thanks! 👌
@chris94kennedy
@chris94kennedy Жыл бұрын
just saying, if the video is accurate on day 1 why would it be less accurate after 3 years
@rebelmachine88
@rebelmachine88 5 жыл бұрын
Extremely clear explanation, awesome job!
@DEVDerr
@DEVDerr 5 жыл бұрын
Holy shit. That's really well-composed episode. Congrats man and goodluck in 2019!
@miszczklasykuw3025
@miszczklasykuw3025 5 жыл бұрын
lul, widzialem cie tez pod romanem
@yamiteru4376
@yamiteru4376 4 жыл бұрын
Or is it a well-inherited video... hmmm?
@misterrodger
@misterrodger 3 жыл бұрын
It's quite functional too, objectively speaking.
@Electricity0
@Electricity0 3 жыл бұрын
@@misterrodger I extend your opinion
@sukhmandersingh4306
@sukhmandersingh4306 2 жыл бұрын
This thread is in a class of its own
@saadabbasi2063
@saadabbasi2063 5 жыл бұрын
Thank you so much Jeff for making these wonderful episodes. I learn something everytime. I never realised constructor(public ...) adds values automatically, i was doing those manually all the time :)
@akatsukilevi
@akatsukilevi 2 жыл бұрын
Same, only discovered now and it's jaw dropping to me
@SirJonyG
@SirJonyG 5 жыл бұрын
There is always going to be a bunch of ways to solve a problem, but CERTAIN programming paradigms are better for CERTAIN problems. It's not really a gif jif thing, its more of a use the best case solution for your problem.
@Fireship
@Fireship 5 жыл бұрын
I agree 100% - the bigger point was that this stuff is not religious dogma. Basically every js project I've been involved in uses some combination of these paradigms.
@hashtagPoundsign
@hashtagPoundsign 2 жыл бұрын
@@Fireship Exactly. As for the other questions: I use pronunciation gif, and a hotdog is a taco.
@viniciusataidedealbuquerqu2837
@viniciusataidedealbuquerqu2837 Жыл бұрын
I think OO pretty much solidified the backend and functional the front
@SilverishKitten
@SilverishKitten Жыл бұрын
That's exactly what this video said. But thanks for the summary I guess
@lightspeed001
@lightspeed001 5 жыл бұрын
Great vid again, what's the intro track called?
@user-sp4fz1gw9w
@user-sp4fz1gw9w Жыл бұрын
Thank you for being so clear and easy to understand programming it’s a great series tutorials that you have I don’t watch anyone else anymore
@eduardoverdeja9596
@eduardoverdeja9596 5 жыл бұрын
Thanks for the inheritance x composition view using the hotdog x sandwich debate on the last piece of the video. Really helper me grok it
@21coltsrox
@21coltsrox 4 жыл бұрын
What plugin is installed on your ide that's printing the blue results
@SiddiqNx
@SiddiqNx 4 жыл бұрын
It's called Quokka.js
@whoman7930
@whoman7930 3 жыл бұрын
@@SiddiqNx Thanks so much buddy!
@weiiswurst
@weiiswurst 3 жыл бұрын
@@SiddiqNx Thanks!
@magne6049
@magne6049 3 жыл бұрын
WallabyJS, from the same guys, also blew my mind: wallabyjs.com, it "runs your JavaScript and TypeScript tests immediately as you type, highlighting results in your IDE right next to your code."
@anothermouth7077
@anothermouth7077 3 жыл бұрын
And for emoji it's plugin named Emoji, it's not useful but it's kinda fun
@davidtheprogrammer
@davidtheprogrammer 4 жыл бұрын
The sarcasm at the beginning though lol.
@mohamedkassoum1822
@mohamedkassoum1822 2 жыл бұрын
I subscribed during the intro because I found the way you introduce the ideas both brilliant and funny
@cfmvalizan7585
@cfmvalizan7585 3 жыл бұрын
1) i believe this was answered in a different video, but you can make functions private and protected in a class, correct? i don’t recall seeing that in this one. 2) how are you making it auto fill your return statement? that would be such a time saver! 3) nested classes get tricky in any language. The deepest i’ve gone and think i’d ever go is a sub class of a sub class of a class.
@thependingdataset
@thependingdataset Жыл бұрын
1. yes. 2. its edited not auto filling
@sourishdutta9600
@sourishdutta9600 5 жыл бұрын
WOW!!!! Do more videos on js like patterns and please share some link regarding this topics that you discuss, where we will get deep knowledge. Thank you so much. 😊
@johannbauer2863
@johannbauer2863 5 жыл бұрын
So the last part is basically typeclass in Haskell/ traits in Rust/ interfaces in Java?
@JoyEnergiser
@JoyEnergiser 4 жыл бұрын
Subscribed! Love your speedy voice and love your content👍
@kahnfatman
@kahnfatman 2 жыл бұрын
OOP gets messy when there is a process of data transformation involved. Should the process be a singleton? Should static function be introduced? But wait, why class static members and not plain functions?
@christopherwatts2499
@christopherwatts2499 3 жыл бұрын
This was a great explanation. What would be cool is if you could do an update to this but use decorators instead of the mixin function. Probably a little more advance but would be a great step into using decorators
@damarjati693
@damarjati693 5 жыл бұрын
What vscode extension for the console.log result appear on the side of the code? And the error too apparently
@zzzzzzzzzzzzzzzzzz1g
@zzzzzzzzzzzzzzzzzz1g 5 жыл бұрын
Probably quokka
@NikosNtounas
@NikosNtounas 5 жыл бұрын
First of all I want to thank you for your awesome work! Do you plan to release any Machine learning content any time soon? You are a great teacher and Machine learning lacks good tutorials and resources.
@trucane3472
@trucane3472 5 жыл бұрын
i concur
@puneetsandal
@puneetsandal 5 жыл бұрын
can we extend the functionality of existing type script classes for javascript like (Array or String) as we do in plain javascript using prototype and c# using extention methods. by add i mean adding function like str.replaceMultiple("","") for string.
@coolbrotherf127
@coolbrotherf127 Жыл бұрын
I've only ever used OOP with languages like C++ and Python so the functional programming way of doing things was quite interesting to see. I'll have to try some F# code and make some simple stuff to try it out.
@juancamilosepulveda
@juancamilosepulveda 2 жыл бұрын
Nice video! What VSCode extension are you using to get the console log output in the editor?? :)
@NguyenNguyen-hm5ve
@NguyenNguyen-hm5ve Жыл бұрын
You've found it yet? thanks
@fushipunk
@fushipunk 5 жыл бұрын
hey! thanks, I see your videos from time to time and they are always really good. Question: what do you do to get the results of the console.log directly inside the editor?
@felixrichnau
@felixrichnau 4 жыл бұрын
Console.log ?
@RogiervandenBerg
@RogiervandenBerg 4 жыл бұрын
Looks like quokkajs.com/ to me :) I'm also using that frequently to test stuff out
@chickeninabox
@chickeninabox 2 жыл бұрын
@@felixrichnau Console.log ?
@md.azwadhasanchowdhury6823
@md.azwadhasanchowdhury6823 Жыл бұрын
same question, it doesn't show in the editor like the video
@kuzmicheff
@kuzmicheff 2 жыл бұрын
I watched quite a few of your episodes by now, and I really like your style! Thanks a ton for making these videos!
@mitsu-dev
@mitsu-dev 5 жыл бұрын
Great video. My only gripe is the way you paste in code snippets during your explanation as it sometimes happens faster than your voice over or it happens uncommented. I know it's probably just a way for you to keep track of what's next but having something typed out while talking about it is easier for me to follow. Keep it up!
@vizzy4652
@vizzy4652 2 жыл бұрын
What extension is he using for seeing the console.log output within the IDE?
@TheHackhell
@TheHackhell 5 жыл бұрын
When you declare icon private in constructor it is already be read-only right? So we can not change it from outside of the class. If that so it is already read-only and do we have to create get icon() in class to make it read-only again?
@AundreL
@AundreL 4 жыл бұрын
I like the use of the triple equal operator to test equality.
@carlosdavila9719
@carlosdavila9719 3 жыл бұрын
Typescript is just beautiful. Sick explanation btw 👍🏽👍🏽
@tendies
@tendies 3 жыл бұрын
Thank you for this explanation, it helped me allot
@danielceballostejero4512
@danielceballostejero4512 5 жыл бұрын
What sort of plugin do you use for placing the code snippets just in time of your commentary? Let's have a chat about video editing. I'm interested in your way of presenting code
@Fireship
@Fireship 5 жыл бұрын
Check out the live stream in the video feed from a few months ago where I give away all these secrets
@jacecotton4190
@jacecotton4190 5 жыл бұрын
What font are you using in your editor? I really like the ligaturization of the arrow notation.
@codeonmars579
@codeonmars579 5 жыл бұрын
search on vs code themes, you will find lots of it.
@antt0023
@antt0023 4 жыл бұрын
Fira Code
@davidmikan7925
@davidmikan7925 3 жыл бұрын
wow wow wow wow, this 12 minute video helped me (coming from python) understand the core ideas of javascript better than the last 2 weeks of studying did, what the hell?!
@jscalderons
@jscalderons 4 жыл бұрын
Ustedes son asombrosos, me gustaría que en los videos incluyan subtítulos en español :)
@le0nz
@le0nz 4 жыл бұрын
Por qué no aprende usted inglés? Le puede ayudar a usted mucho. O chineso tal vez sería más útil.
@iPepper_
@iPepper_ 3 жыл бұрын
Omg I am so addicted to your videos!! Even tho I don't understand 100% of it but you explain it so well it does not matter that I dont understand it :)
@AndreyPiterov
@AndreyPiterov 5 жыл бұрын
Thanks for the great video? but what are that green squares with an insta result?
@FernandoLucaDeTenaSmith
@FernandoLucaDeTenaSmith 5 жыл бұрын
He answered before ;) quokkajs.com/docs/index.html
@53studleyroad61
@53studleyroad61 4 ай бұрын
Nice but you've got Composition vs Inheritance convoluted yourself. You're right that, they are not a choice for example a Tshirt vs Trouser where in upper body scenario you'd apply T-shirt and for lower body a trousers. But then when you go on to say that composition is another way for reusability, one could get an idea that it might be used interchangeably with inheritance which is not right. On the contrary, there might be scenarios where you'd need both. Here's an example for inheritance; Shark and Dolphin can be inherited from a base class of Fish. For composition, we can make a Fish class by composing it from a Fin and a Gill class in addition to it being inherited from Animal class.
@mage1over137
@mage1over137 2 жыл бұрын
Functional object oriented programming of course. While individually they are both great, they are exponential better when combined correctly.
@DrSwad
@DrSwad 5 жыл бұрын
Hello! What is the intro song that you used?
@ary4051
@ary4051 3 жыл бұрын
Thank you, I wish I saw this video 5 years ago.
@rafesiriso2765
@rafesiriso2765 3 жыл бұрын
Is being able to see the console.log output in the IDE window clever editing or a great plugin?
@somerandomuser5155
@somerandomuser5155 3 жыл бұрын
Quokka
@renanenjoyshare9937
@renanenjoyshare9937 5 жыл бұрын
how do you print the output in front of the statement you do line by line (extension)? Or it`s a video editing thing?
@KamenMinkov
@KamenMinkov 5 жыл бұрын
I think this is Quokka.js
@renanenjoyshare9937
@renanenjoyshare9937 5 жыл бұрын
@@KamenMinkov Thanks Kamen =)
@rubberepileptic9833
@rubberepileptic9833 2 жыл бұрын
Hi how do you show the result of console log on the same line in your ide you use?
@ferinzz
@ferinzz 4 жыл бұрын
Can't wait until I can actually understand most of what just happened here. A few more weeks hopefully.
@worldshaper1723
@worldshaper1723 3 жыл бұрын
Are you there??
@neofilomata3254
@neofilomata3254 2 жыл бұрын
yeah, how did it went?
@TheKamieniu
@TheKamieniu 5 жыл бұрын
What is the plugin for vscode to run console log with result ?
@Fireship
@Fireship 5 жыл бұрын
quokkajs.com/docs/index.html
@WesleyOverdijk
@WesleyOverdijk 4 жыл бұрын
Theres also wallaby which is less playground (snippet) based. Same creator I think.
@ZpeedTube
@ZpeedTube 4 жыл бұрын
Oh I just thought he did type it or copy paste it manually.. 😅 Awesome plugin!
@alvinyanson
@alvinyanson 3 жыл бұрын
what is your vs code theme? how did you put the emoji 2:54?
@Kreeg0
@Kreeg0 2 жыл бұрын
About the composition example... video game coders are particularly skeptical of any kind of class hierarchies. That's why the ECS system is gaining traction so much... because class hierarchies are too rigid and pretty horrible as far as reuse is concerned. They're hard to adapt to changing requirements. Even hardcore OOP people stopped arguing in favor of classical inheritance.
@jarrettgoh8920
@jarrettgoh8920 3 жыл бұрын
Woah nice fonts and color, what editor or theme is this?
@ArtamisBot
@ArtamisBot Жыл бұрын
Why is this video so good 💚 and why are the answers to all of the opening questions just "both".
@danielmalo1753
@danielmalo1753 4 жыл бұрын
This channel has exactly the type of content that I would've wished I'd seen when I become a pro in two years time. Thank you!
@rahulr9539
@rahulr9539 2 жыл бұрын
Which plugin are you using to get realtime output of return/console.log() ?
@alexstone691
@alexstone691 4 жыл бұрын
i think its best to mix them, some situations gets really messy without inheritances or idk strategy pattern
@anonymoususer520
@anonymoususer520 2 жыл бұрын
The Stategy Pattern is just a function. The only reason it exists is because OO languages like Java didn't have first-class functions back in the day. It's not necessary in JS.
@TheQuestion0mark
@TheQuestion0mark 5 жыл бұрын
Can we do mixing in angular? because it's not type safe and can't be compile. Does it?
@choy211995yt
@choy211995yt 2 жыл бұрын
What is the plugin using in VS code to auto display the console logs?
@nikcekorn
@nikcekorn 3 жыл бұрын
The name of the song in the intro, someone please?
@aii-yin3800
@aii-yin3800 19 сағат бұрын
what editor/extension is used where the console.log result preview is automatically updated? or is it just video editing updating the console.log preview timestamp: 5:55 - 6:00
@jasperduanemendiola3293
@jasperduanemendiola3293 3 жыл бұрын
Very cool vid! May I know what font are you using in your editor? '=>' looks cool haha
@althoframdhan2265
@althoframdhan2265 3 жыл бұрын
fira code
@josejuliansalazarlopez724
@josejuliansalazarlopez724 4 жыл бұрын
I'm still learning programming. I'll be coming back every few months I see how much I've learnt.
@bity-bite
@bity-bite 3 жыл бұрын
k
@VitorGRosa
@VitorGRosa 2 жыл бұрын
what is the name of the plugin used in the video?
@truth4503
@truth4503 3 жыл бұрын
When we update redux state inside a component, it is a side effect...is it?
@LeFede
@LeFede Жыл бұрын
will composition like this be natively available on JS or TS without that ugly boilerplate anytime soon? Great video :D
@MCasterAnd
@MCasterAnd 4 жыл бұрын
What's the background song in the beginning called?
@lloydatkinson8030
@lloydatkinson8030 5 жыл бұрын
Was this meant to be published 1st April?
@ml_serenity
@ml_serenity 4 жыл бұрын
That's why most of the modern languages are multiparadigm. Gotta choose the best tool for the task and have a very clear understanding of how OOP (imperative) and functional programming can co-exist and make life actually easier.
@FuckUTubeCorp
@FuckUTubeCorp 5 жыл бұрын
Dude, what vscode theme and extensions r u using?
@hinerron
@hinerron 3 жыл бұрын
Wooooowwwww...... I loved this. Thank you so much for the great content! I'm a noob programmer so I had to pause this shit like 20 times to keep up, but I prefer that to the alternative.
@rashidanwar101
@rashidanwar101 3 жыл бұрын
Which music have you used in the last 20 seconds of the video??
@jeffhappens1
@jeffhappens1 Жыл бұрын
what is that extension that shows the return type from a line of code?
@Omniwoof
@Omniwoof 5 жыл бұрын
I chuckled at the intro.
@Fireship
@Fireship 5 жыл бұрын
That's good, I was worried people would not get my dry sense of humor
@leandrodasilva2523
@leandrodasilva2523 Жыл бұрын
What extension did you use to show the “console.log” result on the right side?
@GameDesignerJDG
@GameDesignerJDG Жыл бұрын
He's just hitting ctrl+z to undelete the stuff he had previously written and deleted. The emojis are either copied output, or he didn't even bother and just wrote what it should output. Solid video presentation technique.
@quadrisyedsohail500
@quadrisyedsohail500 4 ай бұрын
What are the pre-requisite for OOPs?
@AKMTUFAZZUL
@AKMTUFAZZUL 3 жыл бұрын
What are the vs Code Extensions you using ?
@ankithalder7120
@ankithalder7120 4 жыл бұрын
Please make videos on Good programming techniques and tips
@CunningBard
@CunningBard 2 жыл бұрын
People debating about OOP and Functional Programming mean while python is oop and functional
@bentekkie
@bentekkie 5 жыл бұрын
What extension are you using to get the results on the right of the code?
@jellene4eva
@jellene4eva 5 жыл бұрын
Looks like wallabyjs
@idtyu
@idtyu 4 жыл бұрын
Composition is well implemented in php using trait... It's so awesome
@AlanBem
@AlanBem 4 жыл бұрын
Junhai Yang traits are just glorified copy-paste in PHP - nothing more. Composition is something different, to be honest that this video failed to explain,.
@HackeyTube
@HackeyTube 2 жыл бұрын
Really nice video , I have a question for you. What is the plugin you using to print console.log in inline of vs code?
@harisiqbal9120
@harisiqbal9120 3 жыл бұрын
Which theme and editor you are using
@uncleiroh6728
@uncleiroh6728 3 жыл бұрын
Ideally you use both functional and object oriented programming. Over the years, I have found function closures to work better for me than classes, as the 'this' keyword is just complete garbage in javascript. Of course this may be different for typescript but as of right now I do not have the time to refactor my thousands of lines of code to typescript, maybe something for in the future, but not for now.
@MercyFromOverwatch2
@MercyFromOverwatch2 2 жыл бұрын
Jeff is my favourite tech youtuber!
@VincePhoenix
@VincePhoenix 3 жыл бұрын
What editor are you using ?
@presidentbanana4536
@presidentbanana4536 2 жыл бұрын
How do you get the output of a console.log to be shown in the file?
@albirtarsha5370
@albirtarsha5370 3 жыл бұрын
Hey! My prettier throws away semicolons. I hate that because I switch between java and javascript programming. Am I using the wrong prettier?
@MrAbrazildo
@MrAbrazildo Жыл бұрын
1:40, I know it's meant for didactic purposes, but it was a pointless f(). 6:55, it encapsulated the logic of how it works, but it should also encapsulate the variable changing itself! If everybody can change the var, it's prone to bugs, if the project gets complex or large. 'change' should not be public too. C++ has the 'friend' keyword, which says what f()s can change everything in the class. Whenever a bug occurs, you have the list of all suspects. This is key for code safety.
@re1konn
@re1konn 2 жыл бұрын
Can you please compare scala.js and typescript compilers? Thanks.
@SaifUlIslam-db1nu
@SaifUlIslam-db1nu 4 жыл бұрын
"... and if there is one thing that companies hate, is that they hate creative programming solving solutions by their programmers... " and then I read your comment below. Thank goodness.
@feritperliare2890
@feritperliare2890 3 жыл бұрын
I'm experiencing a weird feeling as I've yet to work with JS so I understand and don't understand stuff cause a lot of it is the basics of other languages I did learn and some is completely out of left field for me sometimes
@DreamInSummerAutumn
@DreamInSummerAutumn 5 жыл бұрын
Please demo the output will make this tutorial clear and more understandings
@codeonmars579
@codeonmars579 5 жыл бұрын
yes, but it would consume a lot of time. Can open your editor along with video to have hands on.
Object Oriented Programming vs Functional Programming
18:55
Continuous Delivery
Рет қаралды 743 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 874 М.
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 916 М.
YouTube's Biggest Mistake..
00:34
Stokes Twins
Рет қаралды 67 МЛН
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 31 МЛН
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 1,9 МЛН
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,4 МЛН
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Functional Programming in 40 Minutes • Russ Olsen • GOTO 2018
41:35
GOTO Conferences
Рет қаралды 801 М.
Object Oriented Programming is Good | Prime Reacts
31:30
ThePrimeTime
Рет қаралды 277 М.
10 regrets of experienced programmers
8:16
Fireship
Рет қаралды 842 М.
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 831 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 210 М.
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 112 М.
Добавления ключа в домофон ДомРу
0:18
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Рет қаралды 17 МЛН
Google I/O 2024 - ИИ, Android 15 и новые Google Glass
22:47