Click here to Skip to main content
15,892,697 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: UNUSED functions Pin
Maximilien1-Feb-08 3:21
Maximilien1-Feb-08 3:21 
GeneralRe: UNUSED functions Pin
Delphi4ever1-Feb-08 3:52
Delphi4ever1-Feb-08 3:52 
GeneralRe: UNUSED functions Pin
BadKarma1-Feb-08 4:08
BadKarma1-Feb-08 4:08 
GeneralRe: UNUSED functions Pin
CPallini1-Feb-08 4:14
mveCPallini1-Feb-08 4:14 
GeneralRe: UNUSED functions Pin
DRHuff5-Feb-08 9:21
DRHuff5-Feb-08 9:21 
GeneralRe: UNUSED functions Pin
CPallini1-Feb-08 4:12
mveCPallini1-Feb-08 4:12 
GeneralRe: UNUSED functions Pin
Maximilien1-Feb-08 4:14
Maximilien1-Feb-08 4:14 
GeneralRe: UNUSED functions Pin
John R. Shaw1-Feb-08 23:24
John R. Shaw1-Feb-08 23:24 
The only reason it may be "common practice" is a policy of no warnings or to eliminate irritating warnings about something that does no harm. I have never seen it done, as it is a method/function signature thing and commenting out the parameters makes more since (aka: /*parameter*/). On the plus side, modern compilers will normally optimize out self assignment, so using such macros eliminates the warning with out producing uneeded code (well it is supposed to anyway). The down side is wasting time typing in bull<blank> code that has nothing to do with what the method/function does.

It is interesting, but I do not like the idea at all. D'Oh! | :doh:

INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: UNUSED functions Pin
Dan Neely4-Feb-08 2:52
Dan Neely4-Feb-08 2:52 
GeneralRe: UNUSED functions Pin
Cristian Amarie3-Feb-08 21:38
Cristian Amarie3-Feb-08 21:38 
GeneralRe: UNUSED functions Pin
Mike Diack4-Feb-08 10:01
Mike Diack4-Feb-08 10:01 
GeneralInformative Comments Pin
ClementsDan31-Jan-08 14:51
ClementsDan31-Jan-08 14:51 
QuestionRe: Informative Comments Pin
CPallini1-Feb-08 1:18
mveCPallini1-Feb-08 1:18 
GeneralRe: Informative Comments Pin
ClementsDan6-Feb-08 12:15
ClementsDan6-Feb-08 12:15 
GeneralRe: Informative Comments Pin
CARPETBURNER1-Feb-08 2:24
CARPETBURNER1-Feb-08 2:24 
GeneralRe: Informative Comments PinPopular
CPallini1-Feb-08 2:30
mveCPallini1-Feb-08 2:30 
GeneralTemplatized file Pin
jhwurmbach4-Feb-08 2:34
jhwurmbach4-Feb-08 2:34 
GeneralRe: Templatized file Pin
Jörgen Sigvardsson5-Feb-08 2:59
Jörgen Sigvardsson5-Feb-08 2:59 
GeneralRe: Templatized file Pin
Draugnar7-Feb-08 7:18
Draugnar7-Feb-08 7:18 
GeneralASP.NET - Trace.axd includes Application variables Pin
Ashley van Gerven31-Jan-08 14:10
Ashley van Gerven31-Jan-08 14:10 
GeneralRe: ASP.NET - Trace.axd includes Application variables Pin
Paddy Boyd1-Feb-08 4:22
Paddy Boyd1-Feb-08 4:22 
GeneralRe: ASP.NET - Trace.axd includes Application variables Pin
Ashley van Gerven1-Feb-08 5:12
Ashley van Gerven1-Feb-08 5:12 
QuestionHelp! NHibernate data saving problem. Pin
Harry Sun29-Jan-08 23:02
Harry Sun29-Jan-08 23:02 
GeneralRe: Help! NHibernate data saving problem. Pin
StM0n30-Jan-08 1:22
StM0n30-Jan-08 1:22 
GeneralRe: Help! NHibernate data saving problem. Pin
Pete O'Hanlon30-Jan-08 2:24
mvePete O'Hanlon30-Jan-08 2:24 

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.