Showing posts with label Microsoft. Show all posts
Showing posts with label Microsoft. Show all posts

Sunday, 17 February 2013

Geek Girls Coffee and Microsoft Webinar

On Tuesday the 12th of February, I participated in a webinar (an online seminar) that was a collaboration between Girl Geek Coffees Sydney and Microsoft.

Pip Marlow


It was run in a panel format and the panel members were all from Microsoft:

  • Pip Marlow - Managing Director of Microsoft Australia;
  • Me;
  • Andrew Le Lievre - Human Relations;
  • Michelle Tea - Head of Services in Microsoft Australia; and
  • Susanne Krohn - Early Career Employee and recent graduate.

The audience was a good mix of women in technology who are currently studying, recent graduates and those working in ICT at the moment.

Michelle Tea


The aim was to address audience questions around:
  • What is it like to be a woman working in ICT?
  • Was it a straight road to get to where you are?
  • How have you dealt with negative experiences due to being a woman?
  • What is important when companies like Microsoft are hiring people?
  • (and the very important) What do you always carry in your handbag, other than a mobile phone?

Damana Madden (me)


There were great stories and a lot of good insight from all the panel members. The audience was able to ask whatever was on their mind and comment on different questions. It was a wonderful chat all round.

Susanne Krohn

These kinds of events are an awesome chance to get to talk to people who are working in the thick of it, in large companies like Microsoft with women participating in all roles.

Andrew Le Lievre

Kudos to Katrina Wong for organising this, along with GGC Sydney.

Tuesday, 5 February 2013

ASP.NET MVC v ASP.NET

Having used ASP.NET MVC since it was in Beta in 2008, I am asked every time I mention those extra three letters why you'd bother moving a mature ASP.NET application to the new framework.

ASP.NET MVC is a framework that helps you build applications (note: I did not say web applications only) in a Model View Controller pattern. It breaks your applications presentation layer in to three distinct parts: The Model is the data. The View is the presentation. The Controller is the glue that holds it all together and manages interactions.

Traditional ASP.NET Application Architecture

In a classic ASP.NET application, the application logic is presented up to consuming applications through an ASP.NET container that returns web pages. If you want to access that logic through another consuming application that isn't web based then you implement web services that allow API access to that functionality. This is what you'd do to allow Javascript calls from your web application that didn't want to go through full ASP.NET page lifecycles to get standard HTML page data. Getting a JSON response is usual for an AJAX type call.



ASP.NET MVC Application Architecture

With ASP.NET MVC, one fundamental thing has changed. The ASP.NET application takes an HTTP Request and returns an HTTP Response of any type. That means that it can return HTML+CSS+Javascript to a browser if that is what it asks for or JSON or XML or any data format you want. It is just a generic HTTP response.

What this means is that you no longer have to build separate web services to expose application logic to consuming applications that do not want standard HTML. Those applications instead make requests and the ASP.NET MVC application is extended to process those requests and return whatever is required. The consuming application can be Windows-based, a mobile application, another web service or pretty much anything you can imagine.


There are a lot more differences between ASP.NET and ASP.NET MVC but this is an architectural one that will save you a lot of implementation time. Instead of wasting time on software infrastructure and scaffolding, you concentrate on writing business logic and exposing that business logic in consumable ways.

It is totally worth considering if you are have a greenfield project or are moving to later versions of .NET and are reconsidering ASP.NET.

Monday, 4 February 2013

Troubleshooting is Technology Agnostic



There is a concept of Technical Depth within Microsoft. It describes how well a person understands a specific technology. It focuses on specialisation in a domain.

Our straight out of university graduates sit around 100 depth. Our beloved Evangelists sit at 300-400 depth but posses impressive breadth of areas of knowlege. Premier Field Engineers sit at a depth of at least 500. The guns of Microsoft who know things inside out are referred to as CTS. They sit at a depth of 700. Ask them a question on a specific technology and they will recite the code to you. It is awe inspiring.

There have been many situations that I have been called to that required me to act as a problem solver and quasi therapist on. Usually, the client was in a horrid position where they felt they needed Microsoft to bring sanity to the overall moment.

