Goldilocks and the Three Functions

How much code is enough code? Does the phrase "less is more" apply here? Some people take pride in condensing their code into "one-liners," but the reality is that makes for obtuse, unmaintainable code where defects love to hide. Sure, there are some cases where gaining performance or some other type of efficiency justifies [...]

By |2017-03-22T11:57:41-04:00March 5th, 2017|Programming|0 Comments

Reading the Event Log with Windows PowerShell

This post is part of the #PSBlogWeek PowerShell blogging series. #PSBlogWeek is a regular event where anyone interested in writing great content about PowerShell is welcome to volunteer for. The purpose is to pool our collective PowerShell knowledge together over a 5-day period and write about a topic that anyone using PowerShell may benefit [...]

By |2019-10-20T17:15:45-04:00December 3rd, 2015|Programming|4 Comments

Internationalization with Import-LocalizedData: Part 2

When I first sat down to write this post, this one came out instead. If you're not familiar with the Import-LocalizedData Cmdlet, you might want to start there. I want to talk some more about Import-LocalizedData, but more specifically the way it works with the automatic variable $PSUICulture and some interesting behavior I observed there. [...]

By |2017-02-21T13:59:17-05:00August 27th, 2015|Programming|0 Comments

Internationalization with Import-LocalizedData

Recently I was working on a PowerShell project that involved internationalization. When researching the best approach, I learned about the Import-LocalizedData Cmdlet and it made it incredibly easy to support internationalization in my scripts. Before I really get into things, let me clarify a couple similar but distinct definitions (this is mostly for my own [...]

By |2017-02-21T13:59:11-05:00August 24th, 2015|Programming|0 Comments

Strong Typing Considerations

You could also call this one "Why I Hate JavaScript," but there are many popular languages today that do not employ strong typing. JavaScript was just the language I happened to be working in when the following code had me pulling my hair out for nearly twenty minutes: var value = $("#myTextbox").val(); var calculation [...]

By |2017-02-21T13:58:48-05:00July 31st, 2013|Programming|3 Comments