David Seruyange's Radio Weblog
Tidbits for developers and the interested...

David-ism
Watu
Vicariously
Photo Blogs
Form, Function
Write, Think
Web People
Coders
Feel Good


Subscribe to "David Seruyange's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Home (all entries)  | Technie  | Prattle (personal stuff)  | Books  | Snippets  | WhiteBox


Friday, November 08, 2002
 

Hacking begets (literal) Hacking

I almost didn't believe it...

posted in [home], [technie]


8:20:58 PM    comment []

Perl Smack Down

Today I was working on a problem related to Hashtables in C#.  I basically needed to be able to get a key based on a value.  My friend "pudge" wrote the following in perl:

@keys = grep { $hash{$_} eq 'Perl' } keys %hash;

I wrote something similar in C#:

public string GrepHashForKey(Hashtable ha, string search){
  foreach(object o in ha.Keys){
   if(ha[o].ToString().Equals(search))
    return o.ToString();
  }
 return "";
}

I have got to spend more time with perl.  When programmers speak of a sexy language, this is what they mean.  There are a few languages I'd like to be fluent in before my technie days are over: LISP, Perl and Python.

posted in [home], [technie]


8:06:07 PM    comment []


Click here to visit the Radio UserLand website. © Copyright 2006 David Seruyange.
Last update: 5/23/2006; 8:20:43 PM.
November 2002
Sun Mon Tue Wed Thu Fri Sat
          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
Oct   Dec