I am a developer. In Microsoft, my role is as a Developer Premier Field Engineer.

In the situations that have required that I march onsite within odd working hours and when the sky is falling, me being a developer seemed essential. The truth is that on these occasions, they did not need a developer. They needed a problem solver.

Often when the sky is falling and your managers, your big big managers, need everything sorted then that is when you call for us. You want a voice of reason. A voice of order that bring calm to a situation. It never seems to matter if I am an expert in WCF or low level debugging. It is more having a person who can clearly see through the haze of panic that brings calm to the situation.

That doesn't mean there aren't people on the ground with that skill. It just means that the kudos of being from the Big M seems to hold some sway. It helps temper the mood. It lets us belay the journey to the solution.

There is merit in this skill. In the skill of slowing the moment and redirecting the effort. There is benefit in working towards a goal in Matrix time.

It has taken me a long time to understand the profit in reactive PFE skills. Now I see what we bring. We bring zen. We bring the martini with a twist. We bring calm to an angry ocean.

Microsoft PFE is trust and effort and knowledge combined. I like that idea.

Thursday, 24 January 2013

I talk good, I does



Inside Microsoft, there are lots of different moving parts. The company is made up of around 100 000 full time employees. One of the newest but rapidly growing parts is Services. The group I work for sits under Services and is called Premier Field Engineering (PFE).

Premier Field Engineering does not sit under a subsidiary like Australia but instead exists under a global group. It is different to other Services parts like Microsoft Consulting Services (MCS) who do belong under Australia.

This design certainly gives us a lot more mobility and the ability to act as a pool of resources for other parts of the business.

In the world, the Universe and everything at last count, there are 3009 Premier Field Engineers (PFEs).

I have been with PFE for just on 9 months now. At the 7 month point, I was nominated for an opportunity called the PFE Industry Leadership Program. It runs every six months and this is the second round.

Out of 3000+ PFEs, 32 of us were nominated by members of our local PFE management group for being current and often loud participants in the areas of 1) blogging and online presence; 2) public speaking at conferences; and 3) video presentation skills.

When I was nominated, I was chuffed until I found out that I had a month to produce a blog post (easy copy-paste job from my blog), a short Powerpoint presentation (oh no, I don't do short presentations) and an even shorter video (see previous "oh no.."). Nothing in life is free and for me, nothing in life is harder than saying what I need to say in a very short amount of time. For me, filling an hour with building rapport, articulating technical content and allowing time for digestion of the information and questions is what I do every day and what I do very well. To be asked to achieve a similar outcome in a shorter time scared the hell out of me.

It frightened me so much that I left the tasks until the very day that they were due.

Now, that doesn't mean that I didn't put effort in to them. If anything, I put a short and succinct amount of effort in to them. Without too much time to over-think it all, I had to put what I had to say in to a little space within a small amount of time. I think that made it easier, rather than harder.

In my life, I have spent a lot of time painting. For what I lack in talent, I make up for with enthusiasm. One important thing I learnt a long time ago when I started to embrace my inner artist was to know when to stop. Perfectionist are awful at that. We want to go and go and go in a quest for unattainable perfection. In this case, I made the videos and honed them and then stopped. Without one of those big Ang Lee panorama cameras on a big pole with a chair I could sit in, I was not going to make a Tropfest winning short so I stopped with what I had and moved on.

A couple of weeks later came the interview. New rules were instigated so that you would not be interviewed by anyone from your own region. My interviewers were a PFE manager in Bangalore and a PFE with god status, also from India. It was a one hour interview with a lot of challenging questions about how I do things and why. It took only 29 minutes and I figured that I was either awesome or completely rubbish.

Two weeks later again and my boss texted me to say I'd be heading to London for a week of training with a company that specialises in making people great presenters in all the areas I mentioned above. People pay a lot of money to be trained by them. They aren't Microsoft people. They are an external group. PFE is funding the whole thing and investing in the 16 PFEs who were chosen.

The reason I am telling you this is because I am pretty proud of myself. Not as hugely proud as my family is but still pretty stoked about getting this chance.

Out of 3009 PFEs in Microsoft and 516 in Asia, I competed and won a place to extend my current skills in an area that I do just for the fun of it.

I am famous for sharing my first world problems and complaining about how work isn't funding a handsome underwear model to rub my feet while I work from my home on a yacht in the Greek Islands. Ok, that isn't true. He's just a jeans model.

The point is, I like blogging and talking at people and presenting and improving those skills constantly. I like sharing the passion and the knowledge and the opinions with those funny people who for some reason read what I write. This is something I do for no benefit than my own sense of contributing and participating. For the first time, I am being actively encouraged to do so and to learn more.

Well done me. Now I'm off to London to visit the Queen.

Sunday, 9 December 2012

Don't Virtualise Everything




There seems a need in the dev and the ops world to virtualise everything. Everything!

People talk of it as the second coming. We can scale. We can spin up any environment without over-preparing or extra investment or asking permission.

Like the cloud, talk of virtual machines solving every problem imaginable is all the go.

Like all new technologies, they bring you benefits but they are not the answer to everything.

Good engineering and common sense must always be applied, especially in times of wonder.

One place that you can not 100% virtualise is in testing.

Twice in the last four months, I have had to walk in to situations where the issue was testing an app in an updated SOE that had only been tested in a purely virtualised test environment.

One had issues with drivers and the other with an out of date BIOS version.

When you are running in a virtual machine (VM), it is an emulator. As much as possible is handled inside the emulator but one thing that makes a VM so portable is that it is piggybacked on the host operating system. One thing you can count on is that when it falls back to embedded calls to hardware that it falls back to the native OS and its drivers.

Underneath that is the BIOS and although you can mostly count on that, nothing is guaranteed.

In the two cases I saw, the problem happened under load and pushed the boundaries that would never have been tested because it was impossible to simulate in a non-native environment. Although operating systems were tested, bespoke applications were assumed to pass all tests if they did so inside the VM.

There is no need to test everything outside of a VM though but you should at some point in the testing journey. My suggestion is...

Unit test in a VM.
System of Integration test in a VM.
Functionally test in a VM.

At least Performance or Hardware Integration test on the native hardware with the native operating system.

Nothing beats reality.

Nothing.

Tuesday, 27 November 2012

Why I'm an Engineer and Not a Pastry Chef

On the Internet, people joke about First World Problems (FWPs) when they stub their toes on their BMW run-flat tyres while wearing their new Louboutins, in an attempt to avoid stepping on their Paspaley pearl earrings.

On my team at work, we have PFE World Problems (PWPs). They make an FWP look like torture. As a job, it isn't so bad. I'd go as far as to say it doesn't suck. It is time I reminded myself of that.

My latest PWP was hitting what in Microsoft is called the 7 month itch. No jokes about antibiotics please. It is a point when after being at the company for a while, you are passed the honeymoon period and straight in to the everyday work ritual.

When people told me I would hit this, I sniggered. Well, it was probably more of a giggle but now I find myself sighing mostly and realising that Monty Python was right in the Life of Brian...



Brian: No, no. Please, please please listen. I've got one or two things to say.
The Crowd: Tell us! Tell us both of them!
Brian: Look, you've got it all wrong. You don't need to follow me. You don't need to follow anybody! You've got to think for yourselves! You're all individuals!
The Crowd: Yes! We're all individuals!
Brian: You're all different!
The Crowd: Yes! We're all different!

Truth is that joining a big company with so many possibilities is awesome to start and keeping that momentum going is up to you. In this case, it is up to me.

I identified the two things that are not Mana-friendly and now I must find a way to fix them or get out.

They are...

The Lack of Team (the journey)

PFEs work mostly on their own. What I do is called transactional work. You go in and provide knowledge or a solution or give someone a hug and then you move on to the next client. Those who are lucky like me, go back to the same clients and sometimes the same systems.

If you've met me IRL then you know that I can build rapport with anything and anyone from a CIO to a dev to a grumpy crocodile to a brick wall in under 3 minutes. All of that comes from genuinely caring about what clients want and how to help them achieve that. My work is not about me being a superstar or about credit or acclaim. If I wanted that, I wouldn't be in PFE. I'd be a pastry chef.



Anyway, you build rapport and you like the cause. You work towards the cause and you actually add value. Then you leave and start all over again. It is fun but it isn't the same as being part of a dev team building software.

This means that I have to find a way to belong. A way to feel part of something without being in the middle of a dev team slaving over the coals. That's my first action item. I must find a way to enjoy the journey that satisfies the way I like to work... with people.

No Finish Line (the destination)

Ask anyone who identifies as pragmatic and they will tell you that delivering something from start to finish is more satisfying than gold plating or talking about it for ages.

In my current day to day work, there are very small blocks of work that I have to complete. People often say they like the work but not the wrap up report or presentation at the end. I love it all. I love the start, the middle, the race to the finish, the wrap up and the bloody post mortem.

As an agile dev, breaking down big things in to small achievable parts is a talent I have. I can deconstruct any requirement and put it back together, while holding the holistic view and goals in my head.

There is my second task, to find a way to take on bigger chunks of work that let me satisfy my need to build awesome stuff.


It took a lot of sulking to come to this realisation. It also took a colleague to give me a good slap and tell me to step up and do something about it. I am often that person to others but oh so famous for not taking my own wicked advice.

Thank you, unnamed colleague. You are lucky there is a continent between us :)

