Skip to main content

Public Comment on Proposed EPA Standards for New Fossil-Fuel Power Plants

· 4 min read

The EPA has a proposed new standard for fossil fuel-burning power plants, which will be constructed in the future, that will help ensure a lower carbon future and hopefully spur innovation in the electric industry. They are accepting public comments through June 25th.  There are a number of organizations that will help you provide comments directly to the EPA, such as the National Council of Churches (dead link removed; SF 2025) or the Union of Concerned Scientists (dead link removed; SF 2025). My letter, with extra citations, is below.

Advancement of Women: a Baha'i Perspective by Janet A. Khan and Peter J. Khan

· 3 min read

book cover

In this scholarly work, Janet and Peter Khan present the theological grounding, social context, historical action, and modern implementation of the concept of "equality between the sexes" as found in the Bahá'í Faith. Well researched and clearly written, the book has much to offer to those who, from any background, wish to better understand the underpinnings and the implications of this critical spiritual principle.

Degradation and Upliftment in Literature

· 4 min read

latter of divine ascent

What books leave you feeling misanthropic? And what books lift your spirit, restoring a sense of faith in humanity? In this household we are currently reading Crime and Punishment and Mockingjay, which, in some unremembered way, triggered this discussion. Reviewing the many books we have read in common, we came up with a short list of those at the pinnacle for us. We ruled out anything too obvious, e.g. no dystopian novels, and no… well, I guess we don't even know about novels that are deliberately or obviously uplifting. I presume they exist, but I couldn't tell you the name of one.

Review: Growing Object-Oriented Software, Guided By Tests

· 3 min read

Growing Object-Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce

I did not realize how much I still have to learn about writing good object-oriented (OO) code, and about hewing to a tight test driven development (TDD) methodology, before I read Growing Object-Oriented Software, Guided By Tests. My education in OO and unit testing has been largely theoretical, with no time spent directly learning from experienced OO programmers; my best mentor was a COBOL coder. Books like Design Patterns: Elements of Reusable Object-Oriented Software ("Gang of Four"), Patterns of Enterprise Application Architecture, Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, Xunit Test Patterns: Refactoring Test Code, and others are wonderful but have few detailed real-world business-case examples.

Breaking Down a Unit Test from "Reggie" That Uses MoQ

· 5 min read

Test driven development is hard. Perhaps it would not be if we were taught to think about OO development from a TDD perspective in the first place; but those muscles are poorly developed, and the exercise leaves you sore and panting a bit. As with physical exercise, there is a reward in the pain. Perhaps others do not see it, but I can already see the benefits accruing in Reggie as I rebuild it with SOLID principles in mind, driven by tests. To help me consolidate where I’m going, and help others whose TDD muscles are likewise under-developed, let us walk through a test, shall we?

First, some context. I’m working on adding persistence to the application: ability to save and re-open session data. I have a ViewModel, called ReggieBasicViewModel, which initially contains the data to persist and which binds the View to my business logic. The ViewModel is being instantiated with a factory object, which allows the ViewModel to build concrete instances of various dependencies. This illustrates the Abstract Factory pattern, and the Open-Closed Principle, but arguably violates Single Responsibility Principle [same link as OCP] by grouping un-related functionality into the factory. The proper factory object is configured in the application’s bootstrapper class, or or it is setup in a unit test using an alternate factory implementation.

Class model diagram

Psalm 96 for Earth Day

· One min read

Let the heavens rejoice, let the earth be glad;
    let the sea resound, and all that is in it.
Let the fields be jubilant, and everything in them;
    let all the trees of the forest sing for joy.

Psalm 96:11-12 (NIV)

Let us do all humanly possible to preserve and restore heavens, earth, sea, fields, and trees — before we find ourselves alone in our worship.

Moles: No Longer Fit for Unit Tests

· 3 min read

No moles

Moles is a powerful and useful framework for unit testing. Or was. But even then, it was overused (at least by me). But no more!

The first clue that I might need to walk away from Moles was the recent difficulty another developer was having in trying to get a unit test project up-and-running on his computer. I had installed what was current in early 2011, and he had installed the current version from last 2011. Turns out there was a significant change – the config file no longer worked. We had to update the assemblies correctly on my machine, rebuild many times, and fool around with manually removing some assemblies. It got confusing and messy. I suppose that's why MS still labeled this version as < 1.0.

Breaking My Moles Habit, With MoQ

· 3 min read

jester

For several years now, I have been relying on Microsoft’s Moles for isolating one method from another in my unit tests. Recently I’ve begun to understand that this was not the best approach. I’ll dig into that more in a future post. Having come to this conclusion, I need to start ripping out Moles. Based on the user feedback across the web, and the powerful Lambda expression syntax I’ve grown used to, I’ve chosen MoQ as my replacement. Now for an exercise…

Love Thy Neighbor: Ethic for Sustainability

· One min read

In preparation for Earth Day next weekend, I was reading a bit of Love God, Heal Earth this morning. I was reminded of the passage about "love thy neighbor as thyself", and its implications for the ethics of sustainability. Who is your neighbor? Does it include someone a state away? In another country? Continent? What about the people of the future? This famous passage can be interpreted, in modern context, as a call for eco-justice, which includes leaving a sustainable way of life for future generations. Matthew, chapter 22, verses 36 - 39 (NIV)

"Teacher, which is the greatest commandment in the Law?"

Jesus replied: "‘Love the Lord your God with all your heart and with all your soul and with all your mind.’ This is the first and greatest commandment. And the second is like it: ‘Love your neighbor as yourself.’"

safnet logo