Tuesday

About Programming: Ruby Fibers, VB.NET Threading, C++ Array Variables

If you can't see this email, click here

About


From Scott Orgera, your About Programming Editor
This week's edition explores a bevy of coding languages including C++, Java, JavaScript, HTML, Ruby, and Perl...

Writing HTML Frames for Audio Browsers
Just like with search engines, HTML frames play havoc with screen readers and audible browsers. This means that if you use frames, your page may not be readable at all by some of your customers. As HTML frames grow in popularity, they make the web more and more difficult to view by a segment of the population. And the sad thing is, this is not a difficult problem to solve. Creating accessible frames is easy. Many governments are stepping in to the web arena to specify the accessibility guidelines for web pages. And most of the time, these guidelines include the use of HTML frames.
Search Related Topics:  html frames  web accessibility 

Ruby Conditional Assignments: Leveraging the Shortcut Rule
Ruby has its roots in Perl (or at least one of its roots) and conditional assignments are one Perlism that Ruby brought along with it. A conditional assignment allows you to assign (or not assign) a value to a variable depending on the value currently held in the variable. Though these constructs can be replaced with simple conditional statements, they're still in wide use today.
Search Related Topics:  conditional statements  tips and tricks  perl

Signals
Signals are a primitive interprocess communication used in UNIX-like operating systems (mostly Linux and OS X in the Ruby world). They're used primarily to inform a program it's being shut down. There are things you can do to prevent the shutdown, however, and other uses for signals as well.
Search Related Topics:  interprocess communication  advanced ruby  signals

Ruby Fibers
Threading in Ruby has always been a bit of a nonstarter. Early on, there was the global interpreter lock, and even now concurrency is not really a thing in MRI (though it's truly concurrent on jRuby). However, there is another concurrency model: cooperating multitasking. It's not used much, but it can be an interesting way to segment your code. Cooperating multitasking is implemented in Ruby using Fibers.
Search Related Topics:  ruby features  threads  fibers


Related Searches
Featured Articles
Spreadsheets vs. Databases
An Introduction to Threading in VB.NET
How to Read and Write Files in Perl
Separating JScript and JavaScript
Using Java Naming Conventions
Using Array Variables in C++

 

More from About.com

Sign-up for Shareables!
An every-morning rundown of the day in history, headlines and trends produced by your pals at About.com. Please sign up it's free (of course), we think you will like it!



Want More From About.com
Check out our social page tailored to your interest!




 
Sign up for more free newsletters on your favorite topics
You are receiving this newsletter because you subscribed to the About.com Programming newsletter. If you wish to change your email address or 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.

About.com respects your privacy: Our Privacy Policy

Contact Information:
1500 Broadway, 6th Floor
New York, NY, 10036

© 2014 About.com
 

Advertisement