Now to make it better or get the hell out.


Thursday, 4 October 2012

Be Mobile or Be Cloudy

There are two spaces in the dev world for a dev to touch on right now that can not be ignored. If you do ignore them, you are accepting legacy status within a year.

Be a mobile dev OR Be a cloud dev.


Cloud: A visible mass of condensed water vapor floating in the atmosphere, typically high above the ground


Everyone is talking cloud this and cloud that. If you aren't at least having a play in this new world at home then you are already falling behind.

This should be something additive. It will work with what you know and be a logical progression, just as classic client server gave way to the storm that was web development.

Everyone has an offering. Amazon was first and they did ok. Google wants all your data and pretty much has it. I work for Microsoft so you'd expect that to be why my suggestion for a starting place is Azure.

In actual fact, it is Azure but not because I work for them.

If you are a .NET developer and you want fluid transition in to this new buzz word filled world of cloud then there is no better option than Azure.

Moving to any cloud is not just a matter or spinning up a few servers and copying your code over. Designing for this new environment is key. Take what you have and move it to a truly scalable model with infrastructure as a service and advanced app monitoring.

Stay tuned and join me on my 90 day adventure to build an Azure based application.


Mobile: A decorative structure that is suspended so as to turn freely in the air

There are also a bunch of major options if you go down this path. Google has Android. Apple has the mainstream iOS platform. Microsoft gives you Windows 8.

Having written apps for all of these players, there are good and bad things about all of them.

My bet is on line of business apps that don't appear on app stores at all but get consumed inside businesses to do everyday work.

Designing for a mobile platform is as distinct and must be as purposeful as designing for the cloud. You don't just move code. You don't just swap out your presentation layer. There are considerations made for user experience on such portable but tiny devices. Then there is how you handle data down and uploads across 3G+. There are many restrictions to grasp but these strong guidelines can be used to quickly build for these platforms, if not fought at every turn.

.NET devs again will find the Win8 app leap more of a small step.

Whatever mobile experience you bring with you or gain in the adoption of this kind of programming and design, it will help you in building leaner and friendlier applications.

My posts on getting started with Win8 dev are here.


There will always be legacy apps. Just don't be a legacy software developer.

Monday, 3 September 2012

The F in PFE is for Fisherman



Four and a half months ago, I started at Microsoft as a Developer Premier Field Engineer (PFE). That means a few things and has a bunch of meanings that will emerge over time.

The main thing I do is problem solving for, educating and motivating people who have bought the Microsoft experience and are dealing with it post-sales or even post-implementation.

That's a fancy schmancy way of saying that I work in support.

