Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinmemberStefan_Lang6-Jul-14 20:19 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinprofessionalNguyen.H.H.Dang6-Jul-14 20:29 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinmemberSortaCore6-Jul-14 22:20 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinprofessionalNguyen.H.H.Dang6-Jul-14 22:27 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinmemberFreak307-Jul-14 1:15 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinmemberMike Ellison7-Jul-14 6:22 
GeneralRe: Men would rather give themselves an electric shock than sit alone in a room with nothing to do PinmemberDrewcrewof27-Jul-14 10:00 
GeneralStarting Functional Programming... PinprofessionalSander Rossel4-Jul-14 3:41 
So I just started my Open University course on Functional Programming (actually not my first time using a functional language, I looked at some F# about two years ago, but only a little little Smile | :) ).
The course uses Haskell and the OU provided me with the book Programming in Haskell by Graham Hutton[^].
One of my first throughts when starting: "No wonder functional programming is consise... C# could be a lot more consise too if every function and variable was abbreviated to one to three letters only!"
 
For example, there's the function 'fst'. What is fst? Had I named my function fst in C# it probably would've been Hall of Shame material.
fst is First and takes the first value of a tuple with two values.
Some function definitions:
fst   :: (a, b) -> a
head  :: [a] -> a
take  :: Int -> [a] -> [a]
zip   :: [a] -> [b] -> [(a, b)]
Riiiiiiiiight...
 
That's not to say I'm lookinf forward to learning more about Haskell and functional programming in general Smile | :)
It's an OO world.
public class SanderRossel : Lazy<Person>
{
   public void DoWork()
   {
      throw new NotSupportedException();
   }
}

GeneralRe: Starting Functional Programming... Pinmemberharold aptroot4-Jul-14 3:47 
GeneralRe: Starting Functional Programming... PinprofessionalSander Rossel4-Jul-14 3:55 
GeneralRe: Starting Functional Programming... PinprofessionalRob Philpott4-Jul-14 4:09 
GeneralRe: Starting Functional Programming... PinprofessionalSander Rossel4-Jul-14 6:23 
GeneralRe: Starting Functional Programming... PinmemberMark_Wallace4-Jul-14 6:51 
GeneralTo my friends in Hong Kong... PinprofessionalYvan Rodrigues4-Jul-14 3:39 
GeneralWell that's the Goulyas off the menu... PinprofessionalNagy Vilmos4-Jul-14 3:33 
GeneralRe: Well that's the Ghoul-ash off the menu... PinprotectorOriginalGriff4-Jul-14 3:38 
GeneralRe: Well that's the Ghoul-ash off the menu... PinprotectorCHill604-Jul-14 5:59 
GeneralRe: Well that's the Goulyas off the menu... PinprofessionalSander Rossel4-Jul-14 3:47 
GeneralRe: Well that's the Goulyas off the menu... PinmemberJimmyRopes4-Jul-14 3:48 
GeneralRolf Harris sentenced PinprotectorOriginalGriff4-Jul-14 2:24 
GeneralRe: Rolf Harris sentenced PinprofessionalMike Hankey4-Jul-14 2:42 
GeneralRe: Rolf Harris sentenced PinprofessionalNagy Vilmos4-Jul-14 2:44 
GeneralRe: Rolf Harris sentenced PinprofessionalRichard Deeming4-Jul-14 2:56 
GeneralRe: Rolf Harris sentenced Pinprofessionalchriselst4-Jul-14 2:57 
GeneralRe: Rolf Harris sentenced PinmemberHomerTheGreat4-Jul-14 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140922.1 | Last Updated 23 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid