I am usually so well rewarded for asking questions here so what the hey. Might as well try again.
I have personal issues. For that reason, my coding habits are spotty
at best. I don't really abandon my projects. I just postpone them when I
am not feeling well. But one wouldn't be able to tell the difference. I postpone them for very long periods.
On top of my personal problems, the long periods of inactivity make
me very unfamiliar with my own code. Picking up where I left off is
hard. I have to read everything again and make heads and tails of the
whole thing and know where to look when the code throws an error.
It's so bad I sometimes decide to just start over, from scratch.
The awareness of the wasted effort hurts, but at least I will know
what I'm doing and where I'm going with the code.
It's all quite tiresome and discouraging. So I postpone. Again. Again
and again.
I like to associate this problem with an old idea of mine: functional programming. I'm sure I've seen that term before but probably with a different meaning. I mean writing blocks of code, likely procs (I know you lot are going to tell me to write classes) that can be fitted in most of my projects so well that I just need to copy-paste them and put the whole machine together almost like magic.
I already do a little bit of that. I find myself copying blocks of
code from one old project to a new one quite often (and my IDE has a very useful "snippets" feature), but there is always the problem of adjusting all the variable names and perhaps even proc arguments and parameters. But I often crave something richer than that. I fancy much better building blocks that will help me produce stuff with a lot less effort, on use and reuse.
Maybe I should pause all the projects (even more so) and spend some
time focused on writing such blocks? Is that a good idea? Should
that wheel be reinvented?
Elders of the Code Church, what is your wisdom?
I already do a little bit of that. I find myself copying blocks of
code from one old project to a new one quite often (and my IDE has a very useful "snippets" feature),
but there is always the problem of adjusting all the variable names
and perhaps even proc arguments and parameters.
But I often crave something richer than that. I fancy much better
building blocks that will help me produce stuff with a lot less
effort, on use and reuse.
Maybe I should pause all the projects (even more so) and spend some
time focused on writing such blocks?
Is that a good idea?
Should that wheel be reinvented?
Elders of the Code Church, what is your wisdom?
[1] Don't worry if you don't know what a 'hash function' is right now, >that's not terribly important for this discussion here, and you can
look it up on Wikipedia if you don't know but really want to know. **************************
On Sat, 25 Jan 2025 03:59:25 -0000 (UTC), Rich wrote:
[1] Don't worry if you don't know what a 'hash function' is right now, >>that's not terribly important for this discussion here, and you can**************************
look it up on Wikipedia if you don't know but really want to know.
Hey, I know what a hash function is. I use it all the time to check the integrity of ISO images.
That was 10 years ago. I wonder if the tcllib implementation has been optimized since then.
Thank you for all the advice.
- document the "clever tricks" in detail (eg bit fiddling, relying on**************************
hidden features, in TCL: variable traces)
On Mon, 27 Jan 2025 09:30:19 +0100, Ralf Fassel wrote:
- document the "clever tricks" in detail (eg bit fiddling, relying on**************************
hidden features, in TCL: variable traces)
What is bit fiddling?
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,028 |
Nodes: | 10 (0 / 10) |
Uptime: | 123:00:05 |
Calls: | 13,328 |
Files: | 186,574 |
D/L today: |
294 files (65,609K bytes) |
Messages: | 3,355,054 |