Click here to Skip to main content
16,017,650 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: Country code Pin
snorkie17-Apr-24 2:40
professionalsnorkie17-Apr-24 2:40 
GeneralRe: Country code Pin
trønderen17-Apr-24 4:26
trønderen17-Apr-24 4:26 
GeneralSQL (Transact-SQL) needs a proper FOR loop! Pin
PIEBALDconsult1-Apr-24 17:30
mvePIEBALDconsult1-Apr-24 17:30 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
#realJSOP2-Apr-24 9:07
professional#realJSOP2-Apr-24 9:07 
if your condition is never met (or not met "foo" times), your loop control will never increment (or not increment enough to break on the condition), thus the loop will be infinite.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! PinPopular
snorkie4-Apr-24 8:08
professionalsnorkie4-Apr-24 8:08 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
PIEBALDconsult4-Apr-24 8:16
mvePIEBALDconsult4-Apr-24 8:16 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
jochance6-Jun-24 6:40
jochance6-Jun-24 6:40 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
Sander Rossel8-Apr-24 1:11
professionalSander Rossel8-Apr-24 1:11 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
PIEBALDconsult8-Apr-24 3:27
mvePIEBALDconsult8-Apr-24 3:27 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
Sander Rossel10-Apr-24 4:29
professionalSander Rossel10-Apr-24 4:29 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
GuyThiebaut8-Apr-24 23:53
professionalGuyThiebaut8-Apr-24 23:53 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
Sander Rossel9-Apr-24 0:15
professionalSander Rossel9-Apr-24 0:15 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
ChandraRam12-Apr-24 1:16
ChandraRam12-Apr-24 1:16 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
honey the codewitch9-Apr-24 21:58
mvahoney the codewitch9-Apr-24 21:58 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
jsc4210-Apr-24 0:24
professionaljsc4210-Apr-24 0:24 
General.bash_history makes me happy, how about you? Pin
raddevus9-Mar-24 13:34
mvaraddevus9-Mar-24 13:34 
GeneralRe: .bash_history makes me happy, how about you? Pin
k50549-Mar-24 15:59
mvek50549-Mar-24 15:59 
GeneralRe: .bash_history makes me happy, how about you? Pin
raddevus9-Mar-24 16:02
mvaraddevus9-Mar-24 16:02 
GeneralRe: .bash_history makes me happy, how about you? Pin
Peter_in_27809-Mar-24 21:06
professionalPeter_in_27809-Mar-24 21:06 
GeneralRe: .bash_history makes me happy, how about you? Pin
Nelek9-Mar-24 22:25
protectorNelek9-Mar-24 22:25 
GeneralRe: .bash_history makes me happy, how about you? Pin
11917640 Member 11-Mar-24 21:41
11917640 Member 11-Mar-24 21:41 
GeneralStandards? Eat your heart out, Randall Pin
Peter_in_278025-Feb-24 15:07
professionalPeter_in_278025-Feb-24 15:07 
GeneralRe: Standards? Eat your heart out, Randall Pin
trønderen25-Feb-24 17:10
trønderen25-Feb-24 17:10 
GeneralRe: Standards? Eat your heart out, Randall Pin
jeron126-Feb-24 5:37
jeron126-Feb-24 5:37 
GeneralRe: Standards? Eat your heart out, Randall Pin
Nelek26-Feb-24 5:38
protectorNelek26-Feb-24 5:38 

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.