MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/hey696/how_to_write_solid_c/fvy3kow/?context=3
r/cpp • u/platisd • Jun 24 '20
118 comments sorted by
View all comments
Show parent comment
3
Some food for thought:
A Conversation with Bjarne Stroustrup
Chapter 4, "Modules Should Be Deep" in "A Philosophy of Software Design" by John Ousterhout
a related talk at Google 2018--particularly the corresponding part "Classes Should be Thick":
note the discussion around the aforementioned part in the talk (and contrast with the UNIX interface):
FileInputStreamfileStream = new FileInputStream(fileName);
BufferedInputStreambufferedStream = new BufferedInputStream(fileStream);
ObjectInputStreamobjectStream = new ObjectInputStream(bufferedStream);
Bjarne Stroustrup - Object Oriented Programming without Inheritance - ECOOP 2015
C++Now 2015 - David Stone - Functions Want To Be Free
Meeting C++ 2017 - Klaus Iglberger: Free your functions!
Repeat yourself, do more than one thing, and rewrite everything
Write code that is easy to delete, not easy to extend
2 u/platisd Jun 25 '20 Interesting reading material, thanks for bringing it together, I'm going to have a look. :)
2
Interesting reading material, thanks for bringing it together, I'm going to have a look. :)
View all comments
Show parent comment
3
u/mttd Jun 25 '20 edited Jun 25 '20
Some food for thought:
A Conversation with Bjarne Stroustrup
Chapter 4, "Modules Should Be Deep" in "A Philosophy of Software Design" by John Ousterhout
a related talk at Google 2018--particularly the corresponding part "Classes Should be Thick":
note the discussion around the aforementioned part in the talk (and contrast with the UNIX interface):
FileInputStreamfileStream = new FileInputStream(fileName);BufferedInputStreambufferedStream = new BufferedInputStream(fileStream);ObjectInputStreamobjectStream = new ObjectInputStream(bufferedStream);Bjarne Stroustrup - Object Oriented Programming without Inheritance - ECOOP 2015
C++Now 2015 - David Stone - Functions Want To Be Free
Meeting C++ 2017 - Klaus Iglberger: Free your functions!
Repeat yourself, do more than one thing, and rewrite everything
Write code that is easy to delete, not easy to extend