Git Product home page Git Product logo

kotlin-vs-java's People

Contributors

anytimetraveler avatar dependabot-preview[bot] avatar driver733 avatar ethertyper avatar fabiomsr avatar gajwani avatar gibels-and-bits avatar kamilaborowska avatar lmller avatar navinpai avatar riadnov 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

kotlin-vs-java's Issues

Suggest!!!

Your project is very excellent. Especially the webpage with java and kotlin.But I find something is wrong with the code. As a newer,may be it's misleading.

For example:
wrong

Surely,You can do better for more honor.

Java Version & kotlin Version

Hi,
You've done a cool project!

Could you specify the version of two language. Maybe the codes should be re-organized by version in the future in order to avoid becoming obsolete.

For example, le chapter : Strings II
is true for java version < 13 but this feature (""" {formed String}""") is added in JAVA 13.

Regards

Coroutines

How about some coroutines? I don't think there's any other feature that makes Kotlin win by such a large margin as replacing a bunch of unwieldy, nested callbacks with clean sequential code.
Granted, it's not a one-liner example, but that is the problem with this kind of comparisons, the micro-scale differences in single-expression syntax aren't the things that make or break a language.

Titles in "Functions" tab do not match code

It seems like the titles for the "Functions" tab do not really correspond to their code examples. For example:

fun hasItems() : Boolean {
    return true
}

has nothing to do with its title "Null I"

Optional main args param

The Kotlin "Hello world" makes it kind of unclear how one can get command line arguments. Maybe have another "Hello, name" example that shows this?

Playing favorites?

At least to me, this site seems to be playing favorites to Kotlin over Java without declaring that anywhere (that I've found).

What I find off about this:

  • The site is titled "Kotlin vs. Java", even though alphabetically J comes before K, suggesting a focus on Kotlin.
  • The Java code in the Concurrency examples has obvious syntax errors.
  • The Optional feature of Java is completely ignored in the nullability examples.
  • Sometimes Lombock is used, sometimes it isn't, which either shows a lack of interest in consistency or in Java.
  • The site doesn't show any scenarios where Kotlin is worse.
  • The site also ignores the issues with calling Kotlin code from Java. And while the other way works much better, last I heard that there were still issues, especially when throwing annotation processing into the mix.

On the counterside, some examples do show Java in a better light, like Kotlin's removal of the tenary operator in favor of writing a full if else statement in one line.

CI

add ci

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.