ASP.NET News from Blogger: Did it with .NET   Get the feed of: Did it with .NET

Total News: 54

Writing F# Type Extensions for Nullable

A type extension is F#s syntax for augmenting an existing type with new members similar in spirit to C# and VBs extensions methods. I employ type extensions to make life a bit easier w...

Goings On

The last several weeks have been pretty hectic for me. First, Visual Studio 2010 and .NET Framework 4 shipped. Of course, only those living in caves and under rocks missed that bit of ne...

Empty Nothings

A few weeks ago, some of my colleagues and I were discussing the idiosyncrasies of various programming languages (as we often find ourselves doingwere kind of geeky that way), when one o...

Naming Anonymous Types with Generate from Usage

Now that Visual Studio 2010 Beta 2 is finally out the door, Ive had a bit more time to spend coding on some of my personal projects. Yesterday, I happened upon a cool trick while using ...

CodeRush Xpress for C# and VB is Live!

Last October, DevExpress released a massively powerful FREE tool specifically for C# developers called CodeRush Xpress. Today, in partnership with Microsoft, DevExpress has outdone themselves wit...

YAPES: Problem Ten

Im back again with another post in my Yet Another Project Euler Series. As a reminder, my approach to these problems is to try to find the most beautiful solution that I can using F#. While perfor...

Lesser-Known VB: Customizing the Completion List

In Visual Basic .NET, there are several cases in which the statement completion list will present the user with a list of values rather than the standard completion set. Most often, this occurs when ...

YAPES: Problem Eight

Welcome coding ninjas!1 Continuing with Yet Another Project Euler Series (YAPES), we come upon problem eight. 731671765313306249192251196744265747423...

Modifying VB XML Literals at Debug-Time

As a Program Manager at Microsoft, I wear several different hats. First and foremost, I am the Visual Basic IDE Program Manager, whose job is to keep the powerful engine that is the VB IDE Team runni...

YAPES: Problem Seven, Part 2

Last time, we took a brute force approach to solving Project Euler problem seven. Unfortunately, the resulting prime number generator turned out to be fairly ugly and not really efficient enough to h...

Printf and Formatting Debug Output in F#

The F# library provides a variety of functions (based on the printf functions found in OCaml) that produce formatted text. pr...

Cameo Appearance

Its that time of year again. CodeMash time. When I first moved to the Seattle area, I was concerned that I wouldnt be able to come back to Ohio for this years CodeMash. Of all of the c...

YAPES: Problem Seven, Part 1

Prime numbers. If theres one mathematical curiosity that appears more often than any other in the Project Euler problems, its prime numbers. To be fair, we've dealt with prim...

F#TW!

NOTE: I have shamefully stolen the title of this post from the custom T-shirt sported by Amanda Laucher at Tech Ed Developer 2008. The cleverness is all hers. Im a b...

I'm Alive!

After two full months with no new posts, Im finally coming up for air. The past two months have been some of the busiest of my life. Below are a few of the things Iv...

YAPES: Problem Two

Today, I'm tackling Project Euler problem two in F#: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Like proble...

All Hail King Nerd!

Jason Follas has done it again! He has trumped all of our feeble geeky efforts to firmly establish himself as the reigning "King Nerd." Over the years, Jason repeatedly has proven his ...

Yet Another Project Euler Series (YAPES)

For the past several months, I've been using F# to solve at least two Project Euler problems each week. I find this is a great way to sharpen my math skills and my F# skills simultaneously. If you...

Apples And Oranges

This recent blog post caused quite a stir on the F# mailing list. The post presents two solutions for Project EulerProblem 14: one in C# and the other in F#. The C# version ...

Surprise Presentation

Last month, I was scheduled to speak at the Findlay Area .NET Users Group (FANUG), but the meeting was canceled due to weather. This month, my good friends Jason Follas and Greg Huber were schedu...

Detroit Launch Event

