[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: tips to manage multiple do files?

From   "Rajesh Tharyan" <[email protected]>
To   <[email protected]>
Subject   st: RE: tips to manage multiple do files?
Date   Thu, 18 Sep 2008 17:06:30 +0100


Here is my take on (2). 

If you are going to use stata's do editor, then it can get real messy if you
put all the notes, comments and anything else into it. Alternative would be
to use some external text editor which can be integrated with stata.
You can find more information here

I use notepad++. When I started, I relied on the built in do editor.
However, as my do files became more complicated. I found it difficult.
(Whether that complication was a good thing or not I do not know!). My main
problem was 
When I had say three different ways of doing something in the middle of a do
file, my do files looked extremely complicated and I was loath to keep
several different do files. I found the block feature very useful for this.
Another was replacing something across multiple dofiles. Syntax highlighting
I found useful. But more than even a simple thing like being able to make a
font bold or italicised improved readability a lot. But, the built in editor
doesn't allow that. 

This issue has come up many times here, even in the shortime that I have
been here. The built in editor is certainly useful for doing small things
like testing code say from some post on the statalist or something like
Setting up the external editors may seem like a hassle but the good people
here have made several useful pages available and it shouldn't be too
difficult to get things set up.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Man Jia
Sent: 18 September 2008 16:10
To: [email protected]
Subject: st:tips to manage multiple do files?

Hi all,

I was wondering if anyone could share any tips of managing many do 
files for one research project. Thanks for your help!
(1) How to make it easy to find some specific work in several do files?

 Now I have to open most of them to see if the file has the part I'm 
looking for. The thing is, it is kind of hard to remember clearly  the 
content of each file after even two or three days not working with 
them. I tried to write outline in the beginning of each file, but I 
have to open each of them to get the outline.
(2) detailed comments in do files
 For me  it's useful to have detailed comments to explain what I'm 
doing in most parts in a do file. Those details include what the 
commands are doing, anything I should be careful with in future, 
sources I get the ideas, why the alternative ways are not good, summary 
of the results..... But a do file has limitation of number of lines in 
it. So, Writing a lot of comments means I have to create many do files. 

So, is there any good habit to deal with this? Is it better that in do 
files just add concise comments and take notes in other files?
Thanks for your time! I really appreciate it.
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index