BROWSE: Most Recent | Popular Tags |

Tags > syntax

Why Ruby blocks exist, part II

By Jay McGavren
March 19, 2014

Last time, we showed how to use Ruby’s each method with blocks to process the elements of an array, and how it can save you a lot of repetitive looping code. That was just an introduction, though. In our previous examples, the block was …

Understanding C#: String.Intern makes strings interesting

By Andrew Stellman
August 22, 2010

One of the first things a new C# developer learns is how to work with strings. We teach the basics of strings early on in Head First C#, and it's the same way with practically every other C# book I own. So it shouldn't be surprising that novice and intermediate C# developers feel like they've got a pretty good handle on strings. But strings are more interesting than they appear. One of the more interesting aspects of strings in C# and .NET is String.Intern, and understanding it can help make you a better C# developer. In this post, I'll go through a quick String.Intern tutorial to show you how it works.

1 to 2 of 2
The Watering Hole