> > On Saturday, January 24, 2004, at 12:18 am, Wiggins d Anconia wrote: > > Readability? Why use a module for anything? > It's not exactly rocket science to understand the escapes and > seriously, using a print for each and every escape code format ? > Expensive much? And what about situations where you can't use print > like a multiplexing socket? >
Not rocket science, and I didn't mean the readability of the Perl, I meant the readability of your strings. I would rather see: red 'This is red text' then '\e[31mThis is red text\e[0m'. Not to mention I am not into carrying around lists of what exactly 31 maps to, I have more important uses for brain cells, like killing them with beer :-)... Expensive is hardly a discussion to get into on a Perl list, Assembly much? Interesting about the socket, but to me color formatting using ANSI escape sequences over a socket is probably a little overdone, talk about expensive. Of course I am color deficient and work with a colleague who is actually color blind, so other than syntax highlighting in code I really don't care much for colored text, and even in the syntax coloring area I couldn't tell you what some of the colors are and don't pay attention to what they mean, it is the 'difference' in color that matters to me.... > Modules are good, but then sometimes the price they ask is too high for > what they actually do. IMHO of course. > > >> Note the implmentation of ANSI varies wildly, so expect colour and > >> (possibly) formatting but not consistency. Especially from Mircrosoft > >> :). > > Another good argument for using the module... > It's not magic, it has no silver bullet to ensure every terminal will > show the same colours/formats, simply because the module uses the same > escape codes I listed in my earlier posting, being as they are ANSI > standards :). > The point is that when the silver bullet is invented/discovered your code won't be using it, but mine will, with one quick upgrade to one piece of code.... Modules can be overkill, granted, to each their opinion and every project is different.... http://danconia.org
