296
you are viewing a single comment's thread
view the rest of the comments
[-] DickFiasco@lemm.ee 2 points 7 months ago

I use a combination of both. Objects are declared const, all members are set in the constructor, all methods are const. It doesn't really work for some types of programs (e.g. GUIs) but for stuff like number crunching it's great.

[-] lemmesay@discuss.tchncs.de 2 points 7 months ago

I heavily use classes while working on back end, and when I'm making a really self-contained logic, such as a logger or an image manipulation service.
but since most frontend stuff heavily leans on functional side, I go with it

this post was submitted on 21 Mar 2024
296 points (94.8% liked)

Programmer Humor

19450 readers
359 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS