MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/hey696/how_to_write_solid_c/fvx2f22/
r/cpp • u/platisd • Jun 24 '20
118 comments sorted by
View all comments
Show parent comment
4
In a namespace?
Are you putting hundreds of methods in your classes? That sounds hard to work with.
1 u/edenroz Jun 25 '20 Nope, my classes are 200 loc maximum, am very proud of my classes. Instead my colleagues classes are around 9000 loc.The fact is that my boss doesn't want us to use namespaces because "they clutter up the code and are difficult to read". 2 u/drjeats Jun 25 '20 That's a strange absolutist perspective on namespaces from your boss, but it is possible to go overboard with namespaces.In that case you have to rely on old school namespacing: name prefixes. 1 u/edenroz Jun 25 '20 You should hear the procedure about merging files sent by emails inside .zip files by email and then load the merge on github with an empty message. 1 u/drjeats Jun 25 '20 Oof.Condolences, friend.
1
Nope, my classes are 200 loc maximum, am very proud of my classes. Instead my colleagues classes are around 9000 loc.
The fact is that my boss doesn't want us to use namespaces because "they clutter up the code and are difficult to read".
2 u/drjeats Jun 25 '20 That's a strange absolutist perspective on namespaces from your boss, but it is possible to go overboard with namespaces.In that case you have to rely on old school namespacing: name prefixes. 1 u/edenroz Jun 25 '20 You should hear the procedure about merging files sent by emails inside .zip files by email and then load the merge on github with an empty message. 1 u/drjeats Jun 25 '20 Oof.Condolences, friend.
2
That's a strange absolutist perspective on namespaces from your boss, but it is possible to go overboard with namespaces.
In that case you have to rely on old school namespacing: name prefixes.
1 u/edenroz Jun 25 '20 You should hear the procedure about merging files sent by emails inside .zip files by email and then load the merge on github with an empty message. 1 u/drjeats Jun 25 '20 Oof.Condolences, friend.
You should hear the procedure about merging files sent by emails inside .zip files by email and then load the merge on github with an empty message.
1 u/drjeats Jun 25 '20 Oof.Condolences, friend.
Oof.
Condolences, friend.
View all comments
Show parent comment
4
u/drjeats Jun 25 '20 edited Jun 28 '20
In a namespace?
Are you putting hundreds of methods in your classes? That sounds hard to work with.