OOP + FP=Scala
- Started
- Last post
- 5 Responses
- DeIntegro
To continue our discussion on their respective benefits here comes Scala. Which Twitter apparently is deploying.
- bliznutty0
cool!
- bliznutty0
ok i'll discuss OOP for a sec.. i'm definitely biased towards it given i was taught high-level languages and concepts since day one of my studies in 2000. let's just say if you want scalable, readable, easily managable code, that is highly adaptable to change then you want OO. In other words if you have a software product that lives, changes, grows, etc.. or if you have a team developing it over time.
OO concepts are ideal for developing frameworks, layered architectures, even for service oriented architectures using beans or WCF. Also OO allows for easily changeable code which is ideal for fast-paced agile environments where customers demand rapid software development.
If you are looking for speed while harnessing the advantages of OOP, then look into using the new multi-threading F# libraries for leveraging today's powerful multi-core processors.
I really can't speak too much about the real world advantages of using functional languages today. Care to fill me in?
- acescence0
purely functional programs are inherently more scalable than oo because they are stateless. large functional programs are also easier to maintain for the same reason, there are fewer side effects because you're not dealing with shared state, and order of execution doesn't matter. if you need massively parallelized and distributed execution functional is the way to go.
- harder to write, easier to debug, and yes, you have to really, really understand it...vaxorcist
- vaxorcist0
actually reading the whole thing:
http://www.defmacro.org/rambling…
has cleared up alot of ideas in my head...
if you want confusion, read:
http://pdos.csail.mit.edu/scigen…
