Click here to Skip to main content
15,913,055 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Why stick to just one database? Pin
johnsyd25-Jun-13 15:15
johnsyd25-Jun-13 15:15 
GeneralRe: Why stick to just one database? Pin
johnsyd25-Jun-13 15:10
johnsyd25-Jun-13 15:10 
GeneralHow To Use Session Variables Pin
AnalogNerd18-Jun-13 3:43
AnalogNerd18-Jun-13 3:43 
GeneralRe: How To Use Session Variables PinPopular
OriginalGriff18-Jun-13 5:04
mveOriginalGriff18-Jun-13 5:04 
GeneralRe: How To Use Session Variables Pin
imagiro19-Jun-13 7:53
imagiro19-Jun-13 7:53 
GeneralRe: How To Use Session Variables Pin
AnalogNerd19-Jun-13 7:56
AnalogNerd19-Jun-13 7:56 
GeneralRe: How To Use Session Variables Pin
imagiro19-Jun-13 21:55
imagiro19-Jun-13 21:55 
GeneralRe: How To Use Session Variables Pin
ClockMeister20-Jun-13 2:03
professionalClockMeister20-Jun-13 2:03 
GeneralRe: How To Use Session Variables Pin
BrainiacV20-Jun-13 5:44
BrainiacV20-Jun-13 5:44 
GeneralRe: How To Use Session Variables Pin
jcmaida20-Jun-13 6:10
jcmaida20-Jun-13 6:10 
GeneralRe: How To Use Session Variables Pin
Bob100020-Jun-13 4:44
professionalBob100020-Jun-13 4:44 
GeneralRe: How To Use Session Variables Pin
User 483504720-Jun-13 3:25
User 483504720-Jun-13 3:25 
GeneralRe: How To Use Session Variables Pin
RafagaX20-Jun-13 4:44
professionalRafagaX20-Jun-13 4:44 
GeneralRe: How To Use Session Variables Pin
Member 882490521-Jun-13 3:28
Member 882490521-Jun-13 3:28 
GeneralRe: How To Use Session Variables Pin
AnalogNerd21-Jun-13 4:01
AnalogNerd21-Jun-13 4:01 
GeneralA Brilliant Replacement of float.toFixed(2) Pin
TNCaver17-Jun-13 9:25
TNCaver17-Jun-13 9:25 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
LloydA11117-Jun-13 9:33
LloydA11117-Jun-13 9:33 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
Marc Clifton18-Jun-13 5:30
mvaMarc Clifton18-Jun-13 5:30 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
AlphaDeltaTheta18-Jun-13 17:17
AlphaDeltaTheta18-Jun-13 17:17 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
Brisingr Aerowing19-Jun-13 3:08
professionalBrisingr Aerowing19-Jun-13 3:08 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
TNCaver20-Jun-13 5:06
TNCaver20-Jun-13 5:06 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
Bob100020-Jun-13 4:46
professionalBob100020-Jun-13 4:46 
GeneralRe: A Brilliant Replacement of float.toFixed(2) Pin
TNCaver20-Jun-13 5:12
TNCaver20-Jun-13 5:12 
GeneralDatetimes in java (again) Pin
V.13-Jun-13 1:22
professionalV.13-Jun-13 1:22 
GeneralRe: Datetimes in java (again) Pin
BotCar13-Jun-13 1:38
BotCar13-Jun-13 1:38 
"YYYY" means week years.

Quote:
A week year is in sync with a WEEK_OF_YEAR cycle. All weeks between the first and last weeks (inclusive) have the same week year value. Therefore, the first and last days of a week year may have different calendar year values.

For example, January 1, 1998 is a Thursday. If getFirstDayOfWeek() is MONDAY and getMinimalDaysInFirstWeek() is 4 (ISO 8601 standard compatible setting), then week 1 of 1998 starts on December 29, 1997, and ends on January 4, 1998. The week year is 1998 for the last three days of calendar year 1997. If, however, getFirstDayOfWeek() is SUNDAY, then week 1 of 1998 starts on January 4, 1998, and ends on January 10, 1998; the first three days of 1998 then are part of week 53 of 1997 and their week year is 1997


SimpleDateFormat[^]
GregorianCalendar[^]

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.