News for hackers. Stuff that matters.
Re:Ask HN: How best to learn software design principles? by prometheuspk on Monday July 07, 2014 @04:27PM (#8001187)
Would you say that FP itself (not the thought process it generates) would benefit me in mobile application devlopment. It's mostly gaining data and then setting it.
Re:Ask HN: How best to learn software design principles? by ufo on Monday July 07, 2014 @05:24PM (#8001523)
I would say that the main benefits of FP programming are

1. Its easier to define your own abstractions in libraries. Even advanced stuff like async programming can often be put on a library.

2. Languages like Haskell and OCaml have really cool type systems. Its a killer feature, IMO.

I wouldn't put that much emphasis on the purity aspect. In Haskell the reason for the purity to allow for lazyness and similar languages (Ocaml, F#, etc) are perfectly OK with strict evaluation and mutation.

That said, for mobile apps having a language that operates well with the rest of the ecosystem is probably a bigger concern. Its easier to choose your own language when you have more control over the running environment.

Re:Ask HN: How best to learn software design principles? by rubiquity on Monday July 07, 2014 @04:30PM (#8001209)
Intentionally or not, the thought process FP languages generates will creep its way into your programs, and then probably into the way you would write object-oriented programs.
Re:Ask HN: How best to learn software design principles? by platz on Monday July 07, 2014 @04:29PM (#8001204)
FP has been hard to realize on mobile mostly due to the limited choice of languages available.
Re:Ask HN: How best to learn software design principles? by rubiquity on Monday July 07, 2014 @04:34PM (#8001225)
Yeah, I agree with this. However, I could still see a lot of merit in writing the server that the mobile application talks to in an FP language.
Re:Ask HN: How best to learn software design principles? by seanponeil on Monday July 07, 2014 @06:37PM (#8002014)
RxJava brings lot of FP idioms to Android, and it's great
Re:Ask HN: How best to learn software design principles? by jimbokun on Monday July 07, 2014 @05:17PM (#8001484)
Are you developing for iOS? Swift seems to introduce a lot of FP concepts.
Re:Ask HN: How best to learn software design principles? by prometheuspk on Tuesday July 08, 2014 @06:39AM (#8003851)
Mostly Android. I was thinking about maybe using Scala just to make something meaningful while learning FP.