[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Kiss your boring tasks goodbye: Everyday Scripting With Ruby

Sharon

5/29/2007 5:47:00 PM

Chances are, you do some boring, repetitive data-related tasks at work
-- ones a computer could easily do, if only it was told how.

"At one desk, a tester is entering test data into a database by hand. At
another, a programmer is sifting through the output from a
version-control system, trying to find the file she wants. At a third, a
business analyst is copying data from a report into a spreadsheet. Why
are these people doing work that computers could do perfectly well?"
asks Brian Marick, author of the book "Everyday Scripting With Ruby."

---

I've got a review of the book up at Computerworld.com, for those who
might be interested, it's at

http://www.computerworld.com/action/article.do?command=viewArticleBasic&article...

--Sharon Machlis
Online Managing Editor
Computerworld

--
Posted via http://www.ruby-....

10 Answers

Hakusa@gmail.com

5/29/2007 9:14:00 PM

0

Because many corporations that have leaders that are not tech savy
hire people who are and force them to work in conditions that are
paradoxical to the goal and not allowing for enough time to weed out
bugs, proffering that their coders instead create subroutines to solve
the problem instead of writing it out--not to mention the fact that
the leaders don't even understand the problem to begin with!

I don't think I care to make my diatribe any longer, but
worserthanfailure.com showcases this type of corporate failure all the
time.

Also, I'd like to mention that I'd rather people have jobs than have
computers doing them efficiently. In the future, there will be very
few jobs that need actual humans and no one will NEED jobs. But how
will we get there? Will poverty take us over first?

(I know this isn't the place for political commentary, but why
computers don't take over is a very touchy subject. Do we want
computers taking over?)

Ben Bleything

5/29/2007 9:27:00 PM

0

On Wed, May 30, 2007, Hakusa@gmail.com wrote:
> Also, I'd like to mention that I'd rather people have jobs than have
> computers doing them efficiently. In the future, there will be very
> few jobs that need actual humans and no one will NEED jobs. But how
> will we get there? Will poverty take us over first?

From this, I infer that you're not a system administrator. Note that
I'm not saying that's a bad thing, just an observation :)

I have been a sysadmin, and I will be again, and one thing I've learned
is this: if ever you perform a task more than twice, automate it.
You'll save yourself time in the future to deal with real problems.

I used to work in a Network Operations Center where we were primarily
doing reactive "maintenance". When a system at a site needed to be
kicked, we could either log in and do the multi-step process by hand,
or run a script that automated the process, thus removing the error of
(say) restarting a service on the wrong machine.

I haven't read the book yet, but from the synopsis it seems that it's
really about how you can leverage Ruby to help you do your job more
effectively and efficiently, rather than replacing yourself (or others)
with code. It's all about finding ways to make your life easier by
automating repetitive, error-prone manual tasks.

I suspect that the type of everyday scripting and automation suggested
by the book is the kind that must be driven by a person, not the kind
that replaces one.

Ben

Sharon

5/29/2007 9:37:00 PM

0

Ben Bleything wrote:

> I suspect that the type of everyday scripting and automation suggested
> by the book is the kind that must be driven by a person, not the kind
> that replaces one.
>

You're right. The idea of the book isn't to write code that replaces
people. It's to have people write code that eliminates some of the most
boring, repetitive tasks they do, so that they can spend their time
doing more productive and interesting things.

The fact that I was able to write a script that saves an editor here,
say, 10 minutes a day is certainly not going to replace that editor. But
it could save a couple of hours of editing time a month that could be
put to better use. It also makes for a happier editor, because he's not
doing low-skill drudge work and instead can spend more time doing actual
editing.

Sharon


--
Posted via http://www.ruby-....

Sean T Allen

5/30/2007 2:55:00 AM

0


> I suspect that the type of everyday scripting and automation suggested
> by the book is the kind that must be driven by a person, not the kind
> that replaces one.
>
>
I have the book and I would describe it as entry level. If you automated
tasks in the fashion you suggested, you are way past learning anything
from the book.



Stephen Smith

5/30/2007 4:44:00 AM

0

I've read the book too.

Anyone who's already been a sysadmin probably doesn't have much to
learn from it conceptually. And if you're new to scripting, it's
probably not structured or complete enough to get you started.

