Showing posts from November, 2018

Data Organization in the Minds of AEM Authors

I have recently published a new post to the ICF Olson Engineering Blog entitled Data Organization in the Minds of AEM Authors.

How Increasing Calories Affects Intermittent Fasting

If I eat more now I will be less hungry later? Right?

No of course sugars and carbohydrates in general increases your appetite. However if I eat more fat and protein now then I will be less hungry later. Right? It would seem that in my case this is only true on a daily basis. However over the course of weeks and months it no longer holds true.

Over the course of seven months I did a combination of 16:8 intermittent fasting and one meal a day. During that time my diet was either a ketogenic diet of moderate protein and less than 30 grams of carbohydrates or a more basic low carb diet of less than 60 grams of carbohydrates. For roughly two months I ate 1800 calories. Over the course of the following five months I increased my daily calories to 2000, then to 2500, and finally to 2700. I can say that without doubt intermittent fasting and one meal a day was much easier while eating lower calories.

For example I could eat an 1800 calorie meal and then very easily and routinely go 23 hours o…

Let Them Keep It: A D&D 5e Session Report

Deeper the descended into Khundrukar. Passing beneath the smooth cut stone and into rough hewn caves. Water could be heard echoing through the passaged but was at first unseen. Finally the source subterranean water course passed across the cave passage. The water was like a jet out of one wall and then descended sharply into the dark depths that the torchlight could hardly penetrate.

Asuryan was overcome with the desire to explore. Rather than staying to the ancient dwarven path that led onward he climbed into the water way. "Only to see beyond the bend" he told the others as he disappeared into the watery darkness. A rope was tied to his waste and Slighter held it tightly as he pinned himself against the rocky wall.

At first only the echoing splashes of his steps could be heard. Then all sound beside the cracking torch and the rushing water ended. Now a scream was let loose. Some great commotion was occurring down the tunnel. A great splash echoed up the tunnel. The rope sh…

When Not to Add Unit Tests

Unit testing code can help developers think in terms of abstraction and separation of concerns. It can cause a developer to think twice before adding complexities to already complex methods and classes. It can give confidence to future developers that the interface of the units of code that they just changed has not changed.

Refactoring poorly written code that has little abstraction and does not separate concerns can greatly reduce the risk of defects and speed up future development. Adding unit tests during this small scale redesign process can have all the benefits of unit testing during the initial implementation.

Adding unit tests to poorly written code without any refactoring achieves none of this. Instead it acts as a barrier to refactoring and improving code. If a method or class serves multiple purposes and abstracts no underlying complexities then it serves as an entry point for defects and often expands the cost of adding or refining features. Unit testing such a method or …

The Hunt for the Wolf: A D&D 5e Session Report

They crossed over the subterranean bridge that they had first discovered from the other direction on the previous day. Torches still burned along the halls. All was silent but the presence of the orcs could be felt. They entered into the cavern in which they had been ambushed the previous day. The stone doors shut behind them with a clang. Slighter shot backward beside all of his companions to the doors in attempt to open them. As he did so Suthra saw orcs coming down each passage. They had walked into yet another ambush.

Not wanting whatever was on the other side of the doors to attack them from behind Alaric passed slighter his short sword and it was wedged into the handles preventing the doors from opening. On the other side of the passage Suthra was already engaged with a host of orcs that had descended down the passage. During the melee a great stench arose about them. The gurgling green skinned and wort filled form of a troll appeared from one of the passage.

Nim had been fighti…

JSON Form Definition

I work in the area of web development called web content management or WCM for short. One of the problems that often needs resolved is an easy and repeatable way to define forms through which WCM authors use to create content.

An often first step in the creation of any new feature is defining a form which may include text fields, checkboxes, radio options, specialized text fields such as urls, dates, or paths to other pieces of content. On top of this having a multivalued list of any of these fields is also common such as a list of links each with a corresponding checkbox to determine if the link opens in a new tab or not. These forms can become quite complex and having an easy way to define them speeds up development of new features.

It occurred to me that using JSON as a means of defining a form would allow a developer to define what JSON they expect back from the form after the user interacts with it. This is similar to the idea behind GraphQL, tell the API what JSON you want to see…