|
![]() |
#1 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: ,
Posts: 4,613
|
![]() 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 } }) { /* ... */ }
__________________
Life starts every day anew. Prospects not so good... |
||
![]() ![]() |
|
![]() |
#2 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: ,
Posts: 4,613
|
![]() For those of you that don't know any CAS (Computer Algebra System), specially any capable of symbolic computations as well as numeric, here's a little Maxima:
http://dl.dropbox.com/u/15818997/Maxima.mht That link is a MHTML file, any browser should be able to open it I think, except for Safari and Firefox needs some extension. This is free software, amazing. Too bad I didn't know it before. I could port my Sun position calculator to this.
__________________
Life starts every day anew. Prospects not so good... |
||
![]() ![]() |
|
![]() |
#3 | ||
![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2008
Location: Waterside, South Africa
Posts: 3,138
|
![]() When you can show me what the southern hemisphere's night sky will look like on any given night, please let me know
|
||
![]() ![]() |
|
![]() |
#4 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: ,
Posts: 4,613
|
![]() I could... I only need massive amounts of initial data regarding the position, movement and brightness of every star. :P
__________________
Life starts every day anew. Prospects not so good... |
||
![]() ![]() |
|
![]() |
#5 | ||
![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2008
Location: Waterside, South Africa
Posts: 3,138
|
![]() *image of ninety-year-old Japo screaming "At last!! At last every star visible to the naked eye has been plotted in! ... Now, I wish I hadn't forgotten why I was programming this thing in the first place..."*
|
||
![]() ![]() |
|
![]() |
|
![]() |
||||
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 |
|
|
||
  |