Tuesday, April 05, 2011

Really

I’ve just been having a conversation with a college, and something very interesting popped up. It’s something that has been hinted at a bit through a few channels of late, but wasn’t until this conversation that I actually realised how bad it’s been.

The conversation was about Windows Phones. I have a HTC Mozart, which I flashed all around the office when I got it. The problem is, that nobody else around here has heard much about Windows Phone 7. Nada, not a peep. Now, being in the Microsoft space, I get bombarded with advertisement for all things Microsoft, but the conversation I had delved deeper into Microsoft Technology. We talked about Windows 7, IE9, Live Essentials, Security Essentials, Windows Phone, Silverlight etc but everything came back to the same “Really”.. The person I was talking to has not seen (or remembered) the smallest bit of advertising related to ANY of the newest things coming out of Microsoft.. Nothing, nada, zilch..

This person doesn’t hide in a closet, he’s out playing with Android Phones, Linux, anything that you can possibly imagine a geek playing with. Despite his love for tech, none of the Microsoft Advertising has made it his way… He’s seen Apple advertising, he’s seen ads on TV for Android based phones, Junk Mail with full pages dedicated to android etc.. But where is the Microsoft Advertising.

Microsoft have really turned the corner with the last wave of releases, their software if looking nicer, working better, and all round just awesome. Yet despite this, Microsoft just haven’t had a chance to capitalise. Being good is one thing, but you also have to make sure everybody knows it..

I think this is part of what’s killing technology such as Silverlight and WPF.. Microsoft just aren’t pushing them… With a small bit more work, they can become very compelling products, but what they really need is more advertising dollars thrown at them.

Friday, March 18, 2011

Microsoft failing with Windows Mobile 7 in Australia

Today Microsoft announced MSN Onit, “The essential guy’s guide” for windows phone 7. I thought I’d take a peek, because, you know, I like guys things (including my blue crocodile skin shoes)..

The reviews looked good, I found it in the Marketplace using Zune then *bam*… There is no download button.. It seems that Microsoft (or MSN) has decided that this application should be locked down to only the US and a few other regions.

I understand that there are issues relating to copy write, licensing and all sorts of other legal nasties that can pop up when working across multiple regions, but it seems to me that Microsoft are happy to release everything to the US market without any thought of other markets. This is further evident with the lack of music available in Zune Marketplace.

It this something we should be blaming on Microsoft as a whole? Or is it something that the Australian branch of Microsoft has just been unable to work on. My bet is that it’s a combination of both. Unfortunately the result is that Windows Mobile users in Australia continue to have a broken user experience (don’t get me started on location based searching) when using Windows Mobiles. I really hope the Microsoft is working hard on getting these things fixed, particularly with the major update for the platform later this year that really targets business users. Right now there is no way I can recommend a Windows Mobile as a business platform with this lack of support outside of the US.

Ed.

Wednesday, February 23, 2011

Where is it?

Where’s my phone update.. I want it now..

Ok, let me slow down a little.. I have a HTC Mozart, I love this phone. It does everything I need it to do (though copy/paste would be useful because I’m to lazy to write down the occasional phone number).. Microsoft are in the process of rolling out a small update to improve the update process before they release the much anticipated NoDo update..

So, the update updates the updater and does nothing else for me… So why do I want it so badly..

/sigh

Wednesday, February 16, 2011

Technical Debt

We’ve all head this phrase before, we all know it exists, but yet it always seems to be the one thing that all projects carry around. Technical Debt tends to be more apparent in larger, longer running projects but I think it tends to stem from 2 main sources.

Change

As projects continue, more often than not you’ll find that the original assumptions made at the start of a project turn out to be incorrect, or that the system was designed with set requirements in mind but may not suit requirements that will pop up in the future.

The other thing that adds to “change” are phased project implementations. It’s implementing a core system that will have future features implemented.

Technology

Technology is the other key to technical debt. I know that the software I write now is massively different to the software I wrote 3-4 years ago. Dependency Injection, Linq, Entity Framework, Unit Testing, Mock Frameworks, Continual Integration, the list just goes on. The problem is that retrofitting some of these new technologies that can help to make your development efforts more productive, more testable and everything else costs time and money.

In addition to this, larger technology shifts like Windows Forms –> WPF/Silverlight are often not feasible.

Mitigation

