Geeks With Blogs
Brian Schroer Don't Call Me Mort! .NET
What I saw at TechEd North America 2014
I was thrilled to be able to attend TechEd North America 2014 in Houston last week. I got to go to Orlando in 2008, and since then I’ve had to settle for watching the sessions online (which ain’t bad – They’re all available on Channel 9 for streaming or downloading. Here are links to the Developer Track sessions and to the sessions from all tracks.) The sessions I attended (with my favorites bolded) were: Shiny new stuff The Microsoft Application Platform for Developers: Create Applications That ......

Posted On Monday, May 19, 2014 9:00 PM

St. Louis ALT.NET
I’m a huge fan of the St. Louis .NET User Group and a regular attendee of their meetings, but always wished there was a local group that discussed more advanced .NET topics. (That’s not a criticism of the group - I appreciate that they want to server developers with a broad range of skill levels). That’s why I was thrilled when Nicholas Cloud started a St. Louis ALT.NET group in 2010. Here’s the “about us” statement from the group’s web site: The ALT.NET community is a loosely coupled, highly cohesive ......

Posted On Saturday, June 30, 2012 8:14 AM

Virtual Brown Bag: Pomodoro and Rails
At this week's Virtual Brown Bag meeting: Claudio talked about the Pomodoro Technique JB continued his ramping up with Rails series by showing how to create a model, controller, and views This Rails thing looks pretty cool, but it I think they stole some ideas from Microsoft's invention of the MVC pattern. ;) Links and video recording: https://sites.google.com/si... ......

Posted On Saturday, September 18, 2010 10:21 AM

C# in Depth, Second Edition
Technorati Tags: .NET,C#,Jon Skeet I'm really looking forward to the second edition of Jon Skeet's C# in Depth book, which should be printed in September. I took advantage of this "SkeetTweet" from yesterday: 45% off C# in Depth 2nd edition (http://manning.com/skeet2) - use coupon msa1145 at checkout. Valid until August 17th. …to pre-order the printed book, plus "Manning Early Access Program" access to PDFs of chapters from the work-in-progress, plus a PDF copy of the complete first edition, all ......

Posted On Saturday, August 14, 2010 10:04 AM

INotifyPropertyChanged with less code using Expressions
Technorati Tags: .NET,INotifyPropertyChanged... Parts 1 & 2 of this unintended trilogy: INotifyPropertyChanged with less typing using a Code Snippet INotifyPropertyChanged with less code using generics & reflection My previous post elicited a couple of good comments. Matt noted that my use of reflection to get the property name could be a problem in due to inlining in Release mode: http://stackoverflow.com/qu... http://www.hanselman.com/bl... ......

Posted On Monday, August 2, 2010 8:17 PM

INotifyPropertyChanged with less code using generics & reflection
Technorati Tags: .NET,INotifyPropertyChanged... In my last post, I talked about using a Visual Studio code snippet for properties in classes implementing INotifyPropertyChanged: The code snippet lets me create the properties faster, but it's still a lot of repetitive "setter" code for each. What if I moved the "has the value changed?" and backing field update logic out of the property setters and replace my NotifyPropertyChanged method with this CheckForPropertyChange method?: protected bool CheckForPropertyChange<T... ......

Posted On Tuesday, July 27, 2010 8:44 AM

