Archive for the ‘Learning’ Category
A couple of weeks ago I was writing some code to initialize List<T> but my technique was very verbose and it seemed to be a distraction from what I was trying to do. Plus it seemed that every one else was writing about getting their func on.
So I looked back at some code that Nick Parker had written:
And tweaked it to initialize a list:
Now I can initialize a list like this:
Just for the record the Func initialization above could handle much more complex scenarios if needed. My usage is very simple.
Another variation on this is to create an extension method that does the same initialization like this:
And here is how you would use the extension method version:
Thanks to Nick Parker for some suggestions as I was working on this.
Something I would like to figure out is how to do this based on IEnumerable instead of IList. If you have ideas regarding implementing this on IEnumerable please add them as comments.
Also, if you want to see where I was using this, pull down the subversion source here: http://subversion.assembla.com/svn/solon-tools/trunk/Puzzles
I’ve almost learned Python several times in the recent past, but now I’m committing to learn it. Some of my learning resources are The Python Tutorial and Dive Into Python. What are other good online resources?
From my experience when people talk about IOC/DI they end up skipping basic concepts, but Jeff didn’t. It was really good because he went back to the very beginning and built a live code example along the way. And as he built the code base, he introduced all the core concepts.
I learned a lot and think I’ll introduce Unity into my current project. Structure Map has been on my list to learn for awhile, so I’ll probably use it to compare for usability and features.
The presentation last night went really well. We had a steady stream of questions and there seemed to be general interest in the topic.
We talked about what Continuous Integration is and then I introduced a build configuration that I had pre-configured around a sample ASP.NET application. For some reason I couldn’t get the jabber notifications to work, but they had worked flawlessly before.
After talking with several people I’ve clarified a couple of points that will help the next time I present the talk, likely at the Iowa Code Camp. Thanks for all of the feedback and questions.
Here are the slides from the talk if you are interested.
Tomorrow I’m presenting “Continuous Integration with TeamCity” at CRineta. We’re starting off with the fundamentals of Continuous Integration and then we are going to configure TeamCity. We have an ASP.NET project in a Subversion repository that will be the subject of much of the demonstrations.
I love this topic and am excited to get to show this to the group.
We are also are going to broadcast this presentation over Live Meeting for the first time. Thanks to Josh Flory for getting this going and providing the Live Meeting account for our first run.
If you are interested in attending the Live Meeting, email me and I’ll hook you up. If you don’t have my email then contact me through the About page on my blog. Live Meeting will be a first for us, so there are no guarantees with the quality this time around.
By the way, if you are attending the (actual/physical) meeting remember that we are changing our location to Kirkwood. The directions are posted on CRineta.org.
Update: Here are the slides from the talk.
In January I posted about attempting to get the #1 spot for the name Chris Sutton. If you read the original post you’ll know that there is a retired but famous soccer player named Chris Sutton. His Wikipedia entry is sitting on top of the search page and is the only thing holding me back from the #1 position.
Getting #3 wasn’t too bad, #2 took a lot of time, but I think #1 is going to be exceedingly hard.
I’m skeptical if I can pull it off in 3 months, but the goal is still to knock him off the top by end of December.
Looking back at original writings surrounding an idea is important when you are trying to take your understanding deeper.
My goal in this series is to draw attention to some of the original documents and highlight what people said about MVC in its inception.
In my next post we’ll look at his original MVC paper called Thing-Model-View-Editor.