I’ve read a lot of articles about how to reduce the risk of technical debt, and a lot of it is focused around Agile. “Embrace Change”. Well, this is all well and good, but there are still issues with this. The assumption is that the system(s) were developed in the first place with a full suit of unit test, encapsulation and everything else you can imagine to reduce the risk of change. The simple fact is that this very rarely happens.

The other end of this is the cost. Any project that will help to reduce technical debt needs to factor this work in, and unfortunately, it’s one of the first things dropped from a project because of time/cost constraints. Businesses just don’t care about it, as long as the application continues to run.

So, my question is, how else can you deal with Technical Debt in a way that has little cost on business?

Plan B?

I was just made aware of an open letter from a few “young” Nokia Shareholders who seem to be a little less than happy with the latest happenings at Nokia. While reading the open letter, all I could do was laugh.

My thoughts on the new strategy are fairly straight forward.. Nokia’s brand is declining and they have a large amount of money being sunk into two different smart phone operating systems. If Nokia don’t do something soon, they will start loosing money at a massive rate. The cost of bringing Symbian up to scratch is going to be huge which leaves them with Meego.

The problem with MeeGo is that there is no app or developer eco system for it, which will mean that if/when the OS is ready, they will be on the back foot fighting for developers. The time lag between releasing the OS and phones running it is likely to be long, and the whole time Nokia will be losing more Market share and shrinking any money they have left in the bank.

Taking up another OS may not be an ideal solution for a company that has always stood on it’s own, but it is a strategy that can be executed quickly and can ensure the brand continues in the short term. This is the only reason (in my opinion) why Nokia are moving to an existing Smartphone OS. It’s about turning the company around quickly, with the biggest profit margin possible to allow them the freedom to execute a longer term strategy to differentiate themselves from the market.

Plan B in my option, would be the ultimate mistake for a company that’s lost it’s way, and would only speed up the decline of the once leader in the mobile space.

Tuesday, February 15, 2011

IE9, Windows Phone and More

What an exciting time.. Unless you’ve been living under a rock, you’d know that I’m a heavy user of Microsoft Technology, it’s part of my job, it pays the bills and all that other stuff. Sometimes, working with Microsoft Technologies can be painful. I have had several older windows mobiles, and cursed nearly every day, I’ve worked in office environments where IE6 was the standard, and cursed at older versions of SQL Server. You name it, I’ve played with it.

But lately, I’ve been really excited about the software coming out of Microsoft, and the announcements from the last week are no exception.

IE9

Last week, the IE9 RC was released. I’ve been using the Beta since it was released, but the RC just blew me away. It’s performance was impressive, leaving the beta looking like panda bear on pot. The hardware rendering is awesome, start up time quick,and in general just feels extremely responsive.

This has all been achieved by:

  • A new Java Script engine
  • Hardware accelerated rendering through via GPU
  • Running the Java Script engine in process (no more COM interop)
  • Multi-threaded support
  • Reduced Memory usage.

The biggest punch with this release is the new Anti-Tracking protection. This is something that had been hinted at but nothing had been shown until the RC.

Usability has also had a big working over in the RC thanks to lots of feedback from the beta. Tabs are now by default next to the address/search bar, but can be moved to sit under the bar like they were in previous versions.

I think Microsoft are on a winner with this, and I hope they keep this sort of innovation up for future versions of IE.

Windows Phone

The first update for Windows Phone should be out in the next few weeks (March??), and this brings with it a few small updates related to 3rd party app performance and copy paste. Both of these features are nice, but not killer inclusions.

What IS exciting, is the talk about the first Major update which should ship this year. The update is now looking like it will include IE9 (sure, trimmed a little for mobiles) with the same rendering capabilities of the desktop counterpart. And by “same”, Microsoft are even talking hardware accelerate via the phones GPU!!! This I can’t wait to see.

The other big part of the announcement is the support for running apps in the background. Yes, I know, other mobile platforms have this, even the old windows mobile had this.. But it’s still big news for WinPho7..

Last but not least is the feature that I think is going to increase the uptake the most (besides the Nokia announcement) is the integration of Sky Drive. Right now, office documents are stuck on your phone (unless you have SharePoint), but being able to load/save documents in the cloud is a HUGE update, and one that was sorely missing. This one feature is probably the biggest inhibiter of businesses picking up these new phones.

And then..

There are lots of other bits happening as well, like Win 7 SP1, NuGet, the fast approaching VS SP1 and lots of other projects that have been popping up around the place.

