Tekpub: 4 – Loose Design with Interfaces. I really like his description of “fancy objects”. Previous versions or ARBO were very fancy indeed. Notes: Pass abilities of objects. Pass around interfaces and not objects. Interfaces should be the smallest possible object. If you have 5+ methods make a new interface.
Posts Tagged ‘Programming’
22 Dec
ASP.Net Razor and VB
Find a VB syntax reference for ASP.Net Razor is proving difficult. Most Razor samples are C#. This tutorial is the best that I’ve found so far. http://www.asp.net/webmatrix/tutorials/asp-net-web-pages-visual-basic
23 Feb
PowerCommands for Visual Studio 2008
Nathan, just sent out a reminder that if you reformat don’t forget this. It has some many little tools that just make sense with out getting in your way. http://code.msdn.microsoft.com/PowerCommands PowerCommands 1.1 PowerCommands 1.1 is a set of useful extensions for the Visual Studio 2008 adding additional functionality to various areas of the IDE. The [...]
22 Jan
Nice String Formatting Reference
http://idunno.org/archive/2004/14/01/122.aspx One of the painful things about good old ASP was string formatting, VBScript simply didn’t have anything useful. C# (and VB.Net) do, but MSDN doesn’t provide a quick reference to the formatting options. So here’s a quick reference. To compare string formatting in C# to those in C lets have an example, char szOutput[256]; [...]
5 Jun
"The breakpoint will not currently be hit" "The source code is different then the original version"
Big thanks to ThatOneDeveloper! His post about fixing ASP.Net debugger was a big help. http://development.thatoneplace.net/2009/04/breakpoint-will-not-currently-be-hit.html “The breakpoint will not currently be hit. The source code is different then the original version” … So to fix the problem: Close out Visual Studio and make sure any instances of ASP.NET development server are closed as well. Delete [...]
3 Jun
Finding a Python IDE
In the last month, I have been reading Collective Intelligence and checking out the Google API’s. Both of these source make heavy use of Python. However, I have been spoiled by Visual Studio and I want a good IDE for programming. The basic command line and IDLE just were not cutting it. I have found two [...]
3 Mar
Programming Mantra
Jeff Atwood’s post at Coding Horror reminded me of a couple simple rules for programming (and life). 1. DRY – Don’t Repeat Yourself 2. KISS – Keep It Simple, Stupid 3. YAGNI – You Ain’t Gonna Need It
12 Aug
Linq to SQL DataContext.Attach Heartaches
I was stunned that Microsoft has made disconnected updates with Linq so difficult. Didn’t they realize that a large chunk of their developers would be using ASP.NET or WCF? Some of the more cryptic errors are: “An entity can only be attached as modified without original state if it declares a version member or does [...]