摘要:
For example we have tow Entities: package com.virtualpairprogrammers.theater.domain import javax.persistence.* @Entity data class Performance( @Id @Ge 阅读全文
摘要:
We want to only freeze the private variable when we get it and set it: class Cart { #items; constructor(items = []) { this.value = items; } set value( 阅读全文
摘要:
Morden Javascript allows us to write private and static class memebers. To do this, we need to install babel plugins: First, let see "static member": 阅读全文
摘要:
Let's see two code snippets which has same functionalities: No1: function Cart(items = []) { this.items = Object.freeze(items); this.add = item => { c 阅读全文
摘要:
In Java, you can use Autowired to init the service: @Autowired TheaterService theaterService In kotlin, it is different, you need to use 'lateinit var 阅读全文
摘要:
Many scenarios involve one task happening after another has completed. This lesson walks you through setting up "steps" which trigger one after anothe 阅读全文