CodeProject · Ruby

Safe guarding from NoMethodError exception in Ruby

Dear Reader, We all know that Ruby is dynamic language where in calling a method on a type or perhaps object in ruby is not known or figured out until run time. So assume that if your writing your class and if some one else is accessing your class and tries to call some method… Continue reading Safe guarding from NoMethodError exception in Ruby

C# · CodeProject · Dotnet

SqlConnection.Dispose internals

Dear Reader, Today i was just looking at the IL of SqlConnection class, so i found few things which are interesting to me and hopefully to you as well. SqlConnection.Dispose() shall call Close() method internally, so if you’re using Using(){} block to open a connection, then you need not to Close it explicitly. SqlConnection.Dispose() method… Continue reading SqlConnection.Dispose internals

CodeProject · Ruby

Crazy Ctor Concept in Ruby Part 2

Dear Reader, This is an extension to my old post about ctor concept in Ruby where in i talked about how Ctor concept has been implemented in Ruby and it’s quite different from other languages at least in C# because i know that language well. Further to my findings on this by reading other books… Continue reading Crazy Ctor Concept in Ruby Part 2

C# · CodeProject · Dotnet

Delegates may reduce usage of conditional statements TIP (Beginner/Intermediate)

Dear Reader, Delegates are of a great gift to us in C#, and i really love working with all the time although i agree with you that using it extensively may harm as too much of any thing is poison 🙂 But may be you could still point out to me any example which uses… Continue reading Delegates may reduce usage of conditional statements TIP (Beginner/Intermediate)

C# · CodeProject · Dotnet

Aliasing some thing via Using in Csharp Internals TIP (Beginner)

Dear Reader, As again with my interviews questions i have been asking to few people here, where in they would not answer the tricky questions like this posts title. Again do not get surprised by the title words i.e some thing. You can not alias every thing in C#, only types such as Class, Struct,… Continue reading Aliasing some thing via Using in Csharp Internals TIP (Beginner)

C# · CodeProject · Dotnet

Internals of Params TIP (Beginner/Intermediate)

Dear Readers, A bit history: From past 2 days i have been taking few interviews (telecons mostly) for guys having 4-6 years experience in C# .NET. Though i would not claim myself that i am very much talented than them in assessing them. So on the same, for 4 guys i asked few questions on… Continue reading Internals of Params TIP (Beginner/Intermediate)