Naming Is Hard--Not With The VarVar Pattern

In Java naming is not hard, you can conveniently name everything var:

class Var {
    String var;
    public Var() {
        this.var = "duke is varvar!";
    record VAR(Var var){
        public String getVar(){
        return this.var.var;
    public static void main(String... args) {
        var var = new VAR(new Var());


Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments