Click here to Skip to main content
15,888,579 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: How many values between 0 and 0? Pin
Richard Deeming17-Dec-19 0:28
mveRichard Deeming17-Dec-19 0:28 
GeneralRe: How many values between 0 and 0? Pin
TheGreatAndPowerfulOz17-Dec-19 5:05
TheGreatAndPowerfulOz17-Dec-19 5:05 
GeneralRe: How many values between 0 and 0? Pin
TheGreatAndPowerfulOz16-Dec-19 9:02
TheGreatAndPowerfulOz16-Dec-19 9:02 
GeneralRe: How many values between 0 and 0? Pin
raddevus16-Dec-19 9:10
mvaraddevus16-Dec-19 9:10 
GeneralRe: How many values between 0 and 0? Pin
TheGreatAndPowerfulOz16-Dec-19 10:07
TheGreatAndPowerfulOz16-Dec-19 10:07 
GeneralRe: How many values between 0 and 0? Pin
raddevus16-Dec-19 10:32
mvaraddevus16-Dec-19 10:32 
GeneralRe: How many values between 0 and 0? Pin
crystalgecko18-Dec-19 23:44
crystalgecko18-Dec-19 23:44 
GeneralRe: How many values between 0 and 0? Pin
kalberts19-Dec-19 0:28
kalberts19-Dec-19 0:28 
TheGreatAndPowerfulOz wrote:
But the set from 0 to 0 is not empty, there is one item in it: 0.
Usually, but not always.

The set of years from year 0 to year 0 is empty. Year -1 was immediately followed by year 1. There was no year 0.

Some people claim that this makes sense: There was no "year of Christ", the year before is birth was "year one before Christ" and the year after the birth was "year one". I have never met anyone who agrees that he was born in "year one before Christ", on Christmas day, neither will Christians agree that year one started 358 days before his birth. But the official view of the Christian church is that there was no year 0. This is so strong that even when non-Christians prefer to use the "Common Era" and "Before Common Era" rather than AD and BC, year 0 is skipped. Even in version 1.0 of the XML Schema language defined that for types date and dateTime, there is no year 0. (This definition was modified in later versions.)

The elevator in our office building is not very biblical of nature, yet there is no floor 0. It goes directly from floor 1 to floor -1. Since most of us are closer to mathematicians than to theologicans, to ease our minds we have declared that there is a floor 0, but it is virtual, and that is why the elevator doesn't stop there. Conceptually, it is there.
GeneralRe: How many values between 0 and 0? Pin
TheGreatAndPowerfulOz19-Dec-19 4:36
TheGreatAndPowerfulOz19-Dec-19 4:36 
GeneralRe: How many values between 0 and 0? Pin
Stuart Dootson19-Dec-19 7:52
professionalStuart Dootson19-Dec-19 7:52 
GeneralRe: How many values between 0 and 0? Pin
raddevus19-Dec-19 8:24
mvaraddevus19-Dec-19 8:24 
GeneralRe: How many values between 0 and 0? Pin
Bohdan Stupak15-Feb-20 5:49
professionalBohdan Stupak15-Feb-20 5:49 
GeneralTo get a %age divide the number by the number of decimal places defined on the column Pin
CHill6013-Dec-19 1:20
mveCHill6013-Dec-19 1:20 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
phil.o13-Dec-19 1:38
professionalphil.o13-Dec-19 1:38 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
CHill6013-Dec-19 1:42
mveCHill6013-Dec-19 1:42 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
Marc Clifton13-Dec-19 2:39
mvaMarc Clifton13-Dec-19 2:39 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
Nelek13-Dec-19 3:04
protectorNelek13-Dec-19 3:04 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
Marc Clifton13-Dec-19 4:05
mvaMarc Clifton13-Dec-19 4:05 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
Nelek13-Dec-19 4:11
protectorNelek13-Dec-19 4:11 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
CHill6013-Dec-19 5:07
mveCHill6013-Dec-19 5:07 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
Nelek13-Dec-19 3:08
protectorNelek13-Dec-19 3:08 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
Tiger1250619-Dec-19 15:33
Tiger1250619-Dec-19 15:33 
GeneralRe: To get a %age divide the number by the number of decimal places defined on the column Pin
CHill6019-Dec-19 21:08
mveCHill6019-Dec-19 21:08 
GeneralDev time waster ala JSON dialect PinPopular
raddevus9-Dec-19 10:24
mvaraddevus9-Dec-19 10:24 
GeneralRe: Dev time waster ala JSON dialect Pin
Jon McKee9-Dec-19 13:13
professionalJon McKee9-Dec-19 13:13 

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.