GithubHelp home page GithubHelp logo

kotlin-utility's Introduction

概述

Kotlin实用代码整理。

说明

  • 提供多种多样的扩展方法和属性。扩展了字符串、集合、时间以及随机数等。
  • 提供一些字符串和文本的生成器。后续会提供更多泛用的生成器。
  • 提供多种数据类型的读取器的封装实现。可以以字符串/文件的形式写入/输出。
  • 提供一些常见的数据类、枚举和注解。不过有些可能就非常稀奇古怪了。
  • 提供一些常见的和不常见的Dsl(领域专用语言)。

规定

  • 除非有必要使用多行文档注释,否则一律使用单行文档注释。
  • 除非包含可选参数,或者与某一项强相关,否则不要在注释中引用项。
  • 除非是可以明确认为是重载/转化/工厂方法,或是非常简短的仅有一行表达式的方法,否则不要使用表达式写法。
  • 尽量明确声明公共方法和属性的返回类型。
  • 如果是扩展方法/属性,尽量显式加上this关键字。

kotlin-utility's People

Contributors

dragonknightofbreeze avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.