Rosetta code (I knew how to do that in FORTRAN but...)

I've lost track of the number of computer languages I've worked in since I first saw a snoopy ASCII printout on a teletype machine. FORTRAN 66 and 77, various flavors of BASIC, 650X, PDP, VAX and Atmel AVR assembly languages, C/C++/Objective C, D, Pascal, Java, Perl. Some things have become easier over the years, others have become more complex and there are always minor annoyances. How do I do X in language Y?

Fortunately Sun rarely falls into the Dilbertesque cliche of letting upper management choose the hottest fad language or framework for a project, hiring whoever can code in that and worrying about design only after the project is finished and support calls start coming in. But occasionally I find a tool that works much better for what I need to do than the tools I already know. And for what I need right now, Python is miles ahead of ksh, bash, awk and even Perl. I find Python both refreshingly modern and reminiscent of the days of clean looking code, when it was important to know what went in Hollerith column 6 and 66. But Python strays from the syntax of C like languages (Java/C/C++/Objective C/.Net/Perl/D) so I occasionally need a cheat sheet. I found that the Rosetta Code page is a reasonably good cheat sheet.

Comments:

Glad to know you like it. Tell me, how could it be better?

/I created it.

Posted by Michael Mol on August 29, 2007 at 11:41 AM GMT+00:00 #

Just added another entry: http://www.rosettacode.org/wiki/Comparing_two_integers#Korn_Shell :-)

Posted by Roland Mainz on August 29, 2007 at 01:48 PM GMT+00:00 #

Michael,

I was looking for examples of file I/O of ASCII numerics into arrays, but that can get into library specific code. (numpy makes it much easier than out-of-the-box python.) Overall your website is a great idea. The only thing it could use is more contributors and more examples!

Posted by bnitz on August 30, 2007 at 02:25 AM GMT+00:00 #

Thanks for the korn shell example!

Posted by bnitz on August 30, 2007 at 02:25 AM GMT+00:00 #

Post a Comment:
Comments are closed for this entry.
About

bnitz

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today