46

Java is too verbose? Pff, noooo...

Comments
  • 5
    Yeah, java nio doesn't even get better.
  • 6
    Not trying to defend Java but what looks verbose here is actually just Java using the decorator pattern. So blame the gang of four :P

    The File API of Java relies heavily on the use of the deocrater pattern by the way
  • 0
    Verbose... Just refactor it... I did that with MVVM... and some other stuff...

    https://github.com/allanx2000/...
  • 3
    In the case of exceptions I like Java, it's the right balance of information.
    C# barley says something. Just 'exception occurred'. I had to guess most time what is wrong.
    While PHP dumps the whole content of the ram close to 1GB of txt in the terminal.
    As far I encountered.
  • 1
    I've seen C# code that looked like hell.... Extreme nesting and extremely long names. Any why the fuck would you start method names with an uppercase letter? Damn...

    Java is just great, especially with those tools. 😯
  • 1
    @ctwx monkeys... No language can save us from them...
  • 1
    As a matter of fact it is. Verbose. But I think in a good way.
  • 2
    #compile with Cython
    with open("file.txt","w") as file:
    file.write("good things!")
    file.write("Oh! Cython is as fast as Java, if not faster")
  • 3
    @eisterman Yeah but you can't use Python everywhere you use Java
  • 1
    @AlgoRythm have you some example?
    I'm trying to force me learning Java with all my forces.... Without much results.... For me it would be very useful to have some examples of cases better in Java than in Python *-*
  • 1
    @eisterman The two lines of code above are from a Minecraft server plugin. It would be possible, yes, but much less practical to use Python.
  • 0
    @AlgoRythm only because Minecraft and the server was written in Java, no?
  • 0
    @eisterman built an Android app in Python
  • 0
    @billgates What app you need? I've done some pretty simple with Qt
  • 0
    @eisterman one that uses the Android SDK, specifically writes to DB, loads resources from storage, get your current location, n use Google API libraries.. which are packaged in jars 😁
  • 0
    @billgates all ok, with the Jar there is a truck for packing with the run-time but I never needed to use it
    Never understimate Python

    There are other examples of work that are "Java only"? Like some JVM-related work? The PVM is very tiny (sometimes ridiculous) in comparison with JVM...
  • 0
    @eisterman I don't need a truck though... That's a pretty big requirement...
  • 0
    @billgates sorry, trick....
    I'm switched from Swiftkey to gboard some days ago. It's terrible
  • 0
    @eisterman I actually did the opposite maybe a year ago... GBoard seems to work better for me...
  • 0
    Friend of mine just got his book for learning Java.. It's ~1300 pages :O
  • 0
    @Jappe That does not count, my Python mid-level book is 1300 pages :P
  • 0
    @eisterman wow😱 Why so many pages?!
  • 0
    @Jappe because Python is a language simple only at a first look, the OOP of Python is HUGE and often complicated (metaclasses!)
  • 0
    @eisterman Yes, there's definitely more to python than meets the eye.
Add Comment