I think in general, Microsoft has really turned a corner and seem to be shipping quality software again with fairly regular releases.

I think it’s a great time to be involved in the MS Tech space.

Saturday, February 12, 2011

Windows Phone on Nokia

It seems that the rumours were all correct, Nokia and Microsoft have announced (finally) that Nokia will be dropping the Symbian OS that has been their staple platform for over a decade in favour of Windows Mobile 7.

With Nokia’s declining market share at the cost of both iOS (iPhone) and Android, Nokia really needed to do something and quick. I believe there were 3 options that Nokia could of taken:

  • Upgrade Symbian
  • Android
  • Windows Mobile

Upgrading Symbian as far as I’m concerned was the least optimal solution. The cost of bringing Symbian up to scratch (Modernisation) would cost a large amount of money, and leave Nokia in the phone OS Market. By dropping Symbian, Nokia now has the ability to cut the fat from their business and focus on more innovating hardware.

Both Android and Windows Mobile could have been options, particularly when you look deeper into the announcement. This isn’t just about the phone OS, it’s also about the eco system including Maps, Advertising and Search.

The other part of the announcement is what I believe the real clincher for Nokia was. By dropping it’s focus on the Mobile OS, it allows Nokia to continue working on areas where it still leads the market. That is innovative hardware and it’s market lead in mobile imaging.

I believe that this move is going to be huge for both Nokia and Microsoft in the long term, but unfortunately the announcement has already been met with a log of negativity, including Nokia’s Developers staging a walkout, and compounding Nokia’s problems with a falling share price.

Personally, I’m excited, and can’t wait to see where this new partnership heads.

Friday, February 11, 2011

Geek Rage

I thought I’d give it a few days to let the dust settle before I threw my opinion out into the world about Red Gate’s recent announcement about charging a fee for .Net Reflector.

This tool has been effectively free for a long period of time, from way back when Lutz Roeder first created it, right through the purchase by Red Gate. Not long after the initial purchase, Red Gate broke the product into two versions which were Free and Pro. As you can imagine, one was free and the other not.

This next part is purely speculation, but I suspect that Red Gate have not made very much money from the Pro Version because the Free version was adequate for most people. I mean, lets face it.. I don’t actually NEED .Net Reflector. It’s just a nice to have tool.

This brings me to the point of my post.. Red Gate are a commercial company. No commercial company is in the market to not make money. Even those big and nasty open source companies are in the business of making money, but they work by generating revenue through services.

But it’s $35 dollars.. Yep, the free version is now $35 dollars. I don’t know about you guys, but I spend more money than that on Coffee each week.. It’s also not even close to amount of money that most .Net Developers spend on tools like ReSharper ($199 for a personal license) or many of the third party control libraries out there.

I don’t think $35 dollars is a lot to ask for to ensure that a tool used by a large amount of the community continues to be maintained for future versions of .Net, and I think Red Gate have the right to do this.

That’s my though on the issue, and I know that if/when I need to use reflector again, I’ll happily suck it up and spend my $35 dollars (Tax deductable of course) .

Wednesday, December 22, 2010

Windows XP, Powershell and Deployment

 

Anybody who has read my blog would understand some of my frustration with running in environments with out-dated operating systems. Well, this post is another in a series of mini-rants about how new technology running on old platforms, mixed with half-hearted implementations has again contributed to sub-optimal solutions.

I’m currently running Windows Powershell 2.0 on a Windows XP machine. A large majority of servers are still running 2003 Server. This “antiquated” environment outright rules out the use of powershell remoting for updating servers during deployment.

This shouldn’t be a problem, as powershell comes with very useful, built in commandlets that allow you to interrogate processes on remote machines, connect drives and do a lot of other really fun things. Once again, this is where my environment comes into play. Production Web Infrastructure doesn’t use our internal Active Directory for Authentication. This decision was made many years ago for security reasons. The result of this is that we need to pass credentials to both Get-Process and New-PSDrive to allow retrieval of processes and to map network drives. Lets look at each of these commands.

Get-Process

A quick look at this command (get-help get-process –full), reveals that it doesn’t allow input of credentials. The only way to use this command is to be pre-authenticated with the target machine, and have the correct permissions.

NEW-PSDRIVE

This command seems to be a little better, it actually has a parameter for credentials. This surely must be a winner.. Right??

