filmov
tv
Extending A Java Library with Kotlin

Показать описание
The resulting tests were more signal than noise though, so this week we look at extracting useful and reusable abstractions from the raw code. On the way we learn some useful techniques to extend a Java library with Kotlin.
In this episode
00:00:31 Reviewing the current code
00:01:43 The tests are still flakey
00:07:44 Extract extension functions
00:10:28 Review the test
00:10:50 Running the server on a random unused port
00:11:24 Cleaning up the server
00:11:46 Extracting boilerplate into a lifecycle function
00:14:05 Parameterising all the things
00:17:27 Extract utilities into their own file
00:19:41 Commit
00:19:56 Using null as a default parameter value
00:22:11 Amend commit
00:22:17 Using our utilities in an add item acceptance test
00:23:19 Reviewing the new test
00:24:01 Commit
00:24:35 Review
This is part 89 of an exploration of where a Test Driven Development implementation of the Gilded Rose stock control system might take us in Kotlin. You can see the whole series as a playlist
and the code on GitHub
If you like this, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook
Extending A Java Library with Kotlin
C# for Java Programmers - Extension Methods
Multithreading in Java Explained in 10 Minutes
LibreOffice Extensions with Java Module support
11.4 Example: DirectoryVisitor extending java.nio.file.SimpleFileVisitor and an anonymous class
Java Records Classes as Extension Methods #java #shorts
Extending Eclipse JDT to Support Java Projects with a Bazel Build
How can you check is a class is an extension of another? - Cracking the Java Coding Interview
Spring Boot Using VSCode
What difference between a checked and an unchecked Exception? - Cracking the Java Coding Interview
Custom Java Instrumentation with OpenTelemetry
Spring Cloud Config Server - Add Java Cryptography Extension.
Java Inheritance - Subclass and Superclass Program #88
Objektorientierung #Vererbung #extends #coden #tutorial
Top 5 Machine Learning Libraries and Tools in Java #java #programming #coding #machinelearning
Visual Studio Code Extensions YOU NEED 👩💻 #programmer #technology #coder #software #coding
Navigate your code more quickly with the outline view!
Run Java program in Visual Studio Code | VsCode extension for java programming in VsCode
Try this VSCode ChatGPT extension - I think you will like it. #codegpt #vscode #gpt3
Helpful vscode extension for developer
How To Master JavaScript
Fixed Live Server Problem In Visual Studio Code!#vscode #liveserver
7 Best VSCode Extensions
IntFunction-The Perfect Use Case #java #shorts #coding #airhacks
Комментарии