Click here to Skip to main content
14,867,418 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: bizarro land coding Pin
honey the codewitch4-Jan-21 23:39
mvahoney the codewitch4-Jan-21 23:39 
GeneralRe: bizarro land coding Pin
honey the codewitch4-Jan-21 7:14
mvahoney the codewitch4-Jan-21 7:14 
GeneralRe: bizarro land coding Pin
Rick York3-Jan-21 11:34
mveRick York3-Jan-21 11:34 
GeneralRe: bizarro land coding Pin
honey the codewitch3-Jan-21 11:59
mvahoney the codewitch3-Jan-21 11:59 
GeneralRe: bizarro land coding Pin
Greg Utas3-Jan-21 12:39
mvaGreg Utas3-Jan-21 12:39 
GeneralFace Recognition App Pin
Kevin Marois3-Jan-21 7:59
professionalKevin Marois3-Jan-21 7:59 
GeneralRe: Face Recognition App Pin
Nelek3-Jan-21 10:15
protectorNelek3-Jan-21 10:15 
GeneralLocal Polymorphism Pin
Gerry Schmitz3-Jan-21 4:50
mveGerry Schmitz3-Jan-21 4:50 
I've been porting large chunks of C code to C#.

Some routines are quite long and deal with a lot of C "math.h", etc.

In some case, I'll do a straight c "cos" to c# "Math.Cos", for example.

In other cases, a "local delegate" avoids having to make a lot of changes or adding a method with the same name. e.g.
Func<double, double> cos = Math.Cos;

// "C" code.
double cosX = cos(x);
double cosY = cos(y).
...
...
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food

GeneralRe: Local Polymorphism Pin
PIEBALDconsult3-Jan-21 5:28
professionalPIEBALDconsult3-Jan-21 5:28 
GeneralRe: Local Polymorphism Pin
Daniel Pfeffer3-Jan-21 6:07
professionalDaniel Pfeffer3-Jan-21 6:07 
GeneralRe: Local Polymorphism Pin
OriginalGriff3-Jan-21 7:38
mveOriginalGriff3-Jan-21 7:38 
GeneralRe: Local Polymorphism Pin
honey the codewitch3-Jan-21 7:53
mvahoney the codewitch3-Jan-21 7:53 
GeneralRe: Local Polymorphism Pin
OriginalGriff3-Jan-21 8:20
mveOriginalGriff3-Jan-21 8:20 
GeneralRe: Local Polymorphism Pin
honey the codewitch3-Jan-21 8:23
mvahoney the codewitch3-Jan-21 8:23 
GeneralRe: Local Polymorphism Pin
OriginalGriff3-Jan-21 8:56
mveOriginalGriff3-Jan-21 8:56 
GeneralRe: Local Polymorphism Pin
honey the codewitch3-Jan-21 9:02
mvahoney the codewitch3-Jan-21 9:02 
GeneralRe: Local Polymorphism Pin
Mike Hankey3-Jan-21 8:18
professionalMike Hankey3-Jan-21 8:18 
GeneralRe: Local Polymorphism Pin
CPallini3-Jan-21 10:50
mveCPallini3-Jan-21 10:50 
GeneralRe: Local Polymorphism Pin
Daniel Pfeffer3-Jan-21 21:30
professionalDaniel Pfeffer3-Jan-21 21:30 
GeneralRe: Local Polymorphism Pin
honey the codewitch3-Jan-21 7:51
mvahoney the codewitch3-Jan-21 7:51 
QuestionRe: Local Polymorphism Pin
Espen Harlinn3-Jan-21 9:41
mvaEspen Harlinn3-Jan-21 9:41 
GeneralRe: Local Polymorphism Pin
Richard Deeming4-Jan-21 23:42
mveRichard Deeming4-Jan-21 23:42 
GeneralOur town is making signs using No Code Pin
theoldfool3-Jan-21 1:14
professionaltheoldfool3-Jan-21 1:14 
GeneralRe: Our town is making signs using No Code Pin
RickZeeland3-Jan-21 1:28
mveRickZeeland3-Jan-21 1:28 
GeneralRe: Our town is making signs using No Code Pin
OriginalGriff3-Jan-21 2:10
mveOriginalGriff3-Jan-21 2:10 

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.