It turns out, that the parameters are just passed through to the provider specified using the PSProvider parameter. Unfortunately the FileSystem provider completely ignores the this parameter, resulting in this commandlet completely useless for our environment again.

Where does that leave us?

It leaves me using Powershell, mixed with WMI and Windows Scripting for something that should have been very easy to implement.

I’m sure that this usage scenario isn’t particularly obscure, and hope that future iterations of powershell clean up some of the loose ends around being able to provide credentials to commands instead of assuming that the current user has access to all network resources.

Tuesday, November 09, 2010

Clearly ahead of my time

Yesterday I put up a post about Validating user input. Today, news that the British Navy has been hit with a SQL Injection Attack.

I have a very simple question about this.. Why is this sort of thing still happening? Not only are we talking about an attack that is very simple to defend about, but we are also talking about a Military Organisation. I’m sure that most countries have invested large amount of money into Cyber Security etc, but yet they are still failing at implementing simple security measures.

Here are a list of possible ways to have picked up this BEFORE it became an issue:

  • Code Reviews. Easy, internal and should be done by a person who knows about these sort of things
  • External Code Reviews. If you don’t have in-house expertise, there are plenty of companies out there who can help
  • Application Security Testing. Get an external company to try and break into the system.

There are many other ways, but these in conjunction with better education would go a long way to ensuring these types of attacks are a thing of the past.

Monday, November 08, 2010

There is just no excuse for….

not sanitising and validating your user inputs. These two items are the most important aspects of writing a stable and secure system.

Not only do I think that Sanitising and Validating is important, I also believe that it must be done in that exact order.

Here is a quick example of what can go wrong:

Imagine you have a web application used to sign up users. The only mandatory field is Username, and it must be a minimum of 10 characters in length. This is a very easy check, but developers will quite often perform a trim on data going into a database. What happens when you validate for length but then have your code remove 1, 2 or maybe even 10 characters?  The worst case here is that the string full of spaces pass validation then your code removes all 10 characters from the username, resulting in an attempt to insert a null into the database. From here, hilarity will ensue, with either a database constraint exception or random null reference exceptions down the track when you try to use the data for something useful.

This is a very basic example of what can go wrong when you either don’t sanitise, don’t validate or you get the two around in the wrong order.

We apps in particular are still a very popular target for malicious users, using SQL injection attacks, delayed injection attacks or any other method you can possibly think of.

So please, do the right thing, Sanities then Validate ALL your data.

My HTC Mozart

Well, I’ve now had my HTC Mozart for a little over 2 weeks, and I felt it was time I put up a few of my thoughts.

HTCMozart

I’ll start off with a simple statement. I LOVE this phone and I LOVE Metro.

What I like

Metro. Texting. Emails. Live Integration. It’s all so seamless, intuitive and easy to use. Admittedly, I’ve come over from WinMo6.1, so a lot of people are going to scoff at this, but I really like the speech balloon approach to text message conversations.

Keeping up to date with emails on this phone are a joy. I’ve pinned 2 of my email accounts to the main screen, and I can easily see when I have emails and how many. Reading emails is clean, easy and efficient. This is the first phone I’ve had where I actually question the need to use a desktop machine for emails. This is a good thing.

My previous phone was with 3, and the handset had serious issues when roaming (reboots, dropouts, crashes).. This was a killer for me. My Mozart on Telstra? It’s awesome. I get coverage everywhere I’d expect it. I travel between Canberra and Cooma regularly, and with this phone I get coverage most of the way. This is just awesome. Yes, I know this is more about the network, but at least when I roam it doesn’t reboot.

I have even grabbed the official twitter client, this app looks and feels like it belongs, while steel having the typical styling of twitter. It’s clean and easy to use. I’ve started using this for the majority of my twittering.

What I don’t like

As with previous version of WinMo and desktop Windows, a lot of manufacturers installed a lot of CrapWare. With WinMo 7, Microsoft limited the number of third party apps that could come pre-installed on these devices. This is a great idea. And the third party apps that came with my phone (Thanks HTC and Telstra) are perfect examples of why these sort of applications shouldn’t be pre-installed.

