SSW Update - Do you format and comment your regular expressions?
Microsoft Gold Partner Logo
SSW Tech Breakfast

[the cutting edge ]

G'Day Developers!

Regular expressions are a very powerful tool for pattern matching, but a complicated regex can be very difficult for a human to read and to comprehend. That is why, like any good code, a good regular expression must be well formatted and documented.

Here are some guidelines when formatting and documenting your regex:

  1. Keep each line under 80 characters, horizontal scrolling reduces readability.
  2. Break long patterns into multiple lines, usually after a space or a line break.
  3. Indent bracers to help think in the right scope.
  4. Format complicated OR patterns into multiple blocks like a case statement.
  5. Comment your regex on what it does, don't just translate it into English.
# Match <BODY
<BODY
# Match any non > char for zero to infinite number of times
[^>]*
# MATCH >
>
Bad example: Comment that translates the regex into English.
# Match the BODY tag
<BODY
# Match any character in the body tag
[^>]*
# Match the end BODY tag
>
Good example: Comment that explains the purpose of the pattern.
(?six-mn:(Label|TextBox)\s+(?<Name>\w+).*(?<Result>\k<Name>\.TextAlign\s*=\s* ((System\.)?Drawing\.)?ContentAlignment\.(?! TopLeft|MiddleLeft|TopCenter|MiddleCenter)\w*)(?!(?<=\k<Name>\.Image.*)|(?
=.*\k<Name>\.Image)))
Bad Example: Pray you never have to modify this regex.
(?six-mn:
    # Match for Label or TextBox control
    # Store name into <name> group
    (Label|TextBox)\s+(?<Name>\w+).*

    # Match any non-standard TextAlign
    # Store any match in Result group for error reporting in CA
    (?<Result>
        # Match for control's TextAlign Property
        \k<Name>\.TextAlign\s*=\s*

        # Match for possible namespace
        ((System\.)?Drawing\.)?ContentAlignment\.

        # Match any ContentAlignment that is not in the group
        (?!TopLeft|MiddleLeft|TopCenter|MiddleCenter)\w*
    )

    # Skip any Control that has image on it
    (?!
        (?<=
            \k<Name>\.Image
            .*
        )
    |
        (?=
            .*
            \k<Name>\.Image
        )
    )
)
Good Example: Now it make sense!

See more of the SSW Rules pages.

Adam Cogan

Got a comment for Adam? Email Adam

Sydney .NET User Group -
The best place to learn .NET for free in Sydney

.NET User Group

5 days to go!

Sydney .NET User Group
Wednesday 20th January 2010
5:45pm - 9:00pm
Microsoft, Sydney
1 Epping Road, North Ryde

SharePoint 2010 - Theory of Evolution by John Liu

In 2009 John Liu fought in the muddy waters of SharePoint 2007 to bring us Tips from the Trenches.
This time, he’s back and this lab monkey bears great news: SharePoint 2010 is totally awesome and the same tips are now super-charged!

  1. Design Evolved
  2. Content Query Web Part (CQWP) Evolved: XSLT List View (XLV) Web Part
  3. Performance Evolved
  4. Package Deployment Evolved
  5. CAML is dead – long live LINQ to SharePoint!
  6. Debugging ... streamlined
  7. SharePoint 2010 wish list – lots of :-)

To see more details and RSVP, please visit our facebook .NET group or our LinkedIn .NET group.


facebook LinkedIn

Canberra .NET User Group -
The best place to learn .NET for free in Canberra

Canberra User Group

3 days to go!

Canberra .NET Developers User Group
Monday 18th January 2010

Lunch: 12:30pm - 1:30pm
King O'Malley's Irish Pub
131 City Walk
Canberra City

Dinner: 4:30pm - 6:00pm
Microsoft Canberra Branch
Walter Turnbull Building
Level 2, 44 Sydney Ave
Barton ACT

SharePoint 2010 - Theory of Evolution by John Liu

In 2009 John Liu fought in the muddy waters of SharePoint 2007 to bring us Tips from the Trenches.
This time, he’s back and this lab monkey bears great news: SharePoint 2010 is totally awesome and the same tips are now super-charged!

  1. Design Evolved
  2. Content Query Web Part (CQWP) Evolved: XSLT List View (XLV) Web Part
  3. Performance Evolved
  4. Package Deployment Evolved
  5. CAML is dead – long live LINQ to SharePoint!
  6. Debugging ... streamlined
  7. SharePoint 2010 wish list – lots of :-)

