James Michael Hare
99 posts.
- Solution to Little Puzzlers–“List All Anagrams in a Word”This is the way I went about the "List all anagrams in a word” problems. However, keep in mind there are multiple ways to solve this, so don't worry if…
- Solution to Little Puzzlers–Find the Majority ElementThis is the way I went about the "The Majority Element” problems. However, keep in mind there are multiple ways to solve this, so don't worry if your…
- Little Puzzlers–The Majority ElementI like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the…
- Little Puzzlers–Fun With Random Number GeneratorsI like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the…
- C#/.NET Little Wonders: Null Conditional Operator in C# 6Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Solution to Little Puzzlers–Validate a Sudoku BoardThis is the way I went about the problem. However, keep in mind there are multiple ways to solve this, so don't worry if your solution has variations and…
- Little Puzzlers–Validate a Sudoku BoardI like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the…
- C#/.NET Little Wonders: Expression-Bodied Members in C# 6Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Solution to Little Puzzlers–Positive Integer to Roman NumeralsThis is the way I went about the "Positive Integer to Roman Numerals” problem. However, keep in mind there are multiple ways to solve this, so don't worry…
- C#/.NET Little Wonders: Indexer Initializer SyntaxOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Little Puzzlers–Positive Integer to Roman NumeralsI like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the…
- Solution to Little Puzzlers–Largest Square of ‘1’s in a MatrixThis is the way I went about the “Largest Square of '1's in a Matrix” problem. However, keep in mind there are multiple ways to solve this, so don't worry…
- C#/.NET Little Wonders: Static Using Statements in C# 6Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Solution to Little Puzzlers–Largest Puddle on a Bar ChartThis is the way I went about the “Largest Puddle on a Bar Chart” problem. However, keep in mind there are multiple ways to solve this, so don't worry if…
- C#/.NET Little Wonders: Exception Filtering in C# 6Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Little Puzzlers–Largest Puddle on a Bar ChartI like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the…
- C#/.NET Little Wonders & Little Pitfalls: The Complete CollectionI wanted to repost the index of all the Little Wonders and Little Pitfalls posts and presentations so that they would be readily visible for anyone new to…
- C#/.NET Little Wonders: Getting the Name of an IdentifierOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Solution: Little Puzzlers–Is tree a Binary Search Tree?This is the way I would go about the “Is tree a Binary Search Tree” problem if I were asked to perform it at an evaluation. However, keep in mind there…
- C#/.NET Little Wonders: String Interpolation in C# 6Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Little Puzzlers–Is Tree a Binary Search Tree?I like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the…
- C#/.NET Little Wonders: Auto-property initialization in C# 6Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Solution–Little Puzzlers: First Non-Repeating CharacterThis is the way I would go about this problem if I were asked to perform it at an evaluation. However, keep in mind there are multiple ways to solve this,…
- C#/.NET Little Wonders: Getting Caller InformationOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Extension Methods DemystifiedOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Explicit Interface ImplementationOnce again, in this series of posts I look at the parts of the.NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Visual Studio Little Wonders: Box SelectionSo this week I decided I’d do a Little Wonder of a different kind and focus on an underused IDE improvement: Visual Studio’s Box Selection capability.…
- C#/.NET Little Wonders: Static Char MethodsOnce again, in this series of posts I look at the parts of the.NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The Timeout static classOnce again, in this series of posts I look at the parts of the.NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Interlocked Read() and Exchange()Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Interlocked Increment(), Decrement(), and Add()Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The Joy of Anonymous TypesOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Select() and Where() with IndexesOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The Enumerable.Repeat() Static MethodOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Skip() and Take()Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C++ Little Wonders: The C++11 auto keyword reduxI’ve decided to create a sub-series of my Little Wonders posts to focus on C++. Just like their C# counterparts, these posts will focus on those features…
- C#/.NET Little Wonders–The List<T> Range MethodsOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The SequenceEqual() MethodOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Pitfalls: Implicit Zero To Enum ConversionC# is a wonderful language for modern programming. While everything in C# has a reason and a place, occasionally there are things that can be confusing…
- C#/.NET Little Pitfalls: Stopwatch Ticks are not TimeSpan TicksC# is a wonderful language for modern programming. While everything in C# has a reason and a place, occasionally there are things that can be confusing…
- C#/.NET Fundamentals: Unit Testing with Func<TResult> GeneratorsThe C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions.
- C#/.NET Fundamentals: Returning Zero or One Item As IEnumerable<T>The C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions.
- C#/.NET Fundamentals: Safely and Efficiently Raising EventsThe C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions.
- C#/.NET Little Wonders: The EventHandler and EventHandler<TEventArgs> delegatesOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The Generic Action DelegatesOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: Searching Strings With Contains(), StartsWith(), EndsWith(), and IndexOf()Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: String Padding and Trimming - Not Just for Spaces!Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The String Remove() and Replace() MethodsOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: An Oft Overlooked String ConstructorOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders: The ReferenceEquals() methodOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Little Wonders & Little Pitfalls: The Complete CollectionI wanted to repost the index of all the Little Wonders and Little Pitfalls posts and presentations so that they would be readily visible for anyone new to…
- C#/.NET Little Wonders: The Nullable static classOnce again, in this series of posts I look at the parts of the.NET Framework that may seem trivial, but can help improve your code by making it easier to…
- A Trio of Presentations: Little Wonders, StyleCop, and LINQ/LambdasThis week is a busy week for me. First of all I’m giving another presentation on a LINQ/Lambda primer for the rest of the developers in my company.
- C#/.NET Fundamentals: Choosing the Right Collection ClassThe .NET Base Class Library (BCL) has a wide array of collection classes at your disposal which make it easy to manage collections of objects. While it's…
- Automating C# Coding Standards Using FxCop and StyleCopRe-posting my presentation on Automating Code Standards that I'm presenting to the Cedar Rapids (Iowa) .NET Users Group - CRINETA - tonight. For more…
- C#/.NET Little Wonders: Empty(), DefaultIfEmpty(), and Count() Extension MethodsOnce again, in this series of posts I look at the parts of the.NET Framework that may seem trivial, but can help improve your code by making it easier to…
- C#/.NET Fundamentals: Of Lambdas and LINQThis is a quick presentation I threw together for a group of developers who requested a quick primer on using lambda expressions and the more common LINQ…
- C#/.NET Little Wonders: 5 Easy Ways to Combine SequencesOnce again, in this series of posts I look at the parts of the.NET Framework that may seem trivial, but can help improve your code by making it easier to…
- Automating C# Coding Standards Using FxCop and StyleCopJust uploaded my presentation to the Springfield (Missouri) Dot Net Users' Group to Slideshare at http://www.slideshare.net/BlackRabbitCoder/automating-cod…
- C#/.NET Little Wonders: The Any() and All() Extension MethodsOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can really help improve your code by making it…
- C#/.NET Little Wonders: First() and Single() - Similar Yet DifferentOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can really help improve your code by making it…
- C#/.NET Toolbox: Adding a ToHashSet() Extension MethodThis post is another in a series that will just contain little GUCs (Generic Utility Classes) I’ve developed along the way. If these already exist as part…
- C#/.NET Little Wonders: The ToLookup() LINQ Extension MethodOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can really help improve your code by making it…
- C#/.NET Little Wonders: Tuples and Tuple Factory MethodsOnce again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can really help improve your code by making it…
- C#/.NET Little Wonders: ConcurrentBag and BlockingCollectionIn the first week of concurrent collections, began with a general introduction and discussed the ConcurrentStack<T> and ConcurrentQueue<T>. The last post…
- C#/.NET Toolbox: A Debugable, Self-Installable Windows Service Template (Redux)I had written a pair of posts before about creating a debug-able and self-installing windows service template in C#. This is a template I began creating…
- C#/.NET Little Wonders & Little Pitfalls: The Complete CollectionI wanted to repost the index of all the Little Wonders and Little Pitfalls posts and presentations so that they would be readily visible for anyone new to…
- C#/.NET Little Wonders: The ConcurrentDictionaryOnce again we consider some of the lesser known classes and keywords of C#. In this series of posts, we will discuss how the concurrent collections have…
- C#/.NET Little Wonders: The ConcurrentStack and ConcurrentQueueOnce again we consider some of the lesser known classes and keywords of C#. In the next few weeks, we will discuss the concurrent collections and how they…
- C#/.NET Little Wonders: The Useful But Overlooked SetsOnce again we consider some of the lesser known classes and keywords of C#. Today we will be looking at two set implementations in the…
- C#/.NET Little Wonders: Comparer<T>.DefaultI’ve been working with a wonderful team on a major release where I work, which has had the side-effect of occupying most of my spare time preparing,…
- C#/.NET Fundamentals: Finding an Item’s Index in IEnumerable<T>Sorry for the long blogging hiatus. First it was, of course, the holidays hustle and bustle, then my brother and his wife gave birth to their son, so I’ve…
- C#/.NET Little Wonders: Cross Calling ConstructorsJust a small post today, it’s the final iteration before our release and things are crazy here! This is another little tidbit that I love using, and it…
- C#/.NET Toolbox: Generic Reversing ComparersI’m going to start another series of posts that I’m calling C#/.NET Toolbox that will just contain little GUCs (Generic Utility Classes) I’ve developed…
- C#/.NET Little Wonders: DateTime is Packed with GoodiesOnce again lets dive into the Little Wonders of .NET, those small things in the .NET languages and BCL classes that make development easier by increasing…
- C#/.NET Little Wonders & Little Pitfalls: The Complete CollectionI wanted to repost the index of all the Little Wonders and Little Pitfalls posts and presentations so that they would be readily visible for anyone new to…
- C#/.NET Fundamentals: Returning an Immutable CollectionLast week we discussed returning immutable POCOs from an enclosing class so that you can prevent someone who asks for your class’s data to mutate it out…
- C#/.NET Little Wonders: ToDictionary() and ToList()The Little Wonders series received so much positive response I decided to make it a recurring theme in my blog as new ones popped in my head.
- C# Toolbox: A Debuggable, Self-Installing Windows Service Template (2 of 2)Update: I have now placed the zip containing the source for the end result of part 1 and 2 of this service template here.
- C# Toolbox: A Debuggable, Self-Installing Windows Service Template (1 of 2)Update: I have now placed the zip containing the source for the end result of part 1 and 2 of this service template here.
- C# Fundamentals – Two Things That Only Initializers Can Easily Do…Thanks a lot, everyone, for all your comments and feedback on my Five Little Wonders Trilogy of posts. This week, it’s crunch time at my workplace so this…
- C#/.NET Five Final Little Wonders That Make Code Better (3 of 3)This week is my final entry in my Little Wonders series (posts one and two are here and here). These are those little tips and tricks in .NET (and in…
- C#/.NET Five More Little Wonders That Make Code Better (2 of 3)So last week I began my series with a post (here)) on those little wonders in .NET/C# -- those small tips and tricks that make code either more concise,…
- C#/.NET Five Little Wonders That Make Code Better (1 of 3)We all have those little wonders in our .NET code, those small tips and tricks that make code just that much more concise, maintainable, or performant.…
- 10 Things C++ Developers Learning C# Should KnowAfter taking a lot of time with C# fundamentals, I decided to go down a different road this week and talk about some of the differences in C# that can be…
- C# Fundamentals: The Differences Between Struct and ClassThis week in C# Fundamentals, we'll tackle the basic differences between C# struct and class types. Sure, this has been discussed many times by many…
- C# Fundamentals: Combining Enum Values with Bit-FlagsTwo posts ago, I talked about the C# enum and some of its pitfalls (here)). This post continues with a discussion of the fundamentals of enums by…
- C# Fundamentals - What is the Difference Between Const and Readonly?Once again we delve into the world of C# Fundamentals. Those hints and gotchas that tend to bite folks newer to the language. Today I take another look…
- C# Fundamentals: Beware Of Implicit HidingC# Fundamentals Genesis I’ve decided to begin a line of back-to-basics blogs that I hope to post regularly. I used to teach C++ Programming, Algorithms,…
- C# Fundamentals: Optional Parameters - Pros and PitfallsWhen Microsoft rolled out Visual Studio 2010 with C# 4, I was very excited to learn how I could apply all the new features and enhancements to help make…
- Premature-Optimization and Performance AnxietyWhile writing my post analyzing the new .NET 4 ConcurrentDictionary class (here), I fell into one of the classic blunders that I myself always love to…
- C#: The Curious ConcurrentDictionaryUpdate: I revised some of my initial thoughts after taking bit of my own advice and thinking about the less-tangible benefits of a ConcurrentDictionary.…
- C#: System.Collections.Concurrent.ConcurrentQueue vs. QueueI love new toys, so of course when .NET 4.0 came out I felt like the proverbial kid in the candy store! Now, some people get all excited about the IDE and…
- Code Reuse is (Damn) HardBeing a development team lead, the task of interviewing new candidates was part of my job. Like any typical interview, we started with some easy questions…
- C#: System.Lazy<T> and the Singleton Design PatternSo we've all coded a Singleton at one time or another. It's a really simple pattern and can be a slightly more elegant alternative to global variables.…
- C# Fundamentals: String Concat() vs. Format() vs. StringBuilderI was looking through my groups’ C# coding standards the other day and there were a couple of legacy items in there that caught my eye. They had been…
- C#: Why Decorate When You Can InterceptWe've all heard of the old Decorator Design Pattern (here) or used it at one time or another either directly or indirectly. A decorator is a class that…
- C# Extension Methods - To Extend or Not To Extend...I've been thinking a lot about extension methods lately, and I must admit I both love them and hate them. They are a lot like sugar, they taste so nice…
- More Fun with C# Iterators and GeneratorsIn my last post, I talked quite a bit about iterators and how they can be really powerful tools for filtering a collection of items down to a subset of…
