14,328,676 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.

 Re: Nested if-else statements... dusty_dex24-Apr-13 3:43 dusty_dex 24-Apr-13 3:43
 Re: Nested if-else statements... NAANsoft24-Apr-13 2:44 NAANsoft 24-Apr-13 2:44
 Re: Nested if-else statements... Lee Chetwynd24-Apr-13 5:07 Lee Chetwynd 24-Apr-13 5:07
 Re: Nested if-else statements... RafagaX24-Apr-13 5:41 RafagaX 24-Apr-13 5:41
 Re: Nested if-else statements... tumbledDown2earth29-Apr-13 20:32 tumbledDown2earth 29-Apr-13 20:32
 Re: Nested if-else statements... fulloflove2-May-13 17:19 fulloflove 2-May-13 17:19
 Re: Nested if-else statements... Filipe Moreira de Oliveira18-May-13 8:00 Filipe Moreira de Oliveira 18-May-13 8:00
 [Solved] Why Do Computer Counts from Zero. kburman622-Apr-13 6:47 kburman6 22-Apr-13 6:47
 Link to the article For More detail explanation(PDF) Counting arrays from 0 simplifies the computation of the memory address of each element. If an array is stored at a given position in memory (it’s called the address) the position of each element can be computed as ```element(n) = address + n * size_of_the_element //If you consider the first element the first, the computation becomes element(n) = address + (n-1) * size_of_the_element //Not a huge difference but it adds an unnecessary subtraction for each access.```modified 22-Apr-13 13:45pm.
 Re: [Solved] Why Do Computer Counts from Zero. Marco Bertschi22-Apr-13 7:18 Marco Bertschi 22-Apr-13 7:18
 Re: [Solved] Why Do Computer Counts from Zero. Thomas Daniels22-Apr-13 7:25 Thomas Daniels 22-Apr-13 7:25
 Re: [Solved] Why Do Computer Counts from Zero. lw@zi 22-Apr-13 7:36 lw@zi 22-Apr-13 7:36
 Re: [Solved] Why Do Computer Counts from Zero. kburman622-Apr-13 7:44 kburman6 22-Apr-13 7:44
 Re: [Solved] Why Do Computer Counts from Zero. Marco Bertschi22-Apr-13 7:45 Marco Bertschi 22-Apr-13 7:45
 Re: [Solved] Why Do Computer Counts from Zero. kburman622-Apr-13 7:36 kburman6 22-Apr-13 7:36
 Re: [Solved] Why Do Computer Counts from Zero. Marco Bertschi22-Apr-13 7:46 Marco Bertschi 22-Apr-13 7:46
 Re: [Solved] Why Do Computer Counts from Zero. kburman622-Apr-13 7:52 kburman6 22-Apr-13 7:52
 Re: [Solved] Why Do Computer Counts from Zero. OriginalGriff22-Apr-13 8:43 OriginalGriff 22-Apr-13 8:43
 Re: [Solved] Why Do Computer Counts from Zero. Erik Rude24-Apr-13 3:55 Erik Rude 24-Apr-13 3:55
 Re: [Solved] Why Do Computer Counts from Zero. PIEBALDconsult24-Apr-13 4:08 PIEBALDconsult 24-Apr-13 4:08
 Re: [Solved] Why Do Computer Counts from Zero. Clifford Nelson22-Apr-13 9:09 Clifford Nelson 22-Apr-13 9:09
 Re: [Solved] Why Do Computer Counts from Zero. PIEBALDconsult24-Apr-13 4:06 PIEBALDconsult 24-Apr-13 4:06
 Re: [Solved] Why Do Computer Counts from Zero. Clifford Nelson24-Apr-13 10:14 Clifford Nelson 24-Apr-13 10:14
 Re: [Solved] Why Do Computer Counts from Zero. PIEBALDconsult24-Apr-13 11:58 PIEBALDconsult 24-Apr-13 11:58
 Re: [Solved] Why Do Computer Counts from Zero. Clifford Nelson24-Apr-13 12:48 Clifford Nelson 24-Apr-13 12:48
 Re: [Solved] Why Do Computer Counts from Zero. PIEBALDconsult24-Apr-13 16:00 PIEBALDconsult 24-Apr-13 16:00
 Last Visit: 16-Oct-19 14:08     Last Update: 16-Oct-19 14:08 Refresh « Prev1...249250251252253254255256257258 Next »