this post was submitted on 14 Aug 2023
1422 points (98.0% liked)

Programmer Humor

19544 readers
715 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] space_comrade@hexbear.net 20 points 1 year ago (2 children)

From what I've heard from Google employees Google is really stringent with their coding standards and they usually limit what you can do with the language. Like for C++ they don't even use half the fancy features C++ offers you because it's hard to reason about them.

I guess that policy makes sense but I feel like it takes out all the fun out of the job.

[–] frezik@midwest.social 18 points 1 year ago

As far as C++ goes, that's probably the only sane way to use the language.

[–] Sloogs@lemmy.dbzer0.com 9 points 1 year ago* (last edited 1 year ago) (1 children)

Just about any place I know that uses C++ also does that with C++ so that's nothing unusual for C++ specifically. It's too big of a language to reason about very well if you don't, so you've gotta find a subset that works.

[–] skeletorsass@hexbear.net 1 points 1 year ago

Too many patterns. If you do not do this every author will have a different use of the language and you will have to read a book of documentation each time you change files.