Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Loading
Build Awesome Command-Line Applications in Ruby: Control Your Computer, Simplify Your Life

Buy

As Ruby pro David Copeland explains, writing a command-line application that is self-documenting, robust, adaptable and forever useful is easier than you might think. Ruby is particularly suited to this task, since it combines high-level abstractions with "close to the metal" system interaction wrapped up in a concise, readable syntax. Moreover, Ruby has the support of a rich ecosystem of open-source tools and libraries.

Ten insightful chapters each explain and demonstrate a command-line best practice. You'll see how to use these tools to elevate the lowliest automation script to a maintainable, polished application.

You'll learn how to use free, open source parsers to create user-friendly command-line interfaces as well as command suites. You'll see how to use defaults to keep options simple for everyday users, while giving advanced users options for more complex tasks.

There's no reason a command-line application should lack documentation, whether it's part of a help command or a man page; you'll find out when and how to use both. Your journey from command-line novice to pro ends with a look at valuable approaches to testing your apps, and includes some fun techniques for outside-the-box, colorful interfaces that will delight your users.

With Ruby, the command line is not dead. Long live the command line.

What You Need:

All you'll need is Ruby, and the ability to install a few gems along the way. Examples written for Ruby 1.9.2, but 1.8.7 should work just as well.

(HTML tags aren't allowed.)

Managing Knowledge Networks
Managing Knowledge Networks

Managing knowledge networks (KN) within organizations has taken on enhanced importance in recent years because of the decline of middle management and other changes in formal organizational structures, the growth of information technologies, and our increasingly competitive global economy. KN can be manifested in a variety of forms: project...

Lossy Image Compression: Domain Decomposition-Based Algorithms (SpringerBriefs in Computer Science)
Lossy Image Compression: Domain Decomposition-Based Algorithms (SpringerBriefs in Computer Science)

Image data compression is concerned with minimization of the number of information carrying units used to represent an image. Image compression schemes can be divided into two broad classes: lossless compression schemes and lossy compression schemes. Lossless compression techniques, as their name implies aim at exact reconstruction...

How to Listen to Modern Music: Without Earplugs
How to Listen to Modern Music: Without Earplugs
The story goes that the legendary English conductor Sir Thomas Beecham was asked if he had conducted any music by Stockhausen. The reply came, "No, but I once trod in some."  

Like all genuinely serious subjects, modern music is ripe for humour. Musicians everywhere have stories to tell about the strange and bizzare things
...

Deploying and Administering Windows Vista Bible
Deploying and Administering Windows Vista Bible
Although analysts expect the majority of enterprises to tread slowly into migration, there certainly will be early adopters, as there are with any system or device. Because Microsoft has announced that it will support Windows 2000 only until the year 2010, enterprises using older versions of Windows will not have much time for leisurely testing and...
Quartz Job Scheduling Framework: Building Open Source Enterprise Applications
Quartz Job Scheduling Framework: Building Open Source Enterprise Applications

Integrate Powerful Scheduling Capabilities into Any Java Application or Environment

 

If your Java applications depend on tasks that must be performed at specific times or if your systems have recurring maintenance jobs that could be automated,...

Semantic Techniques in Quantum Computation
Semantic Techniques in Quantum Computation

The idea of quantum computation, in the algorithmic sense, originated from the suggestion by Feynman (1982) that a computer based on the principles of quantum mechanics might be capable of efficiently simulating quantum systems of interest to physicists; such simulation seems to be very difficult with classical computers. Feynman’s...

©2016 LearnIT (support@pdfchm.net) - Privacy Policy