Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: format problem
Li Chen
12/11/2006 9:20:00 PM
> Problem: The library 'pp' cannot produce the result
> you want.
>
> Solution: don't use 'pp'. Instead, write an
> additional line of code.
But how to explain it works when the column number is
less than 10? Is it a bug for 'pp' library?
Thanks,
Li
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail...
3 Answers
Paul Lutus
12/11/2006 9:35:00 PM
0
chen li wrote:
>> Problem: The library 'pp' cannot produce the result
>> you want.
>>
>> Solution: don't use 'pp'. Instead, write an
>> additional line of code.
>
> But how to explain it works when the column number is
> less than 10? Is it a bug for 'pp' library?
Libraries are meant to save your time as a software developer, as well as
offer a more reliable, predictable, repeatable solution to software design
problems.
But when a library does not offer any of these advantages, IMHO the best
thing to do is abandon the library and move on.
I have always felt that, once a library requires more time than hand-coding
a solution, it has lost its right to waste any more of my time.
And it is astonishing to me how often libraries, designed to save
programmers' time, end up eating it instead.
This principle is especially potent with Ruby, where it is very easy to
solve problems by writing a few lines of code, code you can still
understand months or years later.
Not to pontificate here, but ... when a library -- the "easy way" -- takes
more time to use than hand coding -- the "hard way" -- the library loses
its right to exist.
These are just my opinions, reasonable people can and will differ.
--
Paul Lutus
http://www.ara...
dblack
12/11/2006 9:48:00 PM
0
Li Chen
12/11/2006 10:05:00 PM
0
Paul Lutus wrote:
> This principle is especially potent with Ruby, where it is very easy to
> solve problems by writing a few lines of code, code you can still
> understand months or years later.
>
> Not to pontificate here, but ... when a library -- the "easy way" --
> takes
> more time to use than hand coding -- the "hard way" -- the library loses
> its right to exist.
>
> These are just my opinions, reasonable people can and will differ.
I completely agree with you. And thank you all for time and your reply.
Li
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: format problem
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password