OOP vs functional programming paradigm

In summary, a professor at Carnegie Mellon University has eliminated object-oriented programming from their introductory curriculum, stating that it is unsuitable for a modern computer science curriculum due to its anti-modular and anti-parallel nature. However, a new course on object-oriented design methodology will be offered at the sophomore level. It is unclear if there is a mathematical background to OOP and whether certain algorithms are better represented using certain programming paradigms. A recommendation is made to ask this question on Stack Overflow.
  • #1
find_the_fun
148
0
I was reading wikipedia about the short comings of the object oriented programing paradigm and a prof atCarnegie Mellon University states ""This semester Dan Licata and I are co-teaching a new course on functional programming for first-year prospective CS majors... Object-oriented programming is eliminated entirely from the introductory curriculum, because it is both anti-modular and anti-parallel by its very nature, and hence unsuitable for a modern CS curriculum. A proposed new course on object-oriented design methodology will be offered at the sophomore level for those students who wish to study this topic." Is there a mathematical background to OOP and if no what ramifications (if any) does it have on its applicability to implementing algorithms? Are certain algorithms better represented using certain programing paradigms or does the algorithm itself have built in a paradigm?
 
Last edited by a moderator:
Technology news on Phys.org
  • #2
This is going to be a very difficult question for anyone to answer on MHB, given the general expertise represented here. I would recommend Stack Overflow for this question. Thanks for asking it, though!
 

Related to OOP vs functional programming paradigm

1. What is the main difference between object-oriented programming (OOP) and functional programming?

The main difference between OOP and functional programming is their approach to solving problems. OOP focuses on creating objects that contain data and methods to manipulate that data, while functional programming focuses on using functions to process data without changing its original state.

2. Which programming paradigm is better for developing large-scale applications?

This depends on the specific needs and requirements of the application. OOP is often preferred for its modularity and ability to handle complex systems, while functional programming is known for its simplicity and ease of debugging. Ultimately, the best approach will depend on the specific project and the expertise of the developers.

3. What are the advantages of using OOP?

OOP offers several advantages, including encapsulation, inheritance, and polymorphism. Encapsulation allows for better organization and security of code, while inheritance allows for code reuse and easier maintenance. Polymorphism allows for flexibility and scalability in code design.

4. Can you mix OOP and functional programming in one project?

Yes, it is possible to use elements of both OOP and functional programming in a single project. For example, an application can use OOP for its overall structure and organization, while implementing functional programming for certain tasks or operations.

5. Which programming paradigm is more suitable for parallel programming?

Functional programming is often considered more suitable for parallel programming due to its focus on immutable data and stateless functions. This allows for easier parallelization and can result in better performance for certain tasks. However, OOP can also be used for parallel programming with the use of threads and other techniques.

Similar threads

  • Programming and Computer Science
Replies
32
Views
5K
  • Programming and Computer Science
Replies
26
Views
5K
Replies
2
Views
899
  • STEM Academic Advising
Replies
13
Views
2K
  • STEM Academic Advising
Replies
13
Views
3K
  • Programming and Computer Science
Replies
17
Views
4K
  • Programming and Computer Science
Replies
18
Views
5K
  • STEM Academic Advising
Replies
1
Views
1K
  • STEM Academic Advising
Replies
8
Views
989
Back
Top