上一页 1 ··· 171 172 173 174 175 176 177 178 179 ··· 498 下一页
摘要: Asynchronous code often uses conditions to determine when a block of code should finish running. This lesson walks through writing a doneIf operator w 阅读全文
posted @ 2020-11-04 01:07 Zhentiw 阅读(126) 评论(0) 推荐(0)
摘要: Apps often have scenarios where one event controls another. In operators, this requires passing one broadcaster in and using it to control another bro 阅读全文
posted @ 2020-11-03 16:45 Zhentiw 阅读(109) 评论(0) 推荐(0)
摘要: After a broadcaster is "done", starting it up again requires calling the broadcaster with the same listener. This creates a kind of "async recursion" 阅读全文
posted @ 2020-11-03 01:22 Zhentiw 阅读(99) 评论(0) 推荐(0)
摘要: Controlling when a broadcaster starts and stops gives you complete control over your broadcasters. This let's you hook multiple pieces of UI together 阅读全文
posted @ 2020-11-02 19:26 Zhentiw 阅读(139) 评论(0) 推荐(0)
摘要: Chrome DevTools provide many handy utility functions that we can use to make debugging faster and easier so we can fix the bug and move on. In this le 阅读全文
posted @ 2020-11-02 16:30 Zhentiw 阅读(87) 评论(0) 推荐(0)
摘要: Sometimes you encounter a backend issue which seems to occur only on your computer, with a very specific sets of headers, cookies etc. Because of that 阅读全文
posted @ 2020-11-02 16:27 Zhentiw 阅读(114) 评论(0) 推荐(0)
摘要: In this lesson, we use CSS variables with calc and hsl to implement a rudimentary dark mode. We can do this by adjusting the lightness of our colors b 阅读全文
posted @ 2020-11-02 16:22 Zhentiw 阅读(134) 评论(0) 推荐(0)
摘要: In Kotlin, you are able to extend a class. Just like add prototype in Javascript. fun toSentenceCase(a: String): String { return a[0].toUpperCase() + 阅读全文
posted @ 2020-11-01 22:20 Zhentiw 阅读(86) 评论(0) 推荐(0)
摘要: import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import java.util.* class AgeCalculation() { fun getAge(dob: Calendar): Int { 阅读全文
posted @ 2020-11-01 22:00 Zhentiw 阅读(165) 评论(0) 推荐(0)
摘要: In Java, when you write code in try(...), if exception throw, the resource will be closed automactially: This is not necessary in Kotlin fun printFile 阅读全文
posted @ 2020-10-30 01:39 Zhentiw 阅读(178) 评论(0) 推荐(0)
上一页 1 ··· 171 172 173 174 175 176 177 178 179 ··· 498 下一页