aabs

Stories submitted by aabs

Automata-Based Programming with Petri Nets - Part 1(aabs.wordpress.com)

submitted by aabsaabs(850) 2 years, 2 months ago

Petri Nets are extremely powerful and expressive, but they are not as widely used in the software development community as deterministic state machines. That’s a pity – they allow us to solve problems beyond the reach of conventional state machines. This is the first in a mini-series on software development with Petri Nets. All of the code for a full feature-complete Petri Net library is available online at on GitHub. You’re welcome to take a copy, play with it and use it in your own projects. Code for this and subsequent articles can be found at http://github.com/aabs/PetriNets. read more...

add a comment |category: |Views: 138

tags: another

Code Generation with C# 3.0 and Visual Studio 2008(aabs.wordpress.com)

submitted by aabsaabs(850) 3 years, 11 months ago

This article covers the new features in C# 3.0 and Visual Studio 2008 that make complex code generation tasks easy. It explores the techniques by implementing a state machine. read more...

add a comment |category: |Views: 20

tags: another

Functional Programming - lessons from high-school arithmetic(aabs.wordpress.com)

submitted by aabsaabs(850) 3 years, 11 months ago

This third post in a series on functional programming (and LINQ) explores how I came to the conclusion that I needed some functional programming in my repertoire. This post is more about the journey than the destination. It starts with 1 + 1 = 2 and ends up with a kind of functional manifesto. read more...

add a comment |category: |Views: 17

tags: another

Functional Programming in C# - Higher-Order Functions(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 1 month ago

This is the second in a series on the basics of functional programming using C#. I explore Higher-Order Functions this time. Higher-Order Functions are functions that themselves take or return functions. Meta-functions, if you like. This is a more code intensive post, that builds on the ideas that I explored last time. read more...

add a comment |category: |Views: 100

tags: another

Functional Programming - Is it worth your time?(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 1 month ago

Functional Programming is probably simpler than you think. It’s based on the idea that there is often very little distinction between programs an data. This post explores the simple techniques that gives functional programming so much power. Examples are in C#. read more...

add a comment |category: |Views: 9

tags: another

C# by Contract - Using Expression Trees(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 4 months ago

Using Lambda Expressions to get more bang for my buck! This Article is part of a series exploring the capabilities of .NET 3.5 and how new advances allow the development of a very powerful Design by Contract (or Contract First or Contract Driven Development) system in very few lines. DBC can help you write better code and although the examples in this post are in C#, they will work equally well in VB.NET. read more...

add a comment |category: |Views: 42

tags: another

Complex Assertions in C# 3.0(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 4 months ago

This article shows how a simple, but powerful, Design By Contract (DBC) API can be produced for C# 3.0. It uses snapshots to provide before/after comparisons. read more...

add a comment |category: |Views: 6

tags: another

The Ambient Context Design Pattern in .NET(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 4 months ago

Ambient Context is a common pattern used throughout the .NET framework. They’re a powerful mechanism to keep useful data around, to define scopes and to provide cross-cutting capabilities. They provide functionality and a non-intrusive management mechanism without having to clutter the components that need them with additional parameters or static variables. I haven’t seen this pattern documented in any detail elsewhere, I thought I might make a first attempt to describe it in pattern language terms. read more...

1 comment |category: |Views: 196

tags: another

A Generic Class Factory For C# 3.0(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 6 months ago

This article shows a simple class factory derived using a generic class and lambda functions that can be used to make legacy classes more testable. It builds on a time honoured design pattern originally taken from the Java world and brought up to date with the latest features of C# 3.0 and .NET 3.5. It takes up 11 lines of code, but can be used in a wealth of ways. read more...

add a comment |category: |Views: 646

tags: another

Announcing LinqToRdf 0.3 and LinqToRdf Designer 0.3(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 7 months ago

This version includes numerous bug fixes and enhancements plus I have also released a new graphical designer to auto-generate C# entity models as well as N3 ontology specifications from UML-like designs. This new download is an extension to Visual Studio 2008 beta 2, and should make working with LinqToRdf easier for those who are not that familiar with the W3 Semantic Web specifications. read more...

add a comment |category: |Views: 5

tags: another

Using Mock Objects When Testing LINQ Code(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 11 months ago

This article shows you how to create mock LINQ queries to reduce the cost of unit testing business logic. read more...

add a comment |category: |Views: 12

tags: another

GroupJoins in LINQ(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 11 months ago

This article explores some of the peculiarities of implementing a join function on a LINQ query provider. read more...

add a comment |category: |Views: 3

tags: another

Designing a LINQ Query Provider(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 11 months ago

This guide steps through the process of creating a query provider for LINQ. Examples are taken from LINQ to RDF. Moderate amounts of code explain the principles. read more...

add a comment |category: |Views: 3

tags: another

A New LINQ Query Provider - LINQ to RDF(aabs.wordpress.com)

submitted by aabsaabs(850) 5 years ago

This article describes LINQ to RDF, a new LINQ Query Provider. It allows you to query an RDF triple store using LINQ syntax. The provider is not released yet, but this article shows how the query provider was created and how it was tied in to a persistence model using RDF. read more...

add a comment |category: |Views: 18

tags: another

Using RDF and C# to create an MP3 Manager - Part 3(aabs.wordpress.com)

submitted by aabsaabs(850) 5 years ago

The next installment of this series explains how support for LINQ can be added to our emerging object serialisation framework. It also shows some usage scenarios of LINQ to RDF. read more...

add a comment |category: |Views: 9

tags: another

Using RDF and C# to create an MP3 Manager - Part 2(aabs.wordpress.com)

submitted by aabsaabs(850) 5 years ago

This is the next installment of a series on semantic web technologies in .NET. It covers the deserialising of C# objects out of an RDF triple store. It also shows the use of graph matching to query for objects in the triple store. read more...

add a comment |category: |Views: 50

tags: another