- Hands-On Design Patterns with Kotlin
- Alexey Soshin
- 90字
- 2021-06-25 20:49:23
Naming conventions
As a convention, if your file contains a single class, name your file the same as your class.
If your file contains more than one class, then the filename should describe the common purpose of those classes. Use CamelCase when naming your files, as per the Kotlin Coding Conventions: https://kotlinlang.org/docs/reference/coding-conventions.html#naming-rules.
Actually, you don't have to write your code in a file for simple snippets. You can also play with the language online: try http://kotlinlang.org/ or use REPL and interactive shell after installing Kotlin and running kotlinc.
推薦閱讀
- 計算機網絡
- VMware View Security Essentials
- Java異步編程實戰
- Learning Docker
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- HTML5 移動Web開發從入門到精通(微課精編版)
- 匯編語言程序設計(第2版)
- Mastering C# Concurrency
- Serverless架構
- Nginx Lua開發實戰
- Programming Microsoft Dynamics? NAV 2015
- ActionScript 3.0從入門到精通(視頻實戰版)
- Exploring SE for Android
- 邊玩邊學Scratch3.0少兒趣味編程
- C語言從入門到精通(微視頻精編版)