INotifyPropertyChanged with less typing using a Code Snippet
Technorati Tags: .NET,INotifyPropertyChanged... Kevin Grossnicklaus gave a nice presentation on M-V-VM User Interface Patterns in Silverlight and WPF at last night's St. Louis .NET User Group meeting. A key part of MVVM is implementation of the INotifyPropertyChanged interface to let views know that bound properties have changed. Here's a simplified version of a model class from the MSDN INotifyPropertyChanged documentation: public class DemoCustomer : INotifyPropertyChanged { private Guid _id ......

Posted On Tuesday, July 27, 2010 7:48 AM

Reflector: Disassembling an entire assembly
Technorati Tags: .net,reflector This is mainly for future self… I don't need to do it often, and always waste time looking around for an add-in before I find the simple answer. Just right-click the assembly, then click "Export…": You'll be prompted for the folder to save to: ......

Posted On Friday, July 16, 2010 7:16 PM

Two online events: "mvcConf" and the "jQuery Online Conference"
Technorati Tags: jQuery,ASP.NET,ASP.NET MVC,conferences I was excited yesterday to learn of two upcoming virtual online conferences about topics in which I'm very interested. The first one I heard about was mvcConf, the Virtual ASP.NET MVC Conference - Thursday, July 22. From the website: mvcConf is a virtual conference focused on one thing. Writing awesome applications on top of the ASP.Net MVC framework. The event will be free to attend, and your brain will explode from taking in so much hard core ......

Posted On Friday, July 9, 2010 6:07 AM

How much faster are static vs. instance methods?
Technorati Tags: .NET If you use Resharper, you've probably seen it recommend that you make private methods static if they don't use any instance data or methods. FxCop also has a rule (CA1822) about this: "Methods which do not access instance data or call instance methods can be marked as static. After doing so, the compiler will emit non-virtual call sites to these members which will prevent a check at runtime for each call that insures the current object pointer is non-null. This can result in ......

Posted On Saturday, July 3, 2010 5:44 PM

“ASP.NET MVC 2 in Action” Ebook is complete
I just got email notification that ASP.NET MVC2 in Action is complete. I had signed up for the Manning Early Access Program (MEAP), which allowed me to reserve a hardcopy of the book, a PDF of the completed chapters, and the PDF of the entire version 1 (ASP.NET MVC in Action) book all for $49.99. I’m working on my first MVC application, and it’s been a big help so far. Congratulations to Jeffrey Palermo, Ben Scheirman, Jimmy Bogard, Eric Hexter, and Matthew Hinze for completing what looks like a ......

Posted On Tuesday, June 1, 2010 6:32 PM

WatiN screenshot saver
Technorati Tags: .NET,WatiN,testing In addition to my automated unit, system and integration tests for ASP.NET projects, I like to give my customers something pretty that they can look at and visually see that the web site is behaving properly. I use the Gallio test runner to produce a pretty HTML report, and WatiN (Web Application Testing In .NET) to test the UI and create screenshots. I have a couple of issues with WatiN’s “CaptureWebPageToFile” method, though: It blew up the first (and only) time ......

Posted On Monday, May 31, 2010 12:18 PM

Azure Boot Camp
Belated thanks to Perficient for sponsoring (and providing lunch, which was a nice unadvertised surprise) and to Avichal Jain and Brian Blanchard for presenting at the St. Louis Azure Boot Camp May 13-14. There was a little more upfront discussion of “What is Cloud Computing and Why is it important?” than I thought necessary (I would think that people signing up for a two-day Azure event would already be convinced that it’s a worthwhile thing), but we put on our boots and fired up Visual Studio soon ......

Posted On Monday, May 31, 2010 8:03 AM

Use UpdateSourceTrigger=PropertyChanged for immediate updates of bound XAML controls
My XAML learning project is inspired by Leon Bambrick’s “World’s Simplest Code Generator” (http://secretgeek.net/wscg... It’s a 3-pane window where you type or paste data into the top pane, enter a formatting pattern in the middle pane, and it displays the formatted results in the bottom pane: (Yes, I know about auto-implemented properties, Visual Studio snippets, and T4. The property-generating scenario above is just for example purposes.) The TextBox controls are bound to properties of my ViewModel, ......

Posted On Saturday, December 12, 2009 8:15 AM

.NET Rocks! - 423 hours and counting...
Congratulations to Carl Franklin and Richard Campbell on the upcoming 350th episode of .NET Rocks! I can't tell you how many hours of education & enjoyment DNR has provided me over the years. ...Well, actually, I can... I discovered the show around episode 10 or so, quickly caught up with the previous shows, and haven't missed one since. I added up the show runtimes, and the total is approximately 423 hours, or almost 18 days! A lot of people listen to DNR on their commute, and there's enough ......

Posted On Thursday, June 12, 2008 1:16 PM

Quickly select entire quoted string in Visual Studio
Here's a tip that will save you about 7 milliseconds over the course of your programming career...

In Visual Studio, if you double-click to the left of the opening quote character (between the quote and the preceding character), the IDE will select the entire string, including the opening and closing quote characters.

Posted On Saturday, May 10, 2008 8:02 PM

Enum.GetValues and Enum.GetNames return arrays sorted by value
If you ran this code: private enum FieldWidths{ CustomerNumber = 5, OrderNumber = 10, City = 30, State = 2, Zip = 11 } . . . int[] vals = (int[])Enum.GetValues(typeo... names = Enum.GetNames(typeof(FieldW... ...you might expect (I did, anyway) that the resulting arrays would look like this: vals: 5, 10, 30, 2, 11 names: "CustomerNumber", "OrderNumber", "City", "State", "Zip" What you would get, though, is: vals: 2, 5, 10, 11, 30 names: "State", "CustomerNumber", "OrderNumber", ......

Posted On Tuesday, December 18, 2007 8:13 AM

PowerShell Cheat Sheet
Inspired by Brian Button's presentation at the St. Louis .NET User Group and Scott Hanselman's dnrTV! episode, I'm starting to look into PowerShell. Scott Dorman had a link to a free introductory PowerShell e-book a while ago. I haven't actually read the e-book yet, but when I printed it, I noticed a nice PowerShell Cheat Sheet at the end of the book, which looks like it might be very useful ......

Posted On Monday, November 5, 2007 9:24 AM

Free "Mini-Refactor!" From Developer Express
When a free download of Refactor!™ for ASP.NET 2.2 was announced in May by Developer Express, I bookmarked it for future reference because I wasn't working on an ASP project at the time. When I took another look, I realized that the download includes 19 C#/VB code refactorings that work in any project, ASP.NET or not. They work in Visual Studio 2003, VS2005, and "Orcas". Included are Refactor! versions (with much nicer user interfaces) of four of the seven built-in VS2005 C# refactorings: Rename ......

Posted On Wednesday, July 4, 2007 8:51 AM

CoolCommands for Visual Studio 2005
Technorati tags: .net, freetools While gathering information about Visual Studio add-ins for a potential local user group presentation, I came across Gaston Milano's "CoolCommands". As far as I can tell, the latest version of the CoolCommands installer can be downloaded here:http://download.deklar... It adds a lot of useful tools to Visual Studio, but there's no help or "read-me" file documenting them, and I couldn't find a consolidated overview on Gaston's site, ......

Posted On Sunday, March 4, 2007 3:12 PM

Heartland Developers Conference 2006
I'm back home (to St. Louis, home of the world champion Cardinals!) from the Heartland Developers Conference in Omaha. The presentations that were most valuable to me were: "Power Programming with Attributes" - Dave Donaldson "Looking Ahead at C# 3.0" - Andrew Troelsen "Great Library of Common ASP.NET 2.0 Functions and Techniques" - Robert Boedigheimer "Reliable Applications with System.Transactions" - Robert Hurlbut I met Robert Hurlbut on the walk from the hotel to the convention center, and he ......

Posted On Saturday, October 28, 2006 7:43 AM

devLINK 2006 - The Tennessee .NET community rocks!
Many thanks to the organizers and sponsors of the devLINK conference, held in Nashville last Friday. It was well worth the 5 hour drive from St. Louis: big name speakers like Markus Egger, Ken Getz, Billy Hollis, Bill Vaughn, Mark Miller, Eric Sink and Wally McClure great prizes great food - breakfast, lunch and dinner (I've never heard of a conference where they fed you after all of the sessions had ended!) It was all FREE My only complaint was that there were too many good sessions going on at ......

Posted On Wednesday, October 18, 2006 7:27 AM

Polymorphic Podcast - Miguel Castro
Craig Shoemaker's Polymorphic Podcast has a nice two-part interview with fellow “geek with blog” Miguel Castro about “Architecting for Extensibility”. You can hear the interview here. If you're not familiar with Craig's podcast, check it out. It's a while between shows sometimes (hey, we can't expect everyone to be Carl Franklin), but they're always worthwhile. Craig is also co-author of a new book: Beginning Ajax With ASP.NET ......

Posted On Thursday, September 14, 2006 5:17 AM

upsw magazine
Magazines like MSDN, CoDE and Dr. Dobb's are for Morts and newbies. Finally, there's a magazine for elite software architects and developers! Announcing upsw... upsw magazine The Journal for Ultra-Pretentious Software Wankers APRIL 1, 2006 Volume 1 Number 1 tUnit - Testing Your Tests: Sure, you've got a comprehensive suite of unit tests, but how do you know your tests are reliable? You don't, unless you're using tUnit, my new test-testing framework Adam Baum I Know Something You Don't Know: There ......

Posted On Saturday, April 1, 2006 6:43 AM

A Valentine's greeting to that special someone ...er... thing
My valentine will always be my dear and loving wife, but there's another partner who brings joy into my life. Before you came along, with charms that often IEnumerate, I'd type a name, and then a "dot", then sit and wait...and wait...and wait... The screen remained as empty as my heart before you, love, but now, my dearest angel, you drop down from heav'n above suggesting members, properties, and methods with such great sense that we, like longtime lovers, finish one another's statements. Though ......

Posted On Monday, February 13, 2006 9:29 AM

David Chappell on WCF and WF
There's a nice video from last week's VSLive presentation on the Fawcette web site: Outlining the Future of Software Chappell & Associates' David Chappell detailed the design patterns for a new breed of service-oriented applications to a standing-room-only crowd at VSLive! on Tuesday. See how to combine Windows Communication Foundation and Windows Workflow Foundation to create fourth-generation apps. You have to be registered with the site to view the presentation - I don't remember if that's ......

Posted On Wednesday, February 8, 2006 3:09 PM

o/" When you with upon a thtar... o/"
D'Arcy from Winnipeg wishes C# had a “with” statement. Me, too. I've moved from VB6 to C# and am glad of it, but I really miss the old VB With/EndWith. It's great for "chatty" interfaces, expecially the ability to nest With's to update "grandchild" properties: With myCustomer .FirstName = "Phillip" .LastName = "Fry" .MiddleInitial = "J" .Age = 1024 With .Address .AddressLine1 = "3000 Farnsworth Avenue" .City = "New New York City" .State = "NY" .Zip = "101010001100011" .Country = "USA" ......

Posted On Tuesday, February 7, 2006 9:23 AM

msdn event: Smart Solutions with SmartClients
The St. Louis event on February 2, 2006 was ably presented by Jacob Cynamon. Session 1: Building Mobile Applications with Visual Studio 2005 The video that was shown to start off this session was a waste of time - A Benetton ad group of hipper-than-thou soul-patches zipping around a conference room on Segways, allegedly whipping together a mobile app in three days, while communicating with their customer as she purposefully strode around town ignoring incoming traffic while clicking on her smart ......

Posted On Monday, February 6, 2006 3:38 PM

Operator precedence and rules of associativity
fahrenheit = centigrade * 9 / 5 + 32; How is the C# statement above evaluated? fahrenheit = (centigrade * 9) / (5 + 32); fahrenheit = centigrade * (9 / 5) + 32; fahrenheit = (centigrade * (9 / 5) + 32; fahrenheit = ((centigrade * 9) / 5) + 32; fahrenheit = centigrade * (9 / (5 + 32)); The correct answer is 4, but please “don't make me think“ when coding math expressions. If your programming language allows parentheses (and I don't know of one that doesn't), why not use them to make the ......

Posted On Friday, February 3, 2006 7:41 AM

"They look like cartoon characters cursing"

"They look like cartoon characters cursing" - Mark Dunn, on regular expressions.

"I'm higher than a California condor on ecstasy!"

The man has a way with words. It's good to hear Mark Dunn on .NET Rocks again!

 

Posted On Wednesday, February 1, 2006 7:43 PM

.NET 2.0 "ForEach" methods
I just stumbled across the new .ForEach methods in .NET 2.0 for Array and the new generic collection objects. Instead of: GeekWithBlog[] geeks = GetGeekArray(); foreach (GeekWithBlog geek in geeks) { RaiseSalary(geek); } } private void RaiseSalary(GeekWithBlog geek) { geek.Salary *= 2; } ... you can now code: GeekWithBlog[] geeks = GetGeekArray(); Array.ForEach(geeks, RaiseSalary); } private void RaiseSalary(GeekWithBlog geek) { geek.Salary *= 2; } Combined with anonymous methods, this could either ......

Posted On Wednesday, February 1, 2006 4:32 AM

MSDN2 "hackable" URLS
Ram Shankar Yadav shared a handy tip the other day for finding documentation about .NET types on MSDN2. You can just browse to http://msdn2.microsoft.com/... (fully qualified type name). For example: http://msdn2.microsoft.com/... I've already used this several times, and am considering writing a Visual Studio add-in to automate it. Thanks, Ram ......

Posted On Wednesday, February 1, 2006 4:27 AM

Copyright © Brian Schroer | Powered by: GeeksWithBlogs.net