-
Backend:
- Spring Boot - Java-based framework for building the application
- Spring Data JDBC - For data persistence and repository implementation
- Spring MVC - For handling HTTP requests and REST endpoints
- H2 database - for storing data
-
Frontend:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sealed interface Creature | |
| data class Cthulhu( | |
| val madnessLevel: Int, | |
| val isAwakened: Boolean | |
| ) : Creature | |
| data class Kraken( | |
| val length: Double, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import kotlin.random.Random | |
| data class Note(val pitch: Int, val duration: Double) | |
| class SonicPiDarkHouseGenerator { | |
| private val scale = listOf(60, 63, 65, 67, 70, 72) // C minor pentatonic scale | |
| private val rhythms = listOf(0.25, 0.5, 1.0) // Sixteenth, eighth, and quarter notes | |
| fun generateMelody(length: Int): List<Note> = | |
| List(length) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##| Generated Sonic Pi code for Dark House: | |
| use_bpm 120 | |
| live_loop :atmos_pad do | |
| use_synth :dark_ambience | |
| play chord(:C3, :minor), release: 8, amp: 0.4 | |
| sleep 8 | |
| end |
IntelliJ IDEA Debugger Tips & Tricks
Debuggers are commonly used to locate and fix bugs. Though, how long does it take to solve an issue? Debugging isn’t a very productive process, but there are ways to make it more efficient in IntelliJ IDEA. In this talk, Anton will demonstrate various debugger features, including not-so-standard ones, like:
- Remote debugging
- Lambda breakpoints
- Stream chain tracing
- Altering program behavior
- Emulated method breakpoint
- Evaluate and log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data class Book(val isbn: String, val title: String, val pageCount: Int) | |
| fun main() { | |
| val books = listOf( | |
| Book("1617293296", "Kotlin in Action", 360), | |
| Book("1680506358", "Programming Kotlin", 450), | |
| Book("1801815720", "Kotlin Design Patterns and Best Practices", 356), | |
| Book("1492082279", "Java to Kotlin", 300), | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //TestApplicaiton.kt | |
| fun main(args: Array<String>) { | |
| val application = Application.createSpringApplication() | |
| application.addInitializers(AbstractIntegrationTest.Initializer()) | |
| application.run(*args) | |
| } | |
| //AbstratIntegrationTest.kt | |
| import org.junit.runner.RunWith | |
| import org.springframework.boot.test.context.SpringBootTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //lazy singleton | |
| object Singleton { | |
| class Something | |
| val INSTANCE by lazy { Something() } | |
| } | |
| // filtering positive integers |