Daniel Lewis

Daniel Lewis - Blog Banner

Entries Tagged as 'functionalprogramming'

For those who like Lisp and/or Haskell…

April 9th, 2008 No Comments

For those who like Lisp and/or Haskell check out the “Land of Lisp” comic strip by Conrad Barski. A good bit of humour for you

Tags:

Oxford Geek Night 5

February 1st, 2008 No Comments

Just a note to say that if you are in the Oxford area on the 6th February (2008) then please, please come to the Oxford Geek Night 5. Its at the Jericho Tavern Pub in Oxford and starts at 7:30pm. It features a bit of socialising, a bit of watching presentations and some fun.
If you […]

Tags:

Sun Microsystems and Microsoft battling again…

November 14th, 2007 3 Comments

[programming language talk:]
Sun Microsystems are the guys behind Java, and the Microsoft team developed C#.
Java and C# have always been in battle for users, the two languages look very similar and act very similar, they do have their differences but they are targeted at the same kinds of developers.
Now they are at it again!
For a […]

Tags:

Ruby & Haskell pt 2

March 21st, 2007 No Comments

This post is a bit of an update of this one
The Ruby can stay the same:
search_engines = %w[Google Yahoo MSN].map do |engine| “http://www.” + engine.downcase + “.com”
end
But we can refine the Haskell even further than I originally posted, by saying the following:
search_engines = map (\engine -> “http://www.” ++ downcase engine ++ “.com”) [”Google”,”Yahoo”,”MSN”] where downcase […]

Tags:

Ruby & Haskell Example

March 8th, 2007 1 Comment

Ruby
(taken from http://www.ruby-lang.org/en/about/ )
#This turns an array of names into an array of URLs (but keeps it all string)
search_engines =
%w[Google Yahoo MSN].map do |engine|
“http://www.” + engine.downcase + “.com”
end
The bit between do and end in the above is called a block in the Ruby Programming Language.
Haskell
So lets do the same thing in Haskell (this is written […]

Tags: