Weblog Of Nirandas | home

Developer From INDIA

Online vb.net to C# converter from telerik

clock October 4, 2009 04:17 by author Nirandas

Here is a online converter from telerik which can convert code between vb.net and c# and back to c# from vb.net. It does most of the tough work however it is not perfect. For example the following statement is perfectlly legal in vb.net
txt=num.ToString
When it is converted to C#, the result is invalid code
txt=num.ToString;

  1. Note that C# explicitly requires parentheses after method names even if the method doesn’t take any arguments. Surely the converter should have taken care of it.
  2. Another issue which I encountered while converting code from vb to c# is absents of optional arguments in c#. You would have to make adjustments if you use optional parameters a lot.
  3. Remember to explicitly add
    using System;
    and such commonly used namespaces. It look strange when classes in System namespace like Exception are not recognized.

Remember to verify that the converted code works as well as before — compiling is just not enough!

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Annoying the user: Please enter numbers only

clock August 27, 2008 11:24 by author

Everyone of us sometime or other had to restrict the user from entering non-numeric values in to a text field. We normally validate user input when user presses the submit button or when the user leave the input field and display the error message in a span or using alert() javascript function.

However what will happen if we validate user input as the user is typing in the field and also use a alert box to display error message instead of showing it in a span?

Please do not do this ever and annoy your dear visitors and make them ask "who developed this crap?".

In the recent past, I had to fill out a form where I was supposed to enter my phone number and they ware using this annoying technique. Now I mistyped my number and the validation script throws an alert(). I press "OK" by pressing space bar and to silence my screen reader, I pressed "ctrl". You can guess the result. The alert comes again!

So, we developers should never try to annoy our users using this kind of unnecessary tricks, instead we should make our user interfaces as smooth as possible to use for both normal users and users with special needs.

Never try to outsmart your visitors because situation will outsmart us! And never try to lock the user's keyboard because it's their keyboard and they are free to use it as they like.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


digg: Darn! The picture and your input did not match up.

clock July 21, 2008 10:49 by author

In these times when having an user account at any of the social bookmarking sites is a normal thing for
any internet savvy person, I also tried to join the party. at http://www.digg.com. Like any membership based site, digg also want that its users must be real persons. Usual, every website would want that. What is the method to insure that the registrant is indeed a human? Yes, you guessed right! "CAPTCHA"!.

More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Is Cuil really a competitor to Google?

clock July 7, 2008 16:17 by author

A new search engine cuil.com, was launched recently by a former employee of google. According to various articles on the web and cuil's home page, cuil's index contains 121,617,892,992 web pages, really a large database. But does that make it a better search engine? Better enough to beet google?

More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Who Am I?

I am Nirandas - a developer from INDIA

Sign in