Hacker News new | ask | show | jobs
by whatshisface 4905 days ago
>what the heck are you writing that needs to be 120 chars wide?

Ever used java?

private static final Map<Class<? extends Persistent>, PersistentHelper> class2helper = new HashMap<Class<? extends Persistent>, PersistentHelper>();

if ((string1.toLowerCase().equals(Localization.getString('Yes')) || string1.toLowerCase().equals('yes')) && Cleaning.Verifier.isSafeInput(string2) && Cleaning.Verifier.isSafeInput(string3))

The first one I found on google, the second one is based on something one would normally expect to find in an average java codebase.

1 comments

True with Java/ObjC you get very view verbs/nouns in the same "sentence" length.

But ObjC and Java developers also have the habit of writing long undebuggable sentences like:

response = object.veryLongMethodName(object2,object3).anotherLongMethodName().yetAnotherLongMethodName(object4)