Hi Rustaceans, I am a C++ developer looking for some answers from the world of Rust. I am basically trying to implement loose coupling of sw components in a project where dynamic polymorphism is not allowed for performance reasons. To me this sounds very rust-ish. My primary reason for doing this is to be able to mock and stub the component interfaces for automatic testing, and normally I would use abstract base classes for interfaces and inject the components into each other as depencencies. So to the question... is it possible using basic language features to create two structs that both implement traits that are used by the other, inject the structs as dependencies to each other and also be able to stub or mock these structs?
WhatSheSaid Now • 100%
Here is the full manual: https://blog.weespring.com/27-dos-donts-parents-taking-care-baby/
WhatSheSaid Now • 100%
Now one is underway so i will get to see for myself =) the last linux handheld I had was the OpenPandora (full keyboard) so a device without even usb host would be to big of a leap. will definitly check out void for this
WhatSheSaid Now • 100%
My experience as well is that it quickly become a burden, ref the Ice Cone antipattern.
WhatSheSaid Now • 100%
So looking forward to modules! and decent support for it in cmake.
WhatSheSaid Now • 100%
thanks, I will check out large-scale sw development. With new, i am thinking that a lot has happened since say C++11 wrt compile-time polymorphism that opens up for new ways to implement known patterns. Also i have worked mainly embedded, so if there are arhictectural patterns that are common for for example Java/C#/rust/go developers it would be nice to catch upnon that as well
I have been working as a C++ developer for some years now, and have lately gotten more interested in finding out what are the best practices for SW design. Think SW architecture, UML, design patterns etc. Can anyone recommend a good (and fairly new) book for modern SW design, preferably with UML examples?
WhatSheSaid Now • 100%
wow that looks tempting, has anyone tried it?