Click here to Skip to main content
15,879,095 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: Who is teaching these people? Pin
Som Shekhar15-May-09 19:28
Som Shekhar15-May-09 19:28 
GeneralRe: Who is teaching these people? Pin
Jeroen De Dauw15-May-09 10:57
Jeroen De Dauw15-May-09 10:57 
GeneralRe: Who is teaching these people? Pin
Rajesh R Subramanian26-May-09 2:01
professionalRajesh R Subramanian26-May-09 2:01 
GeneralCode reuse Pin
zlezj12-May-09 21:10
zlezj12-May-09 21:10 
GeneralRe: Code reuse Pin
PIEBALDconsult13-May-09 3:41
mvePIEBALDconsult13-May-09 3:41 
GeneralRe: Code reuse Pin
Tristan Rhodes13-May-09 22:29
Tristan Rhodes13-May-09 22:29 
GeneralRe: Code reuse Pin
PIEBALDconsult14-May-09 3:39
mvePIEBALDconsult14-May-09 3:39 
GeneralOne of my own :) Pin
_Maxxx_12-May-09 20:21
professional_Maxxx_12-May-09 20:21 
#if (LIBRARYFLAG)
    using Product.Client;
#else
    using Product.Server;
#endif
using Product.Server;


To explain - we have the same services defined in Client and Server - this is using WCF. For development we set off LibraryFlag so use the services directly - without using WCF (it is faster and makes debugging easier)

Of course, if you create a new service, then dont create the client service, and set LIBRARYFLAG, resharper pops up a "Press alt-enter to add the 'using'" message.

I musta pressed it - so now it adds the using for the Server version.

Ohh it took me a while to spot what was happening!

___________________________________________
.\\axxx
(That's an 'M')

GeneralRe: One of my own :) Pin
Lutosław12-May-09 21:39
Lutosław12-May-09 21:39 
GeneralHigh end SQL Pin
Bernard Laplace12-May-09 5:15
Bernard Laplace12-May-09 5:15 
GeneralRe: High end SQL Pin
_Damian S_12-May-09 19:36
professional_Damian S_12-May-09 19:36 
GeneralRe: High end SQL Pin
Nagy Vilmos13-May-09 3:15
professionalNagy Vilmos13-May-09 3:15 
General[Message Deleted] Pin
StarBP6-May-09 15:49
StarBP6-May-09 15:49 
GeneralRe: Needless Polygon Rendering PinPopular
Tristan Rhodes6-May-09 23:03
Tristan Rhodes6-May-09 23:03 
QuestionWhich language is this Urgent help required Pin
Sanjaykalsi5-May-09 22:53
Sanjaykalsi5-May-09 22:53 
AnswerRe: Which language is this Urgent help required Pin
OriginalGriff5-May-09 23:05
mveOriginalGriff5-May-09 23:05 
AnswerRe: Which language is this Urgent help required Pin
Dino Mulahusic5-May-09 23:16
professionalDino Mulahusic5-May-09 23:16 
AnswerRe: Which language is this Urgent help required Pin
KarstenK6-May-09 3:45
mveKarstenK6-May-09 3:45 
GeneralMessage Removed Pin
6-May-09 8:21
MadProgrammer766-May-09 8:21 
GeneralRe: Which language is this Urgent help required Pin
KarstenK6-May-09 20:21
mveKarstenK6-May-09 20:21 
GeneralVisual Studio autogenerated code PinPopular
adgonz29-Apr-09 1:40
adgonz29-Apr-09 1:40 
GeneralRe: Visual Studio autogenerated code Pin
Tony Pottier29-Apr-09 5:03
Tony Pottier29-Apr-09 5:03 
GeneralRe: Visual Studio autogenerated code Pin
Stephen Hewitt29-Apr-09 5:12
Stephen Hewitt29-Apr-09 5:12 
GeneralRe: Visual Studio autogenerated code Pin
Tony Pottier29-Apr-09 5:36
Tony Pottier29-Apr-09 5:36 
GeneralRe: Visual Studio autogenerated code Pin
Vasudevan Deepak Kumar7-May-09 21:26
Vasudevan Deepak Kumar7-May-09 21:26 

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.