GridVids
Sign in with YouTube

Jakub Kratina - Refactoring

Jsme PéHáPkaři Aug 31, 2017 12:10
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

Velká dávka kódu, se kterým si pohrajeme a ukážeme si, jak můžete zdokonalit svůj kód pomocí různých metod refactoringu. Nezávisle na frameworku, který používáte. Rozjedeme to ve velkým a projdeme: - Presenter inside a model - Collections - Strategizing - Value Objects - Traits - Steps - Too many parameters - Strongly-typed code - Decorating - Fluent interfaces - Repositories - Transformers Bude to pořádná nalejvárna, tak se na to připravte :) Kód: https://github.com/pehapkari/livestream/tree/master/2017-08-29-refactoring Odkazy použíté ve videu: - https://laracasts.com/series/whip-monstrous-code-into-shape - https://github.com/tightenco/collect - https://laravel.com/docs/5.4/collections - https://www.csie.ntu.edu.tw/~r95004/Refactoring_improving_the_design_of_existing_code.pdf - https://slideslive.com/38900570/usnadnete-si-praci-silne-typovanym-kodem-a-statickou-analyzou
Science & Technology
#PHP #refactoring #design patterns