I’ll start with the Telstra hub, because I have mixed feelings about this. I really like the weather view on this. The overall feel of the hub is alright, except for 2 grips. The first of these is it’s slow.. There is a lot going on in this tab, and sometimes it’s just not responsive for 2-3 seconds. This isn’t good. My other gripe with the Telstra hub is “My Places”.. Is this the best you could do Telstra? Have a few buttons that just pre-launch a web URL? It kinda takes away from the whole experience. Fix these two things, and the Telstra hub could be my new best friend.

And then there is the HTC Hub..  Seriously HTC… Did you guys think about trying to fit into the Metro style? I think now. This looks/feels just like typical HTC I know better type of UI. It looks like it belongs on the front screen of an Android or WinMo6.5 phone. This isn’t Metro. All this screen does is provides Time/Weather information and links to other (reasonably useless) applications. If you can’t take this sort of thing seriously, then stay off my phone. You guys make great hardware, but I think you need to stay out of the phone software business.

What I’m “Meh” About

I’m still not impressed about the lack of a Music Marketplace for the phone. I understand that this isn’t just a Microsoft issue, but I do think that if Microsoft had been a little more organised, and maybe even been a little more aggressive then we would probably have a download service by now. The reason this is only “Meh” and not a “Don’t Like” is because I already have a large music collection and I already used the Zune desktop client at home. This resulted in a very easy migration over to the new phone, it just seemed to work.

Contact Management is another of my “Meh” items. I love the fact that a lot of contacts have been pulled from my various social networks. I even prepared and migrated all of my outlook contacts over to live before I got my phone. The “Meh” moment with this was the merge functionality. Both the phone and Live offer merge suggestions which seems like a good idea, but when 2 contacts with IDENTICAL names are not recommended, then I know it’s got problems. Fix this small issue and the merge will be up there in the like section.

Besides all of this, there are a few other “oddities”, but I am not going to complain because Microsoft are already working on addressing these. And no, I’m not talking about copy/paste and multi threading.. I’m talking about the following:

  • Open office documents directly from my live account
  • Filtering out some contacts. Some people are in my “larger” social graph because it’s the right thing to do, it doesn’t mean I want to know when when and where they poop directly from my phone.

Thursday, September 23, 2010

More on Open Music Platform

Ok, so I’m sure some people have read my post yesterday about the market speak coming from Microsoft about the state of Zune Marketplace in Australia.

I thought I should probably take some time out to explain my thoughts/feelings a little better.

Open Music Platform

I think the idea of having DRM free music, being able to share your music between devices regardless of where it came from is very important. I have a very large collection of completely LEGAL music that I want on my mobile devices.

From an adoption point of view, being able to sync a Windows Mobile 7 device with music you purchased from iTunes is great, and I wouldn’t expect anything less.

The State of Music In Australia

In Australia, we have very limited ways to get downloadable music. We have iTunes, Bigpond Music if your a Bigpond user and that’s about it. There are a number of online music stores online, but due to licensing restrictions they can’t sell us music in Australia. Sure, we can trick them by using US Proxies, Paying with US credit cards etc, but the point is that it’s actually against the Terms and Agreements and probably illegal.

Marketing Speak

The post I pointed to from Dave Glover didn’t do anything to clarify the original point that Zune Marketplace doesn’t allow Music Downloads within Australia. He went on to point out how we could use existing music we owned, get music from other sources, and all the Video content we could get. But I go back to the point that he didn’t address the original issue of not being able to buy music through Zune Marketplace which can be enjoyed in the US and Europe.

Usage Scenarios

Lets look at the major competition from an Entertainment point of view. You know who I’m talking about, Apple and their iPhone and iPad.

  • iOwners can use one tool to download new music and sync with their devices. It’s easy to use and just works. This is a simple scenario that won’t be available to Windows Phone 7 owners in Australia.
  • iPhones and iPads can natively access iTunes through wireless internet access. If you want new music and you have signal then it’s available. Again, this won’t be available to Windows Phone 7 owners in Australia.

Why is this happening

There are only 2 possible reasons I can imagine that would prevent Australian Windows Phone 7 owners from accessing online music.

  • MPAA or some other Music Industry representatives cannot come to an agreement with Microsoft. I actually find this unlikely due to the fact that Apple managed to get some sort of agreement in place.
  • Microsoft View the potential market in Australia to be too small, and therefore won’t invest the time and money into getting an agreement and systems in place.

My Criticism

My issue with this whole thing is the Marketing crap that comes out of Microsoft about this issue. It is an issue that will affect the uptake of the phone.