In Microsoft, there is not a lot of glam around being a PFE. Everyone loves Evangelists. Sales is king of the hill. We kind of sit at the bottom of the hill dodging falling stones. Sometimes, falling monoliths.

Don't get me wrong. We have a great technical depth so we dodge falling stones like ninjas dodge... falling stones. We are much better at our given technical field than metaphors.

There is a lot of satisfaction in what we do. Technical people who love to do technical jobs will understand that. We are not driven by the cheers of the crowd or the mega bucks. That isn't part of a normal day for us.

Working with PFEs around Australia over this brief time has confirmed for me that like me, they get out of bed every morning to solve difficult problems and to teach others to solve them or avoid getting in to them to start with.

Microsoft has its motivators and its merchants. PFE are its fishermen.

A colleague of mine put it best when he said this is what PFEs do...


  1. “I went fishing today” – Sometimes when things go bad, we have to go in and fix whatever problem has occurred.
  2. “I taught someone to fish today” – This is where we want to be, teaching customers how to effectively operate and troubleshoot Microsoft environments.
  3. “Someone showed me the fish they caught today” – These are the best stories, where a customer has resolved a difficult issue on their own using knowledge they’ve gained from PFE.

So far, I like it. I'll certainly be here until the end of the month :)

Friday, 15 June 2012

Presenting at the Premier Field Breifing


Today was a day for Canberra Premier Field Engineers to share their knowledge with an open house, at our second Premier Tech Briefing for this financial year.


My colleagues were out in technical force and dressed like Microsoft ninjas. I got to wear my Swarovski crystal Microsoft shirt which was I admit, a highlight.

Jimmy Fitzsimmons presented on Windows 8 Dynamic Access Control as Steve Moore, the Lync genie spoke in an opposing room.

Imtiaz Khan then gave a SCCM 2012 Tech Overview, while Grant Holliday and I did a joint session on Agile Development with Visual Studio and Team Foundation Server 2012.

There were wild cheers; huge amounts of delicious food; virtual graffiti of another engineer's face as a demo; and a free autographed book from our local published TFS guru.

We had a fantastic turn out with attendees from 25 organisations from across Canberra.

The immediate feedback has been very positive.





Next time, we will have a full dev stream. Stay tuned.

A Lifetime of Events




Last week, I sat with a developer in an effort to solve an issue with broken Suspend-Resume handlers in Metro. The developer told me that he was getting inconsistent behaviour with his Suspend handlers and that he suspected a bug in the Metro framework.

When I got him to repro the bug, showing me how the error was caused and what the resulting output was, I found that he was not suspending and resuming but instead, suspending and on-launching.

He was exiting the application.

Metro triggers the suspend handler at that point. Suspend handlers run when you exit the application. Exit can be either suspending and leaving for a bit or quitting the application forever.

Now, one thing you should know about the Suspend handler is that it is paired with the Resume handler. If you can not see the Resume handler being called subsequently, after you add code to the Suspend handler then you are putting it in the wrong place.

The developer I was helping was putting his code in the wrong place. He was assuming that if he told Application.Current to persist something then it was so for as long as he waited to relaunch the application. He was wrong.

Web developers don't seem to hit this learning point but desktop developers do. It happens because they don't live inside life cycles. They have never been forced to understand that objects have lifetimes and you have to interact within the rules of that world.

When this developer called the Suspend handler and traced the persistance back to a file that stored the serialised version of his data, he assumed that it would be there when he started the app again.

That is an incorrect assumption.

Application lifetime lasts for the a the amount of time that the application is current. That means that when you launch it and when you exit it, the application is live. Outside of those boundaries, Metro does not guarantee anything. Files persisted to storage by the Application object are not always there and not always called the same thing. If it goes to disk, it could just as well go to memory and it is then just as fleeting.

There are matching pairs when it comes to exit-entrance handlers. With Suspend, you can count on Resume. With Exit, you can count on Launch.

Don't assume anything will be consistent, outside of the lifetime that your event belongs to.

If you want to ensure data or state persist then you must explicitly handle that persistence when it does not obey Application lifetime.

Friday, 25 May 2012