It's a good resource, though, if you are new to Ruby and/or new to
scripting. Gives you a bunch of solid concepts, some decent tips for
the ordinary shortcuts the gurus don't want to admit knowing/bother
teaching, and enough idiomatic code to get you going.

Personally, I wish it ran you through some of the better command line
gems (e.g., cmdparse). But hey, that's personal preference. There's
some good stuff in here.

+0.02

On 5/29/07, Sean T Allen <sean@ardishealth.com> wrote:
>
> > I suspect that the type of everyday scripting and automation suggested
> > by the book is the kind that must be driven by a person, not the kind
> > that replaces one.
> >
> >
> I have the book and I would describe it as entry level. If you automated
> tasks in the fashion you suggested, you are way past learning anything
> from the book.
>
>
>
>

vasudevram

5/30/2007 1:17:00 PM

0

On May 30, 9:44 am, "Stephen Smith" <4fi...@gmail.com> wrote:
> I've read the book too.
>
> Anyone who's already been a sysadmin probably doesn't have much to
> learn from it conceptually. And if you're new to scripting, it's
> probably not structured or complete enough to get you started.
>
> It's a good resource, though, if you are new to Ruby and/or new to
> scripting. Gives you a bunch of solid concepts, some decent tips for
> the ordinary shortcuts the gurus don't want to admit knowing/bother
> teaching, and enough idiomatic code to get you going.
>
> Personally, I wish it ran you through some of the better command line
> gems (e.g., cmdparse). But hey, that's personal preference. There's
> some good stuff in here.
>
> +0.02
>
> On 5/29/07, Sean T Allen <s...@ardishealth.com> wrote:
>
>
>
> > > I suspect that the type of everyday scripting and automation suggested
> > > by the book is the kind that must be driven by a person, not the kind
> > > that replaces one.
>
> > I have the book and I would describe it as entry level. If you automated
> > tasks in the fashion you suggested, you are way past learning anything
> > from the book.


Though not directly to the topic of the book mentioned, I just wanted
to say that there's another Ruby book, for the area of enterprise
integration, that's pretty good, in an analogous way to the scripting
one mentioned - though it discusses things at a level targetted at
more experienced programmers. I think its a pretty valuable resource
for anyone doing integration work.

I blogged a short review of it here:

http://jugad.livejournal.com/2...

Enjoy,

Vasudev Ram
Dancing Bison Enterprises
http://www.dancin...
"Eventually hardware fails. Eventually software works."


vasudevram

5/30/2007 1:48:00 PM

0

On May 30, 6:16 pm, vasudevram <vasudev...@gmail.com> wrote:
> On May 30, 9:44 am, "Stephen Smith" <4fi...@gmail.com> wrote:
>
>
>
> > I've read the book too.
>
> > Anyone who's already been a sysadmin probably doesn't have much to
> > learn from it conceptually. And if you're new to scripting, it's
> > probably not structured or complete enough to get you started.
>
> > It's a good resource, though, if you are new to Ruby and/or new to
> > scripting. Gives you a bunch of solid concepts, some decent tips for
> > the ordinary shortcuts the gurus don't want to admit knowing/bother
> > teaching, and enough idiomatic code to get you going.
>
> > Personally, I wish it ran you through some of the better command line
> > gems (e.g., cmdparse). But hey, that's personal preference. There's
> > some good stuff in here.
>
> > +0.02
>
> > On 5/29/07, Sean T Allen <s...@ardishealth.com> wrote:
>
> > > > I suspect that the type of everyday scripting and automation suggested
> > > > by the book is the kind that must be driven by a person, not the kind
> > > > that replaces one.
>
> > > I have the book and I would describe it as entry level. If you automated
> > > tasks in the fashion you suggested, you are way past learning anything
> > > from the book.
>
> Though not directly to the topic of the book mentioned, I just wanted
> to say that there's another Ruby book, for the area of enterprise
> integration, that's pretty good, in an analogous way to the scripting
> one mentioned - though it discusses things at a level targetted at
> more experienced programmers. I think its a pretty valuable resource
> for anyone doing integration work.
>
> I blogged a short review of it here:
>
> http://jugad.livejournal.com/2...
>
> Enjoy,
>
> Vasudev Ram
> Dancing Bison Enterpriseshttp://www.dancin...
> "Eventually hardware fails. Eventually software works."

