In regards to modern usage, it is hard to think how we can validate preconditions and post conditions in a cloud native world without additional development of libraries.
Overall though, the course has students struggling with learning the new tooling and syntax when the University has only taught Java and C thus far.
I do find DbC interesting and I think it would be interesting to see it given first class support (Go Contracts draft [2]), but the reality is that TDD can accomplish the same at a much faster development speed.
[0] - https://wiki.eecs.yorku.ca/course_archive/2019-20/W/3311/sta...
[1] - https://wiki.eecs.yorku.ca/course_archive/2019-20/W/3311/sta...
[2] - https://go.googlesource.com/proposal/+/master/design/go2draf...