Promises - Part 8 of Functional Programming in JavaScript

  Рет қаралды 354,396

Fun Fun Function

Fun Fun Function

Күн бұрын

💖 Support the show by becoming a Patreon
/ funfunfunction
Promises are, just like callbacks, a way of dealing with things being asynchronous - when we don't know for certain in what order things will happen. But promises are more powerful than callbacks because they compose - you can combine promises and chain them, all kinds of cool stuff - I've showed you some in this video, but there is WAY more you'll be able to do when you get comfortable with promises.
Full code example from the video here:
github.com/mpj...
Much inspiration for this episode was drawn from this fantastic guide y mattdesl:
github.com/mat...
💛 Follow on Twitch
We record the show live Mondays 7 AM PT
/ funfunfunction
💛 Fun Fun Forum
Private discussion forum with other viewers in between shows. www.funfunforu.... Available to patron members, become one at / funfunfunction
💛 mpj on Twitter
/ mpjme
💛 CircleCI (Show sponsor)
Robust and sleek Docker-based Continuous Integration as a service. I used CircleCI prior to them becoming a sponsor and I love that their free tier is powerful enough for small personal projects, even if they are private. Use this link when you sign up to let them know you came from here:
circleci.funfu...
💛 Quokka (Show sponsor)
Wonder how MPJ evaluates JavaScript inline his editor. Quokka is the answer - use this link when you buy to let them know you came from here:
quokka.funfunfu...
💛 FUN FUN FUNCTION
Since 2015, Fun Fun Function (FFF) is one of the longest running weekly KZbin shows on programming 🏅 thanks to its consistency and quality reaching 200,000+ developers.
🤦‍♂️ The Failing Together concept is what makes FFF unique. Most coding content out there focus on step-by-step tutorials. We think tutorials are too far removed from what everyday development is like. Instead, FFF has created a completely new learning environment where we grow from failure, by solving problems while intensively interacting with a live audience.
Tutorials try to solve a problem. Failing Together makes you grow as a developer and coworker.
📹 Each show is recorded live on Twitch in a 2-hour livestream on Mondays. The host, assisted by the audience, is tasked to complete a programming challenge by an expert guest. Like in the real world, we often fail, and learn from it. This, of course, reflects what the audience identifies with, and is one of the most praised aspects of the show.
⏯ On Fridays, an edited version of the show is adapted for and published on KZbin.
Content Topics revolve around: JavaScript, Functional Programming, Software Architecture, Quality Processes, Developer Career and Health, Software Development, Project Management

