← servoy magazine

[tip] Add todo's to your code

  • Tips

by Marcel Trapman
www.it2be.com

Today, talking to a fellow developer, I noticed that I was aware of something that migh be some sort of hidden feature to many of you.

Working in Eclipse, to develop my plugins, I am used to comment my todo's in code with:

//TODO whatever it is I need to do.

Long, long, long time ago I did the same in Servoy. Not on purpose but mixing stuff up (and believe me it was not only this). But, very much to my surprise, the color went not green but a nice deep red...

Why is that worth a tip you might say... Well, that question is quite easy to answer. It is a reminder, highlighted with a different color so you can't miss it when you evaluate your code and... You can search on it...

That was it, my 2cents of today!

Cheers,

Marcel