The Case of the Expected Unexpected Exception
“NUnit is being problematic again”, they told me when I came to visit the project. “When running unattended it’s not catching assertions properly and the test is coming up green, but when stepping...
View ArticleArcGIS–Getting the Legend Labels out
Working with ESRI’s ArcGIS package, especially the WPF API, can be confusing. There’s the REST API, the SOAP APIs, and the WPF classes themselves, which expose some web service calls and information,...
View ArticleRemote Debugging through fire, snow or fog
Remote Debugging in Visual Studio is a wonderful feature, especially during the later stages of testing and deployment, and even (if all else fails) when in production, but getting it to work is rarely...
View ArticleSurviving the Enterprise Application
Many of us have worked on this sort of application: “The Monster”, “The Big One”, “The Behemoth”, or simply “The Enterprise Application”. You know the kind I mean: it’s a mess of dozens of projects and...
View Articleהאם עוד צריך את VB.NET לתכנת מול אופיס?
עברו כמה שנים מאז שעבדתי עם Visual Basic.NET, והייתי בטוח שבימינו, ב-2013, נגמרו כבר הויכוחים של “איזו שפה יותר טובה”. שתיהן שפות עם יכולות דומות, והבחירה ביניהן היא בעיקר העדפה סגנונית. אבל מידי פעם...
View ArticleAttaching on Startup
Here’s a neat trick I stumbled onto that can make life a lot easier – in our development workstations, certainly, and even in a pinch on staging and testing machines: How many times have you wished you...
View ArticleNot-So-Lazy Static Constructors in C# 4.0
A coworker pointed me towards an interesting blog post by John Skeet about the changed behavior of static constructors in C# 4.0 (yes, I know, it’s been a few years now, but I never ran into it). It...
View ArticleQuick and Dirty Code Timing
When looking to optimize our code, the first and best advice we should keep in mind is this: Measure. Don’t optimize before you know what takes time, and then only optimize where it makes sense....
View ArticleBuilding a Nullable ComboBox
I like WPF. It has a bit of a learning curve, but once you get over it, you have an extremely extensible UI model that you can tweak very deeply. Unfortunately, this mindset made Microsoft leave many...
View Articleאיך לשמור על אותיות גדולות וקטנות בעולם עוין
כמתכנת C#, אני רגיל לחשיבות של case sensitivity – משתנים בשם test ו-TEST הם שונים ונפרדים. גם ב-XML וב-JSON, שני הפורמטים הנפוצים לתעבורת מידע, נהוג להקפיד על case sensitivity בשמות של השדות/אלמנטים....
View ArticleSnippet of the Day: AsSingleton
מכירים את זה שאתם צריכים להעביר ערך בודד לפונקציה שמצפה לקבל מערך או רשימה? נמאס לכם לכתוב כל פעם var myList = new List<MyClass> { myObject }; רק בשביל לקבל רשימה בת איבר אחד? אל דאגה, שוועתכם...
View ArticleWhen Not-True Doesn’t Equal False
There is a strangely common, reoccurring bug I’ve seen return, again and again, in most projects I’ve worked on in recent years. I call it the “Not True != False” bug, and it crops up, usually, when...
View ArticleNot-So-Lazy Static Constructors in C# 4.0
A coworker pointed me towards an interesting blog post by John Skeet about the changed behavior of static constructors in C# 4.0 (yes, I know, it’s been a few years now, but I never ran into it). It...
View ArticleAttaching on Startup
Here’s a neat trick I stumbled onto that can make life a lot easier – in our development workstations, certainly, and even in a pinch on staging and testing machines: How many times have you wished you...
View ArticleWhen Not-True Doesn’t Equal False
There is a strangely common, reoccurring bug I’ve seen return, again and again, in most projects I’ve worked on in recent years. I call it the “Not True != False” bug, and it crops up, usually, when...
View Articleהאם עוד צריך את VB.NET לתכנת מול אופיס?
עברו כמה שנים מאז שעבדתי עם Visual Basic.NET, והייתי בטוח שבימינו, ב-2013, נגמרו כבר הויכוחים של “איזו שפה יותר טובה”. שתיהן שפות עם יכולות דומות, והבחירה ביניהן היא בעיקר העדפה סגנונית. אבל מידי פעם...
View Article