Twitter's Alex Payne on functional programming languages

Summary: Editor's note: Andrew Mager is reporting from the Future of Web Apps (FOWA 2010) conference, held in Miami from February 22 to 24. Click here to read all of his coverage.

Editor's note: Andrew Mager is reporting from the Future of Web Apps (FOWA 2010) conference, held in Miami from February 22 to 24. Click here to read all of his coverage.

It's 2010. And we have been working on the web for 15 years.

But it's time to learn something new. The past 15 years, we have been trying to improve upon older things. Let's start fresh.

Working with object oriented programming is like a movie. You have a cast of characters with a set script. You have directors and producers. It's a time-consuming task and very error prone.

Functional programming is more like getting up to a chalkboard and writing an equation. You know how it's gonna work every time. Writing what should be done, instead of how. FP is more like finding and using mathematical abstractions to represent programs. Thinking in an analytical way. FP is value-oriented programming. State is transformed, not mutated.

Speed, security, stability: you have to make sure these fit into your programming routine. How do you pick a language?

Picking a framework is hard too. Make sure that when you move old code to a new stack, you have a strong integration point.

Try Scala or another FP language, and build your app with it. Let me know your thoughts on OOP vs. FP.

Topics: Social Enterprise, Software Development

Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.

Talkback

2 comments
Log in or register to join the discussion
  • Scala looks interesting

    scala-lang.org (i google'd it)

    Btw... how does one pronouce it?

    Scale-ah ?
    Ska-lah ?

    hmm.
    pcguy777
  • FP is good, but using both is FP and OOP is better

    FP is a great way to deal with sets of data and apply algorithms, however it is not good at defining structures and relationships. That is where OOP comes in.

    FP done right can give a compiler the hints needed to apply both high and low level optimizations automatically (like SIMD optimizations). However, I don't know if many compilers take advantage of that very well.
    T1Oracle