Premier Tech Briefing 2012


Premier Tech Briefing 2012 – Friday 15th June

Come and join us for the Mid-Year Premier Tech Briefing 2012. Learn from the best as Microsoft Premier Field Engineer’s (PFE) show you their tips and tricks learnt from the field.

Arrival/Registration and Breakfast – 08:00am to 09:00am

Please arrive at the venue with enough time for registration.

Session 1 – 09:00am to 10:30am

Option 1 - Windows 8 Dynamic Access Control

Presented by a Microsoft Premier Field Engineer. A first look into Windows 8 Dynamic Access Control – Everything you thought you knew about securing a file system is about to change!

Option 2 – Deploying Lync 2010!

Presented by a Microsoft Premier Field Engineer. A deep dive into how to get the most out of a Lync 2010 deployment.

Session 2 – 10:40am to 12:10pm

Option 1 – SCCM 2012 – Introduction to SCCM 2012

Presented by a Microsoft Premier Field Engineer (PFE) A deep dive into the new features of SCCM 2012 – All your questions answered!

Option 2 - Agile Development with Visual Studio and Team Foundation Server 11

Presented by a Microsoft Premier Field Engineer. We will take a ride through an example project and show you how an agile team can efficiently prioritise, plan, and deliver high quality software. We will also take a look at the valuable set of new features and capabilities that Visual Studio 11 and Team Foundation Server 11 bring to agile teams.


Venue: Microsoft Canberra - Level 2, 44 Sydney Avenue, Barton

Registration


To register, please emails damadden@microsoft.com

For any questions please contact me. I hope to see you there!

Thursday, 24 May 2012

A Specialising Generalist





Firstly, what is a generalist? The dictionary says: "A person competent in several different fields or activities."

I've called myself many things in my career, from polyglot to geek diva but one thing I know I have always been is a generalist.

Don't get me wrong, I know many things well and with great depth and understanding but there is not one thing that holds my attention over all other... ooooh, sparkly lights!

My talent is the ability to learn very fast and articulate and implement concepts in any technology.The good developers that I know are very much the same. They understand concepts and ideas and learn fast by putting those building blocks together.

Of course, there are those who can recite APIs to you. There are those who champion their language over all other lesser languages. There are the ones that dive in to every new shiny technical topic with vigour and a dizzying sense of intoxication. I say... to each, their own.

My job is an interesting one. A Premier Field Engineer (PFE) possesses amazing depth of knowledge in an area. They are the go-to girl for Item X. It is impressive.

What I've realised is that the developer space is massive and as a Developer PFE, I'm expected to know something very well. That worried me earlier this week as I sat and wondered what I knew really well.Then I stopped.

I am great at being a developer. Any language. Any concept. Any layer of detail or abstraction, I can understand with little effort. I've built big things and small things. I have watched the software development world mature from cranky tots to pimply teens to a kinda cute 20 something and now a talented 30ish year old.

I'm not supposed to learn a single product. I am supposed to keep being able to build great software. From inception to deployment and on to extension and deprecation.My specialisation is knowing what to build and how to build it, the right way. I see pain points and know instantly how to treat them. I make processes leaner and developers more rigorous and thorough in their craft.

So, the generalist stops and realises that she hasn't wasted her time learning a lot of things about a lot of things. She is more than just competent. She is agile and has aptitude and attitude.

I have specialised. I just didn't realise it because I hadn't attached myself to a trademarked tool.

Wednesday, 16 May 2012

Think Pink



I have been working at Microsoft for a month now. People talk about starting here and taking it all in as "drinking from the fire hose" and at first I laughed but now I know it is the case. There is nothing as overwhelming as starting a job at Microsoft. It is also overwhelmingly enjoyable.

One thing that made me take the job was this amazing female manager who interviewed me. She was inspiring and had presence, from the second she entered the room.
I never believe that an interview is about them. Do not think that the people interviewing you are there to choose you. You have to choose them back.

Being interviewed by a woman, in a company who has a woman running their Australian arm and had that before, counted a lot towards my positive view of this  company. My friend who recommended me is a female evangelist. My male friends who work there have supported me through my career.

