Tag | Programming Posts

Javascript does not have classes in the traditional sense, but we can achieve something similar in a number of ways. C# and Ruby both have standard class syntax. This post is part of a series comparing the language features of the C#, Javascript and Ruby programming languages. Part 1: Installation and hello world Part 2: Variables Part 3: Classes C# public class Vehicle { protected string Make { get; private set; } protected string Model { get; private set; } public Vehicle(string make, string model) ...
This post is part of a series comparing the language features of the C#, Javascript and Ruby programming languages. Part 1: Installation and hello world Part 2: Variables Part 3: Classes Variables C# requires that variables be declared with a specific type. Javascript and Ruby determine the type of variables at runtime. Here is the syntax: C# public string publicMessage = "Hello World"; private string privateMessage = "Hello World"; static string PRIVATE_MESSAGE = "Hello World"; Javascript var message ...
Two areas I am looking at right now are SQL Azure and Entity Framework 4. PDC had plenty of content on both these areas. Just need to find the time to watch some of it! I have added direct links to the standard definition WMV and the PPTs to download (which is what I am doing right now). SQL Azure SQL Azure Database: Present and Future Windows Media Video PPT Using the Microsoft Sync Framework to Connect Apps to the Cloud Windows Media Video PPT The Future of Database Development with SQL Azure Windows ...
I was asked a little while back to pull together the best training resources for .NET development to feed into a MSDN UK site. I thought it would be useful to share here as well. By no means everything is listed but sometimes less is more :-). Enjoy: Top Tip: Watch out – these are sometimes big downloads. For instance I just downloaded a high def PDC2009 session at 600MB! I recommend you check out Free Download Manager – it is a great open source tool for working with large files. Offline Training ...
I’m going to be looking at a few different languages and blogging my thoughts. I am not a language dork so it will probably be mostly wrong. The languages I care about are c# (which is what I mostly use), javascript (which I love) and ruby (which everyone else loves). This post is part of a series comparing the language features of the C#, Javascript and Ruby programming languages. Part 1: Installation and hello world Part 2: Variables Part 3: Classes Installation C# is installed by installing visual ...
I labelled this as Part 01 because who knows, I may do a running series. Just came from a 'pot luck' -- I hate pot lucks, but that's not part of the reason to write. My wife gives me a hard time for not entering into conversation with people and cites that as a reason I never have a good time at such events. So tonight, I decided to 'enter in'. One of the guys that I DO know said something about Silverlight, mentioned I was involved with it and asked the guy he was introducing to me if he was familiar ...
I have written far too many null checks in my life. Why do we have even null values? They only seem to provoke a NullReferenceException in our code after all. F# for example has the option type with the value None which is semantically the same as null without being null which makes it impossible to access invalid values by accident. It is of course possible to create null values in F# but it is not the most natural thing in a functional programming language. How can we make C# safer without writing ...
What is Proxy and how to generate proxy for WCF Services? The proxy is a CLR class that exposes a single CLR interface representing the service contract. The proxy provides the same operations as service's contract, but also has additional methods for managing the proxy life cycle and the connection to the service. The proxy completely encapsulates every aspect of the service: its location, its implementation technology and runtime platform, and the communication transport. The proxy can be generated ...
I own a company, Tiger Computer Services Ltd, which is an Independent Software Vendor (ISV) providing .NET software solutions to clients in the London area. One of the most significant considerations when running a small ISV is the cost of supporting software in the field. For some clients, support is not a billable item, especially if the fault is within the software we have provided. This means that every time the telephone rings, we bleed money, and if we have to actually go on site to resolve ...
I’m very excited to see some progress and buzz at Tampa Code Camp since we announced. We are still accepting speaker submissions and we are working having more sessions now. Continue spreading the word in person, online and even in general public too! We can still use your help to reach out to your fellow geeks and let them know about Windows Phone Camp, you never know who is not admitting to be a fan. Don’t believe the hype? At the very least come out and learn about what’s new for yourself. We ...
This series of posts discusses the use of an Aspect-oriented programming approach for implementing the validation part of a business domain, using the ValidationAspects aspect library, that sits on top of the PostSharp aspect weaver and allows for placing Design by Contract - style attributes on properties and method arguments, as well as for easy runtime validation of an object's state. This is the second post of a three-part series that discusses the use of these validation aspects throughout the ...
Topic I will present an introduction to NHibernate and Fluent NHibernate. This introduction will not only discuss NHibernate in isolation but show its usage embedded in a realistic yet simple WPF application. All aspects of how to setup, run and extend such an application will be discussed. An important focus will be put on the differences between testing and running the application. Bio After receiving my Ph.D. of Physics at the Federal Institute of Technologies in Zurich, Switzerland, I worked ...
Due to Visual WebGui cloud application platform, developers can now deploy their applications to Windows Azure with the click of a button with no re-writes or new programming skills needed. “(now we can) quickly achieve what, a year ago, would have taken more people, more money, and a lot more time. It’s going to open up applications of sorts we’ve never seen before.” The ease of using Visual WebGui was a key benefit. Noted Naylor, “There was no learning curve with Visual WebGui. To a Windows developer, ...
My thoughts and observations of this year’s Microsoft PDC conference in LA. Day 1: Just registered for the conference. They had many reps available to move attendees through the registration process. We arrived early, and had to stand in line for 15 minutes, while all the reps stared blankly back at us; “We don’t open until 7.” Wow.. Great Customer Service. Let me take this moment to comment on the Conference bag this year. ITS A CHEAP PIECE OF CRAP. Literally, it looks like a “reusable” grocery ...
In a previous post I talked about a problem I encountered with thread startvation when using the WSE 2.0 Adapter. I thought it would be a good idea if I actually put down some notes about this adapter and how it is installed. Web Service Enhancements Web Services Enhancements (WSE) is an add-on to the Microsoft .NET Framework. It includes a set of classes to implement additional WS-* Web service specifications specifically for areas such as security, reliable messaging, and sending attachments. WSE ...
A new system programming language was recently released by Google and it goes by the name of "Go". According to Google, Go is still in experimental stage and it is an attempt to combine the ease of programming of an interpreted, dynamically typed language (such as Python and javascript) with the efficiency and safety of a statically typed, compiled language like C++. Go is mostly in the C family (basic syntax), with significant input from the Pascal/Modula/Oberon family (declarations, packages), ...
When doing software development the lean/agile way, you don't have much requirement documents produced upfront - and right so, because they tend to become outdated and useless within a couple of days, after the 'real' development phase of a project has started. However, a developer might occasionally write down some informal specs on the fly while he's coding. Personally, I often do this, when I'm implementing a feature that spans more than some minutes of programming time and is somewhat more complex. ...
Before I start to explain the topic of this post I should confess one of my many defects: I'm very lazy. Someone may have noticed that from the update rate of this blog, but I really like to avoid as much work as I can. I also really like to experiment new technologies and embedded devices, and that's bad for a lazy guy because that means having to write some code... While experimenting with Silverlight for Windows Embedded I found myself trying to write some more complex samples to continue my own ...
From time to time (and when there's room for it, of course), I'm doing a so-called Code Kata, a small to mid-size programming exercise that usually originates from some seminar or meeting. (Kata collections can be found here or here, for example.) What I especially like about them is the level of professional self-knowledge that they provide: When working on a Kata, you can experience how you deal with things without the usual business pressure. Lately, I did the KataPotter (you can download my solution ...
Alexandre Alves wrote an interesting article on CEP extensions for Logic Programming (see http://adcalves.wordpress.c... in which he mentions the use of Rete-based rules engines. I gave a presentation at a conference last week (October Rules Fest 2009) on the differences and similarities between various event stream processing (ESP) approaches and the Rete algorithm. I had a slide that is not very different in intent to Alexandre's post. I also ...
Virtual ALT.NET (VAN) is the online gathering place of the ALT.NET community. Through conversations, presentations, pair programming and dojos, we strive to improve, explore, and challenge the way we create software. Using net conferencing technology such as Skype and LiveMeeting, we hold regular meetings, open to anyone, usually taking the form of a presentation or an Open Space Technology-style conversation. Please see the Calendar to find a VAN group that meets at a time convenient to you, and ...
FredNUG is pleased to announce that we have another great speaker lined up for November. On November 18th, we’ll start with pizza and social networking at 6:30 PM. Then, starting at 7 PM, John Baird will present “Building Silverlight LOB Apps.” With so many software development teams trying to make the switch from Winforms to WPF/Silverlight, I’m sure this talk will be very useful and informative. The scheduled agenda is: 6:30 PM - 7:00 PM - Pizza/Social Networking/Announcements 7:00 PM - 8:30 PM ...
We recently had Stephen Toub, a Senior Program Manager on the Parallel Computing Platform team at Microsoft, swing by our office and walked us through some really cool ways to start implementing parallel programming using Visual Studio 2010 and the 4.0 Framework. I'm thankful that I had the opportunity to attend this, it was one of the best presentations I've ever seen. It's exciting to see the technology evolving :) Anyway, during his presentation we caught a lot of Visual Studio 2010 Beta 2 in ...
Back Links LINQ Overview, part zero LINQ Overview, part one (Extension Methods) LINQ Overview, part two (Lambda Expressions) Note: I realize it has been a really long time since I've posted anything. It is both exciting and humbling that I continue to receive such positive feedback on these articles. In fact, that is why I am trying to put in the effort and finish off this series before moving on to more recent topics. This nomad has been on some interesting journeys these past months, and I am really ...
Who here uses IDictionary classes in their projects? Raise your hand. Keep your hand up if you cannot bear the sight of having to call another ContainsKey method. Keep it up if you cry at the idea of having to use the “out” keyword in conjunction with the TryGetValue method... Keep the hand up if you consider that removing items should be allowed from inside a foreach loop. Is your hand still up? Yeah, mine too . Alright let’s all take a break. This is just one of the numerous annoying little things ...
At the start of 2009 we worked with InnerWorkings to help over 7000 UK developers get access to free training in C# or VB. As there are at least 100,000 UK developers (depends who you ask), we decided to again partner with InnerWorkings to bring you free training in WPF, Silverlight and .NET Framework 3.5 SP1. I am a big fan of the InnerWorkings approach which embeds a set of programming challenges into the Visual Studio IDE. Maybe not for everyone but certainly is an interesting and engaging alternative. ...
to download the source code please click here In the earlier post we have discussed little bit about the limited number of worker threads available in the thread pool of ASP.NET and we identified why we should always try to avoid to block those important worker threads. ASP.NET 2.0 introduces Asyn=”true” attribute in the page to handle asynchronous scenarios and under the hood this attribute tells ASP.NET to implement IHttpAsyncHandler in the page. There are more than one ways available in ASP.NET ...
From this blog post: http://tinyurl.com/ykmgpgw "In order to facilitate interoperability and enable customers and vendors to access the data in .pst files on a variety of platforms, we will be releasing documentation for the .pst file format. This will allow developers to read, create, and interoperate with the data in .pst files in server and client scenarios using the programming language and platform of their choice. The technical documentation will detail how the data is stored, along with guidance ...

Just going through some function programming comcepts in .Net .Don't wonder how we have this in .Net. Its there from VS2008(.Net 3.5) . I checked this blog post and its very intersting.

F# Programming Concepts and Difference with C#

Thanks,

Thani

I saw a link to this article (5 Rules To Write More Readable CSS Files) on Twitter this morning, checked it out, and felt the need to share, so here I am sharing. :-) It also reminded me of a funny full-page ad I tore out of a programming magazine many years ago that listed excuses for not commenting your programming code. I think the ad was for an COBOL comments generator or some type of utility like that. I’m sure I kept that magazine page and have it somewhere around here but where it is today ...
The Beta 2 version of DPE’s Visual Studio 2010 Training Kit is now live (you can find it at http://tinyurl.com/Beta2Tra... A training kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize a variety of Visual Studio 2010 and .NET Framework 4 technologies. The Beta 2 release of the Training Kit contains 15 presentations, 19 hands-on labs, and 13 demos. Many technologies are covered in this release, including: C# 4, VB 10, F#, Parallel Extensions, ...
One of the most common question people ask me in the teams I’m in is the following: Where should I put Try – Catch blocks? The second most popular is equally challenging: What is the best method to re-throw an exception? This post will try to answer both questions. Before I start with this topic, I must warn you that the following is not the official “best practices” but rather my own personal opinion on the subject, based on my past experience. I think that Try – Catch blocks are a great asset of ...
Well, today I had the honor of attending the first annual SDEC09 Conference hosted by Protegra. This event was similar to the Winnipeg Code Camp, where they had three trains of presentations going on all day. Well, it was a wonderful conference, well worth the $100 Early bird price, as I had a chance to sit in on some amazing presentations. Let's take a look at some of the topics presented that I attended. Introduction to Agile Developement - Presented By Steve Regalsky Well, I've heard of Agile ...
What is Windows CE? Microsoft says that Windows CE is “Componentized, real-time operating system for a wide range of small footprint devices” on their WEB site. That is a very precise description, but what does it really mean? Windows CE is designed for embedded systems. An embedded system is typically a device that doesn’t necessarily look like a computer, but provides some special functionality. Examples of embedded computers are GPS systems, voting machines, Automated Teller Machines, Point Of ...
As a freelancer who is constantly selling his skills on the free market, I always have to be up to date and keep myself informed about the latest technologies - in a more cursory way to know what options are available in a certain situation, or more in-depth if I am actually working with a specific technology. Although you can go overboard with trying to stay on top of the IT industries' evolution (I talked about that in a previous post), I simply consider continuous learning to be a natural part ...
A post, possibly flame-bait, was sent out to a group that I subscribe. It was a response to a previous post about the “Duct Tape Programmer.” Incase you’re not familiar, it was started by a post from Joel Spolsky and taken to several extremes by way too many people. Anyway, the poster said something like this: “I used to idolize Joel Spolsky. However after reading his thoughts and listening to his podcast for the last couple of years I've come to realize he's an arrogant blowhard.” This made me pause ...
I think that the Gang of Four should consider my design pattern recommendations for inclusion in their codified list. And while I have seen ALL of these patterns shipped to production in real life, it doesn't mean that these are by any means the only ones that scream for inclusion. Anyone got any others? The Duct Tape Pattern Its versatility is unmatched – any two bits of code from any two systems can co-operate with the use of this simple pattern. Need a piece of data from an XML document to display ...
Windows Embedded CE 6.0 R3 has been released yesterday, you can download it from here: http://www.microsoft.com/do... One of the most exciting new features of R3 is Silverlight for Windows Embedded. With this technology the UI of an application can be described using XAML, an XML-based language, and can be designed using visual tools like Expression Blend. This will allow UI designers to work on embedded devices using ...
The debate has risen of what the best practice is for WCF proxies, should they be generated using Visual Studio references pointing to a WSDL or should they be hand coded and shared alongside service and data contracts through libraries? Now, admittedly of course using the WSDL option is the instant preference for WCF services that have the potential of facing non .net clients, but what about those who for all intents and purposes will likely forever be consumed by .net clients? Yavor Georiev from ...
Since I was 8 years old I’ve always been fascinated by technology. I probably was before that as well but I didn’t get a computer until I was 8 and then I think I felt like I now belonged to a “club” and started to keep an eye on technology even more (hey, I lived in central Nebraska and, in terms of computer owners in my town, I was a club of 1). When I say I like technology I’m talking about all the software and hardware that has become commonplace in our lives and we have slowly began to rely ...
C# in Depth is not for beginners. It assumes a working knowledge of C# 1.0, and is not so much a tutorial of C# 2 and 3 features as an in-depth examination of how and why they work. I don’t think I learned anything I didn’t know about using generics, extension methods, delegates, anonymous methods and lambdas, but Skeet does a great job of zooming in on the inner workings of each of these features, building up to the big picture of how they all snap together to make the game-changing programming ...
Recently, I read some posts about Duct Tape programming from Joel Spolsky, Michael C. Neel, Jak Charlton, “Uncle” Bob Martin and Jeffrey Palermo. I have followed these posts closely. While the intent is good, I think the delivery suffers. The whole thing started with Spolsky (as it often does) creating a post that (I think) was meant to say, “Hey stop pontificating on sweet new techniques and start shipping software!” Excellent point. Do that. Don’t worry anymore what other developers might think ...
log4net is a great little logging library. There seem to be some mixed results out there as to whether or not it outperforms the Enterprise Library's Logging Application Block, although it appears to me the general findings are that log4net is faster. For me, I guess it would come down to how badly I wanted integration with the rest of the Enterprise Library. If that's not a priority, log4net can be a lightweight, fast way to get logging going in your application. Once you've got the library in your ...
This is one of a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009. [Initual release 22nd Sept 2009] [Updated 23rd Sept, with links from Julie Lerman] [Updated 2nd Oct, with slidedeck section] [Large Update 15th Dec – including PDC09 content, my new posts and plenty of stuff from Julie L, Tony and others] This is my attempt to pull together all (ok – most) of the improvements in Entity Framework 4.0 and aggregate useful resources against each. It is very ...
Usually, I'm not what you would call an early bird. That's why I have read about the new dynamic keyword in C# 4.0 only now. To say it clear: I was horrified. My first intuition was to write an FxCop rule to blame all its usages in the analyzed code. Instead, I wrote this post, which is basically a rant against dynamic - simply because writing a post is much quicker and I felt the urgent need to express my opinion on this, but I'm still thinking about the FxCop thing... The basic fact is in short, ...
I was having an discussion with my wife on things to come in computer software and silverlight. below is a brief snippet: My wife holds an computer engineering degree and is passionate about new innovations. She is a prolific programmer though she ONLY codes when she feels like(or finds a problem worth her attention) and thus is NOT a regular coder like mortals like me who are ... well, just coders, who codes for money:D Wife: What is this buzz around Silverlight? Subodh: Because we need smarter ...
This weekend i was engaged with a rather uninteresting conversation with my wife. My wife is computer savvy but still is catching up on new technologies. Below is a brief snippet. I am hopeful that this will give you some idea on SAAS. Me: ok... Wife: What? you said something? me: Nothing. I was just talking aloud... its about SAAS. Wife: SAAS??? (for the less informed.. SAAS means mother-in-law in hindi !!!). Are you watching those hindi serials lately? me: Well, SAAS is a Acronym for Software As ...
Dependency properties is one concept which i always marvel. As programmer / developer i always like the concept, as by just introducing DP, so many stuff now is so easy(Read Template programming in XAML). DP is called a BEAST (in Silverlight and WPF) for reasons of complexity involved in understanding them. Also, of course, because they are so powerful language paradigm. I sometimes do think DP did not actually got their due. I mean, so many efforts is gone into explaining Lambda expressions, LINQ, ...
We’re less than a month away from the Software Development and Evolution conference, and I wanted to send an update on a few things. Student Pricing If you’re a college and university student, we want to make it affordable for you to come out so we’re offering a $75 student rate starting today! Be advised that if you register under the student rate, you must present valid college or university issued identification when you arrive at the event. Visit the event website for more info, or go straight ...