Comparing Programming Paradigms

preview_player
Показать описание
We use two examples to compare three different programming paradigms: procedural, object-oriented and functional. We talk about what each paradigm is about and discuss how familiarity with a variety of ideas can make you a better programmer.

Code samples (cleaned up a bit from what is shown in the video) can be found here:

As always, comments and questions welcome!
Рекомендации по теме
Комментарии
Автор

Happy to see you guys again. I love the way you guys explain. especially using marker and board.

premparihar
Автор

You can collapse the side bar (Activity Bar) of VSCode to have more room.
Really need a follow up on that video :)
Good to see you again.

zeroxcub
Автор

Great explaining, really contrast between paradigms, liked & subbed

mohamoudsheikh
Автор

Nice presentation. IMO procedural is definitely the easiest to read for small functions, functional is the most powerful / extensible and still pretty legible (but functions as data is harder to reason about), OOP is obviously more complex, harder to read, and adds boilerplate / ceremony in most situations.

dave
Автор

Guys, can you make a video about testing approaches in current state of javascript, to each paradigm?

justfly
Автор

Not very good examples. There is nothing stopping you from registering languages in the procedural one either.

cthutu
Автор

Your content is great! Shame about the audio.

MichaelThomasDev
Автор

You're over complicating the last functional example:
```
let filter = predicate => arr => arr.filter(predicate)
let filterByType = filter(c => c.type === "first-component")

// [ { type: 'first-component' } ]
```

LizardanNet
Автор

The functional style greeter function can be way more concise like this:
*let greeter = greeting => name => `${greeting}, ${name}`*

LizardanNet
Автор

For loop is to slow, a year ago I've tested those versus Array methods like (forEach, map) - so Array methods were 2x faster.
You can check it out:

bekliev
Автор

Glad to see you. Do you have twitter ?

dmitriyzlobenets
Автор

Spanish for hi is hola. Olà is Portuguese too

cthutu
Автор

I much prefer the whiteboard coding as I learn a lot more :(

Lukenallen