最新消息:请大家多多支持

Oreilly – Java to Kotlin

其他教程 dsgsd 152浏览 0评论

MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 4 Lessons (2h 50m) | Size: 2 GB

The Gilded Rose is a classic refactoring kata, available in many languages athttps://github.com/emilybache/GildedRose​-Refactoring-Kata. In this video series we start with the Java version and show how to migrate it to Kotlin as well as refactoring the procedural code into both object-oriented and functional styles.The rules of the exercise are here.

Part 1 takes the procedural Java code and ends with a nice OO solution, using inheritance to represent the different types of item. Part 2 replaces the inheritance with composition, getting perhaps closer to the heart of the domain. Part 3 removes the mutation inherent in the procedural code to give a nice functional solution. Part 4 is a bonus refactoring, starting from the beginning to see how far the update code can be improved while making no changes to any other files.

The code is available athttps://github.com/dmcg/gilded-rose-kata


Password/解压密码www.tbtos.com

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » Oreilly – Java to Kotlin

您必须 登录 才能发表评论!