2

I have a little ask for you guys, If you need to start a Java project, Will you use kotlin or Just Java? I'm a little confused with this choice, so i need more visions

Comments
  • 3
    I love Kotlin. For me it is the best of all programming languages. So whenever I can I go for it.
    For me personally there is no reason anymore to use plain Java, but it depends on who works with me or if I have other restrictions
  • 0
    @danielspaniol really? I really want to programming in kotlin, but I never had seen a big project using kotlin (Sorry about that).
    I normally use Java with vaadin and spring, and I Saw kotlin can use this too, so i'm working in a small personal project (for the collage) and I' almost changing from Java tô kotlin, do you have some advice for me?
  • 3
    Why would i use something what will translate to java anyway?
  • 1
  • 1
    @RazorSh4rk functional paradigm, more active development and open source, easier to learn and not as archaic, also compiles to JavaScript, MUCH less boilerplate code just to name a few reasons.
  • 2
    @raphaelrossi to be honest I am no professional Java developer. At work we use .NET. But fur my university projects I use Kotlin whenever I can. I haven't looked for big projects but for my purposes it is the optimal language. Right now I build a Kotlin wrapper for Elasticsearch and Kotlins features make it so easy to build the API like I want it. As my firts bigger project with Kotlin we made a small 2D plattformer which worked great. I think for Spring Kotlin is almost better than Java
  • 5
    @RazorSh4rk also it doesnt compile to Java. Just like VB doesn't compile to C#
  • 1
    Once you use Kotlin you can't go back. I have been using it for 1.5 years now as my main language and it's awesome.
  • 1
    @RazorSh4rk Why would you write something if it translates to machine code anyway?

    Also, it's not true.
  • 1
    For any serious project I'd use java. Just because I trust my skills. I wrote few scripts in Kotlin but that's not enough for me to be certain I can code anything I want.
  • 1
    @RazorSh4rk Kotlin does not translate to Java. As Java, Kotlin compiles directly to JVM Bytecode.
  • 0
    If I had to work on a Java project? I'll leave the room and never return, is that an acceptable answer? :D
  • 0
    @Celes wow, why this mannnn
  • 1
    @raphaelrossi well for me the only reason that Java still exist is that business were working with it and it will cost to much to change. Sorry :(
  • 0
    @Celes Nice vision, what language do you use?
  • 0
    @raphaelrossi C++ but people think it's 'low level', if I want to replace java I'll say C#/Mono seems to be the perfect choice. Didn't find any advantage for Java against C#/Mono. Well if you have some time, give me some :p
  • 0
    @Celes since C/C++ has direct access to memory, allows inline asm, and compiler directives regarding use of machine dependant specifics, C/C++ is low level. You can use abstractions, or even get some toolkit providing garbage collection, but still, it's low level. On the other hand java, kotlin, python or even php don't allow such things and abstract whole memory management stuff away from you.

    Regarding java being kept alive because business uses it - that's false claim. Tons of serious stuff, unrelated to business uses it. But I think you should learn about COBOL since you brought up this argument. ;-)
  • 0
    @mt3o C++ doesn't restrict you, so you can do low level or high level, but people seems afraid thinking it's hard to learn. Well you'll need more time to 'master' it though. I wanted to know if there was any good point for Java if I compare it to C#/Mono, not that people still use it outside business :p it's used because it's popular, and it's popular also because you can get a job with it. Not only but that help a lot.

    Don't really have the time to learn another language right now sorry :/
  • 2
    If you have no time, than that's your problem, sorry ;-) just like my laziness to learn haskell. ;-)

    Why java when you know c#? Because license is better than with dot net, software is truly portable, probably more external packages, better IDE support (mono develop is just a toy compared to eclipse, eclipse is pile of shit compared to visual studio while visual studio is crippled compared to intellij). You could use Rider but that's using java-based IDE to develop in c# ;-)

    Java is not bound to Microsoft technologies (think of version control support in Microsofts team something vs git support in any other ide).
    There's no visual basic around here. :-D
    No dependencies involving P/Invoke.
    Strictier syntax (i hate linq expressions dropped here and there in my source code)

    However most important is - to do serious stuff - use the toolkit you know the best, whether it's dot net, java or whatever.
Add Comment