Comments on: Why Small is Better https://simpleprogrammer.com/why-small-is-better/ Thu, 11 Jan 2018 22:32:28 +0000 hourly 1 https://wordpress.org/?v=7.0 By: The Debugger Mindset - Simple Programmer https://simpleprogrammer.com/why-small-is-better/#comment-269 Thu, 11 Jan 2018 22:32:28 +0000 https://simpleprogrammer.com/?p=993#comment-269 […] to commit as frequently as possible and divide your work into very small tasks.  Smaller is better.  Also try to split work vertically rather than horizontally.  This means trying to implement a […]

]]>
By: Peter Gfader https://simpleprogrammer.com/why-small-is-better/#comment-268 Mon, 19 Jul 2010 03:36:54 +0000 https://simpleprogrammer.com/?p=993#comment-268 I was thinking about Code Contracts in general.
Since .NET includes them now you should give them a go!

>>because of the amount of overhead and time involved in creating them
They make us devs think a bit more before we start up typing, which is good… Less time to write unit tests…

>>I have found a unit tests to be a good specification for the behavior of a method that gives context as well as behavior information.
But unit tests are so far away from your code.
Code Contracts are next to the method and easier to read.

I am looking forward to a blog post about those!
CU

]]>
By: jsonmez https://simpleprogrammer.com/why-small-is-better/#comment-267 Mon, 19 Jul 2010 00:00:00 +0000 https://simpleprogrammer.com/?p=993#comment-267 In reply to Peter Gfader.

I need to take an honest look at the .NET 4 Code Contracts, but in the past I have not really liked code level contracts because of the amount of overhead and time involved in creating them, vs the benefit. I have found a unit tests to be a good specification for the behavior of a method that gives context as well as behavior information.

I would like to take a look again though to see if I would change my mind.

]]>
By: Peter Gfader https://simpleprogrammer.com/why-small-is-better/#comment-266 Sun, 18 Jul 2010 23:05:02 +0000 https://simpleprogrammer.com/?p=993#comment-266 +1
Great post!
Small tasks are important for motivation and 1 of the reasons why I love Scrum

What do you think about Code Contracts? (.NET4 includes them finally)
I realized that if you have Code Contracts in place (pre and post conditions, class invariants) you tend to minimize the functionality of your methods, just to match the code contracts.
Result: Smaller methods.
With refactoring you are getting there too, but from a different way…

]]>
By: Bryan https://simpleprogrammer.com/why-small-is-better/#comment-265 Fri, 09 Jul 2010 21:52:28 +0000 https://simpleprogrammer.com/?p=993#comment-265 Great post! I have been working on this lately. Things were piling up and I was having a hard time managing my time. Home projects, work projects, personal projects, school stuff, finance goals, etc.

Breaking all this down into smaller units of work has really helped. I write down all my goals and break each one into weekly tasks.

For finances I have been auditing all my spending and refactoring my cash flow. In the past 8 months I freed up nearly $500 a month, by getting rid of rarely used services and consolidating bills. I think I have optimized the expenses as good as it is going to get for the time being. Time to work on increasing the income side.

At home I have slowly been going room to room and clearing out stuff I dont need. Its amazing what you accumulate over time. I start by completely emptying the room, furnature and all, and only returning the items I use. The leftover pile gets tossed or sold.

Now, I believe it is time to dump Windows Mobile 6.1. I was actually considering heading back to a “stupid” phone. I am rarely far from a PC and between RDP, LogMeIn, and Dropbox, I can get to my data pretty quickly. However, those Androids phone are pretty sexy. 🙂

]]>