Тёмный

Testing and Refactoring Legacy Code 

IntelliJ IDEA, a JetBrains IDE
Подписаться 116 тыс.
Просмотров 28 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@michelchaghoury9629
@michelchaghoury9629 2 года назад
This man is awesome, really useful vid please intellj idea team we need more vids with this awesome instructor
@josephfifstones
@josephfifstones Год назад
I agree
@leandrosoares6
@leandrosoares6 2 года назад
Incrível. Apesar de não dominar bem o inglês mas consegui abstrair cada parte dessa incrível jornada de como testar um código legado. Obrigado pela excelente contribuição!
@ruixue6955
@ruixue6955 Год назад
4:55 1st piece of code 5:57 business rule 6:39 goal of working with legacy code: no test => cannot start refactoring immediately 6:48 => idea: write tests until we have 100% test coverage, then refactor 7:14 *challenge: retrofitting tests for existing code is not easy* 7:52 problem: 8:21 so the only thing we need to do: *automatic refactoring* 8:57 *if we change the public interface of the class or module, we are going to break the code* 9:21 if we *introduce state* => multi-threading problem 9:40 important tip: try best to *keep the public interface intact, but still try to isolate the dependencies* 9:49 *technique* : landscape of code 10:42 *shallow branch* - shortest path to the exit of the method 11:32 try to understand the small piece of code and write unit tests on it 12:34 build the knowledge of that code base *one test at a time* 12:40 in order to get the *deepest branch* of the code, need to *play the input data* 13:24 coding demo in practice
@vanteole9427
@vanteole9427 9 месяцев назад
my brother in christ you a saviour
@Quillraven
@Quillraven 2 года назад
Super interesting call and techniques and presented in a cool way 👍 Thank you for that!
@Chemaclass
@Chemaclass 2 года назад
Awesome, especially the last words. Thanks for sharing your wisdom! :)
@vadimprudnikov9072
@vadimprudnikov9072 2 года назад
Thanks for tips! I would consider further refactoring: move the loggedinuser parameter to another interface like Context#requireCurrentUser() that, in turn, will throw an exception, and inject that context to the service. As a result, the service won't care of the nullable user at all. I feel the code will become simpler and more RSP'ish :)
@aldosilva6
@aldosilva6 2 года назад
I've never started a refactor by a test. Very interest technique!
2 года назад
This is pure gold!!! Txs
@hemanhy
@hemanhy 2 года назад
Awesome session
@LaurentLaborde
@LaurentLaborde 2 года назад
i liked the quote about legacy test being worse than legacy code :D
@etienneboutet7193
@etienneboutet7193 2 года назад
Great presentation ! Glad to learn new Intellij tips
@Mohamed-uf5jh
@Mohamed-uf5jh 7 месяцев назад
Beautiful refactoring, thank you
@bigheat86
@bigheat86 2 года назад
I'm loving it!
@PabloSagoz
@PabloSagoz 2 года назад
Quite interesting and educational, Thanks!
@eduardssizovs6384
@eduardssizovs6384 2 года назад
Nice video! Thank you!
@krige
@krige 2 года назад
38:00 I would rather use Lombok @Builder annotation on the User class
@petrushoc
@petrushoc 2 года назад
Noice
@pedronavajas98
@pedronavajas98 2 года назад
😑
@iolumin
@iolumin 2 года назад
Beautiful refactoring, thank you 😊
@suvankarbose
@suvankarbose 2 года назад
Super session . Coding is really art !
@hermawanhermawan9843
@hermawanhermawan9843 2 года назад
Awesome! Thanks for sharing such a great knowledge.
@vixdc
@vixdc 2 года назад
@Sandro this is a cool presentation!
@tipazas
@tipazas 2 года назад
Superb, waiting for more.
@dvdmtchln
@dvdmtchln 7 месяцев назад
Loved it!! The SEAM tip was amazing!
@kid9807
@kid9807 2 года назад
Awesome
@RobertoFlores-dc3pb
@RobertoFlores-dc3pb 2 года назад
Gracias por otro video educativo e interesante como siempre.
@softwarengineeringwithfabri
@softwarengineeringwithfabri 4 месяца назад
Always amazing to watch Sandro refactoring code 🎉
@androidstudio1995
@androidstudio1995 Год назад
What an explanation! This is what i was looking for 👍
@lesgeeksducode5189
@lesgeeksducode5189 Год назад
Awesome!
@pedronavajas98
@pedronavajas98 2 года назад
😒
@pkcomments
@pkcomments 2 года назад
Came here to understand on how to use intelliJ to refactor legacy code. But ended up in watching a video on writing unit tests.
@emorozov
@emorozov 2 года назад
Hate unit tests😀
Далее
Developing Spring Boot Applications With Joy
1:20:03
Просмотров 4,4 тыс.
Introduction to Workspaces in IntelliJ IDEA
55:47
Просмотров 8 тыс.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Testing Legacy Code Elliotte by Rusty Harold
1:00:49
Просмотров 20 тыс.
Jonathan Blow on Refactoring
7:10
Просмотров 132 тыс.
The REAL SECRET To Refactoring!
16:15
Просмотров 22 тыс.
Martin Fowler @ OOP2014 "Workflows of Refactoring"
27:05
How Senior Programmers ACTUALLY Write Code
13:37
Просмотров 1,5 млн
Legacy Code Conversion - Computerphile
12:48
Просмотров 101 тыс.
JEP Explained. JEP 480: Structured Concurrency
52:07
Просмотров 3,2 тыс.
From Legacy Code To STATE OF THE ART DEVELOPMENT
20:04