Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: AUBBC2 alpha development

by Anonymous Monk
on Oct 19, 2011 at 10:58 UTC ( #932359=note: print w/ replies, xml ) Need Help??


in reply to AUBBC2 alpha development

Does this look easy to use?

Looks easy enough, albeit low-level (WORDY)

I don't like magic numbers :) Instead of 'type' => '#' use names like

  1. lonetag, tagonly, tago, tag
  2. tagpair, tagbal, balancedtag, tagb, tag_balanced
  3. linktag, tagalt
  4. striptag

Better yet, instead of (or in addition to) add_tag, provide strip_tag, link_tag, balanced_tag, ...

I also don't like do_all_ubbc, as do_all isn't as informative as process , render, translate or transform,

Also, there is no clear and concise example of usage, either in demo , docs, or test suite


Comment on Re: AUBBC2 alpha development
Select or Download Code
Replies are listed 'Best First'.
Re^2: AUBBC2 alpha development
by Anonymous Monk on Oct 20, 2011 at 10:09 UTC
    Is it (WORDY) in a good way?

    Im changing the numbers of type to names: single, balanced, link, strip and renaming do_all_ubbc to render I was thinking of name parse_bbcode, but its just names.. at some point that sub could have been called crap and working like a champ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932359]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-30 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls