Skip to content

DavidBertet/kotlin-vs-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin vs Java

Build Status

Dependabot Status

License

Web page: https://davidbertet.github.io/kotlin-vs-java/

Based on: fabiomsr/from-java-to-kotlin

Develop

  1. Install dependencies npm install
  2. Generate HTML npm run build

HTML generation

First, the cirru templates (in ./cirru) are combined with the header and footer (./cirru/header.cirru + ./cirru/{FILE}.cirru + ./cirru/footer.cirru). Next, the generated cirru templates from the first step (in ./cirru/generated) are converted into HTML (in ./).

CI/CD

TravisCI automatically regenerates HTML files on each merge commit made to the master branch. Therefore, HTML files must not be committed manually (e.g. in pull requests).

Adding new code snippets

The code snippets reside in the code/java and code/kotlin folders. They are referenced in cirru (./cirru) templates this way:

.lang Java
pre.code $ code (@insert ../../code/java/dsl/04.java) $ :class java

How to contribute

Fork repository, make changes, send a pull request. I will review your changes and apply them to the master branch shortly, provided they don't violate the quality standards. Before sending your pull request please check that the HTML is generated correctly:

./make.coffee dev

Got questions?

If you have questions or general suggestions, don't hesitate to submit a new Github issue.

About

Kotlin vs Java comparison with side-by-side code snippets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 63.4%
  • Cirru 18.8%
  • Java 8.4%
  • Kotlin 6.0%
  • CSS 2.5%
  • CoffeeScript 0.9%