in reply to Re^3: Developing a module, how do you do it ?
in thread Developing a module, how do you do it ?

Indeed, maintenance is greatly simplified by having the code and tests within the same file.

It can be, depending on the project.

I'm no longer a fan of the "you must have one .t file for each logical module in your program" rule. I prefer my test files to have their own logical relationships, where each file tests one function of the program in a particular way. For example, in the Pod::PseudoPod::DOM test suite, I have separate subdirectories for each type of formatter and separate test files for each category of transformation (escapes, environments, block-level items, tables, and so on).

This does require a little bit of testing infrastructure, but organizing more than a few tests is like organizing more than a few lines of code. You choose the best option based on what you're doing and you change it to work better when it becomes necessary or obvious.

  • Comment on Re^4: Developing a module, how do you do it ?

Replies are listed 'Best First'.
Re^5: Developing a module, how do you do it ?
by BrowserUk (Patriarch) on Mar 03, 2012 at 04:35 UTC

    PseudoPOD?! Really? I mean, Really??

    Update: I mean: Really, really!??

    You really have nothing better to do with your time? You've never heard of Tex. and postscript and PDF and Word and HTML?

    I'll stop.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      You assume too much. I've written TeX and PostScript by hand. I've also written assembly by hand. I wrote my own PDF generator too.

      I'm not doing that again.

      (Doesn't mean POD is any good at tables, but what is?)

        (Doesn't mean POD is any good at tables, but what is?)

        LaTeX, HTML ...

        I'm not sure what assumptions you thought I made? I asked a question with no knowledge of (your skills in) that which I asked about.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        The start of some sanity?