9

//Doing $hit to get stickers
Rant r = new Rant();
if(r.isSeen()){
if(r.PLUS < 30){
r.plus();
} else{
r.ignore();
}
}

Comments
  • 2
    has commented on line 4:
    “Ternary would look much better here.”
  • 2
    has commented on line 2:
    “No constructors for class Rant? We can’t cover the entire path below.”
  • 2
    @growling How about:
    for ; r.PLUS <= 30; r.plus() {}
  • 2
    How about slapping some frameworks on there, maybe some DI and an ORM? I'd also implement the AbstractRantBuilderFactoryAbstractFactoryImpl to make things a bit more decoupled.
  • 2
    That JavaScript tag ...
  • 1
    Eval(r / 0);
  • 1
    Wait, so you are initializing a rant object without ever speciafieing a identifier for the specific rant to be plussed. That doesnt work
Add Comment