r/AskProgramming • • Jul 01 '26

Career/Edu Anyone hate object oriented code?

Dont like oops.

How do you guys manage it?

Like only functional and procedural prograing :)

My hate is towards the jungle-gorilla-banana problem whereas functional programming seems clear, brezzy and maintain codebase rather easily.

0 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/septumfunk-com Jul 01 '26

C structs absolutely allow you more control in how things are ordered and padded than say java objects, but it's not really about control necessarily, it's more about the separation of concerns. in C i make a struct that might be used in a few places and even in different forms via unions, they can become reusable and generic by not having methods tied to them

1

u/septumfunk-com Jul 01 '26

to give an example of this i use a personal set of headers that allows me to define a vector or map with some macros, but i could simply operate on that vector as if it were an array for the most part. the methods i provide in the file are simply for my convenience, they aren't a part of the struct and i can write wrappers around it elsewhere if i wanted to