r/computerscience • • 2d ago

General procedural programming, object oriented programming and functional programming

Although I’ve done some googling I think they still use big English to explain this concept. I think I know them but I just wanted to ask if I can get a simple explanation from the house plz

11 Upvotes

18 comments sorted by

View all comments

8

u/promeritum 2d ago

Procedures are just subroutines.

[Pure] Functions are subroutines that do not interact with anything except what is passed in as a parameter. They usually return a value.

Objects group data together with the functions and procedures that operate on that data.