News for hackers. Stuff that matters.
Re:Building a Cloud Database from Scratch: Why We Moved from... by pharmakom on Friday February 10, 2023 @11:24AM (#34741781)
OOP is not C++ best practice these days. For me C++ best practice is:

- Smart pointers

- auto and const references all over the place

- RAII

- Pure data structs

- Free functions

- At little bit of templating but not too crazy

Modern C++ reads a bit like JavaScript strangely!

Re:Building a Cloud Database from Scratch: Why We Moved from... by Shorel on Friday February 10, 2023 @12:30PM (#34742803)
> Modern C++ reads a bit like JavaScript strangely!

I yield to your comment.

Re:Building a Cloud Database from Scratch: Why We Moved from... by FpUser on Friday February 10, 2023 @02:04PM (#34744137)
There is no "best practice". It depends on context. OOP is good for some things and not that much for others. Same goes for your list of "best" practices. Dismissing a paradigm in totality because some Joe Shmoe of today has declared it non cosher looks rather more like a religious statement than a practical choice.
Re:Building a Cloud Database from Scratch: Why We Moved from... by lelanthran on Friday February 10, 2023 @02:32PM (#34744552)
> OOP is not C++ best practice these days.

I didn't say it was.

I didn't say anything about best practice, only about familiarity.

Re:Building a Cloud Database from Scratch: Why We Moved from... by pharmakom on Friday February 10, 2023 @04:01PM (#34745790)
Good point. Bad ideas don’t die, only practitioners