Tuesday

OptionParser, RAII, JavaScript DOM

Someone forward you this email? No Sweat!  Sign up here to get your own
Follow Us fb twit pin g+
This Week in Programming
This week's newsletter dives into a variety of advanced topics including RAII, Java Generics, redefining your own Ruby methods, working with the JTable model in Java, and much more.

Is there a particular topic that you'd like to see covered in a future version of the Programming Newsletter?  If so, please let me know at browsers@aboutguide.com or on Twitter @browserexpert.
Scott Orgera
Programming Editor
OptionParser: Parsing Command-Line Options in Ruby
Ruby comes equipped with a powerful and flexible tool to parse command-line options, OptionParser. Once you learn how to use this you'll never go back to looking through ARGV manually. OptionParser has a number of features that make it quite appealing to Ruby programmers. If you've ever parsed options by hand in Ruby or C, or with the getoptlong C function, you'll see how welcome some of these changes are.
READ NOW  
Share
What Version of PHP Am I Running?
Different versions of PHP may have different default settings, and in the case of newer versions might have new functions. If you can't get something to work, and think it might be because you have the wrong version of PHP, then there is a simple way to check.
READ NOW  
Share
Java Generics
Generics is a feature of the Java language that enables class and interface types to be part of the definition of classes, interfaces and methods. For example, when you define a method you can pass it parameter values of a certain type. The parameters can be different values that all belong to that type. Generics follow the same sort of thinking, except that what is being defined is the type itself.
READ NOW  
Share
Understanding RAII
RAII, which stands for Resource Acquisition Is Initialization, is a useful way of handling resources (memory, fonts, files, etc.) to ensure that they are released when no longer needed -- or when a process terminates due to an error. Resources are generally tied to objects. A file handling class will probably require a file handle to access a file for opening, reading or writing. Once the object is finished with the file, the resource must be released.
READ NOW  
Share
FEATURED ARTICLES
Advanced HTML
Java: Working With the JTable Model
Data Browsing and Navigation in Delphi DB Applications
An Introduction to the JavaScript DOM
How to Get the Size of a File in Perl
Ruby: Redefining Your Own Methods
Advertisement
About Technology
  |   Follow Us:
You are receiving this newsletter because you subscribed to the About Programming newsletter. If you wish to unsubscribe, please click here.

If you would like to unsubscribe from all newsletters sent from About.com, please send an email to optout@about.com with "Unsubscribe" as the subject line.
1500 Broadway, 6th Floor, New York, NY, 10036 © 2014 About.com - All rights reserved - Privacy Policy