| If you're having trouble viewing this email, click here | | | | | This Week in Programming | This week's edition of the About Programming newsletter shows some love to Ruby developers, with a number of great articles showcasing version 2.2's incremental garbage collector, the double bang operator and much more. We also show you how to include external files in PHP, loop through an array in Perl and troubleshoot the 'Cannot Find Symbol' error in Java. | | | Ruby's New Garbage Collector | Ruby 2.2 was released on December 25, bringing with it the implementation of an incremental garbage collector. As a side effect symbols are now garbage collected, so unused ones no longer take up memory. To understand what this update is really all about you have to understand a bit about garbage collection, which is the process of deleting old, unused objects. | | | Using BCrypt in Ruby | With all of the password database leaks occurring over the past few years, password security is front and center. Security breaches happen. People get into the server that aren't supposed to be in the server. They may steal data and they may even release that data publicly. The only thing propping up your user's security at that point is your password hashing strength. | | | Spotlight on Ruby Gems: id3tag | MP3 files have been virtually ubiquitous since Napster cemented the term "mp3" in everyone's heads in the late 90's. I'm sure we all have a bunch of MP3 files laying around, and wouldn't it be nice to organize these a bit better? There are many programs to do this for you, but where's the fun in that? Let's do it ourselves with Ruby using the id3tag gem. | | | Ruby: The Double Bang Operator | The double bang operator is a trick to quickly convert any value into a boolean. It's technically not its own operator, but two unary bang (boolean negation) operators strung together. So how does the double bang operator work? The bang, or boolean negation operator, is a unary prefix operator that evaluates the truthiness of its operand and returns the opposite truthiness. | | | | | | 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 | | | | |
Không có nhận xét nào:
Đăng nhận xét