concept type in category design

This is an excerpt from Manning's book Object Design Style Guide.
If you don’t add a question mark after a parameter or return value’s type, null will not be an accepted value for it: public function foo(Bar bar): Baz { // `bar` will be an instance of `Bar`, and never `null` // we have to return an instance of `Baz` }

This is an excerpt from Manning's book Usability Matters: Mobile-first UX for developers and other accidental designers.
Chapter 13 explains what to consider when regarding connectivity. In it, I’ll talk about how the type of connection can vary, how the connection can’t and won’t always be possible, and what you can do to create the best experience for people when they don’t have perfect network conditions.
Before transferring a large amount of data (either upload or download), check the available speed. Don’t rely on the type of connection. A tethered device might report as connected over Wi-Fi while still using a mobile network for internet access. If you can choose the type of connection to use, and with no other information available, favor Wi-Fi over a mobile network. But check the speed presently available before starting a large transfer, and warn the user if it’s likely to take a long time, or longer than usual.
Match the frequency of automatic requests to the type of connection available.