Link Details

Link 91964 thumbnail
User 301813 avatar

By anlarionov
via community.livejournal.com
Published: Jul 02 2008 / 16:44

There are cases where functional style is the most appropriate, and among these cases are those where it can be used in java without sacrificing readability. These cases are exactly what I'll discuss. I'll also discuss refactoring of 'unconsciously functionalish' code (like new AndFilter(new FieldMatchesPatternFilter(new FieldReference("name"), ".*John.*"), new BlaBlaBlaFilter())) for readability.
  • 13
  • 0
  • 1310
  • 209

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.