News for hackers. Stuff that matters.
Re:How Class-based Programming Sucks (2011) by fhd2 on Friday December 13, 2013 @08:23AM (#6900339)
> Class-based programming works great for GUI toolkits.

That and games (and I'd wager simulations in general). The only two domains I'm familiar with which I cannot imagine without OO.

From what I've seen, even UIs and games written in languages without support for OO still use something very close to OO. GTK for instance takes it quite far with GObject.

Re:How Class-based Programming Sucks (2011) by ocharles on Friday December 13, 2013 @09:37AM (#6900647)
I spent some time writing Asteroids in netwire - a functional reactive programming library in Haskell - in my free time over a few evenings. I blogged about this at http://ocharles.org.uk/blog/posts/2013-08-18-asteroids-in-ne... - and I don't think it pretends to be OO. It was a radically different style, and I left feeling fairly convinced that FRP is a fantastic model for realtime interactions
Re:How Class-based Programming Sucks (2011) by seanmcdirmid on Friday December 13, 2013 @10:03AM (#6900786)
FRP is great until you need to be interactive or switch over collections, then it becomes quite ugly. It can work for small games, like the ones in Courtney's dissertation. But over that? Not until a complete physics engine can be joined with a FRP library.
Re:How Class-based Programming Sucks (2011) by davexunit on Friday December 13, 2013 @01:57PM (#6902187)
FRP can exist happily alongside imperative methods of updating state. This approach is explored in FrTime for Racket. http://cs.brown.edu/~sk/Publications/Papers/Published/ck-frt...
Re:How Class-based Programming Sucks (2011) by seanmcdirmid on Friday December 13, 2013 @08:05PM (#6903994)
FrTime is not really pure FRP as envisioned by Elliot or Hudak. But then I prefer these impure FRP systems and have designed/implemented one myself called SuperGlue [1] as part of my dissertation.

[1] http://research.microsoft.com/apps/pubs/default.aspx?id=1793...

Re:How Class-based Programming Sucks (2011) by davexunit on Friday December 13, 2013 @10:07PM (#6904397)
I guess I prefer the impure systems then, too. :)
Re:How Class-based Programming Sucks (2011) by MartinCron on Friday December 13, 2013 @12:14PM (#6901621)
Thank you for sharing. I really enjoyed your netwire Asteroids post. I used Asteroids for teaching myself OO concepts many years ago. It's good to know that it's still a valuable teaching tool.
Re:How Class-based Programming Sucks (2011) by bunderbunder on Friday December 13, 2013 @04:00PM (#6902885)
That and enterprise software. As productive as I am with functional programming, I still find it works better to expose object-oriented interfaces to the world at large.

Some of that's admittedly just down to the window dressing. Object-oriented abstraction mechanisms such as interface tend to have a measure of self-documentation built in, to the extent that all the members are named, right down to method parameters. There's no reason you couldn't do something similar with FP, it's just that as far as I can tell nobody's ever made a point of doing so.