It is true that I didn't post on International Women's Day so I'll make today my IWD. As I sit here blogging today, knowing that so  many women helped me get to where I am.

Thank you, girls. Thank you.

Wednesday, 30 March 2011

Design for the Lowest Common Denominator


Everything is a balancing act between perfection and pragmatism.

What I do not believe is that you are supposed to drop standards to the point where you correct the mistakes of users. Yes, suggest improvements or give warnings or give options to clean up but do not just assume and make the change.

I'm using an ORM called llblgen. It is the standard where I work. I'm not a massive fan but I'm currently more for consistency than purity so it will do for now.

One thing that llblgen insists on doing is assuming a table name ending in with an 's' is a plural. It then removes the trailing 's' when generating the equivalent data model class.

For example, my 'SomethingStatus' table will be represented by an equivalent model named 'SomethingStatu'. The developer has responded to my tweets of disdain and said that from his point of view, he can't assume that people will model their databases in a way that obeys conventions for not using plurals.

This bothers me because it makes me question the point at which we will go to cater for developers or users that may be doing something "wrong". Microsoft development environments and technology stack restrictions often have this in mind. Stop bad developers being sloppy by locking down the environment and denying options because bad choices cause bad code.

I disagree. I think bad developers write bad code. You shouldn't have to correct them. You don't need to baby your users. If you are going to cater for anyone then cater for the average user.

If the assumption is that the average user has a low statu then I'm simply saddened.

Thursday, 4 November 2010

Take 2 Cygwin a day and call me in the morning


For developers who have never ventured out of their Windows environments and in to the world of UNIX based operating systems (like Linux and Mac OSX), the command line is an often under-utilised tool.

This is quite understandable in the case of the Windows command line that lets you relive your early DOS days. With all the lack of power of DOS, the command line was long ago abandoned for many mouse clicks and maybe once in a while a RUN command that is copied straight off the Internet and into the START->RUN control.

For the uninitiated, who have never dropped back to a command line or shell or who never even started there like us oldies, the commands look like line noise. Amusingly enough, those who were not Bourne from a shell probably do not even know what line noise is. Ahh, the days of whistling along to our high speed 9600 baud modems are long and lost along with bulletin boards and green on black screens. Those days are lost because the world has progressed to the point that you need not listen to the squealing down the phone line or force your eyes to work in a Matrix like world.

The good things haven't gone. The powerful languages that let their engineers create low level code like C and C++ are still around. Even if more and more amazing higher level languages appear, there will always be a place for the land of hardcore programming. They are needed. They are powerful tools. Weapons even. When wielded by good software engineers, great things happen. Of course, you do need the high level languages because who really wants to spend all their time perfecting memory management and automation of the reinvention of the wheel.

The other thing that will never leave us is UNIX land. The beauty and capacity of the UNIX tools will never become obsolete. They have been ported to every new environment to follow UNIX and implemented as APIs wherever possible. To live without these tools is for some developers, like cutting off a limb at the neck. It's a horrid disabled world.

Windows is one of these worlds that lacks the default access to UNIX tools. The DOS command line is not a poor substitute because it's not even in the same league. It's like comparing Java as a programming language to pig latin. It's simply a silly and meaningless comparison.

For those of us (usually .NET devs) who must play in an exclusively Windows world, we have a few ways around it. We either have a non-Windows machine at hand or we use Cygwin. Cygwin is a library that provides POSIX functionality in the Windows environment. You install it on any Windows machine (an install that takes at least four coffees) and it gives a UNIX like environment for Windows. The Cygwin commands look like UNIX commands but are actually wrapping Windows system calls that do a similar thing or have been extended to do so.

There are of course limitations to the scope of Cygwin that are based in the fundamental differences between the Windows and UNIX based operating systems. Pretty much, the foundations aren't the same so only so much can be faked. Often that much is enough to provide a developer with these much needed tools.

Now Cygwin on it's own is a nice little tool and a lovely idea but the serenity comes from all the tools that are built on this basic foundation. There are shells that let you believe you could be using bash; text tools like grep; and much more.

