Hi,
I was trying to improve my habits in order to program more efficiently. I wanted to post some opinons, in the hope other might make some suggestions (the "stop programming!" one is not allowed ha, ha). NB: I say "lone wolf" not because I am one, but because I believe there is a stage in programming that you have to hack away at a problem on your own. So, it definitely does not refer to large projects, just small implementations of single algorithms which I do on my own. My concern: I want / need to get alot faster at it.
Anyhow, what works for some people, doesn't work for others. Clearly platform is important. I use gcc on linux. I'm also a traditionalist, and use vim. However, I'm not in a continuous state of bliss because of this: it's just what I'm used to. So here are some opinions:
- there is a fairly good vim module for c, but actually I hardly use its functionality. I just have a few of my own small vim abbreviations, set up in .vimrc and I use them only. The problem with having more than a few is that I forget them.
- I had a few bash scripts for generating templates, but ended up only using two ... the very simple ones: sets up the basic headers and the main block.
- I have quite a large directory of snippets and try to find one which suits the current task. I've had mixed success with this, though. It's common for me to look for the snippet, start modifying it and then abandon and just code straight from zero.
- I analyse alot of source code, I use ctags and cscope, but I have to say, the benefits of the end-result are debatable. Alot of effort, and you actually are not coding when you analyse, so it's not immersive. It's time spent away from the problem (paradoxically).
So, myself (different for others of course) I favour simplicity but also need alot of time, and that's not so good. So suggestions on how to improve habits are welcome.
Cheers!