To see more details and RSVP, please visit our facebook .NET group or our LinkedIn .NET group.

facebook LinkedIn

SSW Brain Quest -
Team Foundation Server and SharePoint 2010

SharePoint

13 days to go!

SSW Brain Quest
Full Day Event: 9:00am - 6:00pm
All Australian Major Cities
28th January - Brisbane
9th February - Canberra
3rd March - Perth
8th March - Adelaide
10th March - Melbourne
31st March - Sydney

Team Foundation Server 2010 for Successful Project Management by Adam Cogan

Visual Studio Ultimate (formerly Visual Studio Team System (VSTS)) and Team Foundation Server (TFS) are the cornerstones of development on the Microsoft .NET platform. These are the best tools for a project manager to have successful projects and for the developers to have a focused and smooth software development process.

Come and see Adam Cogan, Microsoft Regional Director, VSTS Champ and Chief Architect from SSW show you:

  • How to successfully gather requirements with User stories
  • The right want to use work items
  • The way to complete a work items and send a 'done'
  • Use templates for your standard work items
  • The extra work items that developers always forget
  • What is good and bad about Excel and Project integration
  • What you can use from the built in reporting as well as the Project portals available on from the SharePoint dashboard
  • The important reports to give your Project Manager

Walk away knowing how to see the project health and progress. Visual Studio Ultimate is designed to help address many of these traditional problems faced by project managers. It does so by providing a set of integrated tools to help teams improve their software development activities and to help project managers better support the software development processes.

During this session we will cover the lifecycle of creating work items and tracking of releases using Visual Studio Ultimate and Team Foundation Server.

Visual Studio 2010 Team System - An Overview

Microsoft Visual Studio 2010 Team System is an integrated software development platform to build the mission-critical applications that businesses depend on. It extends Visual Studio's integrated and productive experience from the developer to the entire development team by delivering powerful new role-based tools for software architects, developers, testers and project managers. In this session you will see an overview of these tools and how they can improve your software development cycle.

Visual Studio 2010 Testing with Team Foundation Server (TFS) 2010 - the life of a bug

Visual Studio 2010 makes up a large part of a .Net developers life. This session will delve into the 'life of a bug' by taking a walk in the shoes of an everyday bug from discovery to release (and the steps that make up the in between). Come along and check out the new features that will make you happier by making your code better, your job easier, and your team more productive by reducing the obstacles you face in your everyday coding life. Learn:

  • What the new features for testers and developers
  • How you now care - even if the tester can't reproduce the bug
  • How to stop struggling to find the source of the bug in your code
  • How can you streamline the testing process and make sure you don't repeat the same bugs
  • How to automate more and reproduce bugs easier and discover problems sooner.
What's new in SharePoint 2010

In this session Adam Cogan will provide information about what is new in SharePoint 2010 and his personal favorites. The SharePoint Team has invested in many including:

  • UX support for Silverlight and Ajax
  • their Web Content Management System
  • Digital Asset Management System (for videos)
  • Visual Studio 2010 tools for SharePoint 2010
  • Developer Platform
  • Office 2010 integration
  • RESTful Web API
  • Tagging and Rating

Lets see what's good and what's not.

Something About Mary (SharePoint 2010 and Office 2010)

Come see Adam Cogan explain what works well with SharePoint and Office for Mary and the other knowledge workers.

First you will get an overview of what is great about having SharePoint in your business. Then see real world examples of:

  • Using SharePoint 2010 and Office 2010 together (Comparing with what with had with 2007)
  • Where it fits with other important Microsoft products like CRM 4 and TFS
  • Examples of how Word and Excel can be integrated into business processes (separate from SharePoint), and then followed by
  • Examples of how Word, Excel, PowerPoint can be combined with SharePoint to improve visibility/searchability/versioning across the company
  • Overview of how data can be synchronised between the two (eg using Access and Excel)
  • Overview of what 'workflow' (really!) means
  • How Office can be incorporated into company workflows with SharePoint
  • High level examples of using/integrating Office with other products (eg VSTS integration with Outlook)
  • Where VBA and VSTO fit in terms of how solutions can be developed
  • Examples of other interesting Office/SharePoint integrations (eg the Atlassian SharePoint Connector and Office Connector)

