393
you are viewing a single comment's thread
view the rest of the comments
[-] CapeWearingAeroplane@sopuli.xyz 2 points 5 months ago

This makes sense to me, thanks! I primarily use Python, C++ and some Fortran, so my typical programs / libraries aren't really "pure" OOP in that sense.

What I write is mostly various mathematical models, so as a rule of thumb, I'll write a class to represent some model, which holds the model parameters and methods to operate on them. If I write generic functions (root solver, integration algorithm, etc.) those won't be classes, because why would they be?

It sounds to me like the issue here arises more from an "everything is a nail" type of problem than anything else.

this post was submitted on 30 May 2024
393 points (94.6% liked)

Programmer Humor

32443 readers
815 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS