Refactoring to Functional Style - Venkat Subramaniam

preview_player
Показать описание
The functional style has a number of benefits: code is concise, more expressive, easier to understand, and easier to make change. But, the transition from imperative to functional style is a hard journey. It's not as much an issue of getting comfortable with the syntax. It's the challenge of thinking functionally. What better way to learn that transition than taking imperative code and refactoring it to a more of a functional style.
In this presentation we will start with multiple code examples that are written in imperative style and learn how to approach and refactor to functional style.

NDC Conferences
Рекомендации по теме
Комментарии
Автор

Great vid illustrating functional programming and why you might want to prefer it.

PublicVoidFoo
Автор

Excellent presentation. This was very helpful in helping me understand how functional programming works.

scottcampbell
Автор

i have doubt isn't map is equivalent to for loop iteration in first example using imperative style we just used one for loop in function we are using multiple for loop plus filter and other function which one will be performance benefit ?

caesarbala
Автор

This isn't refactoring, it's rewriting.

Jason