Click here to Skip to main content
15,922,315 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Irony Pin
Dave Kreskowiak23-Jul-16 12:58
mveDave Kreskowiak23-Jul-16 12:58 
GeneralRe: Irony Pin
Marc Clifton23-Jul-16 12:24
mvaMarc Clifton23-Jul-16 12:24 
GeneralRe: Irony Pin
Dave Kreskowiak23-Jul-16 13:01
mveDave Kreskowiak23-Jul-16 13:01 
GeneralRe: Irony Pin
Marc Clifton23-Jul-16 14:57
mvaMarc Clifton23-Jul-16 14:57 
GeneralRe: Irony Pin
Dave Kreskowiak23-Jul-16 15:48
mveDave Kreskowiak23-Jul-16 15:48 
GeneralRe: Irony Pin
Brisingr Aerowing23-Jul-16 14:00
professionalBrisingr Aerowing23-Jul-16 14:00 
GeneralRe: Irony Pin
Garth J Lancaster23-Jul-16 14:50
professionalGarth J Lancaster23-Jul-16 14:50 
GeneralRe: Irony Pin
Marc Clifton23-Jul-16 15:10
mvaMarc Clifton23-Jul-16 15:10 
Garth J Lancaster wrote:
having made an attempt at writing a HAL in Python, the kiddies have discovered that they can't do it, and have come to me cap in hand to help them'


First part happened, second part has not.

Now they're writing it in F#, because one of the kiddies as a Haskell background. Laugh | :laugh:

The irony here is:

1) very few people actually know F#, so the code will undoubtedly be thrown away by the next iteration of kiddies, if not sooner.
2) it's like reading imperative code with match statements instead of switch and type instead of enum, and everything is mutable.
3) FP is just the wrong approach for this kind of work because you're dealing with a lot of struct stuff for the hardware, a lot of mutable data from the I/O, and possibly the need to maintain some sort of state information, like is the hardware up or down since the last time we checked.
4) from what I've seen so far, no logging, no exception handling, no modularity, and a lot of hard coded constants and strings, but hey, "we're ahead of schedule!" is pronounced loudly and proudly at every stand up.

I write better prototype code. Laugh | :laugh:

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: Irony Pin
Marc Clifton23-Jul-16 15:12
mvaMarc Clifton23-Jul-16 15:12 
GeneralRe: Irony Pin
Mycroft Holmes23-Jul-16 22:38
professionalMycroft Holmes23-Jul-16 22:38 
GeneralRe: Irony Pin
Marc Clifton24-Jul-16 2:30
mvaMarc Clifton24-Jul-16 2:30 
GeneralRe: Irony Pin
Sander Rossel23-Jul-16 23:21
professionalSander Rossel23-Jul-16 23:21 
GeneralRe: Irony Pin
Kiriander24-Jul-16 21:57
Kiriander24-Jul-16 21:57 
GeneralRe: Irony Pin
Gary Wheeler25-Jul-16 1:46
Gary Wheeler25-Jul-16 1:46 
GeneralRe: Irony Pin
englebart25-Jul-16 2:34
professionalenglebart25-Jul-16 2:34 
GeneralRe: Irony Pin
agolddog25-Jul-16 3:37
agolddog25-Jul-16 3:37 
GeneralRe: Irony Pin
Dale Barnard25-Jul-16 6:10
Dale Barnard25-Jul-16 6:10 
GeneralRe: Irony Pin
milo-xml25-Jul-16 7:49
professionalmilo-xml25-Jul-16 7:49 
GeneralAlcohol causes cancer? Pin
Brisingr Aerowing23-Jul-16 3:34
professionalBrisingr Aerowing23-Jul-16 3:34 
GeneralRe: Alcohol causes cancer? Pin
PIEBALDconsult23-Jul-16 3:37
mvePIEBALDconsult23-Jul-16 3:37 
GeneralRe: Alcohol causes cancer? Pin
CDP180223-Jul-16 4:16
CDP180223-Jul-16 4:16 
GeneralRe: Alcohol causes cancer? Pin
glennPattonWork323-Jul-16 5:31
professionalglennPattonWork323-Jul-16 5:31 
GeneralRe: Alcohol causes cancer? Pin
Slacker00724-Jul-16 1:23
professionalSlacker00724-Jul-16 1:23 
GeneralRe: Alcohol causes cancer? Pin
Rob Grainger25-Jul-16 4:17
Rob Grainger25-Jul-16 4:17 
GeneralRe: Alcohol causes cancer? Pin
PIEBALDconsult26-Jul-16 14:08
mvePIEBALDconsult26-Jul-16 14:08 

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

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