« Amazing Image Resizing | Main | My brother’s married »

Always use lenth on ruby collections

This bug never got me, but it is a good little ruby best practice to follow. So remember when ever using ruby collections use .length call not the .size call...

Why use length on all ruby collections.

Comments (3)

dave:

i think your nerdiness is coming to a head. this sort of stuff doesn't belong on a real blog. it should be relegated to your business blog, or perhaps some dungeons and dragons website. go buffs!!

erin:

You know just what to say to make a woman blush:)Nerd:) I love you. Happy anniversary!

Dan:

Notice the Categories on the right side Dave, I merged my old CS blog and this one and now they are one and the same, but you just can ignore the whole group of computer science topics... Perhaps if it bothers people enough I won't even have them post to the front page...

Yeah I guess I didn't really make a 18 month post, but our emails were more fun...

Post a comment


Type the characters you see in the picture above.

Web 2.0 craziness

View Dan Mayer's profile on LinkedIn


I Power Seekler
I Power Seekler

www.flickr.com
This is a Flickr badge showing public photos and videos from mayer_dan. Make your own badge here.

Creative Commons License
This weblog is licensed under a Creative Commons License.