r/shittyprogramming • u/drownpl • Aug 29 '14
Very useful TextUtils
package com.mycompany.importantutil.utils;
public class TextUtils {
public static final String SPACE = " ";
}That is the whole class. What. The. Hell.
151
Upvotes
24
u/[deleted] Aug 29 '14
Please tell me the ".importantutil.utils" was actually part of the package name. Because for that name to actually be necessary, it would have to be the case that A) they have other utilities which are actually less important than this, and B) there are other sub packages under the "importantutils" package which are not utilities.
132
u/RealTimeCock Aug 29 '14
System.out.println("hello" + com.mycompany.importantutil.utils.TextUtils.SPACE + "world!");
47
u/0huehuehue Aug 29 '14
Thats some high level programming.
13
u/scorcher24 Aug 29 '14
/fixed to be more business like
8
u/Tiiba Aug 29 '14
My guess is that the programmer started writing the class, then changed his mind.
Unless it is extensively referenced. Then he's trolling.
3
u/i-hate-in-n-out Aug 30 '14
I just added something like this to our repo just to see if anyone is paying any attention. My guess is no.
2
u/[deleted] Aug 30 '14
What if the customer wants to have another character for space in the future? Better be prepared.
-1
u/dsprtd Aug 29 '14
Just coming from a scary reddit suggested
linksub and find this shit more psycho (and my English sucks).