Click here to Skip to main content
15,886,258 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: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
vaghelabhavesh27-Feb-20 8:40
vaghelabhavesh27-Feb-20 8:40 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
John R. Shaw26-Mar-20 20:02
John R. Shaw26-Mar-20 20:02 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
honey the codewitch26-Mar-20 20:16
mvahoney the codewitch26-Mar-20 20:16 
GeneralThis Definitely Falls into the Wonderful Camp Pin
David A. Gray9-Feb-20 11:14
David A. Gray9-Feb-20 11:14 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
Randor 10-Feb-20 12:33
professional Randor 10-Feb-20 12:33 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
David A. Gray11-Feb-20 10:33
David A. Gray11-Feb-20 10:33 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
Randor 11-Feb-20 12:40
professional Randor 11-Feb-20 12:40 
GeneralVisual Studio 2019 and the Weird, Wonderful Nonbreaking Space Pin
David A. Gray8-Feb-20 11:33
David A. Gray8-Feb-20 11:33 
I just pasted a block of #define directives from the application header of a C++ program that I am writing in preparation for writing a short article for the Actian developer blog. When I applied the Trim worksheet function to a substring that contains a hexadecimal value that I wanted in its own column, I noticed that the cell had a leading space. Since it obviously wasn't a SPACE or a TAB, I turned on the hexadecimal view mode in my editor (UltraEdit), and discovered that the hexadecimal code of the character at that location was 0xA0, 160 decimal, the nonbreaking space character.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: Visual Studio 2019 and the Weird, Wonderful Nonbreaking Space Pin
Super Lloyd29-Mar-20 13:50
Super Lloyd29-Mar-20 13:50 
GeneralRe: Visual Studio 2019 and the Weird, Wonderful Nonbreaking Space Pin
Greg Utas29-Mar-20 14:31
professionalGreg Utas29-Mar-20 14:31 
PraiseI might have cause to be grateful for javascript for once Pin
honey the codewitch6-Feb-20 22:01
mvahoney the codewitch6-Feb-20 22:01 
GeneralRe: I might have cause to be grateful for javascript for once Pin
GuyThiebaut11-Feb-20 21:55
professionalGuyThiebaut11-Feb-20 21:55 
GeneralRe: I might have cause to be grateful for javascript for once Pin
honey the codewitch26-Feb-20 9:51
mvahoney the codewitch26-Feb-20 9:51 
GeneralIncomprehensible C++ error messages PinPopular
Alan Balkany29-Jan-20 10:19
Alan Balkany29-Jan-20 10:19 
GeneralRe: Incomprehensible C++ error messages PinPopular
RugbyLeague29-Jan-20 21:16
RugbyLeague29-Jan-20 21:16 
GeneralRe: Incomprehensible C++ error messages Pin
honey the codewitch29-Mar-20 15:02
mvahoney the codewitch29-Mar-20 15:02 
GeneralRe: Incomprehensible C++ error messages Pin
Greg Utas30-Jan-20 14:32
professionalGreg Utas30-Jan-20 14:32 
GeneralRe: Incomprehensible C++ error messages PinPopular
Member 91670572-Feb-20 22:45
Member 91670572-Feb-20 22:45 
RantRe: Incomprehensible C++ error messages Pin
Gary Wheeler3-Feb-20 2:53
Gary Wheeler3-Feb-20 2:53 
GeneralRe: Incomprehensible C++ error messages Pin
Bob10003-Feb-20 7:06
professionalBob10003-Feb-20 7:06 
GeneralRe: Incomprehensible C++ error messages Pin
SeattleC++3-Feb-20 4:47
SeattleC++3-Feb-20 4:47 
GeneralRe: Incomprehensible C++ error messages Pin
Alan Balkany4-Feb-20 10:50
Alan Balkany4-Feb-20 10:50 
GeneralRe: Incomprehensible C++ error messages Pin
SeattleC++4-Feb-20 12:02
SeattleC++4-Feb-20 12:02 
GeneralRe: Incomprehensible C++ error messages Pin
Alan Balkany4-Feb-20 12:09
Alan Balkany4-Feb-20 12:09 
GeneralRe: Incomprehensible C++ error messages Pin
Dan Sutton3-Feb-20 5:54
Dan Sutton3-Feb-20 5:54 

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.