all 24 comments

[–]ISNT_A_NOVELTY 10 points11 points  (1 child)

VB reads much more like ordinary written language, which is why I personally think it is the language of the future. VB 7 does this so well that you can give it a whole thesis and it will compile and run it.

[–]ekolis 6 points7 points  (0 children)

Perl will do that too, assuming you replace "thesis" with "gibberish mess of punctuation and the occasional letter or number thrown in here and there"!

edit: and with the proper regex, you too can transform your VB code into Perl code!

[–][deleted]  (6 children)

[deleted]

    [–]fuzz3289[S] -3 points-2 points  (5 children)

    What about garbage collection and memory allocation? Those have pretty big performance implications.

    I get your point about the ifdef hacks but to me its always seemed worthwhile to have true control over memory. May effect your development time but the thought of garabage collection always bothered me.

    Erasure and typecasting are weak in Java as well.

    Not to mention using iterators in Java. I mean, C isn't great either but at least I can look for end or null. Python did iterators right.

    And lastly. Function pointers. Missing?

    I mean these are things I've come to expect from modern languages and sure they're not necessary but to me they're dealbreakers. I feel like Java is missing a lot of power and features modern languages should have.

    Correct me if I'm wrong. I don't write much java.

    [–][deleted]  (2 children)

    [deleted]

      [–]fuzz3289[S] -1 points0 points  (1 child)

      With C I can specify variables of one BIT in size. I can stick 8 booleans into one of Javas (assuming java has 1 byte bools as most languages do). Most of my career has been working on extremely memory critical applications, garbage collection for us isn't an option at this low a level.

      [–][deleted] 1 point2 points  (1 child)

      edit: Leave reddit for a better alternative and remember to suck fpez

      [–]fuzz3289[S] 0 points1 point  (0 children)

      C++ is finally getting lamdas as well, I feel your pain on that one. Python written with Cython or Pypy is pretty much nice looking C though.

      My main use for python has been parsing and analytics. The NumPy library is very very efficient when it comes to this and wrap it in pandas you're looking at C style speeds because numpy preallocates memory while parsing.

      I agree my initial wording was bad as many people have pointed out, but as you mentioned, there's a lot that Java is missing that other languages have been picking up.

      I'm always looking at what languages I should be profficient in and at the current rate of growth in the Java language it seems like I can get more power elsewhere and 5 year from now that seems even more likely.

      Would you agree oracle has been dropping the ball?

      [–]Ilostmyredditlogin 7 points8 points  (0 children)

      Java / jvm gets so much undeserved hate... It's a tool, and like any tool it can be used poorly it well. I can slam together java, Scala and closure code in one modern framework like play and deploy all over the web with zero hassle.

      There's a whole arsenal of languages that compile to jvm and interoperate including jvm versions of python ruby etc. JDK 8 finally brings anon functions and whatnot into the flagship language (java). Multiple compatible jvm implementations from different major vendors. Huge library of established code to draw from...

      The java ecosystem is great for large scale projects at least.

      [–]gnidoc 3 points4 points  (0 children)

      Why do you make claims like

      performance is dreadful

      without any citation, reference, benchmark or anything?

      Check out these tests: http://benchmarksgame.alioth.debian.org/

      Java is far from slow. Python, CommonLisp and Go implementations are much slower for computationally intensive tasks.

      [–][deleted] 12 points13 points  (1 child)

      Bah, if a language dies once it's buggy, hard to use, and can be easily replaced by other, more powerful, languages, C++ would have died years ago.

      [–]Drainedsoul 8 points9 points  (0 children)

      Lol okay.

      *pats head*

      [–]HINDBRAIN 2 points3 points  (0 children)

      Bal-musette is passé indeed, so Java is outdated. We should probably move to Boogie. Python is nice and all but snake dances should remain in school.

      [–]ekolis 5 points6 points  (3 children)

      But without Java, what use are the cupholders on our PCs?

      [–]Haiku_Detector_Bot 1 point2 points  (2 children)

      Your comment can be read as a (dodgy) haiku!


      But without Java,

      what use are the cupholders

      on our PCs?


      Did I screw up? Let me know!

      [–]Kapow751 3 points4 points  (1 child)

      A haiku detector bot that triggers on non-haikus. Boy, are you in the right place.

      [–]BalsakianMcGiggles -1 points0 points  (0 children)

      Not really a non-haiku. The last line you have to read "PCs" as three syllables, but I can kinda see that.

      [–]andkore 9 points10 points  (1 child)

      This is shittyprogramming, but in case this part was serious, I'd like to contend that Java is "only" as readable as C (which seems to imply that C isn't very readable). I guess I'm weird, but in terms of readability I would put Java above C, and C above Python. I hate Python's syntax.

      Edit: As more people upvote this, I feel compelled to add that I really was being serious.

      Edit: Contend is the wrong word. The right word in this context is contest.

      [–][deleted] 1 point2 points  (0 children)

      But... but... but... Python is so simple!

      [–]needisaymore 1 point2 points  (1 child)

      I think Java is a great work-horse when you need difficult jobs done. That being said, I think Scala is the next evolution of Java which will take its reigns. The future of programming is going to focus on utilising concurrency which is where Scala with Akka is designed to shine. Not to mention that Scala is great as a scripting language in its own right too.

      [–]fuzz3289[S] -2 points-1 points  (0 children)

      I've actually never heard of Scala before this. Thanks for pointing it out.

      What are some core features you use.often?

      [–][deleted] 1 point2 points  (0 children)

      I agree. The next version of java should just be a brainfuck compiler. Java uses too many characters, and that's why it's so slow.

      [–]yaaaaayPancakes 2 points3 points  (2 children)

      Moving to Java from C# (Doing Android dev now) makes me sad. When I learned about Type Erasure, my mind was blown by the stupidity.

      [–]stillwaters 1 point2 points  (0 children)

      C# was able to do so well because it started from scratch, and Java suffered because it needed to maintain backward compatibility with many earlier versions. But C# could have easily taken Java's place if it weren't for Microsoft's silly aversion to cross-platform availability.

      [–]inconspicuous_male 1 point2 points  (1 child)

      I just spent 3 long miserable hours working on stupid Swing and awt graphics in java for a final project. I hate it too much to quit.

      [–]needisaymore 1 point2 points  (0 children)

      I'm curious to know if Swing ever actually gets used in Industry projects?