Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
> Implementation may prove a challenge but clarity is always a good start.

I know, for the time being your team is small and you are playing all roles by yourself.

But imagine having a split personality disorder, where on certain weekdays you are a "Mr. Designer" without hard programming skills.

This cartoon reflects my experience quite well

Your "Dr. Programmer" should try to offer your Mr. Designer a custom Perl-function to be embedded

($visible,$hidden) = divide_by_words($text,100)

which is maintained in a dedicated view-helper module.

One day you might realize that web-design is not your forte and you want to hire someone creative who is good with colors, fonts, user experience, pink unicorns and so on.

No need to require Perl or Regex skills then, your Perl programmers will maintain the central view-helper-module for the designer.

And one day the programmer will realize that split / +/ is not a good idea and fix it at one central place instead of dozens of templates.

And the designer can decide to change the "100" to another number depending on output media and page.

One anecdote: (I told this before ...)

My first payed Perl job was in a (former) start up which created little interactive ads embedded in thousands of partnering web-sites.

The team was divided into programmers, designers, dev-ops, some DBAs and (pseudo) management.

To my horror I realized that JS was considered the responsibility of the designers who couldn't really code ... (well with one exception).

That worked reasonably well as long as they only used standard features from frameworks like MooTools, but imagine the C&P disaster when they googled for more complex logic.

I tried to argue that it'll be wiser if someone from the Perl department provided the JS coding. But that's how I learned how management "works".

Disclaimer:

I'm a bad designer and have the highest respect for good ones.

If you leave web-design to programmers you'll end up in sites like this one.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery


In reply to Re^3: Splitting long text for Template by LanX
in thread Splitting long text for Template by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-28 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found