We just covered background information on our last file processing foray. Now, what's faster: CRT, Windows API, or something else?
- By Bartlomiej Filipek
- 03/06/2017
Welcome to the 21st century, C#, now that case blocks support a variety of pattern-matching formats.
On the Windows platform, the C++ language offers several ways to process a file. We'll look at four approaches for serial IO access.
- By Bartlomiej Filipek
- 01/26/2017
Both are .NET Framework-based, but they don't seem to be speaking the same language.
Let's take a quick side trip and see what information we can glean from the .NET assembly.
Hashwords can use a pinch of salt for added security. There's a .NET class for that.
Sometimes the default view of objects in the debugger isn't enough, especially if you operate on complex data structures. Here's one way to alter the view and use a customized one.
- By Bartlomiej Filipek
- 12/08/2016
Pile on the exceptions, and .NET will have your back with the tools it provides at your disposal.
The alternative to that simple error-handling combo is the Try...Catch, but it's not as simple as wrapping up your code with it.
Debugging mouse events is especially confusing, because when the debugger stops the code, most of the events go away! What tactics can we use in these situations?
- By Bartlomiej Filipek
- 11/01/2016
Look behind the curtain on this one, and you'll see that code is quite magical in and of itself.
When you have code that is called for many objects it's hard to go through all them and just check line by line. How can you more efficiently debug lots of code?
- By Bartlomiej Filipek
- 10/20/2016
Goto statements, whether they're used in Visual Basic or C#, can be confounding as to their purpose in some contexts.
If the data you work with is complex and hard to understand, it's easy to get stuck on them when debugging. Add helper variables to make data much simpler to use and comprehend.
- By Bartlomiej Filipek
- 09/28/2016
Each language treats case clauses differently, but there's a way you can make them less boring in C#.