Friday, June 20, 2014

[coding] Code Crime

Please, consider the following:

public enum EventType {

    SOME_EVENT,
    ANOTHER_EVENT;

    public long timeElapsed = -1; //and this fucking gets set at multiple places in the code
    //and why the fuck does this compile?!?

}


That is all.

When asked why we can't do this, a monstrous, unstoppable tide of righteous anger smashed into an immovable bastion of self control, and I ended up growling "Its an enum" through gritted teeth.

No comments:

Post a Comment