Functional JavaScript Tutorial - #1: Functions

  Рет қаралды 9,634

Zaiste Programming

Zaiste Programming

Күн бұрын

In programming, functions are units of computations. They take input and produce output. In order to use a function, we must to define it. This process consists of associating a name with a sequence of operations to perform when given function is invoked.
In JavaScript, there are many ways to define functions. There is a function declaration, a function expression (which can be named or anonymous) and finally an arrow function. In this tutorial, we will be using exclusively arrow functions as they are shorter, easier to write and their semantics are simpler in JavaScript
Functional programming is a programming paradigm in which you build programs by
composing functions. The computation is then the evaluation of those functions.
Functional programming focuses on the usage of pure functions and on avoiding
shared, mutable state. This programming paradigm is declarative. Functional code
is usually more concise and easier to test.
In this mini series, we will embark on an exciting journey to learn a bit about
functional programming by using JavaScript. Presented concepts will be mostly
universal and applicable to other programming languages. This series is created with beginners and non-programmers in mind; don't worry, we will take it slowly!
Zaiste Weekly Newsletter: bit.ly/zaiste-weekly
#functional #javascript #functions

Пікірлер: 24
@janduna9187
@janduna9187 3 жыл бұрын
So much information conveyed in such an elegant, layered and structured manner.
@wtkish
@wtkish 5 жыл бұрын
i really like how your videos are structured. can't w8 for next one. gj man
@MrMarkgyuro
@MrMarkgyuro 4 жыл бұрын
thank you! I really enjoy the way you teach and how you grab those concepts
@RobertWildling
@RobertWildling 5 жыл бұрын
Very well explained! Thank you!
@wtannr
@wtannr 5 жыл бұрын
Nice, informative video.
@miklosnemeth8566
@miklosnemeth8566 5 жыл бұрын
Absolutely brilliant. Especially at 19:17 when you show what is this in the context of a function. Excellent, show. Arrow functions are not objects, though, right? I loved your Flutter series, too.
@kayseeday
@kayseeday 3 жыл бұрын
Man I love this series! Can’t believe I just found it! Also how’d you get your vim to look like that
@bluejimmy168
@bluejimmy168 3 жыл бұрын
it is not vim. I believe he is using emacs, org mode.
@mdabdurrakib6965
@mdabdurrakib6965 3 жыл бұрын
Many many thanks dear sir
@maxmaksum4673
@maxmaksum4673 3 жыл бұрын
man you are awesome..
@szymonrojek6480
@szymonrojek6480 3 жыл бұрын
Hi, ~zaiste do you have these notes from the video that we can read it after and later on?
@dancoman8
@dancoman8 2 жыл бұрын
Great video! What editor are you using?
@IsraelJosue
@IsraelJosue 5 жыл бұрын
What tool do you use in vim to make it look that way?
@efrainpineda664
@efrainpineda664 4 жыл бұрын
i want to know too
@babudelhi9885
@babudelhi9885 4 жыл бұрын
it is Emacs I think
@DiakoSharifi
@DiakoSharifi 3 жыл бұрын
kzbin.info/www/bejne/i4WUk5anlK18oac
@LanguageSkillz
@LanguageSkillz 3 жыл бұрын
I'm glad ES6 was finally permitted to edit notable features. The joys of technology offshoots today. MIcrosoft was quite hard-headed. Brendan Eich was charged with producing it in all of 10 days... can you imagine the mindset (Bill Gates) to insist a programmer not debug? So then how about error-corrections of a full programming language or compiler itself?? Seems politicized, not wanting to 'break' code, and during a beginning standardization process. Most of the idiosyncrasies as flaws appear: 1) divergences from other C or Java familiarities, being a different language, 2) any confusion to application of similarly marked or even otherwise perceived behaviors, 3) oversights at launch, aspects people harped about to target Netscape or even Mozilla. Douglas Crockford much dismisses Eich's role for times, and it seems the role itself was first and more largely dismissed by larger Microsoft interplays. Still, all the cool features finally unleashed, and programmers *very much* caution against using arrow functions as a purely syntactic update. Despite object-orientation providing depth to JS functional capabilities, you mention you (always) preference arrow functions. But you start off the category highlighting many are misusing or mistaking them, and by presentation end you are calling an object reference from one function into another, both plenty concise but neither involving arrow syntax... it feels like you've had more to say about arrow syntax.
@luckboysunday
@luckboysunday 4 жыл бұрын
What app are you using to type into?? Would love to know? Love the series by the way
@theemacsen1518
@theemacsen1518 4 жыл бұрын
Doom-Emacs
@DiakoSharifi
@DiakoSharifi 3 жыл бұрын
kzbin.info/www/bejne/i4WUk5anlK18oac
@piecioshka
@piecioshka 5 жыл бұрын
Did you buy functional-javascript.org domain yet?
@paedrufernando2351
@paedrufernando2351 4 жыл бұрын
I was able to learn faster at 1.25x speed..Try it.
@nr7343
@nr7343 3 жыл бұрын
voice from keyboard ...... is very very very but very anoy
@edwingarcia5043
@edwingarcia5043 3 жыл бұрын
Not gonna lie, not friendly for beginners
Functional JavaScript Tutorial - #2: Referential Transparency
8:53
Zaiste Programming
Рет қаралды 5 М.
JavaScript Function - What's your Function?
12:27
Fireship
Рет қаралды 181 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 59 МЛН
Functional JavaScript Tutorial - #3 Side Effects & Pure Functions
18:44
Zaiste Programming
Рет қаралды 5 М.
An Introduction to Higher-Order Functions in JavaScript
16:45
Zaiste Programming
Рет қаралды 4,5 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 742 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Asynchronous JavaScript Course (Async/Await, Promises, Callbacks)
1:36:23
freeCodeCamp.org
Рет қаралды 667 М.
Anjana Vakil - Functional Programming in JS: What? Why? How?
1:02:32
Functional programming - A general introduction
11:47
Daedalus Community
Рет қаралды 93 М.
Async JavaScript & Callback Functions -- Tutorial for Beginners
24:21
Object Oriented vs Functional Programming with TypeScript
12:07
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 487 М.