-
A Design Pattern for Building WPF Business Applications: Part 3
Last updated: Wednesday, March 17, 2021
Published in: CODE Magazine: 2019 - September/October
In the third installment of his WPF series, Paul shows you how to get feedback using an Entity Framework entity class. He also shows you how to start expanding user activities, like adding, editing, or deleting screens.
-
Create a Title Bar for User Controls
Last updated: Friday, April 2, 2021
Published in: CODE Magazine: 2019 - March/April
Those helpful buttons for minimize, maximize, and close functions need to be added to your WPF pages if you don’t want to crowd your user’s screen. Paul shows you how.
-
Case Study: Writing Microservices with F#
Last updated: Wednesday, June 2, 2021
Published in: CODE Magazine: 2016 - November/December
If you’re lucky enough to be involved in building a new enterprise system, you’ll want to check this out. Rachel takes a look at how the company where she works made some interesting—and forward-looking—decisions, and she shows us the benefits of microservices while she’s at it.
-
Simplest Thing Possible: Dynamic Lambda Expressions—Part 3
Last updated: Wednesday, June 2, 2021
Published in: CODE Magazine: 2016 - November/December
If you want to re-use some of the concepts John introduced in the last two issues, you’ll want to learn all about Dynamic Lambda Expressions work in .NET.
-
Simplest Thing Possible: Leveraging and Querying String, Object Dictionaries (Lambda Expressions - Part 2)
Last updated: Monday, June 7, 2021
Published in: CODE Magazine: 2016 - September/October
John explores the flexibility of dynamic queries and multiple data types within the same dictionary. You’ll be amazed at how simple it really is!
-
What’s New in CODE Framework in 2016
Last updated: Thursday, June 10, 2021
Published in: CODE Magazine: 2016 - September/October, ZZZ-Old: Addison Wesley Books: Smart Client Deployment with ClickOnce
If you’d like a neat summary of the many interesting and useful changes in CODE Magazine’s free development framework, you’ve come to the right place. Markus talks about themes, input validation, security, and binding, Web API service hosting, calling REST services, and interacting with the community and GitHub.
-
How to Write Your Own Programming Language in C#
Last updated: Monday, June 14, 2021
Published in: CODE Magazine: 2016 - July/August
Have you ever thought that the language you were coding in lacked some important tools? Vassili shows you how to write your own language without building a compiler.
-
Simplest Thing Possible: Dynamic Lambda Expressions
Last updated: Friday, June 11, 2021
Published in: CODE Magazine: 2016 - July/August
Lambda expressions have been around for a while, but they seem poorly understood and generally underused. You can juice up your code with these dynamic types from .NET, according to John. Find out how!
-
Why F#
Last updated: Saturday, April 22, 2023
Published in: CODE Magazine: 2016 - May/June
Functional programming is all the rage and Microsoft's foray into the functional world is called F#. Rachel introduces you to this first-class functional language with the ability to harness the rich .NET ecosystem.
-
Using Active Directory in .NET
Last updated: Monday, January 3, 2022
Published in: CODE Magazine: 2013 - November/December
Sometimes your .NET applications need to interact with Microsoft Active Directory (AD) to authenticate users, get a list of users, retrieve groups, or determine which users are within which AD groups. There are a few different approaches you can use to retrieve information from your AD database within your domain.
-
Listing Processes Running on a Computer
Last updated: Monday, April 25, 2022
Published in: CODE Magazine: 2013 - September/October
I have a client that has a few Windows Services and some EXEs that run on a computer to perform various business functions. Every once in a while, the processes fail and need to be restarted. I helped the client write a Windows Service to monitor their running processes and ensure that they are up and running and to notify them and to attempt to restart those processes. As part of this process, I had to write a class to get a list of all of the processes running on the current computer or on another computer on their network.
-
A Windows 8 Look and Feel for WPF, Part 2
Last updated: Thursday, June 9, 2022
Published in: CODE Magazine: 2013 - January/February
In part 1 of this article, you learned how to create a Windows 8 look and feel for your WPF applications. You were shown a high-level overview of the various components that made up the shell for navigating. In part 2 of this article you will learn to create a WPF Button user control, a Message Box you can style, and a simple Message Broker System. All of these components are used to create the “Windows 8 Style” WPF shell you learned about in part 1.
-
Log Users in to Your Web Application with OpenID or OAuth
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2013 - January/February
Users already have many usernames and passwords for different popular online services, and with OpenID and OAuth, you can leverage those. Why burden users with yet another set of credentials for your site if they can use their Google or Facebook account, or any other OpenID or OAuth account? In this article, I will show you how to do this with ASP.NET 4.5, but more importantly help you understand what’s going on behind the scenes.
-
Tasks and Parallelism: The New Wave of Multithreading
Last updated: Saturday, September 26, 2020
Published in: CODE Magazine: 2012 - November/December
Since the beginning of .NET, developers have been able to take advantage of multithreading when developing applications. In fact we’ve been given more than one programming model to accommodate just about any requirement that might come across. There’s the Thread class, the Thread Pool, the Async Pattern, and the Background Worker. Well, as if that isn’t enough, we now have a couple of more patterns that bring with them another genre - parallel programming.
-
CODE Framework: Testing
Last updated: Tuesday, February 19, 2019
Published in: VFP Conversion Papers, CODE Magazine: 2012 - September/October
The CODE Framework provides a set of tools for developing n-tier, service-oriented applications. In addition, there is a set of recommended patterns and practices that provide guidance in enabling developers to achieve Rapid Application Development, Contract-First implementation, and a system that allows you to change a contract without breaking an implementation. However, one question which has been repeatedly asked throughout our trainings and seminars is, “How do I Unit Test when I’m using the CODE Framework?” This article will examine the question and attempt to answer it.
-
Getting Started with RavenDB
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2012 - March/April
You might have heard some things about NoSQL; how Google and Facebook are using non-relational databases to handle their load. And in most cases, this is where it stopped. NoSQL came about because scaling relational databases is somewhere between extremely hard to impossible.
-
Smashing the Myth: Why You Must Learn F# - Even If You Aren’t Writing Rocket Science Apps
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2012 - March/April
If you are a .NET software developer, you have heard of F#. You may have read an article, seen a talk at a user group, or otherwise heard the buzz. However, if those means of reaching you have failed, at the very least, you have noticed it conspicuously appear in the list of languages you can base a solution on in Visual Studio 2010. If you write code on the .NET Framework, you would have to be living under a rock to have not heard of F#.
-
Working with Windows Phone User Interfaces, Part 2
Last updated: Sunday, December 3, 2023
Published in: CODE Magazine: 2012 - March/April
In Part 1 of this article you learned how to work with orientation changes on the Windows Phone and how to create horizontally scrolling pages using Panorama and Pivot pages. In Part 2 you’ll see how to interact with some of the built-in applications on the phone through the use of the Launcher and Chooser applications.
-
From Zero to Business Application in 15 Minutes
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2011 - March/April
Visual Studio LightSwitch is a new product in the Visual Studio family aimed at developers who want to quickly create data-centric business applications for the desktop and the cloud.LightSwitch is an extensible development environment and application framework that simplifies the development process because it lets you concentrate on the business logic and does a lot of the remaining work for you. LightSwitch is perfect for small business or departmental productivity applications that need to get done fast. In this article I will walk you through creating a business application from beginning to end using Visual Studio LightSwitch.Visual Studio LightSwitch is a new product in the Visual Studio family aimed at developers who want to quickly create data-centric business applications for the desktop and the cloud.LightSwitch is an extensible development environment and application framework that simplifies the development process because it lets you concentrate on the business logic and does a lot of the remaining work for you. LightSwitch is perfect for small business or departmental productivity applications that need to get done fast. In this article I will walk you through creating a business application from beginning to end using Visual Studio LightSwitch.
-
Getting the Most Out of the Save Pipeline in Visual Studio LightSwitch
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2011 - March/April
Visual Studio LightSwitch applications consist of three tiers: presentation, logic and data. This article discusses the logic tier and its save pipeline. The save pipeline is where developers write business logic that runs as changes are processed on the logic tier and saved to the data storage tier. The save pipeline is automatically generated with every LightSwitch application. Understanding the processing done in the save pipeline is not required to successfully build and deploy applications with LightSwitch, but adding save pipeline business logic provides additional flexibility and control when data is saved.
-
Inside Visual Studio LightSwitch
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2011 - March/April
Microsoft Visual Studio LightSwitch uses a model-centric architecture for defining, building, and executing a 3-tier LightSwitch application.
-
Leveraging Razor Templates Outside of ASP.NET: They’re Not Just for HTML Anymore!
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2011 - March/April
The Razor syntax is much more than just a clean way to write ASP.NET MVC Views and WebMatrix web pages. In fact, with a working knowledge of the Razor API, you can leverage Razor templates in any application. The Razor API exposes a powerful library for parsing, compiling, and executing templates created using the Razor syntax.
-
Line-of-Business Applications Consolidation with Silverlight and Windows Communication Foundation
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2011 - March/April
It’s probably one of the most interesting moments to do a post mortem for a Silverlight project. The entire Microsoft ecosystem is boiling around the Silverlight OR HTML 5 debate fueled by the recent PDC and some statements from Microsoft officials. The interesting part about it is that it is a false debate, and like most false debates it will probably lead to nowhere. The simple truth is that Microsoft’s commitment to Silverlight has not changed a bit, and Silverlight is more healthy and strong than ever. And the fact that the same Microsoft places an important bet on HTML 5 too can only make me happy as an architect and a developer. Mostly because it assures me I’ll have my fair share of choices in the future without having to leave the development platform I like. The reality is that neither Silverlight/RIA nor HTML 5 will turn out to be the magic to fly us to the land of perfect web apps and, at least for the foreseeable future, there will always be a need for alternatives. That’s why I think the debate on Silverlight or HTML 5 is nonsense in the Microsoft ecosystem. But I digress… Let me tell you about the latest software project I participated in.
-
The Baker’s Dozen: 13 Productivity Tips for Building OLAP Databases with Microsoft SQL Server 2008 Analysis Services
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2011 - March/April
rewarding experience of writing and speaking is taking a seemingly complex topic and making it more understandable and accessible. In this article, I’ll show how to create and use OLAP databases and cubes using SQL Server Analysis Services 2008 (SSAS 2008). The benefits of OLAP are significant, even monumental - but like most technologies, reaping the benefits means considerable research and effort into leveraging the tools. In the case of OLAP databases, developers need to learn the differences between OLAP databases and relational databases, and how to use the tools that SSAS provides. In this article, I’ll walk through how to create an OLAP database and how to use the tools in Analysis Services to enhance the OLAP database. By the end, you’ll see why businesses and other organizations see the value of OLAP databases. I’ll also briefly cover some of the plans Microsoft has announced for the next generation of OLAP tools.
-
The Razor View Engine
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2011 - March/April
The new view engine for ASP.NET MVC and WebMatrix combines simplicity and functionality to facilitate clean view development. In this article, I’ll dive into the Razor View Engine, the new default view engine for the ASP.NET MVC framework and WebMatrix products. Razor’s main goal is to simplify view development and to improve developer productivity while providing a clean view infrastructure.
-
Building Line-of-Business RIA in Silverlight Using Microsoft SQL Server 2008 Reporting Services
Last updated: Saturday, January 18, 2020
Published in: CODE Magazine: 2011 - January/February
While the development community has accepted the inevitable future of Line-of-Business RIAs and indispensable role of Silverlight in their creation, many of them have started looking for ways to use Microsoft SQL Server Reporting Services in Silverlight applications. It is logical: Reporting Services is reasonably capable and the most-used reporting engine on the market. Millions of developers are Reporting Services professionals and of course they would like to continue using the tool in their RIAs as well.
-
WPF and Silverlight Super-Productivity: ListBoxes
Last updated: Tuesday, February 19, 2019
Published in: VFP Conversion Papers, Markus Egger Talks Tech, CODE Magazine: 2011 - January/February
ListBoxes suck. Except that statement is not true anymore. Not in WPF and Silverlight anyway, where ListBoxes have evolved from simplistic controls to true workhorse objects. ListBoxes have been around since the beginning of Windows (and other GUIs) and have served a pervasive yet simple purpose, which can be summed up as “show me a list of labels in a list with a scroll bar.” A premise that has its uses but is not sophisticated enough for advanced data presentation, which is why developers often use special controls such as “data grids” or “list views” among others. In WPF and Silverlight, however, ListBoxes are so flexible and powerful that they are the first choice for just about anything. In fact, WPF originally shipped without a data grid control since ListBoxes all but eliminated that need. Developer perception, however, was different and the power of the ListBoxes went largely unnoticed. That is reason enough for me to write an article that displays the ease, flexibility, and power of ListBoxes.
-
Add Some Spark to Your OData: Creating and Consuming Data Services with Visual Studio and Excel 2010
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2010 - September/October
The Open Data Protocol (OData) is an open REST-ful protocol for exposing and consuming data on the web. Also known as Astoria, ADO.NET Data Services, now officially called WCF Data Services in the .NET Framework. There are also SDKs available for other platforms like JavaScript and PHP. Visit the OData site at www.odata.org.
-
Composite Application Library (Prism) and Silverlight
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2010 - September/October
With the advancement in the Silverlight technology starting with the 1.0 release to 2.0, 3.0, and lately 4.0, Silverlight is loudly saying WOW “Watch Out World.” Can you guess which world I am talking about here? It is the RIAs world! Really WOW!
-
Practical Messaging Scenarios with WCF 4
Last updated: Wednesday, November 30, 2022
Published in: CODE Magazine: 2010 - September/October
-
New Features in WCF 4 that Will Instantly Make You More Productive
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2010 - May/June
WCF 4 is all about productivity.
-
Creating Self-Scaling Applications with Azure Services
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2010 - March/April
Microsoft’s Azure platform has finally been released into production. This new entry into the cloud computing market provides .NET developers with a scalable, robust platform for developing applications.After over a year in CTP, Azure is finally ready for prime time. At PDC 2009, Microsoft announced the release of new components, such as the management API, that make Azure worth considering for use in production environments. In this article, I’ll demonstrate how to use the different components of Azure Services to build a self-scaling application.
-
Supercharging ASP.NET MVC with MvcContrib
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2010 - March/April
Hot on the heels of the groundbreaking release of ASP.NET MVC CTP 1 in December of 2007, an open source project called MvcContrib came to life.MvcContrib has enjoyed tens of thousands of downloads since it started in December of 2007. In this article, I will explain MvcContrib; it’s major components, how to use it, and how to get involved in its continued development.
-
Generating Code Using Visual Studio 2008 and 2010
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2010 - January/February
Visual Studio 2010 makes T4 easier to find and supplies a powerful new feature called preprocessed templates. Kathleen shows you how to use T4 in Studio 2005 and beyond.Microsoft included its T4 generation language in the box in Visual Studio 2008 and added important new features in Visual Studio 2010. Visual Studio 2010 makes generation easier to find and supplies a powerful new feature called preprocessed templates.Code generation lets you automatically create significant portions of your application. It has the potential to decrease bugs and increase your ability to alter code across your application as needs change. Microsoft’s generation language is T4 and it is included in the box starting with Visual Studio 2008. Visual Studio 2010 makes T4 easier to find and supplies a powerful new feature called preprocessed templates. I’ll show you how to use T4 in Studio 2005 and beyond.
-
Practical Uses of Lambdas
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2010 - January/February
Deborah covers many of the different ways you can use lambda expressions to work with your lists and make your code easier to read and write.Lambdas provide shortcuts for sorting, filtering, finding and working with information in lists, making your code easier to read and write.
-
Getting Back to Basics
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2009 - September/October
Our industry is constantly changing. So much so, that it is difficult to keep up sometimes.
-
Post Mortem: Tower48 Software Escrow
Last updated: Saturday, January 18, 2020
Published in: CODE Magazine: 2009 - September/October, Markus Egger Talks Tech
-
Twitter Programming Using WCF and REST
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2009 - September/October
Along with an easy site with which you can access your account, there are many really cool Twitter clients out there. This is thanks to an exposed API that you can use to access all of Twitter’s features. The great thing is that this API uses a technology that WCF has embraced completely; I’m talking about REST. Though you can certainly use straight network programming to access and update your Twitter account, why not use the technology that Microsoft has put all their eggs into as far as communications programming is concerned? Twitter is, after all, all about communicating, right?
-
8 Entity Framework Gotchas
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2009 - July/August
As a developer, it is no surprise to encounter unexpected behavior when working with a new technology.Microsoft added the Entity Framework (EF) to ADO.NET with the .NET 3.5 Service Pack 1 released in 2008 enabling developers to incorporate a data model directly in their application and interact with their data through the model rather than working directly against the database. For background on EF, see my previous article, “Introducing ADO.NET Entity Framework” in the Nov/Dec 2007 issue of CODE Magazine.
-
Post Mortem: WPF and Silverlight Styling
Last updated: Saturday, January 18, 2020
Published in: CODE Magazine: 2009 - July/August, Markus Egger Talks Tech
-
The State of WPF and Silverlight
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2009 - July/August, Markus Egger Talks Tech
Markus Egger discusses the current State of WPF and Silverlight and the overall importance and acceptance of these technologies.
-
Bricks and Mortar: Building a Castle
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2009 - May/June
In an application built with object-oriented techniques, objects are the bricks.You construct little pieces of code encapsulated in these bricks. To build bigger structures, you need to hold these bricks together. You can hardwire them together by instantiating dependent objects within your objects, but it makes the whole structure less flexible in the face of change. So you can adopt an inversion of control (IoC) container to act as your mason to assemble your bricks into complex structures that can flex with changing requirements. In this article, I will examine a popular IoC container, Castle Windsor, and how it enables you to build flexible and robust applications. If you are new to IoC containers and dependency injection, I would recommend reading Martin Fowler's article, Inversion of Control Containers and the Dependency Injection Pattern (http://martinfowler.com/articles/injection.html) and my own article from the March 2008 edition of MSDN Magazine, Loosen Up: Tame Your Dependencies for More Flexible Apps (http://msdn.microsoft.com/en-us/magazine/cc337885.aspx).
-
Hudson Continuous Integration Server
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2009 - May/June
Hudson makes continuous integration easy and powerful.Though Hudson is a Java project, it can easily build your .NET applications. You configure Hudson easily via the web interface rather than tweaking XML. With plenty of plugins available to .NET projects, Hudson provides plenty of powerful features.
-
Relational Database Persistence with NHibernate, Part 1
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2009 - May/June
Take advantage of the best relational databases and object-oriented design have to offer without compromising either.Using an object/relational mapping framework like NHibernate, you can significantly reduce the amount of code you write (and therefore potential bugs) for performing standard operations against your database and save the heavy ADO.NET coding for the complicated scenarios.
-
ThoughtWorking: Functional Programming in C# 2.0
Last updated: Thursday, February 21, 2019
Published in: CODE Magazine: 2009 - May/June
Writing software is hard, particularly when the tools you use force you to think at too low a level; it’s time to start thinking about changing the way you write code… by making it easier to write code.Taking on new ways to program doesn’t always mean tossing away your favorite programming language or environment. Sometimes it just means taking a new look at how you’re using your language and trying out a few new ideas. It’s time to take a hard look at your favorite language and see if it’s possible to “fall in love all over again”.
-
Using jQuery with ASP.NET Part 2: Making an AJAX Callback to ASP.NET
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2009 - May/June
This time around I’ll expand on these concepts and show you how you can use jQuery in combination with ASP.NET as an AJAX backend to retrieve data. I’ll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in Web Forms.
-
Building Domain Specific Languages in C#, Part 2
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2009 - March/April
In the first installment of this article, I showed how to leverage C# syntax to create a specific type of domain specific language in C# called a fluent interface, converting an API into something with a fighting chance of readability. In this article, I’ll show you how to take advantage of some of the cool new features of C# to really push the envelope on this style of coding.
-
Building Polished UIs with Expression Blend - Part 1
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2009 - March/April, Markus Egger Talks Tech
With WPF and Silverlight, Microsoft provides both Windows and Web developers with powerful technologies to create rich, professional, and exciting user experiences.However, in general, developers aren’t graphical designers, leaving most developers wondering how to cope with this new world of designed interfaces and polished user experiences. But fear not! With Expression Blend, Microsoft provides a great tool to create such UIs, and even developers with no graphical talents whatsoever can learn a few techniques that allow for better looking applications.
-
Ask the Doc Detective
Last updated: Saturday, January 18, 2020
Published in: CODE Magazine: 2009 - January/February
-
SharePoint 2007 and the Thin .NET 3.5 Development Model
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2008 - November/December
As I am flying back home over the Atlantic, I can’t help but think how much better SharePoint has become after the introduction of .NET 3.5. I have repeatedly insisted that one of the reasons behind SharePoint 2007’s huge success is the application of ASP.NET 2.0 concepts to SharePoint.In this article, I am going to talk about the specific improvements .NET 3.5 has brought to the SharePoint 2007 platform, and how that has made my development life so much better. I will talk of three exemplary examples, and in subsequent articles, I will splice each one of these topics in further depth.
-
Data Access Options in Visual Studio 2008
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2008 - September/October
With Visual Studio 2008 and .NET 3.5, developer’s data access options have increased substantially. In addition to using ADO.NET to create DataReaders or DataSets, Microsoft has added LINQ to SQL and Entity Framework as well as ADO.NET Data Services, which leverages those two. In addition to these new options, there are new syntaxes to learn. LINQ, which is built into Visual Basic and C#, has one implementation for LINQ to SQL and another for LINQ to Entities. In Entity Framework, you have the option to use LINQ to Entities as well as two other ways of querying with Entity SQL, as you can see in Figure 1.
-
From Delegate to Lambda
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2008 - September/October
The key to understanding lambda expressions is understanding delegates. Delegates play a tremendously important role in developing applications for the .NET Framework, especially when using C# or Visual Basic. Events, a special application of delegates, are used all over the framework. And the application and possibilities of delegates has only grown over time. C# 2.0 introduced the concept of anonymous methods and C# 3.0 and VB 9 take anonymous methods to the next level with lambda expressions. This article reviews the evolution of delegates and examines possibilities and syntax of delegates and lambdas in .NET 3.5.
-
Introducing IronPython
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2008 - September/October
IronPython is easy to learn yet surprisingly powerful language for .NET development. In this article, I’ll introduce you to IronPython and demonstrate it differs from C# and Visual Basic while still allowing you to leverage your existing .NET knowledge.
-
Ruby Comes to the .NET Platform
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2008 - September/October
Microsoft’s IronRuby project brings a powerful and fun dynamic language to the Windows platform. In this article, I’ll examine the history of Ruby and the IronRuby project at Microsoft. I’ll talk about why a .NET programmer may want to learn and use Ruby, and cover the core syntax of the language to get you started learning it
-
WCF the Manual Way… the Right Way
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2008 - September/October
Visual Studio 2008 as well as the .NET 3.0 extensions for Visual Studio 2005 add several new templates that allow you to quickly create .NET 3.0 items such as WPF forms, Workflows, and WCF services. We’ve used templates such as these since the beginning of time to create traditional application elements such as Windows Forms, Web Forms, and User Controls, so you would think that these are equally great; or would you? Unfortunately, creating WCF projects or project items come with more baggage than you can imagine. They also don’t exactly promote the best practices I feel should be considered when designing WCF services. So if you don’t use the built-in templates to create your services, what do you use? Well keep reading and I’ll show you how to create everything you need manually with ease while maintaining good design and coding practices.
-
Getting Started with Windows Mobile Development
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2008 - July/August
In today’s world of fast food, fast cars, and instant gratification, people expect to be in touch at all times.We have become conditioned to staying in touch with businesses, friends, and families. Because of this desire for instant data, we have the Internet, cell phones, Wi-Fi, MP3 players, and DVD players. As the equipment needed to drive this thirst has become smaller and smaller, we find ourselves looking for portable replacements for our bulky desktop computers.
-
What’s New in ASP.NET 3.5?
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2008 - July/August
Microsoft released Visual Studio 2008 and .NET 3.5 in November 2007. I have good news and, depending on your perspective, I have either bad news or good news. If you were hoping ASP.NET 3.5 would be released with a variety of new controls, features, and architectural changes then I have bad news for you. If you’re still trying to master all the controls, features, best practices, project structures, deployment options, and architectural changes introduced when ASP.NET went from version 1.1 to 2.0, I have good news for you. Don’t get me wrong, there are plenty of new things you will want to take advantage of in ASP.NET 3.5, but the changes from ASP.NET 2.0 to ASP.NET 3.5 are more additive and incremental than monumental.
-
The Baker’s Dozen: 13 Tips for Building Database Web Applications Using ASP.NET 3.5, LINQ, and SQL Server 2005 Reporting Services
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2008 - May/June
Are you moving a Windows desktop application to the browser, and sweating bullets, or perhaps just not quite sure about how all the new Web and data tools work together?With each passing year, Microsoft offers newer and more powerful tools for building rich database applications on the Web. So many and so frequently, in fact, that it can be hard to keep up with the new tools and still meet the requirements of your job! This article will show you how to get the most out of the new features in ASP.NET 3.5. The article will also show how you can use features in LINQ, even if you only use stored procedures for data access. And finally, since most applications use reporting, I’ll throw in a few nuggets on using SQL Server Reporting Services.
-
WPF Meets the iPhone
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2008 - March/April
The iPhone is one of the most compelling and exciting user interfaces to appear on any consumer electronic device, with many innovations that make it a pleasure to use. How can you deliver a similar experience with your .NET applications?This article demonstrates how you can implement these features in your .NET applications in a step-by-step format as you recreate the iPhone interface using Windows Presentation Foundation (WPF) technology with both Visual Studio 2008 and Microsoft Expression Blend.
-
Creating and Distributing Packages with the Visual Studio SDK
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Visual Studio is a great tool on its own and it can be extended.By using the Visual Studio SDK (VS SDK), one can create powerful extensions to fit almost any developers’ needs.
-
Creating Visual Studio Add-Ins
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Visual Studio provides one of the most powerful IDE’s on the market. One under-exploited aspect of this IDE is the extensibility model. Programming IDE’s are not static development tools. Development techniques, tools, and concepts change. Extensibility has been built into Visual Studio from its early inceptions. The great thing about Microsoft’s foresight is that you can augment functionality of Visual Studio yourself. This article will demonstrate how to extend the Visual Studio IDE using Visual Studio, the .NET Framework, and the Visual Studio Add-In and automation models.
-
Domain-Specific Development in Visual Studio
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
The Visual Studio SDK contains tools that make it easy to define and implement graphical Domain-Specific Languages (DSLs) and associated code generators in Visual Studio.The term domain-specific development refers to an approach to software development involving the use of DSLs to drive code generators. The tools contained in the Visual Studio SDK are collectively called the “DSL Tools” and use domain-specific development techniques to create and implement DSLs for use in Visual Studio. This article illustrates the domain-specific development approach through an example, and then shows how you can use the DSL Tools in the Visual Studio SDK to build the DSL used in that example.
-
History of the VS IDE
Last updated: Wednesday, November 23, 2022
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Doug Hodges is interviewed by Ken Levy discussing the history of the Visual Studio IDE (Integrated Development Environment).
-
How XML Tools Use the Visual Studio SDK
Last updated: Wednesday, February 20, 2019
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
I have a funny story about how Visual Studio extensibility works. I work at Microsoft in the SQL Server division focusing on XML technologies and I went to the Visual Studio team a few years ago and asked them if they could build some better XML tools.
-
Introduction to the Visual Studio 2008 Shell
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
In the next Visual Studio wave of products, Microsoft will distribute its world-class IDE freely via its VS 2008 Shell offerings. In this article, I will give an overview of what the Shell is, what it contains, and how you can start leveraging it to start creating your own tools IDE.
-
Learning the Visual Studio SDK with VSSDK Assist
Last updated: Wednesday, August 31, 2022
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
VSSDK Assist makes it easier to start extending Visual Studio using the Visual Studio SDK (VS SDK).
-
Visual Studio SDK Tips and Tricks
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Extensibility in Visual Studio is a bit like science and technology-there is always more to learn and discover even for the experts. In this article, I’ll present a few tips and tricks you may find helpful when creating packages with the Visual Studio SDK.
-
VSMessenger: Taking the Extensibility Plunge
Last updated: Wednesday, November 23, 2022
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Visual Studio Extensibility can appear daunting to the uninitiated.This article will look at the blogging effort on VSSDK.com, as well as the VSMessenger sample application, and examine how they improve overall approachability to Visual Studio Extensibility.
-
Welcome Letter from the VSX Team
Last updated: Wednesday, November 23, 2022
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Welcome Letter from the VSX Team
-
XPathmania: Extending the XML Editor in Visual Studio 2005
Last updated: Wednesday, August 31, 2022
Published in: CODE Focus Magazine: 2008 - Vol. 5 - Issue 1 - Extensibility
Though the XML Editor in Visual Studio 2005 has many improvements, it still lacks support for writing and testing XPath queries. In this article, I’ll show you how to leverage the Visual Studio SDK to extend the XML Editor to allow you to write and text XPath queries in Visual Studio 2005.
-
Browsing Windows Live Expo with LINQ to XML
Last updated: Wednesday, February 20, 2019
Published in: CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability
LINQ to XML, which makes query a first class construct in C# and Visual Basic, is the new XML API in the .NET Framework 3.5. With the introduction of Language Integrated Query (LINQ), Microsoft is introducing LINQ implementations that work over objects, data, and XML. LINQ to XML improves on System.Xml in the .NET Framework 2.0 by being both simpler to use and more efficient. Microsoft developed this new API because the W3C-based DOM API does not integrate well into the LINQ programming model.
-
Introducing the Microsoft Sync Framework: Next Generation Synchronization Framework
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability
The Microsoft® Sync Framework is the new framework and runtime for adding synchronization, roaming, and offline capabilities to applications. It supports peer-to-peer scenarios, works with devices and services, and is agnostic of data types, stores, and protocols. In this article, I’ll cover the high-level vision for the platform as well as the enabled scenarios made possible by the framework for developers, ISVs, and OEMs.
-
Rich Query for DataSet- An Introduction to LINQ to DataSet
Last updated: Tuesday, February 19, 2019
Published in: CODE Focus Magazine: 2007 - Vol. 4 - Issue 3 - Data Programability
For years developers have been asking for query over data contained in a DataSet in a way that supports the expressiveness needed by today’s data-centric .NET applications. As part of the .NET framework 3.5, Microsoft® will introduce support for a technology called Language Integrated Query (LINQ), and with this introduction, an implementation of LINQ to DataSet.
-
Catching the (Silver) Light
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2007 - November/December
I’d guess that everyone reading this magazine has heard of Silverlight™. I’ll also guess that not everyone has jumped at the opportunity to “play” with something that had been in beta. The good news is that Silverlight 1.0 is now released! I’ve spent a lot of time with Silverlight since Microsoft made the Community Technology Preview version available as WPF/E. The delta between a Web site without Silverlight and a Web site that allows you to experience the wonderfulness of Silverlight is huge. Before you finish reading this article, I hope you’ll realize how very easy it is to bridge that gap.
-
The Provider Model
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2007 - November/December
In this article you will learn how to isolate yourself from change by taking advantage of the Provider Model.Designing your applications using the Provider Model will allow you to swap components out at runtime, thus allowing you to upgrade them easily.
-
The Baker’s Dozen: A 13-Step Crash Course for Using LINQ
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2007 - July/August
How many software tasks DON’T involve reading through data? Answer: very few. Developers work all the time with database data, XML data, DataSets, collections, lists, and arrays-all with different syntax and functionality for each one. Developers who write T-SQL code often covet set-based language statements when they work against other types of data. Additionally, developers who have coded against strongly-typed custom collections wish they could write SQL database queries with IntelliSense. Language Integrated Query (LINQ), a set of extensions to the .NET Framework for the next version of Visual Studio codename “Orcas”, brings the promise of integrated and uniform query capabilities to increase developer productivity when working with different types of data. While LINQ is a large topic worthy of books, this edition of The Baker’s Dozen will provide a crash course to learn what’s under the LINQ hood.
-
The Baker’s Dozen: A 13-Step Crash Course for Learning Windows Communication Foundation (WCF)
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2007 - May/June
This article will present a crash-course in the basics of Windows Communication Foundation (WCF). WCF is one of the exciting new capabilities in the .NET 3.0 Framework. It provides a unified and uniform programming model for building distributed applications. Those who previously built multiple code bases to deal with Web services and .NET remoting will surely come to appreciate the power standardization that WCF offers. WCF, like any other new technology, requires research and experimentation to become productive. This article will assume no prior experience with WCF, and will walk you through some basic exercises and steps to show WCF’s capabilities.
-
2 - Making Software a Service
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
“This excerpt is from the book, ‘Building Applications in the Cloud: Concepts, Patterns, and Projects’ by Christopher Moyer. (Pearson/Addison-Wesley Professional, April 2011, ISBN 0321720202, Copyright 2011 Pearson Education, Inc. For more information, please visit the publisher site: www.informit.com/title/0321720202)
-
Advanced .NET Debugging
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
Mario Hewardt takes a look at the internals of the CLR heap manager and the GC and some common pitfalls that can wreak havoc in your application.He shows how to utilize the debuggers and a set of other tools to illustrate how to get to the bottom of the problems.
-
Chapter 1- Why WPF, and What About Silverlight
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts
Adam Nathan explains how WPF 4 and Windows 7 are bringing multi-touch to the masses.
-
Chapter 1: Mashup Styles, Techniques, and Technologies
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
This chapter is an excerpt from the new book, Mashups: Strategies for the Modern Enterprise by Jeffrey Hanson, published by Addison-Wesley Professional, ISBN 032159181X Copyright 2009 Pearson Education, Inc. For more info please visit: www.informit.com/title/032159181X Safari Books Online subscribers can access the book here: http://safari.informit.com/9780321591869To begin design work on a mashup, you must determine what is to be “mashed” together. Three high-level categories of items can be mashed together-user interface artifacts (presentation), data, and/or application functionality (processes). This might include HTML snippets, on-demand JavaScript to access an external API, web service APIs from one of your corporate servers, RSS feeds, and/or other data to be mixed and mashed within the application or pages. The implementation style, techniques, and technologies used for a given mashup depend on this determination. Once the items are determined, your development team can proceed with applying languages, processes, and methodologies to the application at hand.In this chapter, I point out some of the most widely used styles, techniques, and technologies to build mashups for each of the three primary categories or items.
-
Chapter 1: RESTful Systems - Back to the Future
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
Developers are rapidly discovering the power of REST to simplify the development of even the most sophisticated Web services—and today's .NET platform is packed with tools for effective REST development. Now, for the first time, there's a complete, practical guide to building REST-based services with .NET development technologies.
-
Chapter 11: Inspect and Adapt
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts
This chapter excerpt is from the book, Practices for Scaling Lean & Agile Development: Large, Multisite, and Offshore Product Development with Large-Scale Scrum, authored by Craig Larman and Bas Vodde, published by Addison-Wesley Professional, January 26, 2010, ISBN 0321636406, Copyright 2010 by Pearson Education, Inc. For a full Table of Contents, please visit the publisher site: www.informit.com/title/0321636406
-
Chapter 3 - The Anatomy of a Visual Basic Project
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts
Although you can create lots of kinds of projects both for Windows and the Web with Visual Basic 2010, there is a common set of files for each project. In this chapter you learn which files give the structure to each project and how the files influence the building of an application. You also get an overview of references, namespaces, classes, modules, and Visual Basic keywords.
-
Chapter 4 - LINQ to Objects
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts
This excerpt is from the book >NET 4.0 Generics Beginner's Guide authored by Sudipta Mukherjee.ISBN 1849690782, Copyright 2012, Release Date January 2012. For more info, please visit the publisher site http://www.packtpub.com/net-generics-4-0-beginners-guide/book .
-
Chapter 9 - Case Study: Generating a Connection String Manager
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
Peter Vogel walks you through an end-to-end solution for code generation that concentrates on integrating with Visual Studio and working with the CodeElement objects.
-
Graphics in Silverlight 3
Last updated: Wednesday, August 31, 2022
Published in: Book Excerpts
In this chapter, you will learn how to add rich vector graphics and images to your application.You will also learn how to optimize performance and image quality of those graphics elements.
-
Hour 1 - Jumping in with Both Feet: A Visual Basic 2010 Programming Tour
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
-
Hour 3 - Understanding Classes and Objects the C# Way
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
This chapter teaches the basics of both object-oriented and component-oriented programming, moving on to creating a class in C# and examining how it fulfills the goals of object-oriented and component-oriented programming.
-
Objects - Chapter 1
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
“This excerpt is from the book, ‘Windows 7 Device Driver’ by Ronald D. Reeves, Published Nov 16, 2010 by Addison-Wesley Professional. Part of theAddison-Wesley Microsoft Technology Series series.l, ISBN 139780321670212, Copyright 2011. For more info please visit the publisher site: http://www.informit.com/title/0321670213
-
Sams Teach Yourself: ASP.NET 3.5 in 24 Hours
Last updated: Saturday, January 18, 2020
Published in: Book Excerpts
Chapter 1, Hour 1: In this hour, we will cover What is ASP.NET? System requirements for using ASP.NET Software that must be installed prior to using ASP.NET Installing the .NET Framework, Visual Web Developer, and SQL Server 2005 Taking a quick tour of Visual Web Developer Creating a simple ASP.NET web page and viewing it through a web browser
-
Ultra-Fast ASP.NET: Chapter 3 - Caching
Last updated: Saturday, February 23, 2019
Published in: Book Excerpts
Caching is an important cornerstone of high-performance web sites. You can use it to accomplish the following: Reduce round-trips: Content cached at the client or in proxies can eliminate web server round-trips. Content cached at the web server can eliminate database round-trips. Move content closer to clients: The farther away from clients content is located, the longer it takes to retrieve. Avoid time-consuming processes of regenerating reusable content: For content that takes a lot of time or resources to generate, system performance and scalability are improved if you can generate content once and then reuse it many times. Optimize state management: Caching state information at the client is more scalable than storing it in a central location (within certain bounds, as discussed later).
-
WPF Control Development Unleashed: Building Advanced User Experiences
Last updated: Wednesday, August 31, 2022
Published in: Book Excerpts
WPF Control Development Unleashed: Building Advanced User Experiences Chapter 2 The Diverse Visual Class Structure In the first chapter, we talked about how the construction of a framework like WPF is much like the construction of a house. If you don’t know why certain things are built the way they are, you are likely to use them improperly and break something.
-
Extending Your Development Experience with the Visual Studio Gallery
Last updated: Wednesday, February 20, 2019
Published in: Publisher's Point
There are some big, exciting changes happening around Visual Studio! Microsoft is shifting the focus of VS from being just a developer tool to being an entire platform. As part of that shift, the Visual Studio Gallery web site went live on Feb 27, 2008. The site is your one-stop resource for cool productivity tools called Visual Studio extensions. An addition to CodePlex’s repository of collaborative projects and CodeGallery’s place to find sample apps and code snippets, Visual Studio Gallery is THE place to find extensions targeted at Visual Studio. Extensions can be anything from macros to item, project or solution templates to add-ins to full-blown extensibility packages. You’ll find both free and paid extensions built by both professional companies and community members.