This is a good chance for you to consider new ways of using Office in your company, along with pitfalls to avoid. Adam gets excited about this session because too often companies limit Office to just an email application, word processor and spreadsheet - completely missing the positive impact it can have on the entire business process.

Price (ex GST)
TFS 2010
$110
SHAREPOINT
$110
FULL DAY
$190
HOSTED
Microsoft
Brisbane
28 JAN 2010
Microsoft
Brisbane
Canberra
09 FEB 2010
Microsoft
Canberra
Perth
03 MAR 2010
Microsoft
Perth

Register for other Major Cities now!

SharePoint 101 Workshop -
What every business person should know about SharePoint 2007

SharePoint

40 days to go!

SharePoint 101 Workshop
Wednesday 24th February 2010
8:00am - 11:00am
SSW Office, Sydney
Suite 10, 81-91 Military Road, Neutral Bay
Cost: No Charge

Workshop Objective

This workshop will provide the attendees with:

  • An understanding of how key features of SharePoint can enhance business processes
  • An understanding of the costs, timelines, staff involvement and commitment a business will incur when implementing SharePoint

Workshop Outline

  • Why should your business use SharePoint 2007?
  • Differences between Windows SharePoint Services (WSS) and Microsoft Office SharePoint Services (MOSS)
  • Explanation and demonstration of the business challenges the SharePoint feature set solve
  • SharePoint in regards to implementation, costs and timelines
  • SharePoint 2007 and the User Experience (custom design)
  • SharePoint Development - What if I need more than SharePoint's out of the box functionality?
Find out more and Register

Featured Product: SSW SQL Deploy

SSW SQL DeployThe Easiest Way to Compare SQL Server Databases and Deploy Schema Changes

SQL Deploy is the simplest way for .NET developers to synchronize backend SQL structural changes, saving manual SQL script deployment. Use SQL Deploy in your application to automate schema changes. Full support for SQL Server 2008.

More on SSW's SQL Deploy

Advertise with SSW

If you would like to advertise your product or service with SSW or would like to find out more about various advertising opportunities, please email your enquiry to sophiebelle or call: +61 2 9953 3000.

SSW Update

January 2010

Tech Breakfast

Join us for Tech Breakfast 71 days to go

SYDNEY: Something About Mary (SharePoint and Office 2010)

Friday, 26th March 2010
8:00am-11:00am

Come and see Adam Cogan explain what works well with SharePoint and Office for Mary and the other knowledge workers.

First you will get an overview of what is great about having SharePoint in your business.

Then see real world examples of:

  • Using SharePoint 2010 and Office 2010 together
  • Where it fits with other important Microsoft products like CRM 4 and TFS
  • Examples of how Word and Excel can be integrated into business processes (separate from SharePoint), and then followed by
  • Examples of how Word, Excel, PowerPoint can be combined with SharePoint to improve visibility/ searchability/ versioning across the company
  • Overview of how data can be synchronized between SharePoint and external data sources (eg using Access and Excel)
  • Overview of what 'workflow' really means!
  • How Office can be incorporated into company workflows with SharePoint
  • Extending SharePoint with Office SharePoint Designer 2010 (free!)
  • Where VBA and VSTO fit in terms of how solutions can be developed
  • Examples of other interesting Office/SharePoint integrations (eg the the Atlassian SharePoint Connector and Atlassian Office Connector)

This is a good chance for you to consider new ways of using Office in your company, along with pitfalls to avoid. Adam gets excited about this session because too often companies limit Office to just an email application, word processor and spreadsheet - completely missing the positive impact it can have on the entire business process.

Register Now

Employment

Due to the tremendous growth that our business has experienced over the last few months, we are seeking enthusiastic people to join the SSW team.

Our Company is based in Neutral Bay which is one of the most elegant and scenic areas of Sydney. SSW is an Australian owned progressive consulting firm specialising in building, implementing and maintaining Microsoft .NET software applications.

We are currently strongly looking for a SharePoint Developer.

We are also currently looking for:

  • ASP.NET, VB.NET, C#, OLAP, SharePoint Software Developer
  • Technical BDM in Melbourne, Brisbane, or Canberra
  • IT Senior Marketing Consultant (part-time)
  • Project Manager

Read more and Apply NOW...

Proudly developed by SSW Sydney Web Design