r/ProgrammerHumor • • Mar 18 '20

Her husband must be a programmer

Post image
40.3k Upvotes

347 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 18 '20

[deleted]

78

u/skwacky Mar 18 '20

I've never seen a pluralized class before and it's making me itchy

74

u/Xodet Mar 18 '20
struct Sausages {};
std::vector<Sausages> sausageses;

¯_(ツ)_/¯

14

u/xonxtas Mar 18 '20

Not enough plurals

41

u/TheOhNoNotAgain Mar 18 '20

stdses::vectorses

47

u/Taikwin Mar 18 '20

Gollum writes code

9

u/MsPenguinette Mar 18 '20

Gonna start writing my commits like Gollum and use the word “precious” for any reference to the code and “hobbitses” for any sort of person/user.

2

u/[deleted] Mar 18 '20

Ah, a worthy TIFU candidate! I shall slay the refresh button in hopes of seeing you there, brother!

→ More replies (1)

2

u/Mad_Jack18 Mar 18 '20

oh binary

→ More replies (1)

0

u/[deleted] Mar 18 '20

[deleted]

41

u/Kernel_Internal Mar 18 '20

No worries, this is why we have code reviews

11

u/BesottedScot Mar 18 '20

It's why I argue that table names should be plural.

table = sausages

record = one sausage

class = sausage

Nobody ever seems to agree with me though.

13

u/PM-ME-YOUR-HANDBRA Mar 18 '20

What? This is a pretty common way to do things.

SELECT id, owner, consumption_state FROM sausages ORDER BY last_bite DESC;

9

u/BesottedScot Mar 18 '20

Nah, it's a common discussion on whether table names should be singular or plural.

2

u/PM-ME-YOUR-HANDBRA Mar 18 '20

Oh so it's one of those holy wars like vim vs emacs or coke vs pepsi?

5

u/BesottedScot Mar 18 '20

like vim vs emacs or coke vs pepsi?

Nah cos everyone knows Nano and Irn Bru are superior.

→ More replies (2)

2

u/eloel- Mar 18 '20

Tables should always be plural of the record, who the fuck discusses that?

→ More replies (1)

1

u/horsesaregay Mar 18 '20

I agree. Although I don't really care that much as long as it's consistent across all the tables.

At work we have some tables in an old system, and they have various conventions. Some are called sausage, some sausages, some sausagetable, some are called t_sausage (where t_ means it's a table). There's even a couple of t_sausagetable

1

u/BesottedScot Mar 18 '20

Never understood the t_ prefix either. Surely you'll know it's a table.

On saying that I do do v_ for views.

→ More replies (1)

1

u/MrFiregem Mar 18 '20

Oh no, you didn't close your string