Programmer's Logfile
This logfile is designed to be navigated using the keyboard and/or the NAV links.
Use TAB and shift+TAB and ENTER to navigate.
The intention of this log file is not to provide a formal changelog, or any other such nonsense which I haven't even the most peripheral understanding of. The purpose here is not really to set out any concrete tasks, or goals, or anything much at all. This is actually closer to being a private journal of thoughts regarding my programming efforts. Where I might suggest in some strong way that I am intending to build some specific thing, or implement something in some specific way... those things don't necessarily get done, and many efforts are abandoned without notice. That is an essential reality about me as a person, and gives a lot of insight into my very unconventional method.
With that all said, I am inviting you to delve into my inner thoughts and read for yourself the nonsense perceptions of a person often oblivious to obvious solutions. Or am I making considerations that are unstated? You decide.
The program code has become vast and disasterous. The smallest change, whether written wrong or some errant typing, blows the whole thing. The program is shot, and won't work. For anyone who has attempted any type of codework, you will know that a single character typed in the wrong location can render the entirety of the code defunct and inoperable. Depending on the frequency and thoroughness of testing following any changes, it can become incredibly difficult to find an error which has destroyed the entire program.
At the level which I am currently programming, these types of catastrophic events almost never go unnoticed for more than a few iterations. However, there is the odd thing, here and there, that slips through. I'm pretty solid at this point, my method has improved dramatically but, the codebase is still essentially in disrepair. That is owing to the fact that this is my earliest and first major project.
Welcome to the Table of Contents of my logfile.
I found the problem!
I always feel like such an idiot when I find my problem. I tried to re-build this thing twenty times, wondering each time: "Where is shadowTree?". The console never showed it. Then I finally got around to checking my script "chalk.sh". That's the one that builds the single file format, and the other ones...
echo -n "cat " > bundleMaker;
find h_hdub -type f -name '*.js' | sort | \
sed "/shadowTree/d" | sed "s/^/.\//g" | tr '\n' ' ' >> bundleMaker;
echo -n " > bundle.js; " >> bundleMaker;
chmod 755 bundleMaker;
. ./bundleMaker;
rm bundleMaker;
Yep... dumbest oversight ever. Monumentally historical. It seems that I have explicitly excluded the exact name of the directory which I was wishing to use.
To explain this, we would have to go back in time to approximately last December when I was using the shadowTree program as a file visualizer, before I got bored of it. I had it in the working directory and didn't want it in the finished file. To avoid conflicts in the code, I decided to explicitly exclude the directory by name.
Long story short: I chopped some vegetables and raked some leaves, good thing I got outside with this warm weather...
AAAAANNNNNnnnnnnddddd... I recant, and now intend to soldier on with the construction and testing of this program.
I made it work by pasting the code for the misaligned section into the console after load... It's possible that the problem was not, as I thought, that the code was too late. It maybe, rather, be that it was too early in the script order.
I'll try moving it down and then see if there is a green light for more shabby codework.
Hey, what am I doing if I don't give it a solid try to make it work somehow? I do tend to abandon things very easily... but, I really like the functionality I'm seeing. Even if the single file version is not functional just now, maybe I can use something called a "try-catch-block". I could just start peppering problem areas with that? Maybe...
I'm looking back at my directory names in my project history, and I see the one, the very point where this was no longer working... it is appended '-beforeruiningit'
I guess I will load that one back on the website, then at least there is a good last working version before I perform the teardown of the code. That program, modelled in that way has a very good hobbyist vibe, and I really like it. There are a few things that are working, and some that are not... but, it's an operating proof of concept. What I have accomplished so far this week, and the vast improvement in my general pace... it's telling me that it's time to make the big jump. Cut the code for the parts I like, and re-write things for a work-alike type of thing. The code is operational here on my end, although the single file version doesn't cut it.
I think maybe I'm going to choose a version that preceded the recent changes, a nice 'fat version' which has a lot of thing, options, etc etc. Somewhere before I started cutting everything out. At least where all of the key-bindings are still the old ones.
It's got all sorts of bells/whistles and fun stuff to tinker with, and let's face it: Bringing a serious group management system into the equation makes it many times more complicated to operate. So, somewhere along the line, one of the old versions will be prefered for the casual user. I really liked it before but, the reality is that I must advance to my own personal limit.
Wow, I thought I hit a rough snag... but then I was able to quickly isolate the issue. You never know what effects might be exposed when you remove things from visibility. This program is in such disrepair but, that's just how the experimental phase must be. Everything is written wrong, and that increases the 'debug' complexity ten-fold. Slowly but surely I'm moving the code towards a solid 'object-oriented' syntax and codebase. This transition will happen gradually, and attempting to move the code too soon could halt further experimentation. That's why it's a bit of a sticky spot. You don't want to deal with complexity but, you don't want to loose the 'fighting edge' where the experimentation is the 'hottest'. That's the very edge where you must do the checking-of-things, testing-of-things.
It's normal for this phase to be messy. If I were writing perfect code, it would be like reading from an already prepared instruction script. There would be far less benefit for me on my learning path. Most trades work is nothing like this. Following best practices is a standard in most places. For a codewriter, simply following what has already been written is perfectly fine, and extremely easy. Then what would you job actually be? You're just a passive observer, working part-time at a 'copy/paste' operation.
I think I finally worked out some of the weirdness on the keyboard, and the problems and logical deficiencies of the group operations, along with various extensions of that idea. What should happen after wrapping the group? Answer: The group selection should be maintained internally in the wrapped part.
So, maintaining information is mostly taken care of, even in the saved project file (the 's' key on the keyboard saves the project). It even now save what part was focused inside of that wrapper, and also the same will now be consistent across changing levels, etc, etc. I've gone through all of the various extensions, and aspired to maintain all inputs. That should be more convenient for navigation and all other purposes. It makes the program a lot more useful generally.
Next will be an attempt to extend the alphabetical group concept by making a keyboard shortcut to apply it to affect the visibility of parts which are members of that group. I have not attempted this before, other than in the original 'shadowTree' program. So, I know that after doing this I will need to then make the appropriate changes to the part focusing system. That way we won't change focus to a part that we cannot see. Instead, we will 'skip-over' that part, and then proceed to transfer focus to the next visible part.
I've shifted my work away from the menu constructions, which is mostly drawing the graphics (done). That is so boring... Now I am working on the HDUB program again, hopefully finishing out the last bits of integration for the group system. I need to maintain the loose-group membership within the wrapped parts. That's the next thing on my adgenda. I am also thinking just now that I haven't extended the group concept into the animations system yet. That would be very beneficial because you could isolate which parts are being considered for each 'animation state'. It would save a bit of data in the outfile, and also define the animations better.
What was the other thing I keep thinking of, and then forgetting about?... OHHH! the display state of each part! That's what it is... I knew that at some point there would appear to be a good way of managing that, and the alphabetical groups is definitely going to be part of it. Up until this point, there has been no facility for managing or even setting the display state. This property can have a value of none or block, and there may be others, but those are the most common. To explain briefly: This property determines whether we can see the part on the screen, or whether it becomes invisible.
This will definitely have a thousand uses. If there are too many things on the screen, the work can become very confusing to look at. So, reducing what is visible can help to focus your efforts on only the things that you need to see. The downside is that you can't see the things you have hidden. I assume that there are some users who will understand this, and some who will just find it confusing.
As you can imagine, building in this kind of thing might lead the program back into potential complexity, which could be hazardous and off-putting for the casual user. One of my major goals is to maintain a very easy to use 'surface-level' for program operation. I want everybody to be able to use it but, I don't want it to lack technical depth. I will therefore prefer to put this niche operation a little bit deeper on the keyboard, not on any basic keypress. Otherwise the key could be pressed accidentally and then things will linger invisibly within your document.
I will also need to make sure that our part focus system will not navigate to an invisible part: The screen would be blank, and that would not be useful. These little considerations all need to be made before I attempt to implement this.
Very glad that I have taken some extra time to consider the drawings for the menu before starting to code it in earnest. I have been careful to make sure that I have chosen a good organizational system for the splines, which will make up the menu. Splines are like line drawings, and they can be painted inside with a colour when drawn. When drawn counter clockwise, there is a negative effect. You might have noticed this if you have ever used that famous program 'font-forge'.
The more I worked on the little bit of code to write the menu, the more I realized that I was actually skimping quite a bit on the small graphical set needed to draw a good system of menus. I didn't want to have too many parts because that would give rise to complexity. I thought it better, in the end, to reduce the set to have only a couple of corner rounds, and only two side widths. I started with drawing more, and then suddenly realized the bad news... I wouldn't be able to actually draw this correctly if I wanted the checker pattern. I abandoned it, immediately deleting the offensive parts. The font is measuring 12 pixels high and 6 pixels wide. This size was not an accident. There isn't really too much choice at these small sizes. Even for font, when draws at such small pixel sizes, there are not many choices, and your font will just turn out looking about the same as every other one at that scale.
Do not be alarmed, and have no expectation that you will be copyrighting your artwork... it's identical to the efforts of very many others who have made the same one before you. The same with pixelated menus and 'char-borders'. These are not anything new, and no discoveries have been made, I assure you.
That's why it seems so silly to even bother drawing such small pixelated things but, there are lessons to be learned for someone who works the problems through on their own, even though they were already solved a million times before.
Which one goes with what... what do the little corners look like, what should represent what. There have been thousands and thousands of programmers who have made all of this same stuff, and that why I wonder at it when I find no graphical drawing program for HTML. It just seems like a bit of a bad joke: It's not like it's never been done before. I just always think that companies have their programmers write it up, and they use it in-house only. It never leaves the office.
Even what I have drawn could probably be reduced to a very few lines of code, just to get functional. What with how insanely easy it is, it just makes me wonder. Then just think how crucial it is. So many people are relying on it for so many things.
I think my efforts seem to be migrating mildly away from the goal of drawing websites/etc, and heading more towards facilitation of javascript codework. I've got a lot of ideas brewing. With the interface already taken care of, what other sorts of arrangements might help the codewriting effort? It's fairly obvious but, I won't be getting to any of that tonight.
I don't know why I am wasting my time preparing specific backfill for the menu items. You could use any character as a backfill and declare the colour. What I am thinking about now is to set up a default colour-scheme per menu. There will be multiple menus, and of course, they should be colour-coded. I just need to start thinking about what menus there should be, how will they be divided? What will the purpose of each menu be? And when will it be opened?
I have been thinking for a while to convert the 'spacebar' to being a main opener for the menu. You don't really need a quick button to see the 'live view' of the website anyway. One trouble with the 'live-view' generally is that if you click a link that you have inserted, in order to test it, there is a chance that you will navigate to another website, and maybe lose your work. For that reason, opening a test window is best, and that is available on 'shift+spacebar'.
Another thing that I have been thinking of, and I just can't get it off my mind: I would like to have a live code window... so that you could actually arrange separate chunks of code, the script could amalgamate them and then put the result to a new window where you could have a continuous update of the result on a page. You wouldn't need to change windows then anymore, and you wouldn't need to refresh the browser window either because we would just make HDUB keep reloading it when we make a change, or press any key on the keyboard.
The only concern we would have with that would be order of precedence, which is important in javascript sometimes. That would most likely be 'top-left to bottom-right' for the ordering. This is no trouble because I have already a function which would accomplish that. When I wrote it I left all of the options open (16 options maybe?) It was an abnormally high number of options because I wasn't certain whether they would become useful somehow.
This factors very strongly as a consideration for making HDUB into a coding environment, instead of just a pixel-art website building thingy. You could distribute your code however you like, and have it in front of you, and then HDUB could throw it all together in your defined order, outputting it to a test window with the live page. It would be even better if you could work on some code for objects that have been assembled already using the visual HTML environment which is already available.
Again I have found that going down an insanely complex route has been beneficial. Now I just need to tear it back to the simple solution, which is what I really need for the program menu. I'll most likely use the small pixel version, and small caps seems to have good readability and no 'descending' parts, for example the lowercase-letters 'y j g p q'. So the visual will be much better by using small-caps instead of lowercase.
Now, looking again at the programming which I have completed from the previous days work: It's basically already done, the only last bit of work will be to integrate the output from that into the HDUB program. I need to match the output to a menu object which I will use to get the visuals and make up the HTML. The job of this small program will be to draw images which will become the background of those HTML parts. They will need to have all of the important button components, one for 'base', 'focus', 'hover', and 'active' states. The program should return a completed HTML part, maybe even with the code ready to execute the desired function.
The job of the menu object will be to define the text displayed by the menu program, and then also to define the function to be called upon when the item is clicked. This will all be declared in the object, which will resemble a directory structure, each entry is similar to a file. When a portion of the menu is opened, we will hand the relevant menu object 'folder' to the program which displays the menu. When the user leaves the menu by clicking away or the mouse leaves, or we press escape... then the menu must close. If the user clicks to enter into a subdirectory, then the menu closes and opens again (quickly) the subdirectory.
The subdirectory will have a function to open the new menu location.
Does that make sense?
I started making another program, one that can write the menus. I will just manually type line by line, and then the program will return a menu object... something like that... I haven't written it yet, and that's because I started working on the font again.
It seemed fairly obvious that drawing the font is all about preparation. If I just do all of the characters in negative, the programming end of it becomes very simple. If I skimp, then the programming end might be difficult to accomplish. I want it to be easy to produce animations of the background of the letters, the border of each letter, and the interior of each letter. For the HDUB menu, I might not implement this. I'd rather go with a simpler version, and use HTML. Why make it harder? I can't think of any advantage using some other system... we are in the browser, let's use it.
So, now back to the font. I want to support the first 256 ASCII characters, which would then reach a wide range of people, who could then use the program in their own language. That's the goal: I have always had language compatibility as number one for consideration. If you can't have it already presented in your own language, you should at least have a form that can be translated in the browser.
... back to my the FORGE ...
I don't know why I didn't realize this yet, but I need to get my small font down to a size of 12 tall and 6 wide. That's because it's a multiple of three... otherwise it looks like my animations won't work out. It's either to go to 15 by 6 or try for 12. 12 tall by 6 wide seems like the better numbers. It looked stupid when I tried to make the letters taller... so I'm going to try for the smaller one... then I'll change whatever in my program is necessary, and see how it works before I can begin writing the object for the menu system.
It's only interesting for me when I haven't done it before, and to any programmer who has been trained, this is probably foolish seeming. It's fairly obvious how this should be done, and I know that whatever I try will certainly be incorrect according to the modern standard. Also, everything I attempt is commonplace, with facilities in place already for doing it with ease. I am oblivious to those facitlities, and so I proceed manually at my own discretion, and using whatever is apparent to me.
Starting up, I was just looking into the folder which had my new test program to draw some text on the screen using the spline fonts. Then I saw that last week I have began with a new keyboard object. Maybe this is a good point to continue with work this week, I could get that keyboard object organized exactly how I like before putting it in place.
I would like to fashion the object in the way that I would like to interact with it and not worry about any nuance of code. Just put it into an organizational structure that makes sense. Naturally, I would like it to be structured around what my own physical keyboard looks like, so, not alphabetical. QWERTY. Something more like that, and then assemble it into a good form for the code to accept it. My access point should be a good one though. I might even break each key off into its own folder or its own file. I'm not sure what would be the most convenient but, I could start with this single file and go from there.
I have put spaces to declare "do..., OH... here is the code:
{"do":()=>{},"nom":"h","tip":"move left"},
{"do":()=>{},"nom":"i","tip":"invert group selection"},
{"do":()=>{},"nom":"j","tip":"move down"},
{"do":()=>{},"nom":"k","tip":"move up"},
{"do":()=>{},"nom":"l","tip":"move right"},
I forgot that I made this thing parse the markdown. What is the point if I don't use it from time to time?
This week has seen some incredible, and significant improvements on this project. We now have a group management system in place, full integration is close. We have a shiny new 'go' object, ready to clean this program code up. And now, as the latest addition: Spline font drawing (mostly purposed towards future menus) and a graphical text editor in the works. I can't imagine how I could possibly have gotten that much done in such a short time. I was away from the keyboard doing a personal project for the summer months, and then I started right back up on the code, and I'm still feeling like I have a million new ideas. Even so, I need to keep myself grounded in reality and work on the best candidates which, God-willing, can enhance and complete the HDUB program.
From how it's looking at the moment, this program might be about more than just HTML. It was a pipe-dream, and now it's a distant memory. It's become insanely easy now and we have an interface construction mechanism like I have never seen. Once you cross that hurdle: It's off to the races. Designing the visual and physical aspects of a new program is easy and trivial, so more time can be spent on contemplation of general design and value. No more wallowing at the bottom end of this process.
Next, brind the menus into the program with some code, and make some pop-up context menus for both mouse and keyboard. Oh! Did I mention that those famous fonts support 255 characters, covering most european languages? It makes a difference, and it broadens the potential reach of the program. I just need to translate it... which I already have set up for with Libre Translate...
Onboarding of the languages... that's an outlook
I'm just working away at a different little program now... I have drawn text on the screen using the splines which I have parse into a JSON format from the spline font database provided by the font-forge program. It's all there in a plain format, and parsing it was simple.
Now I am seeing a potential editor shaping up. I could take full control over the line of characters being input by the user and then make all sorts of useful things from it. I know there is a facility for doing this, and it's already available in javascript... The thing is, I don't know how to use that. It must be an API or some such. I have tried it a long time ago, and I was able to make it do some things but, it all seemed very cryptic.
I feel like there could be a significant benefit for me by doing this myself using just the standard vanilla javascript. I have gotten it down to the point where I was able to debug my 'early editor' visually. It's now working wonderfully. I can enter text and backspace over it again. I have the space key, the backspace, the enter key, and all of the letters numbers and symbols. Those are the easiest. Now I'm trying for the tab key.
It's very misleading, if you were to look at what I have so far, because it looks like text, and to the eye it is textual. What you cannot see is that I have actually used the HTML canvas API to draw the lettering so, it is not font in the ordinary sense. This method could give a better level of control over the visual appearance of the editor. The lettering could even be painted in reverse, allowing a background behind to show through the letters, enabling all sorts of special effects for the font.
Someone told me once how to parse a spline font database, and how it was actually very easy to do. They were right, and I'm pretty happy about it. I am now tasking myself with drawing some things directly to the screen using the canvas API in the browser. It seems like I will need to do it sooner or later. This seems to take some time for my machine to process it... I'm not sure why that is the case. In the browser in javascript this might have happened very quickly but, that is a very good text processor.
Maybe it is slow because I am asking it to do a million 'sed' operations consecutively. Hmmm...
Monospace
I will be using the larger pixel font, and maybe also the smaller one, both in their monospace forms. I thought that it would be easier for me to manage the code with a complete lack of any math... There would be no need to manage multiple widths of font while drawing to the screen. I could be wrong but, I think it's simpler to manage.
Maybe I should just re-write the script in javascript... faster? easier? make it save the script immediately? just display the result as text?
I keep putting it off but, I really should travel to the library to attempt again to get the website back up on the domain dckim.com
I have made some improvements which are far beyond what was there at my last update. So, today I will make the effort to update and hopefully connect the website again through cloudfare. I might be able to do a single file upload. That should simplify it and make the process shorter. Github still seems to allow my updates through git using the laptop computer, so I'll try that too.
Further, I could update the neocities one... the manual which is there isn't valid anymore... so maybe I should just abandon that as a contiguous thing? The manual is for the version that is available there... Yes, I will leave it. Maybe I could just upload the single file to a specific name there. Hmmmmm...
Maybe I got it this time around...
trying again?
testing my logs...
I'm going to try to get this log embedded into the program, that way it's independent of any hosting once someone downloads the program... I don't like anything to be externally accessed. It's better to just have it all in there. That way, if you have that one file, you will have everything that it contains. You won't be left wanting anything.
Today I've got to try to do a quick fix to get some reasonable font/text sizes declared in the outfile... it needs to basically be the same as what you are seeing in the program while you work. I don't know why it's taken so long, and I haven't yet bothered with this. A CSS cleanup and review might be a good move. If you can't reliably write text into the thing, it's just not good like that.
I might just do something cheap in the short term but, the reality is that I have to make an effort to pull all of the stylesheet things together into one place... right now they are a scattered mess. This is the result of making things in a very experimental and haphazad way. I've just done it all 'in-line', directly within the HTML tags.
The closer I get to the final 'clean-up', the easier it should be. If there is a swath of code which I can eliminate, then all the rest of what is less should be much easier to deal with.
Just now, I am thinking that "If I knew exactly how to parse HTML I could do this from the prompt with sed". I might give that a try. It's not impossible, though it might make more of a mess and I might cause random errors if I haven't done it with sufficient care.
I'll need to clean up the 'in-line' styles and classes at some point.
It's been a long day working, and I've grown quite tired... Zzzzz... There has been significant progress made, and I am glad to have made the extra effort to get through what appeared to be a trial of sorts. However, there were no major hang-ups while integrating the group management component. There is still some work remaining to finish out the functionality upgrade at the keyboard. This is the sort of upgrade that has an effect across the entire program, and I haven't even begun to work on the 'program state change' stuff, which is for small animations. This change should be a dramatic benefit to that portion of the code which is underdeveloped. This is intentionally so, owing to the distracting nature of that work. You could become mezmerized by the blinking lights and images for hours, sucked into a void, so to speak.
The whole time while learning to code, I have been very cautious not to take up any tasks which are 'too graphical', or 'too cinematic'. I am well aware that I am capable of drawings and animations, and I also know how time consuming it can become, even for someone undertaking to do it casually. It actually has a very powerful effect on you psychologically. Fancy images make a person feel happy, and animation which is blinking or joyful, or whatever, is far too exciting to look at it all the time. Those things should be avoided for practical purposes. It's a total waste of time, and I am aware of that.
So, I have left those things until last, and might not do too much for that... or I might go 'all the way' and cover all of the minutia of what could be slathered with graphics, and then work the code to do it with ease? Not sure which way I'm leaning yet.
Major progress has been made, and the groups manager is a perfect fit for the program. It nestled right in there, and there couldn't be anything better than that. Where does it fit on the keyboard? Q,W,R,T,Y,U: that's the new place. The uppercase will do an 'all/none' operation per group, adding or removing it from the selection. The lower-case will put the selected part(s) into the chosen group.
This is significant because you have a very quick route to full control over selections. The selections can be used to copy code components or make other decisions or inputs. The groupings and selections system can then be integrated carefully across all functions of the program. There are even some functions that were not feasible without group management in place.
I think I'll switch the upper-case and lower-case for those groups...
I'm looking now and seeing how to scrutinize about the last few things here... I know this program is choppy here and there but, it's coming together fairly well in light of the groups. The graft was a success: Good thing that I cleared out room on the keys in advance of this. That made the integration very smooth. I reduced the number of groups to 6 because I didn't want to loose the key-bindings certain keys which needed them much more.
Now that this functionality is available, there is a lot of open territory. Group selections should be lightning fast on the keyboard as the 'invert' (i) and 'all/none' (a) have been preserved. What I would like to see is an editor part being added with the group as a reciever of code, severally and through one entry point. That means the keyword 'this' will be referring to the part that is recieving the code, each for itself. I think I would like that. Then code can be comfortably situated as an afterthought in the process. Positioning, and styling could be done first. So, it leaves a lot open in the process for variation and haphazardness, to which I am prone.
I need to be able to any which thing, at any such time, and it needs to be just as fast, and with no inhibitors. Yes, no surprise obstacle courses for someone who ignored the rules. I need there to essentially be no rules, and no set method. Something of a laizez-faire would suit me best, I just want the coding and production experience to be casual.
Now for the actual graft, and then to write the function to 'shake the tree' of HDUB, and gather the part names that our new addition will require. After that, maybe some work on whatever our program does with the part names. What are we using those groups for anyhow? Good question...
So, I have made it to the finish line on my previous goal... the shadowTree program, or what is left of it, is bundled up, and extending from a single object 'go.shadowTree'. This is good, it will isolate the code from the program that will recieve this graft. I therefore will not be expecting naming conflicts or any troubles. I have also done likewise with the CSS Classes. There is one more thing that I will need to write for this program to come together, and that is the new program function that will unite these things. I will need a function that will gather the correct information about the parts list in HDUB, and then channel that information into this new group organizer system.
There is maybe a little more to it than just that... I'll do a bit more testing to make sure it's ready for a trial.
I'm looking at this shadowTree code, in the version I have reduced it to, and it's approx 800 lines of code. Then I was looking and said: "It maybe is small enough to fix up the whole thing manually, I don't even need SED".
The Bash tools won't really help here because it's already sort of small. For comparison, HDUB has more than 1000 files (somehow). This one is only 800+ lines. I can view 50+ lines of code per screen, so we are looking at 16 screens. Or even less if you cancel the top with the styles, which was more than 100.
14 Screens to wrap this thing up in its own objected stemming from a main object called 'go'.
Searching back through the versions of shadowTree as I progressed through the construction of the program: I think there might be a version that is closer to what I can use. Maybe then I can just throw this together more quickly. I'm looking at the latest one in the list, and there is a lot to remove to make it suitable but, luckily my construction process was sensible, and I didn't build the most specific things until last.
I am now looking, and seeing that I would like to remove most of the program... everything except for the part that handles the list and the movements. Hopefully this earlier version I am looking at has already been cleaned-up.
It looks like I already had the parts that I want to use... what? day three of working on it? What was I working at for the rest of the venture? The styling?... it seems that I already had the keyboard working, and the visuals up on day one even. It's not much to write... just as long as I have cleaned up all of the HTML traversals.
I love this program... this is a great one. It's just so simple, there are still a few little things for me to fix but, the keyboard works great and the whole concept is so simple. It doesn't do very much, almost nothing. All you can do is view the files and assign a colour to make lists from them. The files don't get rearranged, they are all just in the give order.
For 'loose grouping', where you aren't really taking any action beyond assigning a group for something, this is really nice. It doesn't alter anything from the files: We're in the browser and can't. So, there is a safety aspect in place. Mash the keys: Doesn't matter. There are no changes made there.
In the case of HDUB, this will be a little different: I would like to repurpose the windows to make them into inputs to the data for parts. In particular, the JSON and the coding. If I could just repurpose the whole thing as a really cool editor, then mission accomplished.
You've probably noticed that I'm not dealing with access to all HTML styles, there are thousands, or all of anything else. The lists are too long and confusing for me. When I look in the console in the browser and it fills in the blanks or give the dropdown list: Being a mile long does not seem helpful to me, it's overwhelming, and frustrating. It's not actually helpful when it hasn't been usefully narrowed down. Context dependent, it's another farce. What I really needed was a 'cut it all off', don't have it and don't waste your time even knowing about it. It's like saying: After you go to school for four years, you will know how to operate this tiny part of HTML.
The proposition is not good in my view. Cutting it all off is best, and then looking for a small set of functioning tools or options. A minimal functional set. It's the same with all trades-work.
I'm feeling to start looking at the shadowTree program. My mission is to find a way to change it over for use with HDUB. I don't want to do too much because most of what's there isn't too bad. It's basically my favourite program, and it's much cleaner than HDUB. I worked on it for about ten days or so last december. That's what my records seem to show.
I recall working on it in the forwards direction, using a method of traversals in the HTML document object model: Meaning 'nextElementSibling' etc. I then worked back across all of that at the end of my process and eliminated that so the whole of the code was in javascript, not making unneccessary traversals, which I have heard are expensive.
So, that code is in pretty good shape, it's minimal, in the order of 70 files. I have, just this morning, found a folder with a working version. Now I am intending to have a look at it, and check what will need to be changed to adapt this to the new situation. Instead of files in directories, the chief input will be greatly simplified: Group and idName. Visually this should be a benefit: we could have larger text.
I'm starting to break my micro editors out from the silly tab-menu... and now I'm looking at what else I can nestle into this nice shiny new object which I am making... it will be so much easier to access things this way. Little by little, I really think that I can shape this program up into something much better. It's so much more convenient to work on the specialized parts from within the program, even so as I am using the textarea as an editor. It is sufficient, and I actually like it. I feel like I'm back on the windows machine using notepad... yes, regular notepad with its single undo. I used that for so very long. When I wanted something heavier I would use Vi. The single undo didn't seem like a problem for me because most of what I was writing was trash anyhow. If I lost it through some errant keypress, it might have been for the best at some points. All the more effort you would need to expend, which is the true purpose of exercise.
No matter how stupid it seems to do something that is deliberately more difficult, we should look at the end result. When faced later with mundane, every-day codework, it will seem extremely easy, so that you will be able to perceive its triviality. The ordinary tasks will seem like nothing...
Now on to make a spot for something that will pull the outer styles of the currently selected part... that would be really good... maybe I should work more at this object and make it do all of the things that I am in need of. That might help. Then at least I would be able to look at all of my available functions in one place. It seems like it's time for this.
This logfile sure takes it's time now that I have it parsing the markdown... it was much faster before. So now I need to remember not to close the window... just let it finish.
I started working on one thing, and then, as per usual, started working on something completely different but related in a peripheral sense: I made a micro editor within the program context. This is something that I have done for my own convenience. I don't want to have to switch back and forth in the windows on the computer, and I don't want to have to refresh the whole program over and over just to do some simple HTML test while I produce some parts for the new 'addNew' system. So, I added an 'innerHTML(microEdit)' option on the system. That really helps because I can see the changes in real-time without refreshing anything. What a total waste before. I'm sure everyone has seen these viewers before, it's nothing new. You type the code and it comes up rendered in HTML on spot next to there. It's already all happening in the browser in my case, so this is not trouble at all.
So, now back to the job of making a side-by-side viewer as you type markdown, then it can render the HTML in real-time. Again, nothing new.
Based on what I am working on just now: Making an easy way to put in a new text object; It seems like I am moving towards changing the whole program over to stem from a single object. I have heard about this once, it's called object-oriented or some such. It's funny how the process, if followed through completely, simply requires that anyhow. So, it's not me, I haven't suddenly discovered anything. You just keep following the process and it's tending toward that. I thought that this would be more deliberate on my part but, it actually seems like maybe I can work at this gradually, and then leave some cleanup for last. Right? I hope so.
I've been operating in a mess, and that's more difficult... I'm okay with that. Once simplified, it will all seem quite stupid, my code reduced to a very few correct lines. I'm aware of this but, I also know that writing correct code leaves no room for experimentation. That is where writing code wrong might be better for a learner. Then there is a chance to develop an experimental method.
So, no matter how silly this sounds, by deliberately not learning what is correct, I have been able to develop an experimental method of my own. Almost anything in terms of code is already known. It's not unsolved, it's not new. It's basically a closed system, there is no open end. It's been studied for years, the theorists have it all settled. So, I don't feel like this route is a poor choice. I have been advised to go exactly this way, and I am following that through. I don't want to learn from others, and I don't want to go too far into language specific syntax. So, I'm sticking to just the basics:
- a for loop
- a condition
- some type of variables
That might seem slim but, all programming languages are based on that. It's just a whole bunch of stacked loops that give the illusion of extra things. That's convenient but, also wildly different from language to language. I'm looking to mostly just learn the part that is the same in all languages.
Does that makes sense?
how about now?
does my code colour work?
... aaannnnnddd the style sheet
Can't forget the inline code blocks! They look like this: This is inline code!
Annnndddd.... then I'll leave this issue.
My solution?
I just have to use _ I can't use *. Maybe that is why there are both? Because then I don't have to figure this out? Maybe the markdown people already figured this out for me an accomodated it? Well done all around... now on to a different issue entirely, let's work on the HDUB program again.
Seems to be something wrong here
Parsing Markdown
I guess it works now, so I'm finishing it out at that. The downside is that it takes a little bit longer to process because it moves through every file in my entries individually. That's because I'm not just parsing the markdown. The other thing that I had already written was constructing the table of contents and then making all of those nice back-and-forth style navigational links, as well as the ones for previous an next. It doesn't link to a next-page. It just goes to the next entry, which allows you to freely scroll on the page. The page, presently, contains all of the entries. A next step might be to re-write the script so that the result will be showing the last five or ten entries, and putting the older entries in their own files.
I'm not sure if that's really necessary, I don't have that many entries right now. Once it gets over a certain threshold, I will need to re-consider it, and maybe make a change then. I like waiting until it's absolutely necessary and then saying: "Oh darn! I need to do it now!"
The really good thing about this change to parsing markdown is that I can now practice writing in markdown, which I should be doing anyhow. This way all of my written work can be in a single format.
Maybe I will tinker with something else in the program instead of continuously working on the markdown conversions. I should check whether I have covered all of the styling in my logfile CSS. It should at least cover everything that the markdown conversion covers. I need to specify fonts for codeblocks. I'm sure I don't have that, and neither has the HDUB program. So they can both get it at the same time. There are some deficiencies there in the basic style file too, which needs to be matched in the outfiles.
I'm thinking of making the anchor1.tmp anchor2.tmp anchor3.tmp anchor4.tmp estylesheets entries.tmp fflate.js fontScript.sh gcustomcursors hdubPixelArtEdition.html headinghref.tmp headingid.tmp headingtext.tmp index.html linkTag1.tmp linkTag2.tmp logfile.html nart nexthref.tmp nextid.tmp nexttext.tmp notfound.html ologConstruct pdckimFonts previoushref.tmp previousid.tmp previoustext.tmp storageKeys.txt tempScript.sh workingVersion.html yheader.txt ztest key put a new textarea part into the program. That way you can write textual stuff immediately. So, it should place the part and then put you directly into the correct mode, ready for typing.
Markdown is really a great thing because even people who don't know about it will be using it. It's such a minimal language that you really don't even know it's there. So, it's a good low effort change for the program. That way, anything you type gets turned into HTML, and I know: "What about HTML content-editable?"
It turns out content-editable isn't so great for direct use. It actually messes up and bungles the HTML very badly if used alone. I'm not sure how you can have both... can I convert that mess back to markdown somehow? I'm not clear on it, and I have seen what it does... still unclear. I'm not sure why it does what it does, and I can't tell what rules it follows. It still seems erratic to me.
Let's try a code block to see if it parses nicely
But mostly let's look at the font, and then
Specify one of my pixel fonts for this purpose
Check the inline code.
Check the blockquotes
- check the roman numeral list
- second item
- third
Now trying out for a list
- This is part one
- This is part two
What about roman numerals?
- a list
- b list
Then what were the other things? I guess I just assume they worked?
klfjdslkfjds
and once more?
It's still tricky now, because I need to lump this together with what I have already written.
how about now?
One more time?
Does it work?
I guess see if this works at all, or maybe I have broken it.
I started working this morning on the indentation levels for the thing to convert markdown from the shell. Now I'm abandoning it, because nobody is really going to ever use this, it's just me. I have the one that already is standard on the prompt. I'll still use my own, but it has one level for the lists, it doesn't nest.
I don't think that's a problem for me, and I would rather work on the same code again for the HDUB program because it's more useful there... So, I think that all I need to do is check the indentation level, and then it should be clear how to get the nesting happening. Is it more? Is it less? Are we in a list?
That should pretty much do it. So, I'm going to just finish out the thing here so that my logfile can be converted using my own script, despite the deficiencies.
Aside from that, there are approximately 1000 jobs left for me on this HDUB program code. I'll see if I can get it down to 100, then try to focus on the top 10.
On second thought, you can, and should deal with the list stuff in the style file. It would be more consistent anyhow wouldn't it? you can make a rule to say that roman numerals are the second order lists... so it actually is covered by that... I have no need of tables, and so, this has been great, and now for a second look at the... ohhhh why do I keep turning around on this. I'll finish it.
I stand corrected: It has nested lists... still though, no tables, no respect for the list sequencing choice.
I found the command to convert markdown to html... markdown-it
strangely it doesn't convert tables though, maybe I am writing the table wrong though, I will need to check that out. The only other thing, which I know isn't common: It doesn't maintain roman numerals when converting a list. So, every list will just be always the default, decimal.
That's basically like throwing my roman numerals in the garbage. Uhh! It probably already parses the lists so that it can be nested. I am finding that my syntax for the headings has been wrong the whole time: I neede "# ", where I have been using "#" alone. (at the beginning of the lines)
I'm so close to having it finished that I may as well just complete it, and then I can have my roman numeral lists exactly how I want. There must be some way to make that thing do it; styling would just change them all to the same system, while I want to mix and match.
It also doesn't seem to have made anything of the tables, which I have absolutely no use for. There is not much on the syntax for tables anyhow... maybe they are used by someone somewhere? I don't think I would ever use them, you are just as well with a graphic at that point.
If I complete it, then I have my own thing on the command line, code that I understand. This other one is written in python, and I don't even feel like reading it. There seems to be another one there as well... maybe I should check if that is a conversion too.
Now I'm not sure, the other one seems even more sparse on the conversion... better just write my own to finish this out. Nope... it just doesn't parse the tables. That is disappointing. I would expect the tables.
It also doesn't nest the lists... not even one level? come on...
That settles it, I will proceed.
Good news, I have nearly completed the markdown conversion from the prompt for the purpose of enhancing this logfile. Of course, there is probably a utility already on my system which would accomplish this task in a single brief line but, I don't know what that utility is called. For the purpose of exercise, I believe this has been a valuable thing. I have yet to accomodate nested lists, and it is unlikely that I will test my resulting script thoroughly but, I feel that I have gained some valuable experience in writing a short shell program. I even used a function and variables.
I must also say that I have found this much easier than writing the same thing in javascript. Reading the file line-by-line is actually far better for processing it in this way. Most likely I will return to review the code for the program in javascript. Nested lists seemed too difficult while I was at my first attempt. However, if I were to change my style and attempt the same thing again, processing the file line-by-line, if possible, then maybe it will be found easier that way.
I feel strongly that nested lists should be included, and are probably expected by any serious markdown writer. It is a method of expression that should not be reduced or eliminated simply because I don't know how to do it yet. I will just have to try one more time.
All in all, I feel that this has been a very successful week of coding. As I have worked through the program, moving across all of it, I feel like I am whittling away at the overgrowth, or pruning it back. At the same time, I am completing any little things that I find. That's what this program really needed, a sober second thought and an overview, even if coarse.
With the program being reduced, my efficiency in working with the code will most likely improve. There will be less code to search through, and fewer things for me to remember. That's what I really need right now: Focus.
There are so many things that I would still like to attempt but, the program is at a good stage, so I must venture once more to the library, and try to make sure that it remains publicly accessible.
I am really looking forward to chopping up the shadowTree program, shaving it down to what will be adaptable to the HDUB program. I would really like to have that as a parts/groups manager for the program. It would be very very effective. It would save a lot of time and help the workflow significantly. Suddenly 1000 parts will feel no different than 10. Without group management, we have too many loose parts, and a single massive list. That's why computer filing systems are presented as folders. It's to aid us in our comprehension. The computer doesn't care about it very much, it just sees 1s an 0s.
Maybe a brief look at what I have accomplished over the past week, soon the sun will go down...
I have a confession to make... I have done all of my programming at the prompt without learning to use the conditional operator. I have so far never bothered to learn or use the "if" statement. To say the least, it's amazing what you can do without it. I guess I'm not sure what an "if" statement does that isn't already accomplished with a simple "for-loop".
I'm pretty sure that the foundation of programming, and almost all computing, is the loop. The loop normally has a built-in condition, most often to count up in increments of 1. Or maybe sometimes backwards, which is essentially the same thing.
Just thinking about it now, and how foolish I have been, there was still somehow nothing much standing in the way of my programming without "if".
Full-disclosure: I almost never bother even using variables. If I were to spend more time in BASH then I expect that I would change my method quickly. I guess all you really need is the loop, right? Everything else is a convenience, which is a composition of many loops.
There should be no surprise that you could, stupidly, as I have, completely ignore many things, and just use whichever loop you already know about. All of those extra things are sometimes adding complexity, especially when you aren't quite certain what you want to do anyway.
In other news, I am trying out a different terminal emulator, and I am enjoying the font that is on this one. It's the kind that makes the punctuation look brighter than the regualr characters. That helps with visibiliy on the screen. Who needs syntax highlighting when you have a good terminal font? Also, maybe use a dramatically worse screen, it might be better for your eyes. The sharp, high definition screen can actuall reduce the definition.
When I first started working at computers, to improve my typing and learn to code at the same time, I was using the worst screen... I had the better one somewhere covered with dust but, I just started using the terminal on the bad old screen, screwed to a board or something. That screen was actually very nice to use. It was easy on the eyes, and the resolution was sufficient for working at the terminal to learn the ropes in Vi. The whole time, I was dreading to change to the sharp monitor, which I have now been using out of necessity. I tried using two monitors at one point in time, and it just doesn't seem to be any advantage. You have to keep turning left and right or whatever... it's no good.
The keyboard would never be pointed in the right direction with two monitors, and there is no facility in physically straining youself. A wise man once told me about desk setups, and gave the entire scenario explicitly, pointing me to success. All important books/references must be a very short reach. You need to be able to have multiple books open simultaneously when necessary.
I forgot why I started writing into the log... IF I could only remember.
Yep, I have hit rock bottom... absolute bedrock. I've imported the spline data from my pixel fonts, and am now intending to draw all sorts of things for the program, such as borders and backgrounds. You can just use those font splines to stamp the characters repeatedly in a row, or in a grid, then overlap them somehow randomly if possible to give interesting effects. There are currently two fonts which I am sure do not align. They are both monospaced.
I only haven't considered a good input mechanism to that... could you select the characters themselves? How would we utilize the ones that are not on the standard keyboard? I wouldn't want to actually select them, something a little bit more random, or less intentional would suffice. Essentially, I would want access to all combinations without needing a fine selection. On the other hand, I would like to have a real character input, at least somehow. Then I will know what combination I use to make a background or a border. I have also considered whether it is necessary to include in the splines any special pixel fills: It is unclear to me.
Is it easier for me to program it if I have already drawn a special pixel fill at the full monospace width? That might be the reason.
If only I had worked on getting a way to make my logfile stem from markdown, just like the program. Only I think it's mildly more difficult. That's mostly because my knowledge of shell scripting is lacking. So, it might be worth the extra effort, maybe crack a book open, and get this thing finished here. That way I could use code snippets and all sorts of things throughout my musings. Maybe if I just get a side-by-side view going with the javascript that I already completed.
Maybe it's easier than I think it is. Okay, giving it a go...
So, I'm changing the system, because I am dissatisfied with it. I need the f key to FILL from the hdub side menu. Right now, it will pull from a parts list which the user may not have added anything to yet. It was like a buffer but, I want to change that because there are plenty of buffers, and lots of space for parts. There is no need for that on the system, so, I'll change it to the pre-loaded [A-Z] system designed for speed. There is already a good input for your custom code. That way you can get custom HTML parts for all purposes, and quickly. You can replace the internals of your current part from that system. This will be a big step towards full integration in the program context.
Now I am suspection the terminal might have been acting up.
That can happen sometimes, and it only affects the screen, so it's super confusing when the cursor doesn't appear where you think that it should be. Yep, it was actually just me the whole time, completely forgetting that I have turned on 'no-wrap'... I guess it doesn't just switch itself back.
I am starting to think that I would like to have the same script to parse markdown for this logfile, just like the one that I have for the program. How hard could it be? Should be easy right?
I am starting to wonder whether I have mangled my logfile script... or is there just something wrong with my computer, or vi?
This little change in the log access is really helpful, and should improve my notetaking ability markedly. Another consideration that I have just now made is that I might attempt something similar with my little 'shadowTree' program. What If I could call it up from anywhere, and just open up the current directory inside of a new browser window? Then it would seem a lot more convenient, just like other programs are. Good thing there is this thing called an 'alias' in BASH.
I could use that functionality to run a small script to pull the critical information from my current directory and then feed it into the file that the program needs. Then open the program up, and that's all it needs.
I will have my epic command palette program, accessible from anywhere and in a way that can be pointed to anywhere in the file system. I could therefore 'pinpoint-open' a tree in specific directories.... maybe if there was a command to add to the tree instead of just using only one tree.
Maybe it will be a little bit more agreeable this time around. I have attempted once to globalize my logfile access across the whole computer. That way I can just type 'log' from anywhere and be back writing into the same journal system.
I've finished up with the Markdown for now, it works great, and has a lot of prospects. So, instead I have turned to the outfiles which are prepared with blank graphical sheets, ready for the user to fill in with their own artwork. Then I thought: "You know what would be really cool?" Fill them with a letter of the alphabet each, maybe make them 3d and animate them as buttons.
Alright, great stuff, now back to my business with the 'clipping region': I would like the part to scale from within when I am resizing it. That would look the best, and then the clipping region could offer a final adjustment for it too. Then again maybe my attention will turn to labelling the graphics for the custom button making initiative. That could really help, and maybe I could even put a starter graphic that you would erase to put your own? It would also serve as a label. I could use the font that I have completed, so it would look original.
I've been working hard at a very different solution this time, and it's almost embarrassing to have bothered to do it. Hey, I guess I needed to convert Markdown into HTML at some point. So, now you can just drag any file '.md' on the screen and have it turn up as HTML. The only thing I haven't bothered to do is cover nested lists. I did just about everything else that I know about, including tables and horizontal rules. It is starting to seem excessive but, I know people like their Markdown. It's a very good way of writing. I would use it for this logfile, if only I have time to make it convert from here too. I'm not sure whether it would be trickier, although it would most likely be almost exactly the same procedure... None too difficult, thanks goodness.
Oh! I'm almost forgetting to put the whole result into an 'article' and then make it content-editable. That would top it off strongly.
Again with some difficult and boring work... the wrapper for the parts, when you place them inside of a container has now become a 'clipping region' on all of its sides. That way it can be used to crop photographs or other graphics. This is a good thing, and I am not sure why it has taken me even this long to realize that this was even a thing. I was completely oblivious, until just a while ago I noticed how foolish I have been. There has been a perfectly useful clipping region available at all times on the bottom and right sides. The top and left sides, however, have caused the internal stuff to move with them. This, most likely, would be considered 'disorienting' for the user. I had no clue, and didn't think this was a problem at all until it somehow sprung into my mind now. So, I have spent the last hour or so taking care of it so that this will never again happen. From now on we will have all four sides operating as clipping tools for their internal stuff. I think this is a big win for practicality and common sense, which I clearly do not possess.
Another thing that my mind keeps working on is the idea of making some default visual effects, the kind that use a full screen overlay or even a single part overlay. I would like to try my hand at making up some easy visual effects which would reveal and object or act like something cinematic such as opening curtains for the screen... but of course not specifically that, something more geeky and techie. Something like a pixelated 'materialize' effect when you scroll to a new scroll-point. That way it wouldn't really be showing so much scrolling but, it could be something like: Scroll instantly, oversized pixels in an screen overlay become transparent in sequence to reveal the scene...
So, maybe there could be different effect options, and per each scroll point you could set the effect. That way when your page scrolls, you would be doing it in your selected style. If it was a 'pixel-art' themed effect, then all the better because it could be made to match the pixelation scale that the user has chosen.
There could be a whole host of generic animations which would cover various situations. That way, on a per part basis, there could be a 'reveal' type animation and a 'conceal' type animation. Blurring and opacity(see-through) are the most obvious, but blurring doesn't seem to fit perfectly with pixel-art, although some might disagree.
I already have a fadeIn and fadeOut that can be used on each part or the whole scene, or a whole level when all levels are used. That concept could be extended to have a more comprehensive set of animations, and scrolling could be incorporated, or animation could be attached to the scrolling concept as default.
If we were to consider, for example: Fade out --> scroll to new point --> fade in. You could essentially restrict the user from scrolling freely, and then you have some semblance of a game-like thing. You could very easily, without doing any 'walk animations' or other such things, put together a mildly interactive website game. It would be more like a scavenger-hunt type of game. There wouldn't necessarily be a moving character or anything like that. Although, there could be, couldn't there? It just wouldn't be interactive completely. That would take a lot more knowledge and time to produce. You could, however put any and all types of imagery, and that could all be animated and interactive via the buttons.
It is clear that there are a lot of interesting outcomes, even with a very simple setup like this one. It's much easier to use than 'game-development' software, which is very challenging.
I'm not sure it's worth studying a software package in order to enable you to do the artwork for was is the same as any other two-dimensional platform game, etc.
What is the deal with this logfile anyhow? How can the font be so small?... I have a confession to make: I never learned CSS. I only really learned a few things so that I could here and there but, I don't really know what I'm doing in the style files because I was never able to purchase a reasonably good book covering it. Most books are trash in my opinion. I basically need something to be like a manual, not a tutorial. I find tutorials useless and laboursome.
Now I am thinking that I should review how the program construction overlays are draw. After removing the three colour system from the program, there is some room to change the visual representations because we no longer require three colours(or more), but instead we only need maybe two or three. There is a part outlining colour, and there is a selected colour. We don't really need the fine outline at all. We never needed that, I just thought it looked good.
So, I guess I will tinker with that now.
This isn't really a true journal if I don't make the effort to make at least one entry per day.
I am again looking at the program as a whole, and in a more critical light. This has been excellent as a learning project for me, and has offered a wealth of exercises for me to complete. I have tinkered, I have written things wrong, which somehow worked anyway. I have written too much for things which required very little.
It is no mystery to me which things are better done other ways: All of them. Which things are better represented other ways? Most of them.
Now that we have only simple groups, there are only two colours necessary to represent it, and everything else about the style of the construction borders is sort of confusing. Are D and G really just the same mode anyway? Do we really need to have parts hidden away in registers on the alphabet keys?
Simplifying the keyboard could really do wonders, and I have already simplified quite a bit. There isn't really much left there, and I could bring some old code back out on those keys, or save them for the integration attempt with shadowTree (a file visualizer I wrote). It's very clear how the program code could be improved. Instead of drawing the construction borders, etc, in an HTML canvas element covering the screen, they could simply be a borderline in HTML. Instead of the grid draw in a canvas, again, HTML backgrounds cover that.
So, in my mind I'm stripping it down for parts, and trying to identify what the components of the program really are. Then what exactly is the outline? And can the outline lead into graphing the functions? Can we get a big layout covering the entire program? I think it can almost be done now but, is everything in place and tested adequately? Or can I just assume that everything should function and begin the process of building the same thing from scratch, using this one as a model?
That's what I'm looking at now but, I would like this one to be published as a 'working version' which is functional but, noticably slower than it should be.
Just when you think everything is working nicely... then something looks wrong again. Is it time to trace the functions through the keys and start chopping code out? I could trace everything back, remove everything unused, then simplify. That might help to restore order and eliminated complications. I would have fewer files to look through, and it might clarify all situations. Now that I have cleared out the keyspace, it doesn't look so difficult to trace everything, and that's where my process is heading: Renovation, if not complete overhaul, if not outlining and a complete re-write.
The majority of the program code is basically functioning without trouble. It's the minute details that seem to be beyond my control. Those are the things that I am looking at, and saying: "This should be so and such!"
It looks like I'm tearing up the whole keyboard layout I'm pretty sure this is for the best. Maybe I should finish up applying the group stuff to the rest of the movements? That might be a good thing to do before moving ahead with any big changes.
I'm trying to get shadow tree to work on the last tab key, just so that I can open it from the browser window, that would be much easier, and I can also synchronize it when I perform a backup of the program code. Then I have it up to date and could prospectively use it for the purpose for which it was originally designed: A command palette and file visualizer. How cool would it be to have a similar thing made up for HDUB? Only instead make it do things like collect ID names or collect groups for the purpose of writing the code. That would really make coding a lot more fun, and probably faster and easier. You could also, basically, navigate to items in the list, and also search for items by name, and also search within items, very similar to how the BASH prompt has some built in commands for all of that. You could also save individual components out as files, for example: Images/Text/Etc.
I've come to a very start realization that single isolation doesn't actually do anything. There is no clear way of making it functionally different from just wrapping the part and looking at it internally using the TAB. All of the same things that would happen during that operation would need to also happen for the purpose of single or group isolations. So, there is no real reason to even have that in this context, so I guess that's making the y/Y keys empty and free for something useful. Getting rid of the R-W buffer will clear up the r/R and w/W keys, so we actually have a lot of room for some useful stuff to come back out on those keys.
Wow... I'm not sure what can go on those keys just yet but, simplifying the program seems like a good idea. I would like to use the a key to do and all/none action with respect of the groups, and the i key to invert the group selection.
I would just push the existing functionality up to the capital letters, eliminating new part insertion against the sidewalls. We could almost be just as well to eliminate the new part insertion/with directions all together in favour of a simple new part at centre screen via shift + N.
I guess there is a lot to think about before taking action on this. Don't want to clear out all of the keys at the same time but, I'm certain that renovation is in order. It seems like it's finally time for it.
It now seems that the manner in which the single part isolation is performed is actually problematic, when seen from the perspective of the new code additions. So, I will need to attempt to revise that first but, I will need to see which other code uses that function, to be sure that I don't have any ripple effects.
It seems to be getting tricky here, and you always end up with that little corner thing, some leftovers. That is where the time is really spent, on the details of the changes. One single change, which at first seems simple to say, is actually related to almost every other thing. The program code has become very tightly integrated, and that's a very good thing for the user experience.
I am now starting to question whether getting rid of the R-W deletion buffer might be a good thing to do. Why would anyone ever need two deletion buffers anyhow? And you can't even see that one anyhow. Also, the three colour system seems to be less and less relevant as the grouping system is being set up. I'm not sure I would feel any major loss getting rid of it soon, no matter how fun it was as a toy in the earlier program.
Oh darn! It looks like I forgot one... isolating the group with the Y key seems not to be finished, although I am certain that I have accomplished this somewhere in the earlier backups... I recall then abandoning it after some failure. The failure might have been stemming from something else though...
Should I attempt to stub in some more code? It worked once, maybe it can work again?
I really stayed up too late, and now I'm just trying to stub in some stuff that worked... maybe this is almost done? Then I can move on to other interesting things, like integrating the shadowTree program as a controller/manager for the groups? How neat would that be!
Okay, so it seems to have worked beautifully, next I should test the functionality with the z-index spread. How does it go? Will the wrapper/folder be dissolved correctly and leave the inner parts taking up its exact place in z? Or will the whole program be found destroyed somehow on something that I have failed to test through this mess? I should test saving the files again too, test all of the saves.
Sheer brutality just now... I guess I am expecting too much, but in need to maintain the focus inside of the part after wrapping it, and upon unwrapping it, and while viewing it with local view. I made progress through maintaining the colour system through this, and now I have had to revert after assuming success with maintaining focus. Not so, the focus hasn't been maintained, and there has actually been some sort of error resulting from whatever changes I had made there.
Sometimes, when something looks mysterious enough, or is severe enough to stop the ordinary functioning of the program, you just need to revert, abandon those changes, and try again. It couldn't be more brutal than this. So, I'm inching towards getting the focus maintained across those processes, and also having some rational outcome for the z-index alignment following an unwrapping operation. I want it to be exactly how you would expect if you suddenly removed the folder surrounding some files. The files would remain in place exactly as before and only the folder would be removed. Conversely this will not be the case exactly, you will have amalgamation where parts are placed in a wrapper. Therefore, by wrapping and unwrapping again, you will have amalgamated the parts into the position of the folder.
I wonder if that will make sense to anyone. If it didn't make sense, you could safely ignore it completely. That's what I want for this program interaction-wise, if you don't understand something, it is of no consequence, and should not be required of the user, they should be able to safely ignore anything that they don't understand and still have the functionality that they do know about.
It might sound stupid, and probably seems impossible but, my ultimate goal here is to produce a program that is scalable in terms of how much the use knows about the program operations. On very little knowledge there should be an entry level, meaning that the most basic actions to get something happening should be very familiar and require almost no learning. There should be plenty of room for someone new to learn about one of the features and then implement it. There should not be a whole bunch of baggage where anything new is brought in. It should maybe become even easier... What do I know?
I'm looking again, and I'm finding a few little snags. I'm starting to think that my best path might be back to the physical clipboard with the coloured pens again. Then I looked at the shadowTree file visualizer program, which I wrote a while back, and I'm thinking I could use that. It is very good at managing colour-coded lists. Twenty colours, not a-g-h-j-k-l. It's basically my favourite of all of the programs I have written.
Now I'm starting to think: "Why not adapt the code". That is to say, why not apply the shadowTree concept and just make it operate on the HDUB program? It would be so very very good that way. I think I'm going to do it. I already went to the trouble of digging up the old files for it, so there shouldn't be any problem getting it running again, and then suiting it up with the HDUB program.
Why would I not use absolutely everything I have? Of course I should do it. It could even, tentatively, open up in it's own window and then control aspects of HDUB from there. I feel very childish though, thinking it would be sooo coool. Of course I should use it, I already have it, it's already written, and I transferred the new HDUB fonts over there, so it can be all matching. Maybe I'll even put the dumb colour scheme into it somehow. I don't know if it could withstand having any pixel-art inside of it. Maybe.
These are all issues better left for next week but, this week has been a pretty good one. I really do need to get the keyboard stuff completed and flawless. I basically need it to be reliable again after I make the appropriate changes to each thing to extend the group functionality to everything. As it turned out, just making the groups was only part of the task, and then mouse aspect was actually very easy to write. The keyboard component seems to me much more thought provoking, unfortunately. Hence then coloured pens and pad.
By comparison, it was about ten extremely simple lines of code to get the parts moving simultaneously on the mouse. I'll have to look backwards in the logfile and see what the other goals were. I might try for some of that too. Maybe I need fewer goals and more completions. Well, the fonts are basically almost done, so that's something.
I'm feeling very tempted this morning to start with some of my top wishes and try to work on something more difficult, who knows, maybe it will turn out to be easy. I want the part focus system, at the keyboard, to only navigate to parts that are on the screen, and I want it to use the z-ordering, which is the part stacking that you see. That will be instead of document ordering.
I feel like this whole time, in all of the progress of this project, we have been using document ordering to navigate through the parts. There was a point where it was almost okay, and actually pretty good for navigation but, it was labour intensive because you needed to effect a document reflow manually by pressing the V key.
That system worked fairly well and was not very disorienting because it followed the path of the parts, in the order which they were entered. That happened until you manually reflowed them from top left to bottom right, etc. When I started making the document re-flow automatic, while still allowing it to be done manually, the keyboard navigation became somewhat confusing.
I'm not sure what other navigation can be had but, I know there must be some solution to this which will keep the keyboard as the number one input tool. To me this is very important: We need to be able to function the program completely from the keyboard, and it needs to be fast. If possible, even faster than the mouse. If you think about it, the keyboard has so many input keys that there is no excuse not to be faster than the mouse, the mouse actually doesn't have that much on it: Three buttons, and a two dimensional track.
It's not to say that the mouse isn't good, I would just point out that the keyboard is superior just on the number of keys, and why even lift you hand to go back and forth from the mouse to the keys? Or even to the arrow keys? Can't we keep everything close enough to the home row? I think that we can, and it's only a matter of taking the time, and putting forth the effort to have it that way also.
Finally, everything seems to be good now... maybe a few more checks. The next goal should be to make sure that when the loose parts are wrapped that they are condensed in z-order, and then upon being unwrapped, there will be a z-insertion. This will be instead of just ending up being all the highest in z-order, which is where we are currently at. For utilitarian purposes, this must be corrected so that there will be an expected result every time. Something more useful would be nice. Having to re-adjust all of the z-indexes is sort of bogus and weird, so, it's best to treat the unwrapping of a group as a z-index precision insertion. The group will all be next to each other, but they will take the place of the parent object that is unwrapped. They will then all span between the adjacent objects in z-order.
It probably sounds more complicated than it actually is. I just hope it's easily accomplished. It's either working at this little thing or maybe correcting and normalizing the proportions on my pixel fonts. Both options have their merits.
It's the Y key that seems to be acting up on me. "Why won't you just isolate normally!!!"
WHY!? WHY!? WHY!?
Y Y Y
Y Y Y
Y Y Y
This is starting to feel like whack-a-mole with the code but, I am praying to get through it without too much trouble. It's a good thing that I am doing some playing about with the program to check some of the associated stuff. Now isolation is going wrong but, not too major. There doesn't seem to be any data lost. The only question now is whether this was happening the whole time before I realized it, or maybe because of a recent change. At this point I don't know, so, I could check the program before the last backup point just to see whether there was the same issue at that point...
I have just been having the most difficult time attempting to remedy the z-index situation as it relates to wrapping and unwrapping the groups. The code is just so completely bogus and jumble-like that it is actually incredibly difficult to draw any analysis for making a remedy. So, thanks goodness, I was able to somehow reduce the problem to a single issue that was consistent. Good thing that almost everything is debugged visually.
The focused part was consistently rising to the top of the z-order when the group was wrapped. So, finally I was able to stop this condition with a neat bandage fix. The only next thing is to make sure that we are correctly wrapping up the group and maintaining the z-index of the new group object. That is instead of pushing the new group object to the end of the document and the top of the z-order. It's better to maintain the z-index of the focus part before the wrap, and then transfer the value after the operation. Wait!!! I just thought of something I did wrong... back to fix that other thing...
I'm looking at the program, not writing much code, and instead just doing some thinking about the way forward. There are not too many choices, strangely. Tripartite z-index management seems to be impossible, so I am quite certain on scrapping it entirely. The same with tripartite document flow management. I am fairly certain that it's perposterous. Absolutely unneeded and not having much practical value. We'll just do it automatically at the end of the process, before saving, or the whole while behind the scenes anyhow. There does not appear to be any reason to even have keyboard keys for flow-management.
Wonderful good news! There is a slot for a new keyboard shortcut opening up on the V key! Lowercase Z should still be necessary to give us a mode for z-management, which visually is useful and necessary.
I do still feel strongly about the three colour system but, I can see doing away with it. I'm going to keep it just to be different. If someone doesn't really know what it is, it's easily ignored. So, I can have my fun. Just keep in mind the whole program is just a hobbyist's tinker toy anyhow. Although, that is not to say that it's not a great tool to have in your kit.
So, my very next steps might be to disable some things that have been available there for some long time...
I've grown already quickly bored of programming the movements... there are still a few left at the keyboard, and then of course the z-index motions, which will also be made available at the mouse (maybe?). As I have worked through this project, little by little I start seeing some fairly commonplace things cropping up. The movements are nothing new, and so many programs have all of those same aspects. Obviously it can be written to have edge snapping and fuzzy or sticky whatnot etc.
The more this program becomes the same as every other, the less interest I have in proceeding. However, such little work in necessary on those most boring things that there isn't much excuse to ignore them at this stage. I have already come this far.
I have been going at this project for some time, carrying on, etc. If my purpose were to as quickly as possible write this program, this would not correctly have been the route. My intentions were various, and I have also dutifully follow correct instruction: Learning to write code, and learning to do it wrong, while still making it work. Presumptively, those are ways never taught in classes, although it may be suggested as a learning path. There you are only taught to write code in the ways that are exactly correct: Well known solutions, spoon-fed to pupils.
It is now becoming very obvious that simple outlining and maybe graphing would render solutions immediately. That would be great in the case of a complete re-write, which I am not yet prepared to do. This has been an interesting and valuable project for me thus far. This pursuit has led me into all sorts of graphical design programs. Through interacting with those programs, I have seen some different keyboard and mouse actions, as well as other things. Being exposed to such standard keyboard and mouse setups, at the same time as arranging my own, has been a great benefit.
One remaining question is whether document flow will be handled completely automatically. Maybe there will be an option to have it manually set via the V key. In general, I believe that it can be handled fully automatically, placing textual items at the top, etc, in the logical order that a search engine would prefer. Essentially, what is required to step forward with this: Decouple the keyboard focus and the document order. This would be a great benefit generally.
The problem of z-index management is solved through manual input in this program. How the mouse and keyboard should behave in respect of groups seems clear in this case. I would like to involve the scroll wheel on the mouse for this, because it seems fun.
Hopefully I will be able to move through these issues with ease and then carry on with more interesting integration between the parts of the project which, at present, might appear to be connected only loosely.
Anywhere that I find that I might eliminate something, I will try my best to repurpose what is already there for something more practically useful.
I've tried to get the website for this project back up somehow by using the github repository for hosting it... that doesn't seem to have worked, so today I went to the library and ended up attempting to host this on something called cloudflare. I couldn't figure that out either, then I needed to return home. I'll need to make another attempt, maybe tomorrow. Hopefully then I will have more time, weather permitting of course. A labourious bicycle ride up a hill is not ideal. I have no internet connection at home, so there aren't many options. There is another library in the other direction. There is no hill but, it's further away. No difference really. At least I can enjoy the ride on the way back, down the hill.
I was able to locate and transfer the old shadowTree program code, so now maybe I can improve that one at the same time. I really did like that program, and I was wishing to use it earlier today. I have corrected the code that was stopping it from functioning: I changed a 1 to a 0, literally, and it worked again like a charm. Still, I am sure there are some improvements that I could make for it. It doesn't have the ability to access the file system... that is its strongest point, it's not a file utility. So, what could I put on the keys which would be useful to put on the clipboard using the file lists? There are plenty of answers to that question. What would save the most typing at the prompt?
Using shadowTree as a command palette was the intention from the beginning. That's what's so great about it: It's separated from the program which executes the commands. It offers a bit of a one step between quickly writing a command and pushing the enter key at the prompt. Initially I was not going to put a quick route to an rm command but, then I just thought: "hey why not?"
I'm just getting back looking at the program, and I see that shadowTree actually doesn't work, so I needed to open up the old windows machine and get it back over here on linux. I don't think I have used it over here yet. I really did like that program, and I was thinking to use it to find some file or other, and then I realized: "Oh, it's still broken". So now I'm looking at a last working version, and maybe it's possible to get that one up and running and into HDUB where it was intended to be in the first place.
The interesting thing about that program is the keyboard inputs. It's not the most powerful program, it actually almost doesn't do anything... at the moment it does exactly nothing... so I need to try to get it into the code from a fresh copy which hasn't become trash. It's amazing how long things sit before I notice they are garbage, and then even longer until I actually take action on it.
There has been a fairly exciting development, and I have only just now realized this circumstance. I have now reached the horizon of some semblance of functional programming. It just seems miraculous, and I'm so glad that I have finally reached this milestone. I don't really need to work too much on building the base functions for the program anymore. It's such a relief and I can now, instead of writing up brand new complicated function for every next step... I can just use the code that is already there and build it from that. One example from just now: I wanted to put together a new isolate function for use on the keyboard, just to improve the functionality.
Now I will describe the solution. I looked at the keys, and saw that what I wanted was essentially equivalent to doing q then y then q on the keyboard. As simple as that. So I then just look at the references for those keys, then substitute their functions into a new one, and BOOOOM! I have a brand new improved function!
I feel like I have finally left from the basement and am now in the penthouse. Maybe in a mechanical room beneath the penthouse... that's a better comparison: I can pull a couple of cords, rewire something, and then get a shiny new improvement in short order. I hope I don't need to touch any of that old code ever again, except to brush it up mildly to enable this wonderfully superior method.
I don't really know what else I'm going to work on with this but, if I take it easy and proceed carefully, I should be able to make vast improvements without eliminating the machinery necessary to do it with. I don't necessarily want to change too many of my experimenting base keys but, maybe it's time for a change. I already like the program way better with only a few changes so far.
Anything that I could have as a toggle should be a toggle... don't get me started on toggles.
Now I'm just looking at some of my program colour schemes, and they really don't quite look right. What with the visual indicator for the multi-select, it just still doesn't look right on some of the themes. So, I think I'll need to make a review of those colourations, though, obviously, the user can set them to their own choices. The defaults should be practical, and visually make sense. No sense packaging this program with defaults representing the worst colour themes ever. We'll save that for the forthcoming Joyless-Gray Edition of the program, where useless colourations will be jettisonned in favour of raw functionality and low program size, all in the name of a distraction free and bland interface.
Other business may include alignment of the program fonts, and general upscaling of them to competent sizes to keep them sharper. If you leave a low resolution font at low scales, it just looks blurry. I still want them sharp. Not sure whether I will complete a medium pixelation scale, or just be finished where we are now.
Complete success: This is very exciting progress. Now, I just can't help myself, I will next be turning my attention to the T key. This one has been a very long time coming, and I must say that I saw this change coming from a mile away. If I could just eliminate tripartite colouration as a mode, and free up the keyboard in some sense, while also getting rid of that horrible extraneous seeming mode, then it's all for the best. I really only had it there because I have been maintaining the functionality, and have some unexplainable affinity for the tripartite colourations. They just seemed extremely valuable to me, and I didn't want to get rid of it. I just couldn't do it but, I never really liked that it was an entire mode. It's just silly, and I have hated it.
"What's going on here!?!" ... oh it's in T-mode
No More!
This is fully nuts... I really like it, I just have additional demands... I need the group to come back into play when I unwrap the group again, that way you have a 'back-and-forth' toggle for it on the keyboard. I just keep thinking that would improve the practicality of this. You could then add things to the amalgam through that route. There were already multiple ways to do this same action, this, however will reduce the number of steps at the keyboard. You won't need too much, and so I think this will speed it up a fair bit. I really think it's worth working on.
I already tried to get it, and screwed it completely over... but then I change my approach significantly. I'm not trying to re-write any of the old code, just use it in a very top-level fashion. Instead of writing everything from scratch, I'm just first expressing it in terms of functionality that is already tested and working. So, I can then either call those functions directly, or chop them for parts where necessary. It's a lot less taxing mentally to work that way. And, why bother racking my brain to try to decipher my messy old code? If it seems to work, just use it...
The wrapping appears to have worked, so I'm not going to ask any questions or look into this... next step is to make the TAB key operate on only groups. That should really seal this thing up.
I'm so glad this was much easier than I thought it would be, I was dreading encountering any difficulty in accomplishing this. Programming is so very very hard sometimes, because you basically have to remember a thousand things at once and then try to throw something together while all of those other things are happening too, hoping you haven't thrown a wrench into the gears.
Now I've got to get that TAB key fixed up, it's been such a junky key for so long. Then the other thing is that I need to get the 'shift+G' key to toggle all/none for the group. Maybe it should toggle all or none, all being the colour group. For people who don't know what the colour groups are, it will just be regarded as an 'all/none'.
Getting the multi-select working was actually quite easy after I stopped trying to implement unnecessary things which were complicating the matter. I'm trying to get this working so that you will have a good keyboard workflow also. It needs to work well, and quickly, from both keyboard and mouse. The next step I need to take is to finally, at long last, get the 'q' key to wrap the selection up. Hopefully this will be easy to do... who knows. Sometimes the things that seem easiest are actually the most troublesome.
I started fairly early and finished up some of the associated junk from changing the number of levels. There is still a little bit of old access points through the top menu but, I would like to 'clean' those ones up by repurposing that menu location, inserting the scroll-points. It is convenient to do that because most of what is written will be the same, and the menu location is suitable too.
Just now, I am beginning work on the group concepts, and I have written in some variables, and again, am repurposing the old 'phantom lair' location in the item list to hold the group names. Temporarily I will use it to display the group items to myself, that way I can just step easily through the process of writing the very short code that will make the groups happen.
The weather outside is a grey and there is some mist coming down slowly but, it's still very mild weather for November.
That sure was a fast one... And then all I really needed to do was to switch the words 'Prev' and 'Next', that way they make chronological sense. It's funny how easy that was to do, I only needed to change the script to say 'sort -r' instead of 'sort'. Another thing, always make sure you use 'export LC_ALL=C' at the top of your scripts, just in case you change machines from Windows to Linux, and then can't figure out why the script won't run. It just might be the sorting order, and that short line just makes the sorting order consistent across different machines and hardware.
I'm not sure what's next on the docket but, going to sleep early might be a good call at this point. I'm not sure that groups and multi-select are going to be such a difficult task to accomplish. Groups are already part of the program, we just see them as being 'wrapping' and 'unwrapping' right now. So, the only thing left here is to get a multi-select, and have the wrapping act on the selection instead of 'everything on the page', which most likely will seem like a huge blunder to anyone first trying out the program. That's because it's unlikely that you want to wrap everything at the same time but, notice that there is also the 'y' and 'shift+Y' keys which isolate parts on the screen using the colour groups. Even so, that might be a little bit 'heavy' for some people who are more used to having a simple multi-selection ability in place.
At some point, after I build in more of the typical functionality that most other programs seem to have, I think that you might look at the program and never even know what the three colours were ever for. Personally, I like that system and find it very useful because it divides the page into three parts. Every item on the page is a member of one and only one of the three groups. So, you can split the work on the page into three very quickly and move things around, or do whatever work is necessary. If it gets messy, it could even be useful to split out into the colour groups arbitrarily just to have fewer parts cluttered on the screen. It really does come down to what your purpose it in using the program. I think that it might even be very useful as a private notetaking thing. Then if you bring that concept together with the web-publishing aspect, then you can see where this program might really shine.
This program has always been aiming towards a very strong artistic composition type of program. You could have textual, and hand-coded aspects, draw your own graphics including custom graphical buttons, and even bring in some audio and video. Though, video is best left to some external service because of the large file sizes. The angle is strongly leaning towards private websites for private people to publish their own materials. It's the complete and thorough anti-commercial solution. A total 'do-it-youself' program, it makes it much easier to write your own publishable HTML content and express yourself on your own terms without interference or imposition from outsiders. There really shouldn't be anything inhibiting your own choice of expression. You should have a full format with which to do that. It has to be capable, and I am working on filling in the missing components and re-arranging the things that I've already completed.
You can see that there is full Meta-data on the page, if only you just fill out all of the page information, and I think there might even be an RSS feed automatically in the output... hmmm let me check that again... WHAT!? There sure is an RSS feed, it comes automatically, just make sure you input all of your Open-Graph Images for each page... The RSS feed covers all ten pages. This stuff has been available there so long that I've forgotten about it... Looks like there is also a site-map. Of course, I am talking about saving you website as a '.zip' file, then you get all of that stuff. It's actually pretty top-notch stuff here.
Why did I both to write a bash script to put this logfile together? Why didn't I just use HDUB? I'm not too sure at this point. I think that I am hestitating to use it because I am intending to make changes that might alter the saved project files somehow. The scheme needs to be 100%, for example, if there are only going to be ten levels now, and I have a previous project saved with twenty... that's a bit of an issue. The other way around would have been fine. Also, if there are scroll points being expected, old project files might throw an error if they don't have them. Maybe I need to try loading an old project file to make sure that doesn't matter... hmmm... I've got to get the main bits sorted before I have the confidence to start jumping in. That might be a good next point of focus: Finishing out what each project file actually contains, cleaning it up, and making sure that it won't change too much in the future.
Pretty solid idea, best thing to do next is get some sleep.
That change, again, was surprisingly easy to accomplish, and now I have gotten it into my mind to arrange the logfile in reverse order. By that I mean to say that the newest entry will be at the top, and the oldest entry will be at the bottom. Does that make sense? I somehow think that it does make sense. So, I'm just going ahead and trying it out. It's just a small change... Unless I somehow destroy the whole thing accidentally.
Right on! Changing those layers to be only ten was the easiest change ever... I didn't even realize how quick it would be, and the extra real-estate from those buttons is now being used for the OG-Page Description Area, which is actually way more important than having too many layers. After that I carried on and put it on to the keys. So now the top row numbers are moving you around on the ten scroll points, and you can still get to the layers by using shift with the top row numbers. It's basically the best decision between those two things. Now I'm moving on to some smaller point, seeing if I can change the 'special cursor' so that it comes into the centre of your screen when you use 'shift+C' on the keyboard. That way you can use it to 'walk around' on the screen. That is what I have mostly been using it for, so I just want to make that even easier to do. 80% of people aren't going to know what that thing does anyhow, so let's just make it have one obvious job: Scrolling around the screen.
I'm looking at this program, and after changing the scroll-points so that they are on a per level basis, I'm starting to think that the program would benefit from having fewer levels. Twenty may be too many levels. Each level has virtually no limit in space, so what would you need to have twenty of that for? I kinda think it's unnecessary and actually confusing to have too many levels. The layout for the keybindings to access the levels is on the top row number keys. Then the levels 11-20 are on the top row using the shift key. A good change might be to only have ten levels. The shift key could then be used for exclusive and persistent access to the scroll points. So instead of needing to remember additional keystrokes to access the scroll points, it might help a lot in terms of coordinating your efforts... simply by having fewer levels. I think the keyboard layout, which is rigid at this point, would benefit from reducing the number of levels to ten.
More is not always better, the right number to do the job. Some number which lands in the middle, representing a compromise, and suitable for nearly all tasks, that is the number of levels we need. Ten might be far superior to twenty. If you need more pages for your website, just start another project, and name a new folder. This, most likely, will install a stronger organizational system without anyone really noticing.
I think I'm gonna do it. I don't quite remember all of what I was thinking to do before this crossed my mind... I'm going to do this.
I'm really liking this new logfile structure. It looks good, and I really like the fonts that I have drawn last week: They have been greatly improved. The visual impact on the program interface cannot be overstated. Also, having that small pixel font is a real bonus where you need to fit text into a tiny package. So, some of those custom buttons? Yes, those might recieve some numerical markers to help coordinate the manufacturing process. The reason I haven't done it yet: The font wouldn't fit on the smaller ones. Now with this new 'Small' pixel font, it's a different story.
Looking at the program now feels like there are a thousand jobs to do, changing many little things, and then also adding in some big new changes.
I'm loving the new scroll-points, which are on a per-page basis. You also, therefore, have available a piece of code in the outfile which you can access to make a button, for example, navigate you to any of the fixed scroll-points. I made sure to make the code navigate the location to the centre of the screen, no matter the size of your screen. This was a key style choice but, there may be an option on it later. Of course, the navigational buttons which were already available, cover all various situations, and can scroll any given position to a nine-point system (top-left for example). It covers all of the corners, the centres at the sides, and the screen centre. This is available for both navigation to specific points on the page, or to specific items on the page. If that sounds like too much for you, just stick with the new scroll-points system. It's easy to use, and keep in mind, the zero (0) will be the location that the page is in when you open it.
This new logfile is running like a real dream right now. I guess I could have written it in javascript or some other language but, I like just using the shell script. It's simple, it's easy to use straight from the prompt, and it doesn't depend on very much. The result is a single file, so there are no extra files anywhere to deal with, just one. I like that and that's what this project is all about, a single file solution to having a really fun graphical design experience for HTML drawing. It's like a dream hobby tool for someone who just likes tinkering, and if you know a little bit of javascript, it will go a long long way now.
I have been away from the computer for long enough that the 'times' have gone all wrong. So, I have spent the last twenty minutes or so changing them in the BIOS, and then finally now I have suceeded in working out how to set Deb/Ian 13 to UTC. I'm not sure why I needed to do so much just to change the clock to the correct setting but, hey, I just wanted my logfile to represent the correct date and time for my entries.
I have decided to move the logfile up into the main directory so that it will become part of what is made public. It just makes it more interesting if you can read all of my inane thoughts, perusing my considerations as I continue to assemble the first construction of the 'hdub' program.
Over the last three days I have begun the process of tying together some of the 'peripheral features' of the program. While looking over what is available in the program I am seeing that there are a lot of parts there that are independently useful but, which have not been fully integrated into the grand scheme of the program. To me this seems like a good place to start back into revising and enhancing this project. I could not have started at any better point that with my original Pixel-Font. So, right away, as my first task back at the computer, I started brushing up and completing the font. It went from being a rough mono-spaced font, to now having a regular spacing. Font-Forge is one of the best programs that I have ever seen. It is so thoroughly done, it really is itself a master-work of a program. There are so many things in that program that are well beyond my understanding of font. Luckily, making a pixel font in a low resolution is much easier than making a higher-resolution font, like how font experts would do.
Following my improvements and extension of my pixel font, the intention was to integrate it more fully into the program. So, the font has become standard, and it is included in the outfiles in base64. The font covers the first 256 characters which covers many languages. Additionally I was able to complete the 'bold' font. Browsers are able to do a 'bolding' and 'italicizing' of fonts which do not contain that data but, for a pixel font, the bold just looks wrong. The italics are not easy to do for a pixel font, so I have ignored that for now.
The results of my effort for the font have been that we now have Monospaced, Monospaced-Bold, Regular, and Regular-Bold. These end up in every outfile, and, oh yeah, there was one more thing that I couldn't stop myself from working on: I Made The Font 3D! So, now there is a special font box that you can click to add in a 3D font input.
It wasn't too difficult to make that 3D font happen: I just did them as separate fonts which are the exact same one with the appropriate offsets. The edge colours are tied back to the in-house custom buttons which has a colour selector already.
Aside from working on incorporating the font more thoroughly, I have made fixes to many things in the program, and hopefully improved the keyboard workflow. For today, I will be happy if I can improve the integration of the ten scroll points found in the 'ViewFinder' tab (the very last one). I have done the work just now to make sure they are on a per-page basis, and next I need to make them accessible in the outfiles. In particular, and what impelled me on this path, was the idea that the pages, as they were, always started off at the top left. The 'origin' of the page was not selectable. After a fair amount of deliberation, I realized that the system was essentially already there to handle solving this problem. "I will just use the View-Finder Scroll Markers". Zero would be the origin of the page, and every page would have a script to scroll to that position when it starts. I only need to package the scroll-position data out with the pages... Almost done, wish me well.
I am starting to really appreciate the depth and breadth of what I have already written into this program. My early efforts were largely experimental in nature. Some attempts suceeded and some failed but, the most important thing was maintaining the code through that process. My coding style was, in my own words, a 'rapid-fire trial-and-error'. The advantage today is that I can now, more often than not, have some idea in my mind, and then follow through more easily by simply selecting from my previous code, or by deploying methods that worked previously.
Now, I can just clip out snippets from my own code. The method of experimentation and exploratory codework early and up-front has really done wonders. I was able to get a whole lot of things tested at a very early stage. It's not easy when you are only beginning to learn to write code...
2026/11/04 17:33:29
I think I've worked enough on improving the logfile into an HTML format. It seems pretty good, so, I'm just gonna go with it. I've finished out the font, lining it up, and whatnot. Keeping it simple is probably for the best, and resisting the constant temptation to completely restructure something. I'm not sure why but, that's my tendency.
2026/11/04 17:41:36
Why do I keep checking it out?... Is it perfect yet? Nothing ever is, it's all just in progress. Now back to the task at hand, I need to direct my attentions a little bit more strongly. The HDUB program needs to have the scroll positions on a per page basis, and the first one, which is called '0' in the ViewFinder tab: That one will be the initial scroll position for the page. That way you could easily set the initial position somewhere off in the middle. There will no longer be any reason to begin our journey into the page from the default top-left corner.
We will, therefore, be breaking away from something that is a mere default, and customizing it. There is something just good about that.
2026/11/04 21:56:48
The scroll points seem to have suceeded thus far, though I will still need to check whether they are functional when multiple pages are processed and zipped. My testing stages seem to be more time consuming than writing the actual code. I need to work back and forth between putting a solution together and testing the component parts. So, there is a bit of an assembly process for coding changes. I'm still lacking a bit on the testing, and could use some more thorough methods for that. If only I didn't need to do most of it manually. Due to the current arrangement of the program code, manual testing seems to be the only method available.
To give the resulting code in the outfile briefly:
go.scrollTo(scrollPoint,behavior,ninePoint)
/*
scrollPoint: Matches the on-screen numerical designations
given on the ViewFinder. Default is 0.
behavior : either "auto" (instant scroll) or "smooth".
Default is "smooth".
ninePoint : Allows placement of the point on the screen
corresponding to the numpad positions.
Default is 5, centre.
*/
Aside from that, there were a few changes to be made to how the markers are displayed and set within the program context. I would still like to make sure that the markers are set along the gridlines somehow near the centre. That will be in case there is some ugly number happening, something ending in 1 or 9. I think I'd like to just round down to the closest grid point to the screen centre. I haven't done it yet but, it's fairly obvious that it should be done. The next task on the docket has occurred to me only within the last hour: When the program window is resized, shouldn't we try to maintain the scroll position at the centre?
Just for information, the program allows resizing of the browser window, and zooming of the window also. When that happens, we end up triggering a 'resize' event. So, there are two things that we need to handle: First, when there is a 'scroll' event happening, we need to capture the current centre location; Second, when a 'resize' event takes place, we need to attempt to maintain that centre location which was stored. If we don't do this, it will stay as the default, where the browser is zooming from the top left location. It has just now occurred to me that the outfile would benefit from this same change. So, I will need to attempt it first for the sake of the program, and then, if successful, implement the same thing in the outfile. That way if the user is making something that is like a 'cartography' or 'map' then it will feel more natural. It would be a lot easier to bring a 'game-like' experience to your website if you treat it that way.
2026/11/04 22:30:26
I'm going to give this code a test run and see if it helped out.
Nope, it didn't help at all... no idea why. Okay, I'm going to abandon this as an issue.
/ Capture the screen centre location. /
let screenCentre = [];
screenCentre[0] = 0;
screenCentre[1] = 1;
window.addEventListener("scroll",()=>{
Z(); redraw(); drawSiteMap(); loadViewFinder();
screenCentre[0] = window.scrollX + window.innerWidth / 2;
screenCentre[1] = window.scrollY + window.innerHeight / 2;
});
/ Maintain the screen centre if 'resize' occurs. /
window.addEventListener("resize",()=>{
Z(); redraw(); drawSiteMap();
window.scrollTo(
screenCentre[0] - window.innerWidth,
screenCentre[1] - window.innerHeight
);
});
2026/11/04 22:51:11
All together I am very pleased with my progress today. Each page now has it's own scroll locations built in, '0' being the starting point when the page is first loaded. All of the points are ensured to scroll to centre because I have built some functionality into each page that will place 'dummy blocks' in the correct locations to allow centering of the scroll points. The 'dummies' are revised when the page is resized, and so it always works.
There still remains a bit of testing to do on this one but, I'm pretty happy with it and now I need to start looking for other jobs. The next big thing might be to finally get some facility in place to handle groups, and general multi-selection. Most programs have this, and you have probably noticed that this one does not have it yet. It only has the three colour system but, there is no multi-select, and there is no way to make groups. This is a job for another day...
2026/11/04 23:13:32
The only other thing that I did today, except many small fixes here and there to the program, was this logfile! Finally it's a nice looking HTML, and I am really enjoying the new fonts.
2026/11/05 08:37:19
I am very relieved to know that the scroll points system is working beautifully. There does not appear to be any extra codework necessary. It seems to be working across multiple files, each with their own scroll points, as defined in the program. The only last thing to change for it will be to ensure that when the points are chosen through the graphical menu, they must be rounded to the nearest grid square. That way the numbers will be nice and 'clean'. Good news! This should be very easy to do.
The prospect of beginning to code the changes which will allow 'multi-select' and 'groups' seems like a very good next direction but, I expect that to be a bigger job. However, I have learned from experience that what seems big sometimes is easier than anything. If only there were an easy way to put this together.
2026/11/05 09:44:59
Not sure why but, I am feeling like working at something 'low-effort', so I might just start drawing another font. This time maybe a very simple and small pixel font. That way I will have coverage for where the font can't be large enough. There are places where my larger pixel font, when scaled down, basically looks like a normal font. So, what's the point if you can't see that it's pixelated? That's basically the whole point of the font. For dense text, it just isn't practical though.
2026/11/05 14:03:17
I'm just now getting into completing the obscure symbols. The majority of the font is complete. It's interesting to notice that the lower resolution your font is, the fewer choices you have for completing it. That makes it easier to finish. So, that's the upside of this.
2026/11/06 07:54:17
Today I'm starting out organizing the font into folders because there seems to be some proliferation of font manufacture happening here. I knew this day would come. I have started producing font, and so now I must organize my efforts into file folders. It's the only way to keep things orderly. So, now we have the following font, soon to be available:
a_regular
b_mono
c_wide
d_wideMono
e_small
f_smallMono
g_smallSmallCaps
h_smallMonoSmallCaps
This seems like a pretty good starting point, and the files were previously in only one big mixed folder. This change of directory structure should help eliminate lost time on fumbling the base64. Most likely a bash script can organize the integration of these font into the program. There are two basic font resolutions now: One is larger, the other is small for a pixel font, and looks a lot like any other pixel font drawn at that resolution. There is very little variation available for pixel font drawn at the smaller resolutions. The larger one, however, really does have it's own style points, and I'm very pleased with it. I've been working on that one every now and then. I first drew it more than a year ago when I started writing the graphical menu, which is still there today. It marked a great shift in the program structure and a massive improvement to the workflow.
2026/11/06 16:40:17
Excellent progress on the script to assemble my font stuff. This is going to save a lot of time in the long run, and now I can just freely draw up new font and then the process of integrating it into the program is completely streamlined. No need to manually enter and test it, the script does all of that. A little bit of bash trickery with 'sed' and 'paste', then it was all over pretty quick. Next week I hope to start working on the 'multi-select' and 'groups'. Every program has that and so should this one.
2026/11/08 09:16:09
After some consideration, it seems likely that the 'group' concept will just be thrown together from some of the stuff that the program already does. It has 'shift-Q' and 'q' to wrap and unwrap parts: That's basically the same as grouping. So, just by calling that action grouping, the job is done. The only next thing is to build a 'multi-select' which uses the shift key to add more to the collection. I drew this up quickly a few weeks back, and then, because I had no time for programming, I reverted to eliminate it. It was a good attempt, and maybe I will do it differently this time, or maybe it will end up the same. It's probably best to draw it up in a way the doesn't interfere with the programming that is already there. Maybe it can operate independently?
After working for most of the day on this one issue, I think that I have finally produced a half-decent logfile structure. Of course, this will save time in the long-run, and keep the entries separate so that I can tinker with the visuals, etc. later on. Each entry remains separate and that's a good thing. I haven't mixed HTML with the text. The HTML tags are applied later. The majority of the work on the bash script was just dealing with putting the navigational system together and then, of course, the final composition of the file. You could give it a read, it's fairly understandable.
I realize that I could have solved this through a completely different approach, and most likely would have consequently had an easier time at coding it. However, I felt like hacking away at it on the prompt with no more than bash would serve me well, and make no difference in the end result. I have been away from programming for quite some time but, I'm looking forward to taking it up again.
After only last week working, there have been very obvious improvements made spanning the majority of the program code. It's very difficult to make a single change without needing to make all sorts of associated changes across the entire program code.
The need for a complete re-write of the code is clear but, I cannot do this until experimentation and finalization of the design components is complete. So, everything about the program needs to be solidified, and all interconnections between potential workflows need to be strengthened and defined before outlining can properly begin.
Thus far, I have proceeded to learn and implement programming without much structure in mind because I needed to experiment broadly to produce a local plethora from which to draw selections. Now, having some back-work to choose from, some parts more complete than others, I will be able to define the most desirable constituent parts that this program might wishfully contain.