In addition to this, I did take the time out to reply to Dave Glover yesterday through the comments on his post. I think the worst thing I said in the post was “contempt”, in the context of the way they (Microsoft) can’t be honest about what’s going on. But it seems my comment didn’t make it through moderation process.

What I’d Like to See

This is really simple. I’d like to see Microsoft publicly acknowledge this as an issue and at least explain why we can get Video on our phones (I don’t care for this) but won’t be able to get music (I care about this). Possibly even detail what they are doing to correct it.

Ed.

Wednesday, September 22, 2010

An “Open Music Platform”

Sorry, that just sounds like marketing speak for “We are not going to provide music downloads for you”.

What am I talking about? Read this.

One of the things that has made iAnythings so popular is iTunes. It’s a one stop shop for Apps, Videos AND MUSIC. The iWantItNow generation don’t go to the music shop to buy CDs, take it home, rip it (is that even legal?) and then sync to their iDevice. Nope, they login to iTunes, download it and sync. 5 Minutes max to get the music they want.

With Windows Phone 7, we will have a useful tool called Zune. This works with the Zune marketplace and in the US, most of Europe and a whole heap of other countries, it will be the perfect replacement for iTunes. In Australia, we can only download Videos, not Music. In fact, in Australia we can’t use most online music stores due to the fact that we are not in the United States..

The answer is actually pretty simple.. Buy your music through iTunes then use the Zune software to sync with your phone.. But this isn’t as easy as it should be. Another option is to trick Zune into thinking your in the US, but that’s just not right is it..

Anyway, please don’t treat people in Australia with such contempt by telling us about Open Music Platforms. That’s just a nice way of saying “You don’t get it, suck it up”.

Monday, September 20, 2010

ASP.Net Crypto Attack

Well, unless you’ve been living under a rock for the last week you are probably now aware of the Crypto attack that is in the wild and targets ASP.Net applications. This attack is raising many of the same issues that we see regularly in the industry with SQL Injection Attacks.

Wait, what?? Yes, this is another of those situations where Developers and Administrators have been lazy. Yes, it is a Vulnerability and it needs to be fixed, but it’s also become a massive issue because a large number of ASP.Net applications don’t handle errors correctly.

The recommended workaround (from the MS Security Advisory) is to simply enable customErrors and redirect to a generic error page. Simple fact is that EVERY ASP.Net app out there should be doing this already. This is one of the many steps to mitigating against attacks on websites including SQL Injection attacks. Returning any information to potentially malicious users is bad.

So, let me quickly run through the bare essentials.

If your using .Net 3.0 or earlier, add this to your config file:

<configuration>
<location allowOverride="false">
<system.web>
<customErrors mode="On"
defaultRedirect="~/error.html" />
</system.web>
</location>
</configuration>




For .Net 3.5 and above


<configuration>
<location allowOverride="false">
<system.web>
<customErrors mode="On"
redirectMode="ResponseRewrite"
defaultRedirect="~/ErrorPage.aspx" />
</system.web>
</location>
</configuration>



There is an additional step that you should take to this. In your error page, add in a random sleep to the Page_Load event. Why?? The short and easy answer is that some attacks use timing information to derive information. Adding in a random sleep (generate the random number through the crypto engine) helps to remove another potential vector for gathering information.



Please, don’t be lazy, make sure your Web Apps are secure.

Thursday, September 16, 2010

Another Sad Day

Well, today’s the day. The official launch of the IE9 Beta, and it’s made me sad. I’m not sad because of what IE9 is. IE9 looks to be an absolutely awesome browser, much faster than previous version, possibly more secure and a hell of a lot sexier.

I’m sad because like may other people out there, I spend a large amount of time sitting in a Corporate environment that is still sitting years behind. Yep, I’m still on Windows XP. This limits me to IE8, or one of the many other browsers out there.

At home, I’ve already installed IE9 beta, and I have to say that my initial impressions are pretty good.. What can I say, I’m not particularly fussy about my browser, I just want it too work. IE9 Beta seems to fit that so far and has a few features that I’m pretty excited about. Pinning Web Pages and having them almost feel like an extension of the desktop is amazing. It’s just not the sort of amazing that I can experience at work.

I think for now, my Netbook

with wireless internet access is going to be how my web browsing is done from work. It’s just going to be separate from the corporate network.

Thursday, September 09, 2010

