/
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.

Source: Reddit
Filed under:
#
Words: 54 words approx.
Time to read: 0.22 mins (at 250 wpm)
Keywords:
, , , , , , , , ,

Potentially related:
  1. Consenting Pythonic Adults
  2. Reflections - 43 Things I Learned or Did In 2019

Other suggested posts

  1. 01.01.2025 at 07:41 pm / 2025 - The Perfectly-Squared Year
  2. 01.01.2025 at 05:29 pm / Choose To Be The Child of Philosophers
  3. 01.04.2023 at 11:27 am / Search Notes Fast: With Taskwarrior, jq & ripgrep
  4. 03.07.2022 at 05:15 pm / The Unpreparedness Apology
  5. 20.06.2022 at 01:56 pm / Cultists of Science
  6. 10.06.2022 at 07:44 pm / Teach Thy Tongue to Say: 'I Do Not Know'
  7. 27.08.2020 at 09:33 pm / Write Like You Play Tetris
  8. 04.06.2020 at 09:43 am / A Traveling Minstrel's Piano
  9. 16.12.2017 at 12:00 am / Sketch, Draft, Craft
  10. 28.09.2015 at 12:00 am / Mocking the Law - Excessive Judicial Discretion
© Wan Zafran. See disclaimer.