Skip to content

Instantly share code, notes, and snippets.

View rmpestano's full-sized avatar

Rafael Pestano rmpestano

View GitHub Profile
@rponte
rponte / Thoughts_on_being_a_programmer
Created August 24, 2012 11:25
Thoughts on being a programmer
Thoughts on being a programmer
Don't be an asshole.
Simple code is hard to write.
Exquisitely simple code is exquisitely hard to write.
Just because it's easy to understand doesn't mean it was easy to write.
In fact, the easier it is to understand, the harder it probably was to write.
There are many ways to do something.
The first way you think of is highly unlikely to be the best way.
Anyway, there probably is no best way - just lots of ways that are differently good.
@rponte
rponte / numberOfViewsInSession_vs_numberOfLogicalViews.markdown
Created June 13, 2012 02:56
Trying to understand the difference between JSF numberOfViewsInSession and numberOfLogicalViews

Context Initialization Parameters (Mojarra)

  • com.sun.faces.numberOfViewsInSession - Defaults to 15. This parameter defines the maximum number of JSF views stored in the session for per logical view. The map used to store the views uses an LRU algorithm to keep the map from growing beyond the configured value.
  • com.sun.faces.numberOfLogicalViews - Defaults to 15. This parameter defines the maximum number of logical views to store per session. The map used to store the logical views uses an LRU algorighm to keep the map from growing beyone the configured value.

Summarizing

Logical views are best defined as top level view that may have one or more actual views inside