Yesterday, I attended the Microsoft Detroit Launch Event and the Geek Dinner that immediately followed. (Important thanks go to Microsoft for graciously picking up our food tab at the Geek Dinner...

Why I Love F#: A Refactoring Tale

Recently, I was refactoring some trivial F# code, and the results were so elegant that I felt it would be instructive to share them. My tale begins simply with a list of lists... > ...

Why I Love F#: Lists - The Basics

Help! I've painted myself into a corner. While writing articles for this series, I try very hard to introduce only a little F# syntax at a time. It is a personal goal of mine not to use syntax that ...

Why I Love F#: Option Types

Welcome to the eighth article in my series about why I look upon the F# language with the hormone-driven lust of a 16-year old boy. ([ed.] Dustin's trophy wife has indicated that the previous metap...

Why I Love F#: Pattern Matching

Greetings fellow F#-philes! Today we're looking at another reason that I am completely infatuated with the F# languagepattern matching. Pattern matching is a simple idea. Essentially, a pattern ...

Why I Love F#: Functions, Functions, Functions!

Welcome back for another installment in my series on why I find Microsoft F# to be an exciting language for the .NET platform. If you're just joining us, below are links to the articles in the ser...

Why I Love F#: Result Tuples

As promised, today I'm demonstrating a compelling way in which F# uses tuples to make .NET programming more elegant. A question that comes up early in F# demonstrations is, "Can I use F# to acc...

F# and NUnit

Nate Hoellin has a great article on setting up an F# project for TDD with NUnit. Check it out:Sample setup for Visual Studio 2008 for F# Unit Testing with NUnit ...

Why I Love F#: Breaking Up Tuples

Last time, I demonstrated the basics of tuple types in the F# language. However, I (intentionally) failed to answer a couple of important questions about tuples: Once values are bound together...

Why I Love F#: Tuples

Another feature of the F# language that I crave desperately when writing C# or VB code is F#'s built-in support for tuples. What's a tuple? Simply put, a tuple is an ordered group of values. In one ...

Why I Love F#: Type-safe Format Strings

I'm continuing my series showing ways in which F# is a exciting .NET language. As I mentioned before, if you have any suggestions for future topics please feel free to email them to dustin AT didit...

Why I Love F#: The Interactive Environment

I'm starting a brand new series of short articles about F#. The plan is to describe features that, for me, make F# a compelling and enjoyable .NET language. So far, I have 10-15 articles in mind, b...

Yet Another CodeMash Interview

While at CodeMash, I sat down with my good friend Chris Woodruff for a casual podcast interview discussing life, code, being a Microsoft MVP, DevExpress and the CodeMash conference.CodeMash 2008 I...

Holy Cow! I'm On Hanselminutes!

While at CodeMash, I had the opportunity to sit down with Scott Hanselman and record an episode for his renowned podcast, Hanselminutes. As a follower of the podcast, I was thoroughly flattered to ...

Building Data Out Of Thin Air

WARNING : This article is an interesting diversion and contains little practical value. It is an example of mind-stretching language torture and is intended for ...

Twelve Days of Refactor! X-mas, Day Twelve: Extract XML Literal to Resource

Hello again, X-mas celebrants! I have just one last verse in my carol to make all of your Visual Studio 2008 experiences bright. Don't let your hearts be saddened ...

Twelve Days of Refactor! X-mas, Day Eleven: More Refactoring in XML Literals

Greetings friends! I bring tidings of comfort and joy! That is, you can rest comfortably and joyously, knowing that you don't have to wait for refactorings that leve...

Twelve Days of Refactor! X-mas, Day Ten: Refactoring in XML Literals

I'm afraid that I have an apology to make. I feel that I've given my Visual Basic friends a raw deal because the verses of my carol thus far have been primarily abo...

Twelve Days of Refactor! X-mas, Day Nine: Expand Lambda Expression

Welcome back for more X-mas refactoring fun!There are just four more verses in my carol, but I'll make them count. Refactor! Pro can bless your Visual Studio 200...

Twelve Days of Refactor! X-mas, Day Eight: Bread-and-Butter Refactorings in Query Expressions

JustinKohnen: @dcampbell: um... Christmas is over dude ;) That was posted on Twitter today when I announced that I was working on this very ...

Twelve Days of Refactor! X-mas, Day Seven: Create Backing Store

Season's greetings! We're halfway through my X-mas carol describing how Refactor! Pro can be used to leverage the new features of Visual Studio 2008. T...

Twelve Days of Refactor! X-mas, Day Six: Compress to Lambda Expression

Merry X-mas friends! It is indeed X-mas day, and I have returned with a special gift for you. Today, I'm doing my part to bring peace on earth and goodwi...

Twelve Days of Refactor! X-mas, Day Five: Convert to Auto-Implemented Property

'Twas the night before X-mas, when all through the house, Not a creature was stirring, not even a mouse; The stockings were hung by the chimney with care...

Twelve Days of Refactor! X-mas, Day Four: Rename Works In Query Expressions!

Feliz Navidad my mistletoeaficionados! I've just finished warming up my voice and am ready to continue my aria of Refactor! Pro support for Visual Studi...

Twelve Days of Refactor! X-mas, Day Three: Name Anonymous Type

Welcome back my 'nog-froth mustachioed friends! I've returned with another helping of Refactor! Pro goodness for Visual Studio 2008. One scrooge commented that th...

Twelve Days of Refactor! X-mas, Day Two: Make Explicit

Season's greetings! Welcome back for another dose of Yuletide cheer! Yesterday, I sang to you about one way in which Refactor! Pro can be used to leverage the new ...

Twelve Days of Refactor! X-mas, Day One: Make Implicit

Gentle readers, in the spirit of X-mas, I'd like to sing you a carol. This jolly tune (based on a popular old English carol) enumerates ways that Refactor! Pro c...

C# 2.5?

Visual Studio 2008's multi-targeting support for compiling projects to different versions of the .NET Framework is very powerful. Multi-targeting is a compelling feature because it enables users to ...

Improve Your C#! Borrow from F#...

While exploring F#, I've grown increasingly impressed by the libraries that ship with it. One of the main purposes of the libraries is to provide underlying support for the language itself. In addi...

F# at CodeMash

Putting the Fun into Functional with F# Scrambling to understand arcane-sounding functional programming terms like "closure" and "currying?" In...

View Other bloggers