« All is well | Main | My brother is getting 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