The first rule of hack club is, we don't just talk about code.
April Hackery
We will meet at Improving on Tuesday Night, April 20th at 6:00 PM. Please join us as we practice our craftsmanship.
This entry was posted on Thursday, April 15th, 2010 at 3:08 pm. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Last night we did Roy Osherove's string calculator kata http://osherove.com/tdd-kata-1/ Feel free to post your code. I have no idea what the formatting will look like in the comments. You can definitely try it. You can also try sticking the code on http://pastie.org and linking it.
Yeah, I've since found Evolved looks better too. It's installed right now (deleted my previous comment about Google Highligher) But it's not working. I think the only problem is the CSS doesn't play nice between DISQUS and Evolved.
April 21st, 2010 at 12:15 pm
Last night we did Roy Osherove's string calculator kata http://osherove.com/tdd-kata-1/ Feel free to post your code. I have no idea what the formatting will look like in the comments. You can definitely try it. You can also try sticking the code on http://pastie.org and linking it.
April 21st, 2010 at 1:39 pm
Currently this expression was built up to pass tests:
[code lang="cSharp"]
@"^(//(?<delimiter>.)n?)?(?<data>((?<number>d+)([,n]|k<delimiter>))*(?<number>d+)?)$
[/code]
the only one it does not solve is requirement #8, hence Test_MultipleDelimiterNotation will fail
in the beginning we started from:
[code lang="cSharp"]
(s+)?(?<number>d+)(s+)?(,)?
[/code]
For requirement 8 I would need to add a little bit of logic besides a one line regex in calculator. Hence the calculator should take IParser
[code lang="cSharp"]
public interface IParser
{
IEnumerable<int> Parse(String input);
}
[/code]
before i do i'll setup svn so that revisions can be compared
May 25th, 2010 at 5:56 pm
Leaving DISQUS disabled for the time being.
May 25th, 2010 at 4:21 pm
Is this a WordPress blog? If so, I've found that the SyntaxHighlighter Evolved plugin is better than the Google Syntax one.
May 25th, 2010 at 5:11 pm
Yeah, I've since found Evolved looks better too. It's installed right now (deleted my previous comment about Google Highligher) But it's not working. I think the only problem is the CSS doesn't play nice between DISQUS and Evolved.
May 25th, 2010 at 5:31 pm
Ok, it actually looks like a server side PHP problem. The pertinent Evolved markup is missing when DISQUS is enabled.