Browse by Tags

Tagged Content List
  • Blog Post: A Programmer's Guide to C# 5.0

    My author's copies of the Fourth Edition of my book showed up today: It is significantly updated from the previous version. I especially enjoyed writing the sections on Linq and asynchronous features.
  • Blog Post: Is programming a generic skill?

    Came across a post by Justin Etheredge discussion whether changing between languages is just a matter of syntax. Or, to pick a specific example, can a Java programmer quickly and easily learn to write C# code? The answer is obviously "yes". Development is about a way of thinking and approaching...
  • Blog Post: Benchmarking, C++, and C# Micro-optimizations

    Two posts ( 1 2 ) on C# loop optimization got me thinking recently. Thinking about what I did when I first joined Microsoft. Way back in the spring of 1995 or so (yes, we did have computers back then, but the Internet of the time really *was* just a series of tubes), I was on the C++ compiler test team...
  • Blog Post: Individual Empowerment and agile...

    (Interestingly, I find myself writing more about agile and team stuff now that I'm not on a development team....) This is in response to a question about how you balance individual empowerment with the collaborative approach on a agile tem... *** Agile is all about the team, and being...
  • Blog Post: Moving from "write no tests" to TDD

    There was a post on an internal alias about moving a team that has not been creating any developer-written tests to one that does TDD. I wrote a reply that I think may be of more general interest... Developers are fluent in code. I think any time you are talking to developers about engineering practices...
  • Blog Post: Building Connection Center add-ins using WiX - part 2

    To actually get anything installed, we'll need a more reasonble WXS file. <?xml version="1.0"?> <Wix xmlns=" http://schemas.microsoft.com/wix/2003/01/wi "> <Product Name="Microsoft HealthVault Shortcut - Fabrikam WidgetTracker" Id="PUT-GUID-HERE" Language="1033" Codepage="1252" Version...
  • Blog Post: Building Connection Center add-ins using WiX - part 1

    I'm writing this specifically for developers who need to add links into HealthVault Connection Center, but I think the topic is of general interest to anyone who wants to create installer packages. We're going to be using the WiX (Windows Installer XML) toolset to create msi files. Note 1: While...
  • Blog Post: Unit testing through the UI

    One of my readers asked whether there were any UI unit testing tools. While I have seen some ASP.net tools like this, in general I'd expect that you would unit test a UI by making the UI a very thin layer (one that doesn't really need testing), and writing the unit tests to talk to the layer underneath...
  • Blog Post: xUnit.net...

    From Jim Newkirk, one of the original NUnit authors... xunit.net
  • Blog Post: Beautiful code...

    O'reilly publishes Beautiful Code Jonathan Edwards counters with a beautiful explanation . Now, I haven't read the new book, but I have a strong resonance with what Edwards wrote. You should definitely read the whole thing, but I few sentences jumped out at me. A lesson I have learned the hard...
  • Blog Post: Member names and UI controls

    A follow-on to the previous discussion about member names. There were a variety of opinions, some of which argued for using no prefix at all. For those of you who are in the group, I'm interested in how you manage things when you are doing UI work, and having to deal with your 3 member variables...
  • Blog Post: YAGNI and unit tests...

    Thanks for your comments. I decided to go ahead and write the unit tests for that layer, both because I knew what not writing them would be like, and I wanted to play with wrapping/mocking a system service. I also decided - as some of you commented - to do the right thing and encapsulate it into...
  • Blog Post: Does YAGNI ever apply to tests?

    I've been writing a small utility to help us do some configuration setup for testing. It needs to walk a directory structure, find all instances of a specific xml file, and then make some modifications to the file. I TDD'd the class that does the XML file stuff, and I'm confident that it's working...
  • Blog Post: Some alternative development methodologies...

    If scrum isn't to your liking, here are a few alternate methodologies that you might consider...
  • Blog Post: Wood 6-bit adder

    Wood 6-bit adder
  • Blog Post: Lost Column #2: Unsafe Image Processing

    (circa November 15, 2001) I think this column stands up pretty well without caveat. I should note that I wrapped the image class to provide nicer pixel-based access in a class you can find here . I suggest basing your code on that rather than what I wrote in the column. I should also note that...
  • Blog Post: To m_ or no to m_, that is the question...

    I apologize for shocking your system by posting more than once a month - there are reasons for that, but I unfortunately can't get into them right now - but Keith added an interesting comment to my last post. He said: Side Note: a bit disturbing you're using C++ naming conventions in C# though? :...
  • Blog Post: The problem with intellisense

    Today I was working with some sample code, and I came across a misspelling. Not a big deal - there was a field that was named "m_postion" rather than "m_position". But that got me thinking... In the past, that sort of thing wouldn't have happened. You would have written: int m_postion; but...
  • Blog Post: App Domains and dynamic loading (the lost columns)

    As promised, I'm going to start republishing some of my columns that were eaten by MSDN. I spent some time reading this one and deciding whether I would re-write it so that it was, like, correct. But it became clear that I didn't have a lot of enthusiasm towards that, so I've decided to post it...
  • Blog Post: Unit testing support in VS Pro

    I'm at least a month late in linking to this, but if you've been paying very little attention it might still be new that VS Pro will support unit testing in Orcas. Which I think is great news.
  • Blog Post: Hacky way of doing changing bitmaps on a button in WPF

    I came up with a hacky way of doing "hover" and "press" buttons in WPF recently. There are a couple of nice examples on the web, but I was looking for a way to do it purely through XAML. If there's a nicer way to do it through XAML (or if there are big drawbacks to this approach) please let me know....
  • Blog Post: Visual Studio, Expression Blend, and WPF

    I've been doing a bit of prototyping work with the aforementioned products, and thought that since Blend has an RC1 release , it was a good time to share a few thoughts... The short story is that both VS and blend are pretty good tools for building in WPF, but together, they're very impressive. ...
  • Blog Post: If it wasn't for him, we'd still be using toggle switches...

    Okay, not quite, but John W. Backus , the developer of FORTRAN has died. He brought us do loops, assignment statements, the much-debated goto, intrinsic data types, and started the software developer's obsession with code formatting (1). FORTRAN is the root of the Computer language family tree , and...
  • Blog Post: WPF Tip: Names can't have ":" in them...

    If you are doing storyboard-based animation, the animation is hooked up to a specific element through a unique id. You write code something like this: element.Name = "Fred"; window.RegisterName(element.Name, element); The second call establishes the relationship between the name and the object...
  • Blog Post: Reducing the risk of codevelopment

    Software is always built on other software - your dependencies - and the dependencies that you choose have a considerable influence on your success. Choose the existing technology that you know, and you have good predictability, but you might not produce a great product, or it might take too long to...
Page 1 of 12 (285 items) 12345»