swlc issues

There are many issues to address, including:

reflected trees

  1. The 32 bit version doesn’t report when a site’s too big for it. Larger sites should use the 64 bit version.
  2. The code needs to be portable. It’s not there yet, for basically rather silly reasons, but it is written to be portable so it shouldn’t take too long to get that sorted.
  3. Meanwhile, the included makefile is a demonstration makefile only, and needs replacing with a CMake configuration file, or something else portable.
  4. The code is rushed (I wrote it in a long weekend), and thus certainly has idiotic bugs.
  5. Because the code was rushed, it doesn’t have appropriate exception handing, so it’s not at all robust (although it’s slowly getting better).
  6. Connected with that, the error reporting is in a pretty awful state.
  7. I have great admiration for coding standards, such as suggested in Sutter’s works, and need to go back through the code and get that right.
  8. The code is single threaded, so is much slower that it should be. This is not a simple fix, but does need consderation.
  9. I’m not into pointless comments (e.g. int x = 1; // set x to 1; ) or comments that risk leading to contradictory code, but this code is entirely uncommented. That needs correcting.
  10. I’ve used a compressed layout that annoys the heck out of Visual Studio. I use one screen, and I want to see my software on that one screen, rather than covering an inconvenient wall with displays to show off all the traditionally required pointless blank lines. In other words, I strongly dislike standard code layout.
  11. The program does not check all HTML elements with URLs, only the most common ones. I have to go study the byzantium HTML spec to apply all I find there (more added!). I shall refrain from repeating clichés about kitchen sinks, but I get the sense HTML needs replacing by something with a minimalist touch.
  12. External link checking works on Windows, but throws a wobbly on macos (it uses too many resources too quickly).
  13. There’s no tag checking in place yet (e.g. URLs with #xxx at the end). It probably ought to be added.
  14. A switch to specify files to be ignored would be useful.
  15. swlc is case sensitive when checking internal links, which is incorrect. It must be said I regard breaking case in URLs as naughty, even though it’s not actually wrong. I ought to make the URL checking case insensitive.