P.S. Forgot to mention a disclaimer: I'm not affiliated with The
Pragmatic Bookshelf or the author of the Enterprise Integration in
Ruby book in anyway. I just think its quite a good book.

Vasudev

Donald Anderson

5/30/2007 3:35:00 PM

0

Sean T Allen wrote:
>> I suspect that the type of everyday scripting and automation suggested
>> by the book is the kind that must be driven by a person, not the kind
>> that replaces one.
>>
>>
> I have the book and I would describe it as entry level. If you automated
> tasks in the fashion you suggested, you are way past learning anything
> from the book.

yes i am agree with you.

--
Posted via http://www.ruby-....

Uncle Toad

1/6/2010 5:21:00 PM

0


"Heinrich" <Heinrich@Ruhrgasnet.de> wrote in message
news:7qjun4FpioU1@mid.individual.net...
>
> "Uncle Toad" <jojokoko@invalid.com> schreef in bericht
> news:hi2g9q$vah$1@speranza.aioe.org...
>>
>> "Heinrich" <Heinrich@Ruhrgasnet.de> wrote in message
>> news:7qjlc9FsgoU1@mid.individual.net...
>>> Changes in the election law mean the pro-paedophilia political party
>>> PNVD has a better chance of contesting seats in the 2011 general
>>> election, a party spokesman said on Wednesday.
>>>
>>> The changes mean parties only need supply the initials, surname and
>>> place of residence of supporters, rather than their full name and
>>> address.
>>>
>>> This means it will be easier for the PNVD to gather enough signatures to
>>> stand for parliament because its supporters need not fear being found
>>> out, the party said.
>>>
>>> The party pulled out of the 2006 election because if failed to collect
>>> the necessary 570 signatures of support.
>>>
>>
>> Where is this?
>>
>
> this is happening in the netherlands. every idiot can start a
> politicalparty if he canpresent a list of a couple of hiundredsof
> supporters

Malevolent bastards want to form a political basis (party) for preying on
young and innocent children? How sick!

Still, in some place in the U.S. they'd be dealt with severely, at night, in
the dark, when no one was around to see their "rights" vanish right at the
juncture of there nasty evil crotches.



Heinrich

1/6/2010 5:24:00 PM

0


"Uncle Toad" <jojokoko@invalid.com> schreef in bericht
news:hi2gp6$df$1@speranza.aioe.org...
>
> "Heinrich" <Heinrich@Ruhrgasnet.de> wrote in message
> news:7qjun4FpioU1@mid.individual.net...
>>
>> "Uncle Toad" <jojokoko@invalid.com> schreef in bericht
>> news:hi2g9q$vah$1@speranza.aioe.org...
>>>
>>> "Heinrich" <Heinrich@Ruhrgasnet.de> wrote in message
>>> news:7qjlc9FsgoU1@mid.individual.net...
>>>> Changes in the election law mean the pro-paedophilia political party
>>>> PNVD has a better chance of contesting seats in the 2011 general
>>>> election, a party spokesman said on Wednesday.
>>>>
>>>> The changes mean parties only need supply the initials, surname and
>>>> place of residence of supporters, rather than their full name and
>>>> address.
>>>>
>>>> This means it will be easier for the PNVD to gather enough signatures
>>>> to stand for parliament because its supporters need not fear being
>>>> found out, the party said.
>>>>
>>>> The party pulled out of the 2006 election because if failed to collect
>>>> the necessary 570 signatures of support.
>>>>
>>>
>>> Where is this?
>>>
>>
>> this is happening in the netherlands. every idiot can start a
>> politicalparty if he canpresent a list of a couple of hiundredsof
>> supporters
>
> Malevolent bastards want to form a political basis (party) for preying on
> young and innocent children? How sick!
>
> Still, in some place in the U.S. they'd be dealt with severely, at night,
> in the dark, when no one was around to see their "rights" vanish right at
> the juncture of there nasty evil crotches.
>
>
>

here is their website with an english section
http://www.martijn.org/page.php...