Currently developing futuristic smart-device, IoT connected, highway construction site safety system in EU.
Used to work on infrastructure, application architecture and cloud engineering.
Maybe you could add a small code example to the first paragraph, something like:
// equals to 0 by default// semantically equal to int outsideTemperature = 0;// or int outsideTemperature = default;intoutsideTemperature;// call function to get outside temperatureoutsideTemperature=ReadOutsideTemperature();Console.WriteLine($"Outside temp (in °C): {outsideTemperature}");// now the dilemma is that the output can be 0 // in either case the function succeeds or fails // (for whatever reason)// this can be fixed by declaring outsideTemperature as int? // and checking if outsideTempreature != null before // printing the value and treating it as a result from the function // while in fact it can be the default assigned by a compiler
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, great series.
Maybe you could add a small code example to the first paragraph, something like: