Tag | Programming Posts

This article is for Silverlight 2 beta 1 Update: Corrado Cavalli translated the example in VB.NET. Thanks Corrado!! Apparently, one reader had issues declaring events for the User Control example that I posted earlier this week. He is programming in VB and unfortunately I don't have a lot of experience with VB.NET, so I first created a working example with C#, and my good friend and fellow MVP Corrado Cavalli translated the example in VB.NET (see below). The big difference between WPF and Silverlight ...
I'm translating COBOL today and I now realize why other languages were invented. YUKCY! I did find that ConTEXT is a decent editor for reading the code. Our client has been worried about the amount of logic in the COBOL code, but really, when you peel off all of the extra stuff that goes into the structure of a single COBOL application, the actual business logic isn't all that great. Here's to hoping we can prove them wrong about how long it'll take to rewrite the code. :) Some of the things I like ...
Day 1: Session 1 [Arch. Track]: Introduction to Agile Software Development (By: Ahmed Sidky) Ahmed introduced himself as one that has a master about CMMI and 1st of those to get PhD in software related stuff i Egypt. He spoke in Agile Egypt event before and works in coaching teams implementing Agile. He's someone who knows what he's talking about. "Agile" means flexibility. "What would you do if the customer came to you saying he can only afford a single day of work ? Hint, based on what you provide, ...
In my previous post, I talked about some of the happenings from the day two experience. Day three was only a half day with only two sessions. So, it was best to make the best of times anyhow. Once again, it snowed again, rather heavily at times, so nature's cruel joke on ALT.NET. Impromptu Sessions One of the best sessions was an impromptu session with Jeremy Miller on the StoryTeller tool and his future plans for it. If you're not familiar with it, it is a tool used to manage and create automated ...
Have all your Desgin Pattern woes solved and more: http://uncyclopedia.org/wik... As a general rule of thumb, keep in mind that your code instantly gets 270-890% better when using design patterns (unless, of course, you are programming in Perl or Assembly). Note also that design patterns let you score big time with the ladies at parties (unless you abuse Dependency Rejection pattern), increase the size of your member, make you a better driver, and level you directly to OT9. Made my ...
In my previous installment of recapping the events from ALT.NET Open Spaces, Seattle, I covered pretty much the opening ceremonies as it were. The weather was definitely interesting the entire weekend. Who would believe that we had snow, hail and rain for most of the time we were there in the latter half of April? Mind you it didn't stick, but if you believe in God, there is something to be said of ALT.NET coming to town. Coverage Galore Jeffrey Palermo was gracious enough to capture the opening ...
I realize that this is probably WAY beginner stuff for most people who read these blogs, but I am giving these classes to some people who come from a structured programming background and it may help others in the same boat. I like to think I know OOD pretty well, but if you see something that you think (or know) is wrong drop me a comment (no flames please). In the Beginning... There was structured programming; and the developers saw that it was good. The coded and rejoiced at the marvels they created. ...
You've been there. "It works on my box!" Our new SharePoint web parts don't work in production! This project called for a suite of data entry grids inside custom SharePoint web parts. The customer already owned Infragistics' NetAdvantage for ASP.NET so I used their UltraWebGrid. Very slick and easy to deploy with your custom web parts. The primary feature they wanted was the cool Excel-like cut-n-paste functionality but that wasn't working in our production environment. At the beginning of the project, ...
I've got news for everyone out there: VB.NET isn't going away anywhere. I've got other news: C# is a great programming language. So is F#, and Iron Ruby, and Iron Python, and <insert language here>. In fact, now more than ever we have choices as to what language we can use for our development, and for some reason *that* fact has been lost in the noise of the language argument. Here are some facts: VB.NET has been a great language for those who were exposed to VB 6.0 and made for a very easy ...
ALT.NET Open Spaces, Seattle has come to a close. What a great time it was and it met every expectation if not exceeded them. Currently I'm in the Seattle airport waiting for my flight home which just got re-arranged. Anyhow, I'd like to wrap up my thoughts for the first day of the event. Setting It Up I arrived one day early for the event to make sure we were set up appropriately. I was able to meet up with Dave Laribee, Glenn Block, Scott Bellware, Jeremy Miller, Greg Young, Scott C Reynolds, Ray ...
Functional programming is *not* what I thought it was. It's the idea of stringing together smaller functions. Well, that makes it sound like procedural...but its not. It's this idea that you pass in methods as parameters to other methods...not the *output* of those methods passed in, but the actual method itself. When you have a language like F# you don't need to worry about delegates...you can just go straight in with passing the method themselves. There was great discussion about computational ...
Following on from BizTalk in the cloud now we have SQL server in the cloud..... SQL Server Data Services (SSDS) are highly scalable, on-demand data storage and query processing utility services. Built on robust SQL Server database and Windows Server technologies, these services provide high availability, security and support standards-based web interfaces for easy programming and quick provisioning. Get more info here ...
[code:xml] ASP.NET 2.0: Use VB.NET and C# within the App_Code folder Original Article: http://pietschsoft.com/post... Thanks to Chris Pietschmann There is a way to partition the App_Code folder into sub-folders, one for each set of code files written in the same programming language. Awesome, I didn't have to spend a couple hours converting code from VB.NET to C#! <configuration> <system.web> <compilation> <codeSubDirectories> ...
Overview An adapter is a software component that enables you to send and receive messages to and from a line-of-business (LOB) system. The primary design goal of adapters is to facilitate the exchange of business documents between trading partners. The adapters provide the following advantages to clients: Consistent design-time experience. The adapters provide a common and user-friendly design time experience for browsing, searching, and retrieving metadata of LOB artifacts. Varied programming options. ...
Today was extremely busy and exhausting as well. The routine here is to wake up early, grab a boxed breakfast and coffee in the huge ballroom at the hotel and then run off to where the buses are parked to take you to the Redmond Microsoft campus. I scheduled meetings with some Microsoft personnel today along with poking my head into some of the sessions that were going on at the Conference Center. I continued to evangelize computer science education and spoke with interested people about the concerns ...
Time for another adventure in F#, covering some of the basics of functional programming and F# in particular. Today we'll manage to look more at regular .NET integration and .NET programming. With the previous efforts, we've looked more at functional programming and in turn F# specific things, but want to show that you can do anything normally in F# that you can in C#. To me, F# is the perfect all-purpose language because it can do a lot of the things C# can do, but in turn, F# can do things much ...
In the last couple weeks I've applied and spoke to a few people about getting this programming internship job for the summer at this large insurance company. I've got an interview in about a week and a half so I hope that goes good. I'm not positive if it's a web or application dev spot but either way it sounds like it would be a pretty sweet job, especially for a summer job. Wish me luck! Oh also I've been incredibly addicted to playing this game I got this last weekend, in fact I'm playing it in ...
Now that Unity has been released into the wild, there has definitely been a bit of interest swirling around it. One of my key wants for a good IoC container is basic interception capabilities. My criteria for evaluating a container usually comes down to the following: Configurability (XML, DSL, Code) Dependency Resolution, usually opinionated Lifetime Management (Per Thread, Pooled, Singleton, Transient, etc) Extensibility for Interception So, I realized that Unity was missing some of these things ...
Introduction I've been posting a lot about Silverlight lately, but hey, here is a WPF post, and about WPF integration, no less. Note: To fully understand this article, you should have a basic understanding of WPF, styles and templates, triggers, etc... Read the rest of this entry » ...
Scott Guthrie's weekly list-o-links, LeeOnTech about SL2 GroupBox and Drag/Drop, Dan Waters on DeepZoom, Dan Wahlin on SL2 Sockets, and Silverlight Streaming is updated! From SilverlightCream.com: April 11th Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Visual Studio, Silverlight I normally don't re-blog Scott's Friday list of links because I figure if you're associated with this business in any manner, you're already reading his blog! Today's Silverlight list caught me off-guard however... thanks Scott!! ...
I know you see this post and think that I am going to shock you with the best approach to software development and I am! The great thing is I am not a consultant being paid for this so you don't have to spend countless thousands of dollars for me to come into your organization and tell you what processes are working for you and what you need to change to have successful projects. Why not? Shockingly, I don't want to take your money! I don't want your organization's money either. What I really want ...
Time for another adventure in F#, covering some of the basics of functional programming and F# in particular. This is intended at looking at the foundations of F# as well as how it relates to .NET and IL on the back end. I realize I need to spread more of the F# goodness around, so I'm hoping that I can work to bring it at least to the FringeDC user group. Their main meetings are every three months, so hopefully I'll get some time in to do that. Once I get that set up, I'll be sure to let everyone ...
What is normalization? Explain different levels of normalization? Check out the article Q100139 from Microsoft knowledge base and of course, there's much more information available in the net. It'll be a good idea to get a hold of any RDBMS fundamentals text book, especially the one by C. J. Date. Most of the times, it will be okay if you can explain till third normal form. What is denormalization and when would you go for it? As the name indicates, denormalization is the reverse process of normalization. ...
When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on 15-Jan-2002. At the same time, the final version of Visual Studio.NET was ...
What is new in Visual Studio 2008 A quick list of some of the new features are: Multi-Targeting support Web Designer and CSS support ASP.NET AJAX and JavaScript support Project Designer Data LINQ – Language Integrated Query The features listed and explained in this paper are not complete and this document intends to give you a forehand to start off with VS 2008. 1. Multi-Targeting Support Earlier, each Visual Studio release only supported a specific version of the .NET Framework. For example, VS ...
A Preview of What is New in C# 3.0 On the heels of the Visual Studio 2005 and C# 2.0 releases, Microsoft has given a sneak preview of what to expect in the version after the next: C# 3.0. Even though C# 3.0 is not even standardized yet, Microsoft provided a preview release at its Professional Developers Conference (PDC) in September so eager developers could try out some of the expected features. This article discusses the following major new enhancements expected in C# 3.0: Implicitly typed local ...

I just created a “Houston .NET User Group” group on Google groups (hmm tongue twister!!). If you live in Houston, TX and loves .NET programming then come on join this group. Post your questions/comments and share your knowledge with fellow developers. 

http://groups.google.com/group/houston-net-user-group

Enjoy!!

In my previous posts I have talked a bit about Inversion of Control (IoC) containers with respect to Interception and Aspect Oriented Programming (AOP). It's not only important to understand the uses and strategies for implementing your solutions using it, but also how interception and AOP works deep down in .NET. Instead of a long, drawn out post, I think I'll just include some articles and posts that do a very good job of explaining some of the ideas behind it. Articles and Posts I think it'd be ...
Jose Fajardo continues with Login UI for Messenger, Jeff Paries with very cool DrumPad, Jesse Liberty attacks "Getting Started", LeeOnTech blog is open with source, Brad McKelvie on uploading with SL2 and WCF, Bill Reiss with a Game Helper Class Library, and Mike Taulty on talking to a local WCF service. [A note from Dave] It's still March, it's only 23 days since MIX began and as of this moment, there are 77 Silverlight 2-tagged links in the database! That's over 10% of the total in just over 3 ...
I had come across an article where you can use the following line to read custom section settings from your config file (where SectionName is the name of your section) in .Net. NameValueCollection myData = (NameValueCollection)System... The advantage of this is your setting doesn't have to be in the app.config file (web.config). You can have a file named mywackyweirdfilename.config, and you use the exact same line. The beauty of it is in the ...
I realize it's been a while since my last post on Inversion of Control containers and looking at Unity as one of them. Since that time, Scott Hanselman linked to some of the comparisons that I did for IoC containers here. I'll be the first to admit that the look was a bit naive, but to get you all interested in looking at IoC container and how they can improve your applications. It was suggested here that my posts weren't a complete comparison, although in my previous posts I covered a lot of those ...
I was doing some documentation today on this site that is part of a collection of customized sites. It has JavaScript (yuck) and web parts galore. I get to this site that deals with Affiliated Items for this particular site and I notice that there are 5 web parts. I am wondering why do you need 5 web parts when you take in a query string and provide a list of items. What you really only need is a Query String Web Part connected to another Web Part or a Web Part that reads the Query String. For some ...
When you are coding in a hurry, it is very tempting to write business logic in the first place that comes to mind, such as a button click handler. However, for all but the simplest systems, such a practice leads very quickly to a chaotic system whose business logic is scattered like the ash from an erupting volcano. So let's take a step back and see how you can develop an application more intelligently. "Divide and Conquer" “Divide and Conquer” is a useful metaphor for organizing the effort of developing ...
There were a couple of hundred Code Campers on Saturday in Heathrow, FL at Seminole Community College. The day was jam packed with 56 sessions and 13 tracks. Kudos to Microsoft MVP Shawn Weisfeld for organizing the event and running around to make sure everything was working correctly. Another kudos to Microsoft DevFish Joe Healy for always trying to hook you up with someone he knows that would be a good network contact for you. I heard that the infamous Microsoft Guru Russ Fustino was there but ...
Time for another adventure in F#, covering some of the basics of functional programming and F# in particular. This is intended at looking not only at the language, but the implementation as it regards to C#. Where We Are Before we begin today, let's catch up to where we are today: Part 1 - Basic functional programming Part 2 - Currying and Tuples Part 3 - Scope, Recursion and Anonymous Functions Part 4 - History of F#, Operators and Lists Part 5 - Pattern Matching So, today we'll be covering the ...
The meeting started out with our own Marc Ziss telling us everything he learned at the MIX conference. He had video’s, examples and a lot of stories. The one thing that really stood out in my mind was what Microsoft and NBC are doing for the 2008 Olympics. You just wait! Never before has any company taken on such an undertaking! MS is going to supply 22,000 hours of streaming video via Silverlight. Viewers will be able to watch live streams, taped events, be able to pause during an event and come ...
I have talked about the SlickEdit Tools and Gadgets in the past (here and here) and have always been impressed with both of them. Previously, the SlickEdit Tools were only available for Visual Studio 2005. Now that Visual Studio 2008 is here, SlickEdit has released an update that works with both VS2005 and VS2008. The catch here is that this is much more than a simple update. The major difference is that the tools have been organized into two products: the Editing Toolbox (datasheet), which contains ...
Another month and another highly successful DC ALT.NET meeting. I want to thank Kevin Hegg for hosting the event as he was a very gracious host. We had a better than expected turnout which was very cool. It's good to associate names to faces after chatting, emailing and whatnot. I also want to thank Phil McMillan for stepping up to the plate at the last moment to backfill for the lack of the scheduled speaker. It's even more refreshing to not have any Death By PowerPoint (DBPPT) (TM). I appreciate ...
since i have already posted basic ContraVariance in delegate, i am not going to go thru the same again, those of you who had missed my earlier post can refer here here is an example of using generics with contravariance namespace ContravarianceWithGenerics { public interface IEquity { string ToString(); string Save(); } //base class abstract class Equity : IEquity { int _price; public Equity(int Price) { _price = Price; } public override string ToString() { return GetType().Name + " : " + _price; ...
No, this question isn't asking how much disk space is required by the Framework. It's really asking "How complex is the .NET Framework for developers?" As you might guess, the answer is: It's pretty complex. All joking aside, this is neither an uncommon nor unreasonable question and answer. The reality of it is that the .NET Framework is a very complicated application programming interface (API) but is designed in such a way to expose that complexity gradually (at least in most cases). Brad Abrams ...
As I've mentioned in recent posts such as here, here and here, I've been very interested in Domain Specific Languages (DSLs), especially with regards to F# and the DLR as well. I recently re-listened to Software Engineering Radio Episode 52 with Obie Fernandez discussing DSLs in Ruby. One of the things that attracted me to Ruby for this was the flexibility of the syntax for closures, mixins, etc. Anyhow, it's a good listen and if you're new to the subject, you should give it a go. Also, there is ...
Time for another adventure in F#, covering the 101 level basics of the language and why I think it's useful and how it can even help your C# as well. This time, I want to spend a good deal of time on pattern matching and a few other topics. Where We Are Before we begin today, let's catch up to where we are today: Part 1 - Basic functional programming Part 2 - Currying and Tuples Part 3 - Scope, Recursion and Anonymous Functions Part 4 - History of F#, Operators and Lists So, today, like I mentioned ...
So as part of the community helping him out with going to Dev Teach, we're putting a few requirements on his plate. For one, he has to do a guest post introducing himself (which is below). Secondly, he'll need to set up a blog of his own to keep everyone filled in with how Dev Teach is going (Hey Jeff, can you help a brutha out?). So, without further ado, here is Henry's guest blog post: My name is Henry. I am a student enrolled as a Computer Science Major for University of Manitoba perhaps also ...
Early 'Cream: Cameron Albert on overriding the SL splashscreen, Shawn Wildermuth's learning source, Bill Reiss has two SL2 tutorials up, and Jeff Paries on OOP with JS. From SilverlightCream.com: asp:Silverlight Override I actually saw this first on Pete Brown's blog, then I saw Tim Heuer's reference, but this is straight from the author, and good stuff... the sort of thing I think we're going to be seeing more of as the .NET folks embrace SL! I'm adding Cameron to my BLogRoll, btw :) Source Code ...
The last few months have been some of my busiest since moving to Minnesota back in August. (Wow... has it really been 7 months already?) In addition to my various "for fun" side projects, I've also been doing some tech-editing. First, I worked with O'Reilly on a VB 2008 book, and that was a pretty positive experience. Not only did I manage to learn a fair amount about the newest version of my language of choice (I'd honestly been too busy to spend much time in the 3.5 stuff) but I also found an author ...
Computers with 64 bit processors are becoming popular, at least in enterprise circles. Also the X64 version of Windows Vista is more popular than Windows XP 64 bit edition. 2 Types of 64 bit architecture Yes, unlike 32 bit (aka X32) there are 2 64 bit architectures: AMD's X64 ; also known as X32-64 & AMD64 Intel's IA-64; also known as Itanium The subject of this post is AMD's 64 bit chip, which is commonly referred to as X64 So, whats the difference ? The X64 architecture is a super set of X32 ...
Using new features in .NET 3.5 Framework. blogs.msdn.com/justinsmith What in .NET 3.5 for services: The New HTTP Programming model: New support JSON Services Syndication in .NET 3.5 Service Stack Evolution -Sockets->HttpListener-&... WCF one stop shop for services Myth:WCF is only for enterprise services Reality:WCF gets around(enterprise and web) .NET 3.5 WCF web-centric upgrades: Make REST a 1st class citizenish Embrace SOAP-less representations JSON messaging capabilities ...
Scott Hanselman just updated and/or added some terrific screencasts showcasing ASP.NET MVC, which just went wild as Preview 2 today. He talks about some significant changes from the December CTP and walks through several examples that make understanding and implementing the MVC simple, understandable, and (IMO) ultimately sellable to the uninitiated/uninterested. He covers, with great clarity, several methods for displaying data, working with forms in CRUD operations and helper classes that will ...
Time for another adventure in F#, covering the 101 level basics of the language and why I love it as much as I do. This time we're going to cover some topics such as custom operators, lists and so on. As I want to stress in every installment of this series, the importance of functional programming and its influence on the .NET framework. Don Syme, the creator of F# was instrumental in bringing generics into the .NET framework. With such things as lambdas, object initializers, collection initializers, ...
Update: Fixed code changed from CTP and More in the series: IoC Container, Unity and Breaking Changes Galore I just wanted to revisit the whole Unity Application Block just once more to look at a few more things including handling parameters, instances and so on. If you hadn't seen, there was another source drop of Unity as of 2/26, so if you haven't picked it up, feel free to do so here. So, we're going to continue our look at DI and IoC containers as they pertain to different needs. I'm not going ...