LBRY Block Explorer

LBRY Claims • beyond-code-live-x-functions-in-modern

69f6cd18a0d246fa7df9d8e824d815514861aaba

Published By
Created On
31 Mar 2021 07:23:50 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
Beyond Code Live X: Functions in Modern Languages (using JavaScript as an example)
Powered by Restream https://restream.io/

In essence, you can think of a function as a manufacturing process that has several steps. If you had a factory that created cars, the machines would follow the same process every time, which little or no variation, and would produce a unique result.

For example, if you call the process twice, and the process is correct, you would get two distinct cars - you would destroy the first car to create the second, nor would you mix the two together.

These seems obvious in the physical world, but sometimes in the digital world we forget that.

And sometimes... well, not all programs are correct.

function create(color, gearbox) {

if (!color) {
color = 'black';
}

if (!gearbox) {
gearbox = 'automatic';
}

var car = {
make: 'Honda',
model: 'Civic',
color: color,
gearbox: gearbox
};

return car;
}

Beyond Code:
(Learn to Code in 15 Minutes a Day)
Bootcamp Playlist: https://www.youtube.com/playlist?list=PLxki0D-ilnqZfyo2dZe11ZNGP7RJxJcoA
Subscribe on YouTube: https://youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBA
Join on Facebook: https://fb.com/beyondcodebootcamp
Follow on Twitter: https://twitter.com/@_beyondcode

AJ's Live Streams:
Watch on Twitch: https://twitch.tv/coolaj86
Subscribe on YouTube: https://youtube.com/coolaj86
Watch on Facebook: https://fb.com/coolaj86

Health, Wealth, Commitment
(My Morning Shower Thoughts as a Daily Lifestyle Vlog)
Join on Facebook: https://www.facebook.com/groups/5406824179391158
Subscribe on YouTube: https://www.youtube.com/channel/UCbw2SbqD0OofAEVF_T61wCQ

#softwaredevelopment #softwareengineer #webdevelopment #webdeveloper
...
https://www.youtube.com/watch?v=bddSi89OPIw
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
JAVAS
Controlling
VIDEO
[LIVE
Controlling
VIDEO
[LIVE
Controlling
VIDEO
BEYON
Controlling
VIDEO
UTOSC
Controlling
VIDEO
INTRO
Controlling
VIDEO
BEYON
Controlling
VIDEO
JAVAS
Controlling
VIDEO
[LIVE