Unofficial WebLogic FAQ BareNaked Ladies @ Red Rocks: They put on a fantastic show
Aug 03

I’ll name that developer in 5 lines of code!

Groovy, Java, Perl, Tech Add comments

You know the feeling when you open up some code from a fellow programmer, and it says a lot about them?

Their code style speaks to you as does the style of an essay does.

My latest experience is looking at various Groovy code snippets. There have been two extremes that I have come across:

I like my Java, just with a twist

These folks are happy in Java land, and the code looks just like it. There are just a few things differing. Maybe the odd ‘;’ is left off of the statements. Here and there variables aren’t staticly typed. But, mainly, it looks like Java

I want to be different

Some of the guys who have really bitten into Groovy really try hard to have their code NOT look anything like Java. Everything is groovy-fied to the extreme.

This reminds me of some days when I was deep in the Perl community. Since the language gives you 55 ways to do something, you see even more contrasting styles. In that environment you could find the hacker, the one liner, the I have a Comp Sci degree so I code correctly!, the obfuscator, and more.

Fun :)

7 Responses to “I’ll name that developer in 5 lines of code!”

  1. Jason Carreira Says:

    Ughh… Great, so Groovy is expressive enough that it won’t just be one language, it will be 3 different languages, depending on who’s writing it. I’m just getting less and less excited about Groovy the more I read your posts about it.

  2. Dion Says:

    It depends on how you look at it.

    Java is OK in that most code looks similar (of course there are still many style differences).

    However *personally* that bugs me a little too. It is very practical, but it is restricting. With something more expressive I can be a lot more productive… however I *will* give that the productivity is just in the WRITE phase, and it could affect the READ phase (i.e. maintainence).

    If I want to write Groovy, I am more inclined to write Groovy, and not Java-without-semicolons. I want to take advantage of all of the dynamic features…. but it is a personal thing.

  3. mynextblog123 Says:

    Very nice site indeed

  4. Anonymous Says:

    forgot the link to my blog http://mynextblog123.blogspot.com

  5. WILLIAMS Says:

    Hi!
    payday advances [url=http://loans.urllogs.com/payday-advances]payday advances[/url] cash advance loan [url=http://loans.urllogs.com/cash-advance-loan]cash advance loan[/url] payday cash advance [url=http://loans.urllogs.com/payday-cash-advance]payday cash advance[/url] cash advances [url=http://loans.urllogs.com/cash-advances]cash advances[/url] no fax payday loan [url=http://loans.urllogs.com/no-fax-payday-loan]no fax payday loan[/url] If you’ll excuse me, I really should be off now.

  6. keith Says:

    she had a pretty gift for quotation, which is a serviceable substitute for wit.

  7. fyjsrh Says:

    RMWiXI erdwmouvxktk, [url=http://ptytpsxrnvnh.com/]ptytpsxrnvnh[/url], [link=http://fwhctiuaqvfy.com/]fwhctiuaqvfy[/link], http://tdmjtsxyohfj.com/

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'