Hacker News new | past | comments | ask | show | jobs | submit login

You're being obtuse just to be obtuse. This is exactly the type of nonconstructive feedback that does no one any good.

There is no difference in your python code than the Java code that someone would write:

  if(comment.getText().toLowerCase().contains("first post!"))
  {
    comment.getUser().ban();
  }
Java doesn't require a class, it doesn't require a method, it doesn't require a factory. There is literally zero difference between the python example and my Java example except the syntax between the languages.

You just felt the need to unnecessarily obfuscate the code to suit your argument.




Do you disagree that Java typically requires the additional boilerplate I showed?


I believe my last post clearly showed that I disagree.

There is no 'boilerplate' required with Java. Anyone can obfuscate Java, or any language, and make code that is overly and unnecessarily complicated. Some do it because they don't know better. Some, like yourself, just do it to be an ass.


I wasn't doing it to be an ass. Even if you are allowed to manipulate the class function you're dealing with (and so spare new classes), most java code does look like the example I gave: lots of verbiage, having to create special classes (including [verb]-er classes). Very, very unpleasant to read, and not big on beauty either.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: