Archive

Posts Tagged ‘Coding’

Improving Efficiency in Managing E-mail

July 5, 2011 Leave a comment

I would like to share a nifty trick that I learnt last year. As all of you must already be aware that there is a great pain in processing tons of e-mails when you are back on vacation. Well, I found this blog which make this task a bit easier.

Basically, this trick helps in organizing mails by moving e-mails in your folder by a keyboard shortcut (like Alt+N). You need to do following steps

First, create a macro in outlook and copy/paste the code from this site.

Then you need to replace
Set objFolder = objInbox.Folders("_Reviewed")
with
Set objFolder = objNS.Folders.Item("Personal Folders"). Folders.Item("NIIT").

This is assuming that Personal Folders is your offline pst name and NIIT is the folder where you want to move. You might also want to update the double quotes.

outlook1

Once you have modified the code, you can test it by running the macro and ensuring it is moving the message in a particular folder. You would need to repeat this routine for each folder you wish to automate.

Once you have the macro ready, you can create a Menu/Toolbar command for each folder. You need to underline one of the alphabet by prefixing &. This is the alphabet you would use along with the Alt key. For e.g. Alt+N to move it to NIIT folder.

outlook2

If the alphabet is already mapped to a different function then you might want to update it.

That’s it. You are ready. I hope this helps.

Advertisements

I Believe I Caused This…

February 20, 2010 1 comment

All of us have a faced a technical problem sometime or the other that we need to solve urgently. Let’s take this particular case…

I am working on a project and everything is going well. I have thoroughly unit tested the code… code review is done… QA is done… and the customer is positive about their progress in the acceptance testing. I am already thinking of the project that I am going to work on next! But suddenly in one of the customer tests, the system goes down!!

Our first instinct in such case is naturally to figure out what went wrong. We will look at interfaces, external systems, system capacity etc. and try to do everything to understand the problem & recreate the scenario.

Deep down we always hope that it is NOT our code that has caused the issue and try to find other reasons for the failure. We think since we have followed all the processes in making the code ready, it cannot be our fault and we hesitate to look at our code to find the issue.

I can empathize with the above scenario but do not agree with it. If there is an issue, then we need to always believe that it is caused by our code. If we believe that the issue is caused by us then it is much easier to find the cause of the issue. We will first look at our code to find mistakes & will be able to resolve the issue more quickly!

Tags: ,

Validation – How far would you go?

January 20, 2010 1 comment

I recently read a discussion on validation of user inputs. The example used was of validating the Date of Birth a.k.a DOB field. The programmer was adventurous and wanted to put validation such as

  • If DOB is more than 120 years ago, message: “You cannot be that old!!!”
  • If DOB is in the future, message: “You must be kidding, you are not born yet!!!”

His basic question was on how far would you go in validating a user input?

My view is to put minimum validation at the field level. For this example the developer can check whether it is valid date or not but that’s it!!

One can always put all the necessary validation at the form level. By doing this, most of the business logic is at one place & not divided across various fields.

formvalidation

Also, avoid showing ugly error messages while the user is typing. If the validation is to be done at the field level then provide hints / suggestions to the user by showing text next to his input.

policeman

We always want correct and valid data in our databases but at the same time we should not act like a policeman slapping the user for every mistake he/she makes.

So, in your next project, how far would you go in validating user inputs?

Coding Horror

November 29, 2009 Leave a comment

Before I post any further, I would like to give acknowledgement to the blog which inspired me to start this blog. The blog is Coding Horror. The author of this blog is Jeff Atwood and he is the blogging guru that I had mentioned in my first post. Also, my second post was inspired by one of his recent post.

I have been following his post for more than 3 years and it has been a very intreseting journey for me. Most of his posts are very thought provoking and are based on latest trends. If like me you are interested in technology then I would highly recommend you to subscribe to his blog.

Tags: ,

Hello World

November 20, 2009 2 comments

I think many of us have started our programming lessons with writing the first code as “Hello World”.  Since this is my first post on my first blog, I would like to start with saying “Hello World”. 🙂

int main()
{
  printf("Hello World");
  return 0;
}

As the title suggest, I would like this blog to be about coding & coding & coding & nothing else… ;-). As one of my blogging gurus had suggested that if you need to start blogging then the only thing you need to do, is to decide a blogging schedule… and stick to it!! So, I am committing to write 1 post about coding every week.

Tags: ,