The library that helps you remember about things done bad. With ShitLib you will be always aware of the shitty code inside your application.
Are you writing unwanted code, antipatterns, magic numbers? Are you scared about what you are doing? Use ShitLib to refer your shitty code so you will remember it. How? Remove ShitLib and your code will not compile anymore until you will remove all of the shitty code.
Oh your boss forced you to get the first element of a list and you know that it's wrong: You can use OhShit!
import static io.github.shitlib.java.OhShit.*;
class MyBeatifulClass {
List<String> elements;//with some elements inside
void iDontWantDoThisButWeMustReleaseASAP() {
String element = elements.get(_0);//<--- OhShit Constant
doSomeThing(element);
}
void doSomeThing(String element) {
//everything
}
}Maybe are you thinking where is the convenience in using this lib. It's simple, this is the most useful library when it is deleted. After that your project will not compile and you will be immediately aware of what to do. Fix it!
- xx-02-2018 First release on maven central repo