Your IDE: tool or crutch? Take the quiz…

Image for post
Image for post
Photo by Matt Artz on Unsplash

Auto-complete

    ClassWithLongName obj = new ClassWithLongName(param1, param2);
    if (index > maxIndex) {
String msg = index + " is beyond maximum of " + maxIndex;
throw new IndexOutOfBoundsException(msg);
}
    if (index > maxIndex) {
String msg = index + " is beyond maximum of " + maxIndex;
IndexOutOfBoundsException e =
new IndexOutOfBoundsException(msg);
throw e;
}

Auto-generate

    private SomeType propertyA = new SomeType(initParam);    public SomeType getPropertyA() {
return (SomeType) this.propertyA.clone();
}
public void setPropertyA(SomeType setting) {
if (SomeType.isCurrentlyValid(setting)) {
this.propertyA = (SomeType) this.propertyA.clone();
} else {
throw new IllegalArgumentException("Bad setting");
}
}
  @BeanProperty var propertyA: SomeType = SomeType(initParam)
    @Getter @Setter SomeType propertyA = new SomeType(initParam);
    @Override
public int hashCode() {
return (219 + this.negRad);
}
    @Override
public int hashCode() {
int hash = this.radicand;
if (this.d1mod4) {
hash--;
} else {
hash *= -1;
}
return hash;
}

Stylistic warnings

In conclusion

Image for post
Image for post
Photo by Lance Grandahl on Unsplash

is a composer and photographer from Detroit, Michigan. He has been working on a Java program to display certain mathematical diagrams.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store