The Blog

Set background color for all buttons in WPF

Hehe, simple enough thing, but took long enough. You need to use resources to do it.

In there you can define styles:

It is simple enough to read: apply it to buttons. Property: Background set the value to whatever color you like.

Continue Reading

Integral out of range

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it.

Continue Reading

New Date in Java

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it.

Continue Reading

Scenarios - how to claim your architecture is good?

It is fairly meaningless to say 'System X is modifiable'. Firstly, with respect to what is it modifiable? Some of the changes will be handled more easily than others. If the system was designed with client-server pattern, then changing it to peer-to-peer is easy? It might be, but I find it rather unlikely. Even if

Continue Reading

Is usability an architectural concern?

It really does depend on how we define usability. The configuration of the user interface is the details. As an architect, one would not worry about usability. Not in the sense, of where to place icons, what colours to use and what are which things to make bold. HOWEVER, what the user would do with

Continue Reading

Business Drivers in Systems Architectures

Architectures are the building blocks of software. Good architecture would likely result in reasonably pain free development as well as . However, perfect architecture is almost never possible. In this series of articles, I will describe the basic process for designing software architectures. There is little difference between software and system architectures. In this first

Continue Reading

Lists of Lists in C# - if one is updated, all are updated.

I was doing an assessment for university regarding password cracking. They say that experience is something that cannot be learnt. Never that notion has been more true than today when I was attempting to create a list of lists: List<List<string>>. I had "virtually" unbounded memory, but I had to make sure that I could maximise

Continue Reading

Associating enum values with ints

Simple things should be simple, complex things should be possible. Alan Kay I've been working quite a lot in Java. As part of the university course, we work with BT's people and 'bring meaningful innovation'. Because of university policies, we have to work in Java. Every now and again (more often than not actually), I

Continue Reading

Multiline strings in Java? Nobody's got time for that

Recently, I've been playing around with SQL strings (yes, I know outdated a little). They can very lengthy at times. So how can Java help us? It can't:

Meanwhile in C#:

Continue Reading

try... catch.. finally, which value gets returned?

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it.

Continue Reading