private string DecodeParameter(string query, string parameterName) {
            string valueUtf8 = HttpUtility.ParseQueryString(query, Encoding.UTF8)[parameterName];
            const char invalidUtf8Character = (char) 0xFFFD;
...

C# decode URL query part using...

by https://www.google.com/accounts/o8/id?id=AItOawlphNQfDefK1zN2sUv8LI7MP4oGfy-DeNI, November 15, 2010 19:43, 2 refactorings, tagged with idiomatic, clarity

Firefox encodes entire URL ...

55502f40dc8b7c769880b10874abc9d0 Talk
hash = {}
array.each { |key| hash[key] = func(key) }

Ruby How to make it more idiomatic?

by AlekSi, August 16, 2010 11:58, 6 refactorings, tagged with ruby, idiomatic, idioms

Can you make this code more...

Af19cd0c0141bf7d6b42516706eb1d1d Talk
def archive_files(source, glob_mask, destination)
	Dir.glob(File.join(source, glob_mask)) do |file| 
		should_copy_file = true
...

Ruby Ruby Idioms

by jamesthigpen.myopenid.com, March 12, 2009 19:53, 6 refactorings, tagged with ruby, idiomatic, idioms

This works, but I feel like...

34b01f5a98983c70e7f6163014b94477 Talk