<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Actually I've never seen a language that doesn't
allow the most horrible spaghetti.</FONT></DIV>
<DIV><FONT face=Arial size=2>It's just that some languages make it
easy.</FONT></DIV>
<DIV><FONT face=Arial size=2>On the other hand the languages which make it hard
to write crap also make it</FONT></DIV>
<DIV><FONT face=Arial size=2>hard to write stuff that the designers of that
language hadn't thought of.</FONT></DIV>
<DIV><FONT face=Arial size=2>C was designed to let the programmer have all the
rope he wanted,</FONT></DIV>
<DIV><FONT face=Arial size=2>that's why we so often hang ourselves when using
it.</FONT></DIV>
<DIV><FONT face=Arial size=2>It's also why some of us so often return to it
too.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>And as for code beautifiers: they're the most
valuable tool that never gets mentioned</FONT></DIV>
<DIV><FONT face=Arial size=2>in books on programming that I know
of.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Odd that.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Tom</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:pchilds@bcs.org" title=pchilds@bcs.org>Peter Childs</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:kent@mailman.lug.org.uk" title=kent@mailman.lug.org.uk>Kent Linux
User Group - General Topics</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 29, 2010 2:46
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Klug-general] Obscure C at
saturday's meeting</DIV>
<DIV><BR></DIV><BR><BR>
<DIV class=gmail_quote>On 29 November 2010 14:35, David Halliday <SPAN
dir=ltr><<A
href="mailto:david.halliday@gmail.com">david.halliday@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">There
is a reason why C as a language does lean beautifully to code
obfuscation. We all know that C was just a joke that has got out of
hand, alongside the base of all *nix environments: <A
href="http://www.asandler.com/jokes/computer/c.shtml"
target=_blank>http://www.asandler.com/jokes/computer/c.shtml</A>
<DIV><BR></DIV>
<DIV><A href="http://www.asandler.com/jokes/computer/c.shtml"
target=_blank></A>From The Article:</DIV>
<DIV>We stopped when we got a clean compile on the following
syntax:<BR><FONT
face="'courier new', monospace">for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2))P("|"+(*u/4)%2);</FONT><BR><BR>To
think that modern programmers would try to use a language that allowed such
a statement was beyond our comprehension!</DIV>
<DIV><BR></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Perl has a reputation for this too.....</DIV>
<DIV><BR></DIV>
<DIV>Peter.</DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<DIV></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>
<DIV class=gmail_quote>
<DIV class=im>On 29 November 2010 12:53, Dan Attwood <SPAN dir=ltr><<A
href="mailto:danattwood@gmail.com"
target=_blank>danattwood@gmail.com</A>></SPAN> wrote:<BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<DIV class=im>
<DIV class=gmail_quote>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"><BR>And
for exactly this reason there has been a policy in places I have worked
of running any C code through the C beautifier automatically as part of
the version control check-in process. This has the advantage that
coders arbitrarily rearranging the code in their preferred style whilst
editing does not look like a change, and that all code retrieved is
always in the house style, which makes for easier
debugging.<BR><BR></BLOCKQUOTE></DIV>
<DIV>someone at barcamp was talking about do just this. Although they went
one step further where if it fell outside of some rules then they would
stop it from compiling and spit it back at the
developer </DIV></DIV><BR></DIV>
<DIV class=im>_______________________________________________<BR>Kent
mailing list<BR><A href="mailto:Kent@mailman.lug.org.uk"
target=_blank>Kent@mailman.lug.org.uk</A><BR><A
href="https://mailman.lug.org.uk/mailman/listinfo/kent"
target=_blank>https://mailman.lug.org.uk/mailman/listinfo/kent</A><BR></DIV></BLOCKQUOTE></DIV><BR></DIV><BR>_______________________________________________<BR>Kent
mailing list<BR><A
href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</A><BR><A
href="https://mailman.lug.org.uk/mailman/listinfo/kent"
target=_blank>https://mailman.lug.org.uk/mailman/listinfo/kent</A><BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Kent mailing
list<BR>Kent@mailman.lug.org.uk<BR>https://mailman.lug.org.uk/mailman/listinfo/kent</BLOCKQUOTE></BODY></HTML>