Git Product home page Git Product logo

from-java-to-kotlin's Introduction

From Java to Kotlin Cheat Sheet

Page: http://fabiomsr.github.io/from-java-to-kotlin/

Programmatically inspired from swift-is-like-go and visually inspired from swiftislikescala

License

MIT

Develop

npm i # install dependencies to build tools
./make.coffee dev # build html

HTML is generated from cirru/index.cirru, cirru/functions.cirru and cirru/classes.cirru. Read those files and you would know what's happening.

from-java-to-kotlin's People

Contributors

ethertyper avatar fabiomsr avatar gibels-and-bits avatar kamilaborowska avatar lmller avatar tanadeau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

from-java-to-kotlin's Issues

A couple of issues

  • val name = null is of type Nothing?
  • The multi line string will contain a lot of whitespace if you don't call trimMargin
  • The when snippet is wrong. The branch isOdd(x) will never be triggered because it compares the value of the string x to the boolean result of the call. If you want to have method calls in the when branches, you need to pull the argument out of the when-expression.
  • The correct name for "Tuples" is "Data Classes" paired with "Destructuring". Tuples are something different.
  • The correct name for "Object instance" is "Constructor call"
  • You can leave out the body of a class if it's empty
  • The correct name for "Attributes" is "Primary Constructor"
  • A better name for "Multiple Constructors" is "Optional Arguments in Constructors (as alternative to overloaded constructors)"

Top navigation doesn't indicate in which section you're in

Take a look at the image below. As you can see there is no way of telling in which section you're in. Users might miss checking other sections if they don't realize these are navigation links.

image

My suggestion is to add a selected state, a line below the current section or a different background, to the current section.

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.