On 2008-03-23 12:09 PM, Patrick Gilmour wrote:
So my question is, how do experienced coders keep their code organized? Do you use Clippings exclusively, Disk Browsers or some other method/software that you would recommend?
I am only beginning to approach this question msyelf, and have been playing with using a database (postgresql back end, Servoy front end) for categorizing, noting where code blocks are used, establishing dependencies, and so on. This is a work in progress.
I think I'll end up storing the actual chunks of code twice: once pasted as plain text into a varchar database field (for quick copy&paste and also so the code itself is searchable), and also as a BBEdit document stored in a blob so that it can be opened, viewed and edited in BBEdit and can be not only stored back to the database, but can be stored in multiple db records (again, as blobs) to facilitate versioning. i.e., Not only will the applications I create be versioned, not only the modules within those applications, but also the chunks of code within modules, in database format where notations such as "compatible only with PHP 4 and earlier" or "this change is necessary as of Servoy 3.5" or "debugged to solve improper query results..." can be made for future reference. A code library/change-log hybrid.
Further, I will be able to store not only the code chunks, not only a history of changes made to each code chunk (and reasons why), but also cross-link to what modules put those chunks to use. This way if I discover a need (such as some new syntax for a new version of a programming language, or compatibility with some plug-in, or whatever) to revise a piece of code, I can see at a glance where it has been put to use (and, hence, what modules of what applications need revision).
On the other hand, I'm also curious whether there is already a frameworks out there for this sort of thing. Eclipse, perhaps? But, AFAIK, Eclipse does not have a db back end, it uses XML ... so I wonder whether it becomes possible to store something like BBEdit files within the Eclipse IDE and whether it is possible to do anything such as search by keywords or by actual code to locate snippets and chunks.
Anyone? Existing frameworks? Could Eclipse together with some existing plug-in/extension save me from reinventing this wheel? (I'm only beginning to gain even a rudimentary understanding of what Eclipse is about & what the possibilities way beyond "for Java programmers" are)
good question, Pat, thanks, kazar -- Datatude, Ltd. -- http://www.datatude.net/ strategies & solutions "Tools of Choice" forums at http://network.datatude.net/ -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
