Browse by Tags

All Tags » Iterative Development - Refactoring (RSS)
Previoulsy, tasks were determined by a due date. Now, they can be determined by many things; a date, a custom value (say a mileage value setup), and do many other things. Because of that, I realize that I no longer need the deferrment option. In addition...
In the task details interface, when we create or update the task, certain properties were created that we no longer need. We have this setup right now: task.Name = this.TaskName; task.Category = this.Category; task.SetPropertyValue<bool>("IsReoccurring"...
I have a method that looked like this: public override float EvaluatePercentComplete(MeasurementTrigger trigger) { int range = (DateTime.Today.Subtract((DateTime)trigger.LastValue).Days); int total = ((int)trigger.TriggerValue); if (total == 0) throw...
Some of the properties that were created look something like this: public string Category { get { if (this.Properties.Contains("Category")) return this.Properties["Category"].GetValue<string>(); else return null; } set { if ...
I found a flaw in my test, which was less detectable since I didn't have a good range test. The values were six months apart from each other, and I didn't realize that the partial value was calculated incorrectly. It should have been instead this...
I was testing the application and came across a bug; whenever you complete a reoccurring item, it uses a faulty algorithm. public void Complete() { MetadataAttribute dueDateAttribute = this.Attributes["DueDate"]; if (dueDateAttribute != null...
In looking at the task details can be edited story, I noticed that a lot of the features it has is the same as the new task screen; so instead of writing a separate screen, I'm going to refactor the NewTask screen to include editing capabilities....
I tested this method to be sure that it would work: [Test()] public void TestLoadingAndSavingFile() { TaskCollection collection = new TaskCollection(); Task task = new Task("Wash Car", "Auto"); task.Attributes.Add(new MetadataAttribute...
I just realized, the MetadataSerialization works with a single task! I want multiple tasks; so I have to think of how I will do this. Essentially, what I envision is adding another class; MetadataSerialization is somewhat big in itself, and I'll create...
I found a bug with the MetadataAttribute; it seems no matter what, the value is coming back as a string. This is because I return the type from the value. I notice this problem with the loading/saving portion, and as such, I want to do this instead: public...
I wanted to ensure the central access to the tasks would work. In my other blog, I talked about centralized access in a windows application, where the root object could be accessible through the entire application. I created the following class: namespace...
Instead of completing the Task Deferred story, we decided to defer it for now. The current velocity is six for the stories we implemented, which is great progress. Instead, we will close on this iteration, creating the customer tests and releasing the...