April Hackery

We will meet at Improving on Tuesday Night, April 20th at 6:00 PM. Please join us as we practice our craftsmanship.


6 Responses to “April Hackery”

  • dallashackclub Says:

    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.

  • Leblanc Meneses Says:

    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

  • admin Says:

    Leaving DISQUS disabled for the time being.

  • Brett Bim Says:

    Is this a WordPress blog? If so, I've found that the SyntaxHighlighter Evolved plugin is better than the Google Syntax one.

  • dallashackclub Says:

    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.

  • dallashackclub Says:

    Ok, it actually looks like a server side PHP problem. The pertinent Evolved markup is missing when DISQUS is enabled.

Leave a Reply