banedon wrote:
Some very interesting responses - thanks guys. With regard to VI... I'm not a fan, but acknowledge that I don't know enough to say if it's completely rubbish or the best thing since sliced bread. At the moment I much prefer Nano (although it does sort of reminds me of Wordstar if anyone remembers that :)).
Heh. I remember Wordstar. I do my server configuration in nano if it's available, otherwise in vi. But I find vi to be awkward and largely unfamiliar, which suggests that I need to spend a month or two using it heavily. My main editor is emacs.
Quote:
The reason I aked the question is that I've been busy doing other things and have recently gone back to my 6502 compiler only to find myself somewhat confused about which version did what. I've made sure that the code is commented, but is getting large enough that it's not easy to see differences between versions.
This is what source control is for, and meaningful commit messages (something that is too-often skimped on, commit messages are documentation, they provide context for the actual changes being made over time).
Quote:
Also, the assembly source code for my 6502 build is looking like one massive confusing list of mnemonics so I need to find a way fo sectioing it off to make it easier to read/edit. I think maybe include files is the way to go on that.
Another possibility is a "code-folding" or "outlining" code editor. Make the bodies of functions invisible, but the headers not, until you need to see them. I mostly don't do this for code, but most of my prose life is lived in an outline editor (emacs org-mode, actually). This might be worth a shot. That said, I believe I mentioned my penchant for source files of a few hundred lines at most, right? Either include files or separate assembly/compilation and then a linker phase at the end.