My last post was implementing the K combinator in C# as an extension method. Today, I am moving on to the B-Combinator. The B combinator has the form:
B f g x = f(g(x))
After browsing through Programmers.StackExchange I found an interesting post on combinators and how they applied to programming projects. It led me to some interesting links, most notably this post by Reg Braithwaite and saw the Ruby implementation of this as #tag and thought, why not recreate it in C#?
It's been a while since my last post and since then I've started a new job. At this new job I have to use Microsoft SQL Server 2008R2 and work with many different database and tables, which I don't think is uncommon among programmers. While dealing with these tables, some of them with tons of columns (too many to count) I have found the need to see how many columns there are in a specific table since I need to write column specific code for one of the applications. Now, this table had more columns than I wished to count by hand and I was thinking there was a way to do it in SQL and it turns out there is and I'll share it with you now.
Since I've started the MSCS program at DePaul I have started to do a lot more work with Java and have come to found that it is a great language. The first time I really tried to get involved with it was when I wanted to make an Android app. I found it difficult to understand why it is the way it is. I didn't like that you had to create a new source file for every public class and the naming conventions were a bit confusing (on the back end...I wasn't sure what the difference between a Jar and Class file was).
This is a continuation from my first post on Excel and C#, so if you haven't read that yet, you should definitely check it out.
With the release of .Net 4, Microsoft has made Excel Interop incredibly simple and more intuitive. While this makes using Excel files incredibly easy, it does require that the computer that is running this code has Excel installed (which may be a problem for some people). Here is what you will need to get started: