Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 27-05-2011, 08:17 PM   #1
Japo
Autonomous human
 
Japo's Avatar


 
Join Date: Mar 2006
Location: ,
Posts: 4,613
Default Beautiful code

The title is self-explaining, post here lines that you find elegant for whatever reason, be it that it shows the power of a language you like, that it shows how smart you are, or it's one of those obfuscated pieces of code without line breaks... Whatever.

Take a look at this C# for starters. Bear in mind that all this is 100 per cent strongly statically typed!

Code:
foreach(var result in new[] {
   new {
      fileName = fileName + ".1" + extension,
      data = Result1
   },
   new {
      fileName = fileName + ".2" + extension,
      data = Result2
} })
{ /* ... */ }
Beautiful!
__________________
Life starts every day anew. Prospects not so good...
Japo is offline                         Send a private message to Japo
Reply With Quote
 


Similar Threads
Thread Thread Starter Forum Replies Last Post
New BB Code tags! Dave Old News 14 17-02-2009 07:28 PM
Code Share Burger Meister Programming 5 10-02-2009 07:22 AM
Somebody Who Knows Php Code? andy_blah Blah, blah, blah... 14 11-06-2006 03:11 AM
Need The Code.... TalonStriker Troubleshooting 1 14-04-2006 07:21 PM


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 02:05 AM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.