Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » C# / .NET / Cod... » Ruby   (RSS)

Bar Charts on the console

I work on the UI action recorder and it has a strict performance requirement. The tool dumps the time it takes to record each action in it's log and that is compared against the maximum allowed value (otherwise the system will seem sluggish). To do this
Posted by abhinaba | 1 Comments
Filed under: ,

Support for range in programming languages

The .NET platform and the languages on top of it have limited or no support for range of values. Data ranges are one of the most common data-types and somehow it's not there. Funnily most programmers do not even seem to miss it (unless of course if you
Posted by abhinaba | 5 Comments
Filed under: ,

True object oriented language

Today I was spreading the goodness of Ruby and why I love it so much (and you can expect multiple posts on it). SmallTalk programmers can sneer at me, but hey I wasn't even born when SmallTalk came into being and hence I can be pardoned for pretending
Posted by abhinaba | 1 Comments
Filed under: ,

All programming languages evolve towards Lisp

In an internal DL people were debating what all should be included in the next version of C#. One of the things I suggested turned into an interesting thread. Abhinaba: Add if as expression (like in Ruby) so that I can do the following var ageGroup =
Posted by abhinaba | 5 Comments
Filed under: ,

Filling income tax

The Indian income tax law allows certain expenditure and investments to be tax-exempt. The law also demands various proofs if you want to claim exemptions for this. This include original medical bills, rent-receipts, investments proofs. The list goes

Binary banner

BoingBoing has a story of a store that sells t-shirts with offensive messages spelled out in binary. I think its a nice way to generate email signature or web-page banner where you can really say offensive stuff and get away with it. I wrote the following
Posted by abhinaba | 2 Comments
Filed under: ,

C# Anonymous methods, lambda expressions and Ruby

In my last post I had discussed about anonymous methods. I had used the following code snippet to show how anonymous methods can be used to print out a List<string> List < string > nameList = new List < string >(); nameList.Add( "Abhinaba"
Posted by abhinaba | 4 Comments
Filed under: ,

Ruby.NET

I had blogged earlier about Gardens Point Ruby.NET . After I read Don Box writing about it, I decided to give it a try. I tried compiling some Ruby code. I failed to get the retry code to run. It kept giving " Unable to cast object of type 'Ruby.Object'
Posted by abhinaba | 5 Comments
Filed under: ,

Dynamic languages on .NET

Dynamic languages prove themselves immensly powerful at places you least expect them to be. I found this out when I started coding in Ruby some time back and I completely fell in love with Ruby when I started working on the webserver project . For the
Posted by abhinaba | 4 Comments
Filed under: ,

C#: And I thought parallel assigment expressions were good

When I began using Ruby I loved most of the things I saw. I made couple ( 1 , 2 ) of posts on some of those features that I'd like to see in C#. When I started re-visiting code I wrote sometime back my views started to change considerably. One of these
Posted by abhinaba | 7 Comments
Filed under: ,

Ruby: Webserver in 70 lines of code

<Updated the sources to add logging and default file index.html handling. Now the code is about 90 lines :(> I decided to write a http-server in Ruby on Windows to see how much code it requires as I have been reading about how Ruby gets your work
Posted by abhinaba | 18 Comments
Filed under: ,

C#: How about borrowing some Ruby conditional expressions

After using Ruby for some time I have become quiet attached to its conditional statement syntax. In particular I like statement modifiers which allow you to tag conditional statements at the end of a normal statement. If C# supported this then in C# terms
Posted by abhinaba | 9 Comments
Filed under: ,

C#: try and retry

In many situation when something fails (exception is thrown) in the try block you want to retry that again. This could be a network timeout exception, or some other resource unavailability where you expect the same piece of try block code to succeed if
Posted by abhinaba | 16 Comments
Filed under: ,

Ruby: Adding line numbers to source code

Frequently I feel the need for putting line numbers in source files which I put up in my blogs so that I can refer to them in the discussion that follows. /* 1 */ using Output=System.Console; /* 2 */ /* 3 */ namespace AbhinabaNameSpace /* 4 */ { /* 5
Posted by abhinaba | 3 Comments
Filed under: ,
 
Page view tracker