Click here to Skip to main content
15,891,204 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: VS turns up nose at my code... Pin
#realJSOP17-Aug-07 8:15
mve#realJSOP17-Aug-07 8:15 
GeneralRe: VS turns up nose at my code... Pin
peterchen14-Aug-07 0:21
peterchen14-Aug-07 0:21 
GeneralRe: VS turns up nose at my code... Pin
Jay Gatsby17-Aug-07 18:05
Jay Gatsby17-Aug-07 18:05 
GeneralRe: VS turns up nose at my code... Pin
Doug Goulden20-Aug-07 1:14
Doug Goulden20-Aug-07 1:14 
GeneralRe: VS turns up nose at my code... Pin
Shog920-Aug-07 3:59
sitebuilderShog920-Aug-07 3:59 
GeneralRe: VS turns up nose at my code... Pin
Doug Goulden20-Aug-07 17:51
Doug Goulden20-Aug-07 17:51 
GeneralDon't tell me how to declare a string! Pin
TClarke6-Aug-07 1:22
TClarke6-Aug-07 1:22 
JokeRe: Don't tell me how to declare a string! Pin
Luc Pattyn6-Aug-07 1:34
sitebuilderLuc Pattyn6-Aug-07 1:34 
TClarke wrote:
private static final String SQL = ""
+ " SELECT "
+ " nvl( vss.structure_address, "
+ " ifsapp.serial_structure_template_api.get_pos(top_part_no,"
etc...


Without the "" on the first line, you couldn't start the second line with a +
hence the indentation might be at risk, i.e. the third and following lines might not
align with the second one; this may become very important when the code is worthwhile
and is likely be published on one or more forums.

BTW: the code itself is OK, the compiler does the concatenation for you.

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Don't tell me how to declare a string! Pin
TClarke6-Aug-07 2:06
TClarke6-Aug-07 2:06 
GeneralRe: Don't tell me how to declare a string! Pin
Vasudevan Deepak Kumar6-Aug-07 5:09
Vasudevan Deepak Kumar6-Aug-07 5:09 
GeneralRe: Don't tell me how to declare a string! Pin
Luc Pattyn6-Aug-07 5:25
sitebuilderLuc Pattyn6-Aug-07 5:25 
GeneralRe: Don't tell me how to declare a string! Pin
Ri Qen-Sin2-Sep-07 4:26
Ri Qen-Sin2-Sep-07 4:26 
GeneralRe: Don't tell me how to declare a string! Pin
Luc Pattyn2-Sep-07 4:57
sitebuilderLuc Pattyn2-Sep-07 4:57 
GeneralRe: Don't tell me how to declare a string! Pin
dojohansen20-Aug-07 1:17
dojohansen20-Aug-07 1:17 
GeneralRe: Don't tell me how to declare a string! Pin
Luc Pattyn20-Aug-07 1:30
sitebuilderLuc Pattyn20-Aug-07 1:30 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon6-Aug-07 1:39
mvePete O'Hanlon6-Aug-07 1:39 
GeneralRe: Don't tell me how to declare a string! Pin
TClarke6-Aug-07 3:03
TClarke6-Aug-07 3:03 
GeneralRe: Don't tell me how to declare a string! Pin
BadKarma6-Aug-07 3:27
BadKarma6-Aug-07 3:27 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon6-Aug-07 3:37
mvePete O'Hanlon6-Aug-07 3:37 
GeneralRe: Don't tell me how to declare a string! Pin
Vasudevan Deepak Kumar6-Aug-07 5:10
Vasudevan Deepak Kumar6-Aug-07 5:10 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon6-Aug-07 8:42
mvePete O'Hanlon6-Aug-07 8:42 
GeneralRe: Don't tell me how to declare a string! Pin
PIEBALDconsult6-Aug-07 16:57
mvePIEBALDconsult6-Aug-07 16:57 
GeneralRe: Don't tell me how to declare a string! Pin
Jörgen Sigvardsson8-Aug-07 6:32
Jörgen Sigvardsson8-Aug-07 6:32 
GeneralRe: Don't tell me how to declare a string! Pin
Pete O'Hanlon8-Aug-07 21:50
mvePete O'Hanlon8-Aug-07 21:50 
GeneralRe: Don't tell me how to declare a string! Pin
joebeam10-Aug-07 9:00
joebeam10-Aug-07 9:00 

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.