Tags » Pattern Matching

Pattern Matching and failing at adulting.

Have you ever felt like you were  failing at being an adult? I opened my e-mail today for the first time in about two weeks to find over 5000 waiting for me. 863 more words

Sewing

The clock is ticking on the Ty Hafan challenge

It’s the final push on the Cardiff Fashion Week Ty Hafan now and the deadline is in 9 days! Everything’s taken me a lot longer than I expected so I am very behind on my plans but at least I started with the biggest, most difficult outfit first. 146 more words

Sewing

PowerShell: pattern matching

Here, I am defining a hex character, as 1 of A-F (case insensitive) or 1 of 0-9. The format is no different from any other common Regex/pattern matching implementation: 276 more words

How Functional Programming will (Finally) do Away With the GoF Patterns

A recent article about various ways to implement structural pattern matching in Java has triggered my interest:
http://blog.higher-order.com/blog/2009/08/21/structural-pattern-matching-in-java

The article mentions a Scala example where a tree data structure can be traversed very easily and neatly using Scala’s… 586 more words

Java

Summer Flowers - Dress for a wedding

A dear friend of mine was getting married so I decided to make myself a dress – I have been gradually working through my fabric stash -this beautiful fabric was bought a couple of years ago from a curtain shop that was closing down. 541 more words

Sewing

Scala - Pattern matching always match first object

In a scala program, I had some code like

def remove(something: Any): Unit = {
  something match {
    case signature => ...
    case tls => ... 85 more words
Windows

Bunny pyjamas - Simplicity 9329

I always thought life was too short to make a quilt or sew pyjamas, and here I am, guilty of doing both. This grey bunny print flannelette just called to me. 211 more words

Clothing