Archive for December, 2008
Installing Silverlight2 Tools for Visual Studio
I was talking with a friend of mine a couple of days ago about the future of web development and XAML specifically when he made the comment about the tools not being available for the average developer.
I said that I was pretty sure the tools were available now for Visual Studio. This morning, I went looking and sure enough the tools are available so I thought I’d download them and install them. And while I’m at it, I’ll write about the experience.
jQuery – Loading Partial Content
In previous posts, I’ve covered the core architecture of jQuery. How it works. How you call methods. A brief overview of what’s available.
From here on out, we will focus more on specific solutions that jQuery can provide. One of those is the ability to load partial content from the server and display it back in a section of our web page.
What is the global keyword in CSharp?
During the Christmas break, I received the following question:
What does C# global:: actually do? Code example, from table adapter code:
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [global::System.Serializable()] [global::System.ComponentModel.DesignerCategoryAttribute("code")] [global::System.ComponentModel.ToolboxItem(true)] [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] [global::System.Xml.Serialization.XmlRootAttribute("AutoTwitDataSet")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] public partial class AutoTwitDataSet : global::System.Data.DataSet {
Extracting Methods
I once knew a programmer who had us all fooled into thinking he was the most organized programmer on the planet. When he left at night, his desk looked like he had never even been to work. When we did code reviews, his code was nicely formatted, there wasn’t a duplicate line of code anywhere.
Aside from the look of his code, he knew his stuff too. And this is back in the day when code editors were only slightly better than notepad… at least compared to today’s tools.
When he left and we started maintaining code he had written we found that only the code he had to show us was pretty. The rest of his code looked like all of our code.
But today, the amount of time it takes to keep your code looking nice is trivial thanks to some macros that Microsoft has built into Visual Studio. One of those macros is the refactoring macro called, “Extract Method.”
What’s it do?
jQuery – Creating Plug-ins
Last week we looked at how to have jQuery execute our own functions. I suggested at the time that if you were going to need to use that function in multiple applications, you might want to consider turning it into a plug-in.
Today we’ll look at how to do that.