Home » Posts tagged "testing"

Property Based Testing Revealed – A Better Way to Test

Over the last couple of weeks, I’ve been experimenting with Property Based Testing.  While I’m probably doing it “wrong” by many definitions, I’m finding it useful enough that I’m adding it to my testing toolbox.

Property Based Testing Revealed - A Better Way to Test
Photo credit: abraham.williams on VisualHunt.com / CC BY-SA

Continue reading “Property Based Testing Revealed – A Better Way to Test”

Accessing Private Fields in TypeScript

Have you ever needed to access a private field in TypeScript?  The most common place you may find yourself needing to do this is while writing a unit test.  But, I also found myself needing to do this while using a JavaScript library where the field wasn’t declared in the type file for the library I was using.

Now, suppose you could access those private fields effortlessly and easily.  How valuable would that be to you?

Accessing Private Fields in TypeScript
Photo via VisualHunt

Continue reading “Accessing Private Fields in TypeScript”

Are You Thinking Clearly About Your Architectural Choices?

Recently someone asked me where the business rules should go in an MVC framework.  The Model or the Controller?

This reminded me of a post I wrote when ASP.NET MVC was first released.

But today I want to cover a broader topic common to everyone, not just programmers.  Not being able to think outside the box.

image

Continue reading “Are You Thinking Clearly About Your Architectural Choices?”

The Fallacy of Motion

image

I had this thought this past week that we tend to believe that if we are in motion, we are accomplishing something.  That being busy somehow equals being productive.  And then I started thinking about how this is almost universal.  It doesn’t just impact how we program, which I’ll get to eventually, but it impacts all of our life. Continue reading “The Fallacy of Motion”