在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):alvinj/KotlinQuickReference开源软件地址(OpenSource Url):https://github.com/alvinj/KotlinQuickReference开源编程语言(OpenSource Language):Shell 100.0%开源软件介绍(OpenSource Introduction):Kotlin Quick ReferenceThis file is intended for anyone interested in contributing to the Kotlin Quick Reference book. The purpose of this book is to provide a very brief (ultra-brief!) introduction to the Kotlin programming language. The idea is to show Kotlin syntax and examples with as few words as possible so that experienced developers who are new to Kotlin can find what they need quickly. If it helps to have a model in mind, this book is something like a large cheat sheet, and it’s similar in purpose to the book, Scala for the Impatient. Target audienceThe target audience for this book is someone who already knows languages like Java and Scala and just needs a very quick reference to Kotlin’s syntax and some corresponding examples so they can be productive. For instance, I assume the reader already knows what classes are and what they’re good for; I make no attempt to discuss OOP theory. The idea of the book is more like, “Here is Kotlin’s syntax to create classes, constructors, secondary constructors, and methods, and here are a few examples of each.” For the Android chapters I assume the reader has already developed Android applications with Java, and just needs to see what’s different with Android/Kotlin. Because of that target audience, this book is not intended for someone who needs a lot of explanation or discussion. If someone needs an “Introduction to Kotlin” book, there are several good books for that audience, including Kotlin in Action. On a personal note, I’m creating this for a future version of myself. What happens to me is that I often work with a technology like Kotlin for a while, then have to get away from it for a while, and a resource like this is helpful for when I start working with it again some time in the future. Common needs for me are/were:
ContributingIf you’re interested in contributing to this book, please read the notes that follow about writing style, coding standards, examples, and building the book and website. To find areas where you can contribute:
I added a Contributors chapter to the book, and for those who contribute I’ll be glad to link to your Twitter or Github profile. WritingThe writing style for this book should be very terse, “minimalist” if you prefer. I usually start by writing a few source code examples, and then put as few words around it as necessary. Again, the target audience is an experienced developer who just needs to see the syntax and examples. In regards to the Markdown files:
In regards to writing:
Some of the current lessons are a little too verbose, especially the early ones. For examples of my preferred minimalist writing style for this book, see these lessons:
Good examples to use in a bookIf you need ideas for source code examples, I find that programmers can relate to examples like these:
Coding standardsMy coding standards in this book are:
Build notesI use the Gitbook command line tool to build the book, including the e-books and website. A few notes about building different versions of the book:
As a little more information about building the book, per the Gitbook website, here are the commands for building different ebook versions:
See that web page for more details. Why the lessons are numberedMy writing tools are pretty primitive, I just use TextMate or SublimeText when writing. Therefore, I started numbering the lessons so I could keep them in order in the “list of files” view in those editors. If there’s a better way to keep files in order while writing I’m open to suggestions. (I used to use a Mac app named Scrivener that keeps chapters/lessons in order, but I didn’t care for its text editor, and it’s also a paid tool.)
Amazon links in the bookWhen I link to a book on Amazon, I use the shortened links that they generate for me as part of their affiliate program. I try not to overdo that, but I also hope they’ll generate a little bit of money to help with the costs of the book’s website (paying for domain names and hosting). As a matter of integrity, I only link to books that I have written or otherwise like. Alvin Alexander |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论