/
04.01.2018 at 12:00 am
Cuttings

Java Almost Requires An IDE

An IDE as an-almost compulsory requirement is not a desirable language trait.

... The consensus seems to be that Java was designed to be used with an IDE. Many design choices made the language overly verbose under the assumption that the IDE will generate code for you.

A few concrete examples:

  1. You are expected to make all fields private and use them via accessors (yea, I know, in OOP you should externalize as least as possible - but in Java even structish classes are expected to use the property convention), but there is no nice property syntax. The assumption is that the IDE will generate getters and setters for you, and automatically fold them to hide the clutter.

  2. Want to iterate over a loop? You'll need to create a for loop with the full type of the iterator object and all that other verbose glue. Again - the IDE will do that for you.

  3. Ridiculously long package names. (unconfirmed - I think I read somewhere that the original idea was to make them look like reversed domain names so that javac can reverse them and grab packages from the internet). Doesn't matter - just use the classes, and the IDE will add the imports for you (asking you to choose between several options if it can't decide by itself). ...

- Reddit

I use PyCharm and Sublime Text all the time as my primary coding IDEs. But I like that I don't need them, or any IDE, to write complex code in Python.

Hence why I find Java unattractive.


Filed under:
#
Words: 267 words approx.
Time to read: 1.07 mins (at 250 wpm)
Keywords:
, , , , , , , , ,

Other suggested posts

  1. 02.04.2023 at 01:03 pm / Witching May Die, But Not Litigation
  2. 31.07.2022 at 10:08 pm / Hades And (Non-Ending) Desk Jobs
  3. 31.12.2019 at 09:03 pm / Reflections - 43 Things I Learned or Did In 2019
  4. 14.09.2019 at 12:00 am / Narratives Hold
  5. 19.08.2018 at 02:13 pm / Saunter Not
  6. 11.07.2016 at 12:00 am / SublimeREPL's Slow Printing/Freezing - A Solution
  7. 24.10.2015 at 12:00 am / Salomon v Salomon is Antiquated
  8. 11.08.2015 at 12:00 am / Proper Denials and Bare Denials
  9. 12.06.2015 at 12:00 am / He Conquers Who Endures
  10. 29.11.2013 at 12:01 am / 美しい - Beautifully Woolly
© Wan Zafran. See disclaimer.