What is a Function in Programming?

preview_player
Показать описание
A function is an essential component of computer programming. It is essential that new programmers understand what a function is and why they are used. This video will explain what a function is and why we use them.
Рекомендации по теме
Комментарии
Автор

Very Informative. I like how you written/drawn everything down. I find writing things down helpful to remember things.

allanblack
Автор

Calling the function with the value A. Perfect! Thanks

alcap
Автор

So a function is a block of code invisibly embedded inside the main program? To call a function means for the computer to call that block of code to be run with whatever values inputted?

ruleaus
Автор

thanks for this informative video and also your hands are so beautiful😅❤❤

shafaqmalik
Автор

Nice video. I think the correction way to define a funtion using input and output as A and B respectively woudl be B = function (A)

asmarali
Автор

I cannot state definitively what a function IS, but I know that any potential definition must carry a few points:

* a function is generally attached to an identifier [for being reused]
* a function holds a set of statements [a code block]
* a function might accept certain input, to obtain a more precise output
* a function performs a specific task

Retrofire-
Автор

also, it is helpful to consider what programming would look like without* functions.. you would need to rewrite a single operation, no matter how large, ad Infinium to accommodate your desire to use those statements, with a single function you can turn what would otherwise be 500 rewritten code blocks into a single function, which might be referenced an infinite amount of times. the performance improvements are incalculable

Retrofire-
Автор

In Tron, "function" is an offensive term for a program that seems unsophisticated, equivalent to our "simpleton", essentially.

TheRojo