The zealots will kick me and say this is a poor replacement in a bad environment. I tend to agree but it's the best thing out there for us .NET devs. How any developer can live without it, is beyond my understanding.

You'll find Cygwin here.

Have fun.

Tuesday, 27 April 2010

C# 4 Last Minute Additions

Update: I'm being very anti-Microsoft at the moment because they make it too expensive for me to get an MSDN license to develop at home. In the past, I've been a big fan but I'm going to defect if they continue down the money or nothing path. Until they stop excluding me from their expensive community, I shall sulk and ridicule them. Please read and have a giggle. It's meant in jest.



I love reading Eric Lippert's blog because he is great at explaining complex ideas in an easy way. That is something severely lacking online. He also dishes the news on my latest reading obsession... C# 4.

They have managed to slip in a few extra features last minute in to the next version of the language. He describes them in more details here. The one's I thought were cute and make the language a little more interesting are the goes to --> and is approached by <-- operators used in loop conditions.

The examples given on his blog show them being used like this:

int x = 10;
// this is read "while x goes to zero"
while (x --> 0)
{
Console.WriteLine("x = {0}", x);
}

int x = 10;
// this is read "while zero is approached by x"
while (0 <-- x) { Console.WriteLine("x = {0}", x); }


Interestingly, when I mentioned the last minute additions to a colleague she commented that she hopes they implemented them properly. In C# 3 they snuck in partial methods and auto-properties which I wouldn't want to live without (although I am in Java-land at the moment).

I'm excited about C# 4. Now I just have to get Microsoft to give me a reasonably priced MSDN license for an individual who isn't a student, a company or a start-up. Market gap.

Monday, 22 February 2010

Darwin Microsoft User Group


From Microsoft Marty...


We are pleased to kick off the Darwin user group this Wednesday. Fujitsu will be hosting the event at their premises and will be sponsoring dinner (pizza) for the night. So thanks in advance to Martin Geddes and his team.

We have William Cornwill from Microsoft presenting on SharePoint 2010!!! I encourage you to forward this invite on to developers/designers within your organisation.

William Cornwill is a SharePoint Technology Solutions Professional with Microsoft Australia. William is an experienced speaker with over 15 years industry experience with backgrounds in Business Intelligence and Web Content Management. William has worked with Microsoft Australia for 2½ year prior to which he worked for a Melbourne based systems integrator, Strategic Data Management (SDM). William has an MCTS in Microsoft Office SharePoint Server Configuration and has recently attended the SharePoint 2010 Ignite Training for Developer in Singapore.


Thursday, 3 January 2008

Farewell Blogger, Hello Live Writer

Sticking with the default editor for my blogspot blogs seemed fine as long as I learnt to deal with the mild idiocy of blogger. It was ok until I helped my Mum create a blog and set her up to add her own pics and share her news with family, friends and the entire Interblag. Using her brand spanking new laptop, we created a new post, added all the images inline for the first post and then started to add text. IE refused to allow images to be copied pasted or dragged around in any predictable manner. Damn IE, I thought. Let's use Firefox, it's a little more reliable... fool! Firefox allowed copying and pasting if we used ctrl-c, ctrl-v but not using the contextual menu. There would be no dragging anything in Firefox. Flock and Safari were worse.

It worked on my laptop, which was sitting right next to hers. So that meant it wasn't a Darwin thing :) The only difference was that hers is running Vista. When it was purchased, they didn't have an option to buy XP with it so trusting the advice she ended up with a Vista infected laptop. After problems connecting that laptop to wireless routers and every piece of software she owned not running on it, I can confirm personally that Vista sucks eggs!

Now it looks like she can't blog from blogger using any of her browsers on her laptop so I'm trying alternatives. My aim is to try them before recommending them to her. What I really want is MarsEdit but without going out and buying a Mac, I'll just have to find alternatives.

So here is my first post with Live Writer.

Acknowledge Me

Apple started a user experience trend many iOSes ago when it accepted Settings changes and did not ask for confirmation. Once the chang...