Warnings and Code Analysis

During development, I do my best to ensure that I eliminate warning and issues identified through code analysis. I like to do this from the start so I don’t have a massive list of “clean up” at the end of a project.

Unfortunately not all of the projects I work on start from a clean state. Like me, many developers inherit a large code base that needs to be extended, patched and enhanced. More often then not, these projects come with hundreds or even thousands of compiler warnings and have probably never been run through any static code analysis.

For code analysis, I have used FxCop and now Visual Studio Code Analysis. Using these tools, I can identify issues and correct them. On a few occasions however, the “issues” are by design and I can easily put a suppression on the error. Suppressions can happen at many levels, but I prefer to generally suppress issues at the lowest possible level. This makes me review every instance of an issue instead of blindly hiding things.

When you suppress a code analysis warning, you can add in an options reason for the suppression. This acts as inline documentation that allows me to share my reasons for doing this.

Now, this is where I currently have an issue. Compiler warnings don’t allow suppressions on a per-instance level. The best we have is the ability to suppress all warning of a type for a particular project.

I’d like the ability to attribute methods, properties or classes to suppress compiler warnings just like I can with my code analysis. Not only that, I’d like to be able to leave documentation as to why I’ve suppressed a compiler warning.

I guess what I’m asking for is to just implement support for compiler warnings that’s identical to code analysis in Visual Studio. This would make my life a lot easier, particularly when working with large inherited code bases.

Datagrids Oh my..

I’m just going to lay this out there.. Datagrids are the bane of my existence.

Ever since I started in IT, I’ve had the fun job of fixing issues in applications that insist on using Datagrids as edit controls. Datagrids are great tools for displaying information and for selecting data, but they are USLESS for editing.

Use a master/detail layout, or even a popup edit window.. Do something else.. BUT please don’t use datagrids for editing.

When WPF first shipped, did you notice that it DIDN’T have a datagrid? Did anybody stop to think that maybe this was a good thing?? Nope, everybody complained.. “WE NEED A DATAGRID”..

WPF shipped with a ListView and a ListBox. These were fine for displaying data and data selection. WPF also shipped with some really great edit controls.. These edit controls should be used for their intended purpose. You guessed it.. Editing data..

Please, stop the datagrid abuse. 

Thursday, September 02, 2010

Windows Mobile Development Blues

Well, with the official RTM for windows mobile 7 today, I thought I might grab the developer tools (beta) and have a bit of a play. So, over to the Windows Phone Developer site to download the tools.

The download was a very smooth process (as it should be, it’s just an ISO). I mounted the ISO as a drive and clicked setup.exe.. FAIL!!!

So, I started checking all the pre-reqs.

  • Visual Studio 2010 Ultimate (Check) *
  • Windows Vista/Window 7 (FAIL)

Yep, I’m at work, and my development machine is still running Windows XP. It’s a brand new box, 2.8GH Xeon processor, 4GB ram, SSD hard drive and Windows XP..

It seems the emulator for WinMo7 requires DirectX 10.1, which is why it won’t run on XP. It’s not a huge issue for me, because I have a few Win 7 machines at home that I can have a play with.

What does concern me however, is that there are a number of businesses/government agencies out there who still run Windows XP and will take another year or more to migrate. During that time, they are effectively locked out of doing development for a new exciting platform.

Will this effect the uptake of devices in a corporate setting?? Possibly. What it means for me is that it’s going to be very hard to push for WinMo7 as a platform until the organisation upgrades, which could still be a year or more away.

* The developer tools install VS 2010 express, but the tools can still be used from inside the full version of 2010.

Wednesday, July 14, 2010

Outlook Social Connector

I finally got around to installing outlook social connector today onto a machine running outlook 2003. The install went smoothly but I was surprised that the default installation doesn’t come with any pre-installed providers.

The first two providers I’ve installed are for Facebook and Windows Live Messenger.

Some of my contacts came up without any issues, unfortunately many of my contacts use multiple email addresses for home/work etc. This isn’t an issue with OSC, I just had to go through my outlook contacts and ensure that I had all email addresses that they use entered correctly.

With that done, OCS seems to connect most of my contacts pretty well now.

In general, it looks pretty good. I think with a few more features, like the ability to reply to facebook posts etc would make OSC a must have.

I’ll post with some more thoughts once I’ve used it for a few days.

 

Stay tuned,

Ed.