Пікірлер: 804
@coolandintelligent
@coolandintelligent 3 жыл бұрын
Dude, u literally turned me into a JS wizard. Just came back to say thank you after 8 years.
@charles-y2z6c
@charles-y2z6c Жыл бұрын
You also learned to time travel to the future. He improved my JS skills 7 years later
@christopherstephens7278
@christopherstephens7278 9 жыл бұрын
My college degree is in nursing and I am a self taught developer. I have been a professional web developer for 6 months. I learned javascript, html5, and CSS3 by reading articles/blogs and watching youtube, treehouse, lynda.com, and udemy courses over and over again. Now I improve my skills by reading source code for many of the top libraries and frameworks, learning new programming langauges, and by watching excellent videos like yours.
@funfunfunction
@funfunfunction 9 жыл бұрын
+Christopher Stephens Welcome to the channel, Christofer. Awesome to have you.
@carolinafortunato2538
@carolinafortunato2538 Жыл бұрын
5 years ago, your videos helped me understand javascript and become a developer. Today, I'll be using this video to explain promises to my students. Thanks to all the time you have spent producing those contents. You continue helping a number of people to start their careers in technology, years after the last video you ever posted. Thanks a million
@tetchen9
@tetchen9 9 жыл бұрын
Hi. Tania, 29, currently traveling, but used to be a Java and JavaScript dev for 7 years. Tried Angular - project for 2 month, tried Ember - same thing. Now just playing around to have fun, learn what i missed and get inspired. In which you help a lot =)
@funfunfunction
@funfunfunction 9 жыл бұрын
Hi Tania! Welcome to the channel, you have exactly the kind of skill level that I hope to target with the channel. Keep the feedback coming!
@ondamo
@ondamo 8 жыл бұрын
man you have a style ... if you were not a programmer, you would be a ... Promise.all(bartender, standup comedian, guest appearance on Simpsons).then("rich n famous in Hollywood").catch("russian circus") . excellent video, and unique style. amazing :)
@ondamo
@ondamo 8 жыл бұрын
and to add ... i started watching one of your videos, and am struggling to stop. its addictive. i am copying your accent at work tomorrow. wish me luck
@solomonaryeetey7370
@solomonaryeetey7370 6 жыл бұрын
Hahaha
@Luiz6447
@Luiz6447 6 жыл бұрын
hahahahha You caught it.
@thefreeze6023
@thefreeze6023 6 жыл бұрын
wtf halp
@mqasimmirza
@mqasimmirza 6 жыл бұрын
russian circus :p
@wesrobmat
@wesrobmat 2 жыл бұрын
I am not a robot! Studying Full Stack Web Dev Bootcamp at Lighthouse Labs. Your videos are amazing and always bring a smile to my nonrobotic face. All your videos are belong to us!
@TysonJeremy
@TysonJeremy Жыл бұрын
Hey Wesley, I'm actually going through the bootcamp right now, is there any advice you could give now that your done the course, and onto the job hunt? Any topics or concepts I should make sure I really nail down? Thanks!
@iAmTheSquidThing
@iAmTheSquidThing 8 жыл бұрын
Screaming into the public static void.
@coolworx
@coolworx 8 жыл бұрын
I think this is the forth or fifth time I've watched this specific video. There is something about this channel that is strangely addictive.
@matleenavenable1325
@matleenavenable1325 7 жыл бұрын
Hiya, another Galvanize student here -we unabashedly use your videos as learning material because they are so concise, easy to understand and broken out in perfectly sized chunks. You are training future web developers on several campuses here in the US, thanks!!!!
@jamesmcrayjohnsoniii2889
@jamesmcrayjohnsoniii2889 9 жыл бұрын
I'm a middle-aged dad who went back to school at a technical college here in GA, USA. I discovered programming by happy accident while taking some prerequisite classes for my network engineering major, and so I immediately switched majors. I wrote my "Hello World" in C++ in January, 2013, and it's been a whirlwind ever since. Now I've been developing in SQL/C#/JavaScript for 1.5 years, and I'm diving deeper into JavaScript now that I'm up to speed in SQL. This functional programming stuff is amazing to me, and it makes perfect sense to me, every step of the way. I never quite trusted the concept of inheritance, and I am excited to explore this functional paradigm. I'll probably look at F# as soon as I feel comfortable with this more advanced JavaScript stuff. Anyway, I love the videos. Thank you! Excellent work, and funny!
@funfunfunction
@funfunfunction 9 жыл бұрын
+James Johnson III Wow, that is awesome. James, you're just the kind of person I hoped to get as an audience. Welcome to the show!
@seancampbell5641
@seancampbell5641 9 жыл бұрын
I am electrical apprentice trying to learn programming to switch careers!! I started awhile ago with Python and did not really have any direction so I tried PHP and then finally decided to start learning at Code School. During that time I found Free Code Camp which has really helped my accelerate my learning! I now have a portfolio page and a view apps built on Code Pen. I started watching your videos right when they came out! It was perfectly timed with going through the functional programming section of FCC! It was extremely helpful watching your videos! I feel that your videos are really well done and the explanations you provide are simple enough that I do not get completely lost! I must say the editing of your videos spot on! Referring to the 'funny' parts that you put in! It makes the channel more 'real' just IMHO
@RyanJohnson-wc3xl
@RyanJohnson-wc3xl 6 жыл бұрын
Hello, I am a student in Seattle WA. Your series was recommended to me by a friend and I greatly appreciate your approach to each tutorial, making programming fun and accessible to anyone willing to spend the time to learn is an admirable pursuit and to that pursuit I wanted to say thank you.
@wuerges
@wuerges 8 жыл бұрын
Haskell programmer here! JavaScript seems a much nicer language than it was in 1995!
@autochton
@autochton 8 жыл бұрын
It's certainly a lot nicer than it was back in 2000 when I first used it. ;-)
@michaelm8044
@michaelm8044 7 жыл бұрын
I'm a professional front-end developer/engineer who just loves watching things about everything javascript. You sir, are excellence personified!
@Hoody203
@Hoody203 4 жыл бұрын
Watching this in 2020 and that sneeze made me put on a face mask
@ubongudotai
@ubongudotai 2 жыл бұрын
Lol... Please what happened in the future?
@andreykoshkarov
@andreykoshkarov 7 жыл бұрын
My friend and I are web developers, and we watching your videos and learning about functional programming. My friend now has a good job as JS developer with high salary, and I'm going to find my first job in near future. I'm learning from free videos on KZbin channels like yours and from JS Weekly newsletters arriving on my email. Thank you for cool informative videos!
@JohnDoe-yz6uu
@JohnDoe-yz6uu 3 жыл бұрын
so 4 years later, did you make your wish come through?
@andreykoshkarov
@andreykoshkarov 3 жыл бұрын
@@JohnDoe-yz6uu yeap, now I'm a senior developer in a big software company, all looks fine)
@JohnDoe-yz6uu
@JohnDoe-yz6uu 3 жыл бұрын
@@andreykoshkarov damn you have no idea how that motivates me to get through all the current struggle, thx mate, good luck to you in the future
@andreykoshkarov
@andreykoshkarov 3 жыл бұрын
@@JohnDoe-yz6uu glad to hear, I believe all is possible for you, good luck
@MukulTripathi
@MukulTripathi 8 жыл бұрын
Coming from 10 years of Java Development, never realized that javascript is so deep! Thanks for making these videos.
@MuhammadHasan91
@MuhammadHasan91 8 жыл бұрын
There's an actual ux issue with this approach, however the images are loaded in parrallel, the promise doesn't resolve until all the promises inside Promise.all() are done... which mean, if i'm loading 100 images, the user have to wait for the 100 images to be loaded before it get's appended to the dom... A better approach which is more convenient in real life apps, is imagesToBeLoaded = [ 'images/cat1.jpg' , 'images/cat2.jpg'............. ] imagesToBeTloaded.forEach( img => loadImage(img).then( (image) =>{ addImg(image) })); The coding is even shorter :D Great episode so (Y)
@funfunfunction
@funfunfunction 8 жыл бұрын
+Muhammad Hasan yes. But point with this code is to illustrate how Promise.all works, not to be an actual app. ;)
@azadazad
@azadazad 8 жыл бұрын
+Muhammad Hasan "A better approach which is more convenient in real life apps, is" ... is what?
@jgpls3012
@jgpls3012 6 жыл бұрын
If you're watching this in 2018, Use map() instead of forEach(). forEach() is for enumerating object properties. map() is for enumerating through an array. forEach() will not loop through the array in the order the items are put in the array. Therefore with this example cat2.jpg could be put in the DOM before cat1.jpg.
@ianhamilton1997
@ianhamilton1997 6 жыл бұрын
I think you're mistaken. According to the Mozilla Doc, "forEach() executes the provided callback once for each element present in the array IN ASCENDING ORDER." It seems to me that the main difference is that map() returns a new array containing the return values of the callback function, while forEach() does not return anything. Reference: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
@priyankthakkar
@priyankthakkar 6 жыл бұрын
That's not the issue with promises, it is the problem of HTTP 1.1. Upgrade your APIs/application to work with HTTP 2 and it allows multiplexing, it can send request for resources in parallel and your promises will be resloved way faster then you expect them
@madhupramod
@madhupramod 9 жыл бұрын
Hi Mattias, I'm a front-end programmer and have been in the workforce for the last 1.5 years. I really enjoy your videos and the clear, concise and fun explanations on concepts I use everyday at work and need a refresher every now and then.
@funfunfunction
@funfunfunction 9 жыл бұрын
hi madhu! glad to have you on funfunfunction. its awesome that you appriceate it, programmers with 1-2 years of work experience is precisely who I envision as my target market.
@zoidian601
@zoidian601 9 жыл бұрын
Great videos.. very clear and concise. I work as a full-stack dev with ~3 yrs experience. I've found your videos helpful in introducing fundamental concepts that can easily be overlooked when coming to software/web development from a non-CS background (and loving how you're doing it all in ES6.) I would love to see a video (perhaps when you've wrapped up the functional series) that touches on unit and/or integration testing in JS, even at a high level. Keep up the quality work!
@marcolepsy9
@marcolepsy9 8 жыл бұрын
I am a web developer focusing on front end at an agency in NYC. While I am familiar with most of the concepts I've seen you cover, I have been watching your videos in order to brush up and kill time on my long bus ride home. If they weren't entertaining I might not watch them, but I also appreciate and want to commend you on how coherent you are as a communicator both verbally and through your example code. Thanks very much for doing these.
@sreekanthp9342
@sreekanthp9342 7 жыл бұрын
This is my first subscription of a KZbin channel of any kind. It's worth it.
@arunsasidharan744
@arunsasidharan744 7 жыл бұрын
You are awesome broooooo... I am working as a Javascript Programmer in an e-Learning company in India. I would like to explore more in javascript and I am following you for the best practices and understanding more about OOPS in Javascript. These videos are literally very much useful for developers like me. Good Job !!!!!!!!!!!! God bless youuuuuuuuuuu.............
@Paul_ici
@Paul_ici 3 жыл бұрын
Great explanation on promises, you explained them in a simple, easy to understand way.
@dinurazvan86
@dinurazvan86 6 жыл бұрын
Oh! Right! My name is Razvan, i am from Romania/Bucharest, i work as a full stack programmer, mostly PHP (Symfony) and now i want to work more with javascript especially NodeJs, React, Angular. Great videos! You make learning more fun. Thanks!
@gzmask
@gzmask 8 жыл бұрын
Hello, I am here to stare at your moustache. It help me to focus on the logic without side effects.
@nnnnnAZ09
@nnnnnAZ09 8 жыл бұрын
hahahahahahaha
@R6M3
@R6M3 8 жыл бұрын
lei shulang made my day!
@defaultdefault6832
@defaultdefault6832 8 жыл бұрын
lei shulang you mean mustache.js templates right ?
@lorentzkalume
@lorentzkalume 6 жыл бұрын
Hahahah
@floofynuggets
@floofynuggets 8 жыл бұрын
Hello! Since you asked, I'll share: I'm a designer and developer from Canada and I've gradually learned more about front-end development by making websites the past few years. A couple of months ago, I resolved to learn JavaScript properly. By properly, I basically mean not using jQuery to do poorly architected DOM manipulations. Before stumbling on your channel yesterday, I've been most recently spending my time learning about Flux, Redux, and functional programming. Your videos have helped to solidify some of the core principles underlying the more buzzy new tools / frameworks, so, thank you!
@funfunfunction
@funfunfunction 8 жыл бұрын
+Rowan Weismiller hey Rowan! That is awesome to hear. You're basically exactly the kind of programmer that I've had in mind with the channel, so it's so great to hear from a really person actually appriceating it. Glad to have you following the channel!
@systemscholar
@systemscholar 9 жыл бұрын
With respect to the "Who the heck are you" question. I am new to the software engineering industry, started my first engineering job in San Francisco just two weeks ago. We use the promise pattern so I have been perusing the internet for good informational videos. Thank you for this post!
@fezazs
@fezazs 9 жыл бұрын
9th semester computer science student. I already have an understanding of functional programming, but not javascript, that is why I'm here. The series have been great, and until next time I will stay curious!
@girigauravbhatnagar1
@girigauravbhatnagar1 8 жыл бұрын
I have been working with JS for a year now. Today, understood what promises are. Thank You!
@shantanusinha3609
@shantanusinha3609 6 жыл бұрын
These videos are very helpful! Answer to the request made in the conclusion of the video: Working Professional: Yes, 7 months of experience in working in Ruby on Rails. Apart from that I have been implementing algorithmic problem's solution in C++ since 2015. I thought JavaScript was easy(just like C++) but then I stumbled upon these new features are was having a hard time understanding due to the bias. These videos cleared up my concepts a lot and I am planning on practising them for converting them to habits! Thanks!
@vince1271
@vince1271 7 жыл бұрын
I'm a 19 yo front-end web developer from Quebec, Canada. I really like your videos, keep it up!
@asifjaved8531
@asifjaved8531 5 жыл бұрын
Never met .... living totally different parts of the world but u r my fav teacher ...and i am one of your so many students. Your videos have really helped me grow in to my career. Thanks for that.. I hope and wish there is a better way to communicate with you more often to interact regarding queries.
@ashwaniare
@ashwaniare 8 жыл бұрын
Finally I understand Promises.. Awesome!.. I hope you get a billion subscribers!
@funfunfunction
@funfunfunction 8 жыл бұрын
+ashwani r workin on it!
8 жыл бұрын
Actually he deserves it!
@JnsWndlmth
@JnsWndlmth 9 жыл бұрын
As an experienced JS developer (web, node.js), i always enjoy your videos. I started (1993) with Basic, Pascal (later Delphi), Perl, PHP, some C/C++ and now (since 2006) i enjoy using JS whenever it's possible.
@funfunfunction
@funfunfunction 9 жыл бұрын
+Jns Wndlmth Holy crap, 1993, that's before me! Welcome to the channel!
@orlenivan
@orlenivan 7 жыл бұрын
I've been reading through many websites, articules, and I watch you're videos to refresh knowledge and understand better what I read. Thank you very much
@FacundoCastellano
@FacundoCastellano Жыл бұрын
You are a Genius Bro!!! You won a suscriber!! I from Argentina and I'm learning programming, looking for my first job in this field, and you are a great teacher!
@krige
@krige 7 жыл бұрын
Thanks for the video. Academic Java programmer for 7 years, now industry AngularJs + .Net full stack developer for 2 years. I use Javascript daily at work as second language. Last thing I learned was unit testing at a company seminar.
@coreyvaughan2319
@coreyvaughan2319 9 жыл бұрын
Really enjoying the videos! I'm an industrial designer by trade, and I began learning to code in my free time. I landed on Javascript because it interfaces nicely with a couple other programs I use every day, like Adobe Illustrator and Photoshop. I never expected for it to be so useful in my daily work, but looking back, that was a pretty naive idea. Thanks for the good quality video and audio as well, it really makes a difference!
@funfunfunction
@funfunfunction 9 жыл бұрын
+Corey Vaughan Hey corey, glad to have you with the show. Really cool to see people like you coming from non-compsci backgrounds into programming, you're exactly the kind of person that I'm imagining as a target market when I'm making the videos. Also thanks for noticing my work on the video and audio quality, I spend a ton of work getting that right and I think a lot of producers are too sloppy with it.
@leezamastil
@leezamastil 8 жыл бұрын
Great series, Mattias. I'm recommending this as an intro to functional programming to some new devs I'm working with. Thanks for putting it all together!
@maxmustangmattos23
@maxmustangmattos23 8 жыл бұрын
Im brazilian developer with a Java background, but a year ago I became to do some work stuff with node, since then i got a lots of node projects on work and now im in love with javascript. Tks for the vídeos dude
@Lpcnew
@Lpcnew 7 жыл бұрын
Hey @MPJ! As I talked once from twitter, I'm front end developer, from Brazil and now I'm living and working in Lisbon, Portugal. I'm Front End Developer and I'm having some fun with Reactjs and ES6. I came from legacy projects and for me JS was only to validate forms and do small things (hahah)... after start in this current job/project I realize that I had to learn more things, new features, know the power of JS ... otherwise I will not be successful with react, you know. I start to learn ES6 with your videos and was great, now I know a lot of relevant things. Well, thanks to help-me (and others) sharing (with fun!) your knowledge. My best regards.
@svenskdod
@svenskdod 7 жыл бұрын
Ive just got my first job as a front end/web dev in Stockholm. Super stoked but it was super hard work. Everyone one wants you to have a ton of experience and it’s sometimes demoralizing. I began with java web development but have since moved over to JS all in. Feels much cleaner. Love JS.
@maximemoreau711
@maximemoreau711 8 жыл бұрын
Hello, i'am a php programmer / Laravel, and i'am a student, autodidact student and i'am in the first year of DUT Informatique in France. (17years old :o) Thank you for everything. You're channel is amazing, you're amazing! Great professor :-)
@olakonny8378
@olakonny8378 9 жыл бұрын
I love your shirts, stretch breaks and the stringify's second argument, as you referred to it, "null is for magic things". Love to listen to you, great videos.
@CLUBZSPADEZ
@CLUBZSPADEZ 7 жыл бұрын
I am front end developer picking up on my javascript skills! You really helped me to understand promises!
@spicegoblin
@spicegoblin 7 жыл бұрын
I'm a Senior PHP Developer from London, UK. First video i've seen of yours and really helped me understanding Promises. The concept of Asyncronous code is weird. But really cool! Cheers dude.
@SacrificialGoat94
@SacrificialGoat94 7 жыл бұрын
I'm a recent university graduata i have 1.5 years experience working as a professional programmenr. Java is my first language i worked on one large project using Node.js Express. I'd like to learn more about java script. You help me to learn with all these entertaining videos. Thanks for all your hard work.
@engineerchaos8424
@engineerchaos8424 4 жыл бұрын
I am a beginner to average js/nodejs programmer. I do EE for a living, and work on my site as a dream. Love your videos, keep up the good work man.
@Laek4
@Laek4 6 жыл бұрын
PHP was my first language and I've been writing JavaScript for years, but just getting into functional now and your videos are the best!
@Scorpio7500
@Scorpio7500 8 жыл бұрын
hey Matthias, some user information: - recent CS graduate - JavaScript only became important after my internship - last thing I learned apart from your vids was how hoisting worked in JS Thanks for the vids!
@fugalfunkster8868
@fugalfunkster8868 9 жыл бұрын
Hello! I'm teaching myself JS for my first language. I'm using codecademy, codeschool, and some books to supplement my focus on JS with HTML, CSS, and JQuery. I've been working through "Eloquent JavaScript" by Marijn Haverbeke, and when I reached the chapter on higher-order functions, I searched for resources to make these abstractions seem more familiar, and I discovered your videos. Thanks for producing them, your videos have been very helpful! Your information about ES6 and today's video on promises are outside of my context, so hopefully I'll grow into them once I lay my foundation.
@DavideFortuna
@DavideFortuna 9 жыл бұрын
Hi, here front-end dev from London. Well done! Please keep going on ES6, you are a really good teacher. It would be interesting to see some mid-weight project application in the future videos!
@ankiewicz
@ankiewicz 7 жыл бұрын
Gone from web developer to Software engineer, studying to be an expert in javascript while still being a noob. Computer Science stuff is hard.... Code is fun! I love the videos, the personality is the 2nd best part. Great details!
@Lotta_Llamas
@Lotta_Llamas 9 жыл бұрын
Hi MPJ, Thanks for taking the time to make all this nice content. I found out about your videos last weekend and I introduced them to a bunch of people in my office. They all responded positively. I have been a full time JS dev for a year now making internal apps. Finding content like this has really helped me level up. They give us Lynda, egghead.io, and treehouse at work, all of which are stellar. I picked up a month from frontendmasters.com recently and was blown away be the content there. Seriously, 9 hours of Jafar Hussain talking about async JS. Anyway, I appreciate all the nice content and the method of delivery. Please keep up the nice work!
@MrWilde
@MrWilde 7 жыл бұрын
MPJ, you are a legend, love your training. I am a WordPress/Laravel/AngualrJS developer and JavaScript is used everywhere I look so I want to know as much as possible about how to incorporate it into my projects. Learning so much from your videos, some of witch I should probably not follow. Got in a little trouble at a meetup once when someone tried to explain recursion using fibonacci numbers and I tried to kill them. ;)
@JDesrosiers
@JDesrosiers 6 жыл бұрын
I love this. As a full-stack dev, I'm looking at your screencasts to get up to date with the latest frontend/js stuff. And I must say that you are quite entertaining and illustrative in your teaching style. I appreciate that a lot.
@megandee808
@megandee808 8 жыл бұрын
Very much enjoying this entertaining and informative series. I am a middleware and API developer, transitioning from writing apps in Java/Tomcat into NodeJS and cloud platforms. Planning to catch up on all your videos because not only are you introducing the concepts in entertaining ways, you are also teaching me the culture of javascript. I know JS has been around for ages but I have an aversion to front-end development so I have managed to avoid it until now.
@mazyvan
@mazyvan 8 жыл бұрын
Hello from Durango, México. I'm a student. I am 20 years old. I love nodejs, and I love the new javascript. I'm actually working on a personal project using Node with Sailsjs, Angular 2 and Ionic 2 all of this for make a public api and get the data. Of course, I'm learning TS and I really love it. My preferred editor is vscode and I'm Trying to always follow the BEST PRACTICES! because that's the secret of being a good developer. Probably the only crazy guy in my city that is learning all of this stuff... P.S. Great video. Thanks!
@gomtv5383
@gomtv5383 8 жыл бұрын
When people try to sell me on promises, they always tell me about how it solves callback hell, but I already have the async library for that (unless I'm missing something, which is totally possible). A part 2 with more in-depth information about promises would be awesome. Keep up the awesome work, you are a true inspiration. Best regards, Daniel
@aunimoin
@aunimoin 6 жыл бұрын
Love your videos! I'm new to coding - 4 weeks into a 12 week web dev immersive program at General Assembly - and your channel's helping me inch closer to understanding JavaScript.
@francispires
@francispires 8 жыл бұрын
Man, im ok with javascript funcional programming but i keep watching your videos, it's so funny to watch your videos!!!Keep going!!!
@ArisFilms
@ArisFilms 6 жыл бұрын
Your Github link in the description saved me where 20 Medium articles couldn't.
@Yetipfote
@Yetipfote 8 жыл бұрын
"node.js-callback-christmas-tree-of-doom" XD
@Scorpio7500
@Scorpio7500 8 жыл бұрын
nice way of describing hell isn't it haha
@Yetipfote
@Yetipfote 8 жыл бұрын
True!
@aar6947
@aar6947 7 жыл бұрын
I prefer pyramid of doom... hahahahaa
@javiando1423
@javiando1423 4 жыл бұрын
After long readings about asynchronous JS, this video made me the day not that heavy, million thanks!
@RaphaelRafatpanah
@RaphaelRafatpanah 8 жыл бұрын
Very enjoyable videos! MEAN / LAMP programmer here who appreciates easily reason-able code. Thank you for making these!
@alessander123
@alessander123 8 жыл бұрын
Hi mpj, I am a frontend developer for 4 years in Brazil. Thanks for clarifying Promises to me ;)
@HallaBool
@HallaBool 9 жыл бұрын
Amazing video, I work as a backed server developer, writing code mostly in C/C++. But I'm trying to learn front-end development and you'r videos are great at explaining fundamentals. Thanks
@howardsmiller
@howardsmiller 5 жыл бұрын
Really cool... as some others here, I have been a server-side dev in all sorts of languages for over 30 years but have never stopped keeping up to date. Some stuff in JS has really pickled my brain but your videos help immensely. Thanks :)
@bozoclown36
@bozoclown36 7 жыл бұрын
I am a new programmer. I am in a coding bootcamp in NYC, Javascript is sort of my first language other than a little Java. The last thing I learned about was postgreSQl. Good video thanks!
@IhsanMujdeci
@IhsanMujdeci 8 жыл бұрын
I picked up programming about 2 years ago, finished my degree in IT now developing apps and learning cool stuff when I can. Primarily use angular js, glad to see a bunch of functional style things in angular 2 development.
@Youbrokeme
@Youbrokeme 8 жыл бұрын
Hey man, love your videos! I am learning Javascript as my first language and your videos are the first place I go when I don't understand something. Keep up the awesome work!
@keremkos
@keremkos 7 жыл бұрын
Hi, I've been an embedded sw eng for 15+ years, working with C/C++. Now I am trying to switch my career to web development. Your videos are very helpful. You have a funny style. Thanks.
@9703080696
@9703080696 7 жыл бұрын
Hello, this is anil. working as Front end developer since 2 yrs. Greet videos...
@jchiang7874
@jchiang7874 9 жыл бұрын
As a newbie to programming, I love your explanations to complicated topics. I would love to hear your explanations on prototype with some real live examples. Thanks for the great videos! Looking forward to your next one.
@ThePaulKM
@ThePaulKM Жыл бұрын
JavaScript is my first programming language and I am just learning right now. I've been at it for nearly a year now, but I don't know if I have the mind for this kind of work. I do enjoy your videos though, so thank you for taking the time to put out this stuff for people like me.
@krismuniz
@krismuniz 9 жыл бұрын
Hello Mattias! I'm a web developer and 3rd year Information Systems student and I find your videos very helpful! JavaScript was the first language I ever learned and I love it. I learned by reading "JavaScript: The Good Parts" by Douglas Crockford and then "Eloquent JavaScript" by Marijn Haverbeke. Where I work we use PHP (bleh!) but I recently started learning Node.js and experimenting with ES6 (I love it so far). I would love to see videos explaining ES6 generators and module loaders in the near future! :)
@funfunfunction
@funfunfunction 9 жыл бұрын
+Kris Muniz Hey Kris! Welcome to the channel, cool to see a bona fide student here! Adding another vote for generators.
@brianmcclain2241
@brianmcclain2241 7 жыл бұрын
Great videos, very clearly explained and technical without being dry. Funny, engaging and effective teaching style. Kudos!
@joedunder4439
@joedunder4439 2 жыл бұрын
Thanks for the excellent video -- very helpful and your showmanship goes a long way to make the video entertaining. I'm watching this as part of The Odin Project's lesson on Asynchronous Code.
@jonathanyngfors4271
@jonathanyngfors4271 6 жыл бұрын
Great video! I have been coding JavaScript for a year! Thanks for all interesting videos! 👍🏻
@MadmanBTS
@MadmanBTS 8 жыл бұрын
Great videos! I'm just starting out as a programmer. Your videos are great for getting a quick idea about a concept and even if I need to watch more detailed ones later, your presentation is too good to miss.
@aldoportillo6743
@aldoportillo6743 2 жыл бұрын
That keyboard tactical reload at 9:06 was amazing.
@HaakonHestness
@HaakonHestness 6 жыл бұрын
Dude, your awesome! I like how you lay down what, why and how of each subject. Really amazing.
@mimohshrestha
@mimohshrestha 8 жыл бұрын
I love what you have done with javascript, you have made coding in javascript fun as your series implies @funfunfunction... LOVE JAVASCRIPT, and thanks to your guidance. If i am stuck i don't go to API references no more, i just look for your videos. hehe
@bradyhuang5606
@bradyhuang5606 5 жыл бұрын
From Taiwan, used to be a Python backend developer for 2 years (28 years/old), but currently onboard as a full-stack developer and required knowledge with JS since the techstack are express+angular. I am trying to know how to handle streaming data from a restful api, and that's why I found your video, thanks for all the knowledge you share and I'm trying to catch up the JS ES6 essential.
@LPKosb
@LPKosb 9 жыл бұрын
Love your videos. I've been a "web developer" for around 15 years but i'm still learning tons from your videos - especially your functional programming series - i'm still getting to grips with recursion, especially if i want to add a value to an array with each iteration. I agree with you wholeheartedly that developers should focus on the fundamentals, but it's also important to keep one eye on the industry - even if it means playing whack-a-mole. ps. i love you, please keep making these videos.
@Knards
@Knards 6 жыл бұрын
I am watching this 3 years later. I am a hobbyist who has programmed various things since around 2000. I use php and Jquery, but in all that time never learned javascript. Which I am doing now in 2018. Why? I have no idea. But you do make incredible videos
@petergriac7400
@petergriac7400 7 жыл бұрын
Hi MPJ, I am working as a young frontend developer, I know the basics of JS , jQuery and bit of BackboneJS. But I would like to write better and more professional code, and use the "cool" stuff :) so I started watching every day at least one of your videos and they are really awesome and helpful, and also entertaining :) keep up with the good work! thanks Peter
@whitneypurdum4284
@whitneypurdum4284 7 жыл бұрын
You are amazing. This is the best tutorial I've watched on Promises. Please keep doing what you're doing!
@megd9849
@megd9849 7 жыл бұрын
30 y.o. professional front end dev for 5 years, self-taught, employed at a large corporation in Portland, Oregon, and JS is my first programming language. This series is excellent!! Also you're really cute / I wish I could take you out for coffee ;)
@RaymondBerger
@RaymondBerger 8 жыл бұрын
Thanks so much for making this! Easy to understand videos about more advanced javascript topics aren't all that common.
@cordelldev
@cordelldev 4 жыл бұрын
Watched this from the future, still relevant and very useful. thank you once again!
@NielvanSteenderen
@NielvanSteenderen 6 жыл бұрын
I am an mixed bag of IT, SQL has been a large piece of my skill set. I started in web dev when php 5 was hot off the shelf. I never went too deep down the JS rabbit hole. I have been in the C# asp space for the last (quite a) few years. The last time I used JS really, the team I was in had recently started using jQuery, which was much sexier than what I was used to. I have not touched JS sence. I find myself needing to pick up React in a hurry and realise how far JS has come and how little I knew before. I have followed you for a while because of your musings which I love! You have wonderful insight and have done your research. Now I am trawling your how to in JS with much interest. I knew your psychological tachtics would work this JS magic into my brain in double time. PS "Something funny and something nice"
@jordancotter5885
@jordancotter5885 7 жыл бұрын
16:13 work as a programmer, doing my morning learning time before I start my actual work, javascript isn't my first language. I used Java, Python, and C# before javascript and when I started using javascript I thought was lawless sorcery. Last thing I learned was how folktale tasks truly worked. Learned from the folktale documentation. I basically skipped straight from callbacks to tasks so I figured I'd backtrack to promises with this video.
@funfunfunction
@funfunfunction 7 жыл бұрын
+Jordan Cotter yeah, in hindsight I should have avoided bind completely in the video as that distracts from the point.
@davebrazell8853
@davebrazell8853 9 жыл бұрын
I'm learning JavaScript and learning Web Development. I really enjoy your videos you have a great skill in simplifying complex topics. You should be teaching Javascript classes I know I would attend. Thanks for doing what your doing.
@IndigoCode
@IndigoCode 8 жыл бұрын
Awesome video, thanks! Since you asked - I'm starting a JavaScript developer job in a couple months after doing an internship last year (I'm a student). Most of my background is in low level and graphics programming. Great pace, excellent examples, very well done video!
@ignorance1Zbliss
@ignorance1Zbliss 8 жыл бұрын
this was great, i love how clean the code turned out at the end. I love this series. You rock, and i have been sharing the links to your videos with friends who code. Because you seem to really want to know about your audience: I am primarily self-taught, aspire to be an amazing programmer one day, i work as a front end dev but can traverse the stack some, I use JS, Angular, Ruby, Rails, I have worked with Node a little too...and a little jQuery...And I am always trying to improve and learn more. Right now I am still junior, but not far from being mid level...Now that I am comfortable just knowing I can write code that runs and get the job done - I am looking at how to write better code and think bigger and more long-term in how I approach how I write my code. I would love to see you do some series on optimization, design patterns and writing scalable code!!! It would also be cool if at some point you started some series on frameworks like React, Angular...or even on automation and tools... or testing (unit testing specifically).Maybe you already have videos on some of this stuff and i just haven't gotten there yet. I can think of a million things I would love for you to talk about! there is so much stuff! lol. But I am really happy with the videos you have up now :)
@jasonwiesner5539
@jasonwiesner5539 4 жыл бұрын
Hi Mpj, thaks so much for the videos again! I am a student in Hack Reactor @ Galvanize remote part time (3 months into my 9 month program). I'll be applying for my first dev job this year after bootcamp. After a brief 1 month introduction to Python via Clever Programmer Qazi, I decided to dive into Javascript and so it is basically my first language, yes. Your entire channel has been super, super helpful so thank you so much for all the videos! We just finished our authentication sprint and it was super interesting to learn about salts and hashing passwords, cookies, mysql databases, routing functions correctly, etc. etc.! Not sure if you have a video on that but that would be great and I'm sure it would provide alot of value to many people. Will stay tuned.... thanks again!!!
@gmeneguz1
@gmeneguz1 8 жыл бұрын
Greaat Video!! I am a Swift programmer and now I want to learn this news Javascript features. Swift were inspired in JS what makes it easier to learn. Thank you for sharing your knowledge in a simple and enjoyable way!!
@funfunfunction
@funfunfunction 8 жыл бұрын
+Gianfranco Meneguz hey Gianfranco! Glad to have a Swifter following the channel!
8 жыл бұрын
More clear resource about promises. Amazing video!
Functors - FunFunFunction #10
9:19
Fun Fun Function
Рет қаралды 96 М.
Recursion - Part 7 of Functional Programming in JavaScript
15:44
Fun Fun Function
Рет қаралды 236 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 56 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 27 МЛН
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
Dependency Injection basics- Fun Fun Function
22:26
Fun Fun Function
Рет қаралды 153 М.
Composition over Inheritance
8:34
Fun Fun Function
Рет қаралды 515 М.
bind and this - Object Creation in JavaScript P1 - FunFunFunction #43
15:39
Functors: I was WRONG! - FunFunFunction #11
11:39
Fun Fun Function
Рет қаралды 90 М.
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
async / await in JavaScript - What, Why and How - Fun Fun Function
24:00
Fun Fun Function
Рет қаралды 253 М.
How I Made JavaScript BLAZINGLY FAST
10:10
ThePrimeagen
Рет қаралды 223 М.