Common and useful concepts in .NET
We will present several concepts used in .NET that will help you develop applications alongside commonly encountered and utilized classes in the programming of these applications.
📄️ Error Handling
Every program is a state machine, and every state machine must handle all use cases, which include both normal operational states and error states. The question is, how can we handle errors? In many C libraries, errors were indicated by returning functions with error codes, usually negative, and they were mixed with responses from function calls that meant something other than a success code, such as the number of bytes transferred over a communication channel. Another approach in C is setting the errno variable, which can retain a previously set value and can lead to errors. This approach proved to be unsustainable for very complex programs because programmers, even with documentation, would have trouble understanding the code. However, this approach was retained for historical reasons and because it was too difficult to redesign all libraries, even system libraries, from scratch in a different way.
🗃️ Parallelism, Concurrency, and Threads
3 items
🗃️ Files, I/O Operations, and Streams
1 items
🗃️ Reflection
1 items