8,613 reputation
22153
bio website glenpeterson.blogspot.com
location United States
age
visits member for 2 years, 9 months
seen 11 hours ago

Java/Web Application Architect, Scala enthusiast, Clojure fan, seeker of knowledge.

The new "On Hold" feature of SE that gives people more of a chance to improve poorly worded questions before they are closed is sweet!


May
22
awarded  Famous Question
May
21
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
added 427 characters in body
May
21
comment Is it okay to go against all-caps naming for enums to make their String representation simpler?
@codebreaker toString() is called implicitly when concatenating strings. Overriding toString() on some enums meant that that sometimes I could just <input type='checkbox' value=" + MY_CONST1 + ">, and sometimes I had to remember to call <input type='checkbox' value=" + MY_CONST1.name() + ">, which led to errors.
May
21
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
deleted 187 characters in body
May
19
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
added 53 characters in body
May
19
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
added 331 characters in body
May
19
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
added 331 characters in body
May
19
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
added 223 characters in body
May
19
revised Is it okay to go against all-caps naming for enums to make their String representation simpler?
added 223 characters in body
May
19
answered Is it okay to go against all-caps naming for enums to make their String representation simpler?
Apr
24
revised Is String processing more complex than number processing in programming languages?
Fixed to say 1-4 bytes - thank you @gnasher729
Apr
24
revised Why doesn't Java 8 include immutable collections?
deleted 15 characters in body
Apr
24
revised Why doesn't Java 8 include immutable collections?
added 112 characters in body
Apr
24
comment Is String processing more complex than number processing in programming languages?
@gnasher729 thank you for "grapheme clusters!" That adds some delightful complexity! UTF-8 uses up to 6 bytes to store a character (check the link I included).
Apr
24
revised Is String processing more complex than number processing in programming languages?
added 333 characters in body
Apr
23
revised Is String processing more complex than number processing in programming languages?
added 495 characters in body
Apr
23
revised Is String processing more complex than number processing in programming languages?
added 495 characters in body
Apr
23
answered Is String processing more complex than number processing in programming languages?
Apr
14
awarded  Good Question
Apr
3
awarded  Nice Question