by Mwwhited
19. June 2009 11:06
While not as bad as calculating PI in BF this LINQ statement is pretty impressive. Being able to define a full ray tracer in a single, complex, fuctional, recursive statement is very interesting. Ray Tracing in LINQ
by Mwwhited
18. June 2009 01:06
In the sprit of playing with a string chop question on stackoverflow… I somehow got myself into the middle of some fun code profiling. So this is a report of the code and results. (this is related to a previous most I made as well http://hackersbasement.com/?p=134) Charted Short String Results Person Version Run 1 Run 2 Run 3 Str SB J Str SB J ...
[More]
by Mwwhited
13. June 2009 16:06
I decided to play around with VS2010 Beta 1 this weekend. While talking with one of my dev friends, I was asked what I thought about the Parallel extensions. Having not used them yet I figured I'd give them a go...
[More]
by Mwwhited
10. June 2009 22:06
After running across a "code golf" question this afternoon on stack overFlow I answered with a short answer...
using (var inFs = File.OpenText(args[0]))
using (var outfs = File.AppendText(args[1]))
{
outfs.Write("<table border="0">");
while (!inFs.EndOfStream)
outfs.Write("<tbody><tr><td>" + string.Join("</td><td>", inFs.ReadLine().Split(',')) + "</td></tr>");
...
[More]