Click here to Skip to main content
15,894,405 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: A Coding Horror from a subcontracted project... Pin
darkelv4-Jul-08 17:18
darkelv4-Jul-08 17:18 
GeneralRe: A Coding Horror from a subcontracted project... Pin
Paul Conrad4-Jul-08 10:38
professionalPaul Conrad4-Jul-08 10:38 
GeneralRe: A Coding Horror from a subcontracted project... Pin
Bert delaVega12-Jul-08 17:49
Bert delaVega12-Jul-08 17:49 
GeneralConvert double to fixed point integer format - hard way versus easy way... PinPopular
geoffs3-Jul-08 5:34
geoffs3-Jul-08 5:34 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
PIEBALDconsult3-Jul-08 6:11
mvePIEBALDconsult3-Jul-08 6:11 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
geoffs3-Jul-08 6:16
geoffs3-Jul-08 6:16 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
Graham Bradshaw3-Jul-08 7:14
Graham Bradshaw3-Jul-08 7:14 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
geoffs3-Jul-08 7:32
geoffs3-Jul-08 7:32 
Although this is getting away from the original intent of my posting, you are correct that inline is merely a request to the compiler. For all intensive purposes, in most cases, a simple function as shown will be inlined by the compiler. There will be exceptions to that case.
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
PIEBALDconsult3-Jul-08 12:40
mvePIEBALDconsult3-Jul-08 12:40 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
geoffs3-Jul-08 15:48
geoffs3-Jul-08 15:48 
RantRe: Convert double to fixed point integer format - hard way versus easy way... Pin
killabyte6-Jul-08 13:16
killabyte6-Jul-08 13:16 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... PinPopular
Rob Grainger4-Jul-08 1:23
Rob Grainger4-Jul-08 1:23 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
PIEBALDconsult4-Jul-08 3:56
mvePIEBALDconsult4-Jul-08 3:56 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
DQNOK9-Jul-08 3:23
professionalDQNOK9-Jul-08 3:23 
GeneralRe: Convert double to fixed point integer format - hard way versus easy way... Pin
geoffs9-Jul-08 5:04
geoffs9-Jul-08 5:04 
GeneralDoes this qualify as horror? Pin
Megidolaon30-Jun-08 23:09
Megidolaon30-Jun-08 23:09 
GeneralRe: Does this qualify as horror? Pin
PIEBALDconsult1-Jul-08 4:50
mvePIEBALDconsult1-Jul-08 4:50 
GeneralRe: Does this qualify as horror? Pin
Megidolaon1-Jul-08 21:39
Megidolaon1-Jul-08 21:39 
GeneralRe: Does this qualify as horror? Pin
PIEBALDconsult2-Jul-08 12:48
mvePIEBALDconsult2-Jul-08 12:48 
GeneralRe: Does this qualify as horror? Pin
PIEBALDconsult2-Jul-08 12:52
mvePIEBALDconsult2-Jul-08 12:52 
JokeRe: Does this qualify as horror? PinPopular
Paul Conrad1-Jul-08 17:22
professionalPaul Conrad1-Jul-08 17:22 
GeneralRe: Does this qualify as horror? Pin
Stephen Hewitt1-Jul-08 18:24
Stephen Hewitt1-Jul-08 18:24 
GeneralRe: Does this qualify as horror? Pin
StM0n1-Jul-08 19:31
StM0n1-Jul-08 19:31 
GeneralRe: Does this qualify as horror? Pin
Paul Conrad1-Jul-08 19:34
professionalPaul Conrad1-Jul-08 19:34 
GeneralRe: Does this qualify as horror? Pin
Spacix One2-Jul-08 4:49
Spacix One2-Jul-08 4:49 

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.