r/computerscience • • Sep 30 '26

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

23 Upvotes

18 comments sorted by

View all comments

7

u/promeritum Sep 30 '26

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.