r/learnprogramming • u/sw1sh • Jun 09 '12
Types of programming
So i have been teaching myself Java programming for the last two months,and I understand that it's an Object-Oriented Programming language. But from my time of stalking these forums I've read a lot about functional programming,and other types that I don't really understand. I get that I shouldn't expect to know much outside Java after only 2 months,but I'm just interested in how other languages differ from Java.
I've also read about Haskel,Scala and other seemingly unusual languages,and so my question is:
TLDR - "What are the differences between the programming types?"
215
Upvotes
65
u/sw1sh Jun 09 '12
This answered all my questions about the types of programming,and just opened up a whole new world of stuff for me to look up about programming!
They all sound so freaking interesting,i just want to know them all!Prolog in particular sounds like it could be a weird experience. I still dont fully understand how the likes of these other paradigms would work,but I imagine that's why people spend so much time learning them. You have seriously made me want to discover different styles of programming when I have learned Java much better. Haskell in particular has made me interested as it seems like it would have the widest variety of things to learn about. And particularly because I was planning on learning a higher level language next,but didnt realise Haskell was so high level.
What in particular makes Haskell so high level? And when you say parallel programming,do you mean telling a piece of code to run different parts at the same time on different CPUs(for example) and then combining the results at the end? Have you programmed in CUDA and is that an example of a parallel programming language?(I ask because a friend of mine did his final year project on using CUDA to work on huge matrices because he could harness the multiple cores of a GPU to solve them much quicker)