Click here to Skip to main content
15,886,806 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: Philosophy Major bad Programmer Pin
Dan Sutton10-Oct-11 11:44
Dan Sutton10-Oct-11 11:44 
GeneralRe: Philosophy Major bad Programmer Pin
cpkilekofp11-Oct-11 7:20
cpkilekofp11-Oct-11 7:20 
GeneralRe: Philosophy Major bad Programmer Pin
Dan Sutton11-Oct-11 7:30
Dan Sutton11-Oct-11 7:30 
GeneralRe: Philosophy Major bad Programmer Pin
Frank Towle13-Oct-11 4:59
Frank Towle13-Oct-11 4:59 
GeneralRe: Philosophy Major bad Programmer Pin
cpkilekofp14-Oct-11 5:44
cpkilekofp14-Oct-11 5:44 
GeneralRe: Philosophy Major bad Programmer Pin
cpkilekofp14-Oct-11 5:51
cpkilekofp14-Oct-11 5:51 
GeneralRe: Philosophy Major bad Programmer Pin
Frank Towle14-Oct-11 9:12
Frank Towle14-Oct-11 9:12 
GeneralRe: Philosophy Major bad Programmer Pin
cpkilekofp14-Oct-11 10:12
cpkilekofp14-Oct-11 10:12 
Frank Towle wrote:

On you mean "The negation of a disjunction is the
conjunction of the negations." This kind of trap produces compound conditions
that should be totally outlawed in software development!


Um, it also allows compound logical statements to be broken up in to a series of pure conjunctive clauses (i.e. Horn clauses) which allows one to search a set of Horn clauses for those that are true for a particular set of facts. This is the essence and basis of the Prolog programming language.

Properly used, the De Morgan transformation and other logical transformations allow logical statements to be reorganized into whatever best fits the computing environment you must use. It's like the C language: don't throw it out just because some idiot can overwrite the operating system in DOS.
GeneralRe: Philosophy Major bad Programmer Pin
Frank Towle16-Oct-11 3:57
Frank Towle16-Oct-11 3:57 
GeneralRe: Philosophy Major bad Programmer Pin
BobJanova11-Oct-11 0:01
BobJanova11-Oct-11 0:01 
GeneralRe: Philosophy Major bad Programmer Pin
jschell10-Oct-11 8:00
jschell10-Oct-11 8:00 
GeneralRe: Philosophy Major bad Programmer Pin
Frank Towle10-Oct-11 9:18
Frank Towle10-Oct-11 9:18 
GeneralRe: Philosophy Major bad Programmer Pin
Jay Nelson12-Oct-11 10:06
Jay Nelson12-Oct-11 10:06 
GeneralRe: Philosophy Major bad Programmer Pin
Frank Towle13-Oct-11 5:04
Frank Towle13-Oct-11 5:04 
GeneralWhat could they have been thinking? Pin
John Hunley6-Oct-11 4:00
John Hunley6-Oct-11 4:00 
GeneralRe: What could they have been thinking? Pin
witm556-Oct-11 4:09
witm556-Oct-11 4:09 
GeneralRe: What could they have been thinking? Pin
ekolis6-Oct-11 7:55
ekolis6-Oct-11 7:55 
GeneralRe: What could they have been thinking? Pin
killabyte6-Oct-11 13:32
killabyte6-Oct-11 13:32 
GeneralRe: What could they have been thinking? Pin
Bernhard Hiller6-Oct-11 21:20
Bernhard Hiller6-Oct-11 21:20 
GeneralRe: What could they have been thinking? Pin
prasun.r7-Dec-11 5:18
prasun.r7-Dec-11 5:18 
GeneralRe: What could they have been thinking? PinPopular
ricmil4210-Oct-11 3:27
ricmil4210-Oct-11 3:27 
GeneralRe: What could they have been thinking? Pin
Jyothikarthik_N12-Oct-11 3:13
Jyothikarthik_N12-Oct-11 3:13 
GeneralRe: What could they have been thinking? Pin
scotchfaster24-Oct-11 13:03
scotchfaster24-Oct-11 13:03 
GeneralConverting binary to decimal the hard way Pin
PIEBALDconsult5-Oct-11 22:03
mvePIEBALDconsult5-Oct-11 22:03 
GeneralRe: Converting binary to decimal the hard way Pin
Peter_in_27806-Oct-11 0:10
professionalPeter_in_27806-Oct-11 0: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.