Debugging Assistance, Anyone?

This forum is for the discussion of technology, computers, & problems relating to the web and your computer

Moderator: Scott Danziger

Post Reply
Allen M.

Debugging Assistance, Anyone?

Post by Allen M. »

Debugging Assistance, Anyone?

As most who frequent this forum know, I have been writing a program in C++ to write the 200+ pages of my website from plain text scripts that provide necessary instructions, so I don't have to write HTML, Java, etc. anymore, and to make them more consistent.

I completed the "intelligent" menuing system and posted it a few minutes ago. It looks like it works, a superfluous test, but I really can't tell from here and I can't use the internet at my latest job site.

If anyone would, I'd appreciate some help by just clicking through the menus to verify that they are robust and are connected properly from a computer other than this one. The site is at

http://www.ury2k.com/

Thanks in advance.

BTW, you need to click at the top-left corner of this page to gain access to the rest of the site.


------------------
Allen, Home: http://www.ury2k.com/pulse mirror: http://home.ici.net/~uechi/

[This message has been edited by Allen M. (edited September 24, 2000).]
User avatar
Scott Danziger
Posts: 929
Joined: Thu Sep 17, 1998 6:01 am
Location: Long Island
Contact:

Debugging Assistance, Anyone?

Post by Scott Danziger »

Allen,

All the links seem to be working. There are small graphics that are not displaying... tiger.jpg, tracter.gif, and probably more different small ones throughout the pages. I'm refering here to what's on /moultondojo/index.htm.

Hope that helps.
Scott
Allen M.

Debugging Assistance, Anyone?

Post by Allen M. »

Thanks. This is a big help.

The menu systems, all of them are set up relative, were tricky to set up and all of them are generated on the fly. It took months to develop the program, yet less than five seconds to build over 200 pages.

After I clean the little nuances up (thanks for those tips too), I will build a command language so I can type something like:

1) APPEND ABC.DOC TO PULSE REBUILD UPLOAD

2) ADD DEF.DOC TO CHAPTER 3 INSERT GHI.GIF

3) UPDATE SIMON'S DOJO IN ALTOONA PA FIND IN MAILBOX SORT UPLOAD

I am so sick of Java and HTML code, and associated goodies that I just want to type a few phrases and be done with it.
Valkenar
Posts: 1316
Joined: Mon Aug 21, 2000 6:01 am
Location: Somerville, ma.

Debugging Assistance, Anyone?

Post by Valkenar »

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Allen M.:
Thanks. This is a big help.
I am so sick of Java and HTML code, and associated goodies that I just want to type a few phrases and be done with it.
<HR></BLOCKQUOTE>

You mean Java proper, or javascript? If you're talking about conversion of C code to Java code there are a few utilities written that accomplish this, to varying degrees of success. Most of them are GPL'ed, so you could try incorporating them into your tool.
User avatar
gmattson
Site Admin
Posts: 6073
Joined: Wed Sep 16, 1998 6:01 am
Location: Lake Mary, Florida
Contact:

Debugging Assistance, Anyone?

Post by gmattson »

Al:
I need a tool that will read my mind and translate it into a 'whats new' column! And of course upload it to this site. Hopefully while I'm on the golf course! Image



------------------
GEM
Allen M.

Debugging Assistance, Anyone?

Post by Allen M. »

Hello Valkenar.

I probably made that brilliant statement while hovering somewhere between not enough sleep and being awake for too many hours (I said that right, plenty of sleep today).

Now my thoughts on translators, even though in some circumstances you CAN get much mileage out of them, are that they are more work then they are worth, except when translating small apps or individual routines so that you can rewrite them after you look at the generated code.

I have done substantial cross-language translation, and often it is always better to start from scratch in terms of coding. Or even redesign when going from one methodology to another.

The two big problems with a c to Java translation, as I see it, is that c is not object oriented (although it can be made to think it is if you are clever enough), and Java does not support pointers. I went through that exercise some years ago on my first Pascal to c translation. Ended using the code as a functional/design spec. Just like the spoken language, you have to think and [this time] write in terms of the language because of the different methodologies [I almost wrote mythology, thinking of the “Mythical Man-Month,” whew!]. Java syntax is close to cpp, but where you can write objects in cpp, Java forces you to do so.

My expertise in code, these days, is in cpp, I design and implement for a living, from the sophisticated, to Banking, to Industrial apps. I’ve learned enough Java, Java scripting, and about writing Java Applets to let it remain in the forest unless needed.

I wrote my tool as a command-line driven application in c++. I’ve developed it so the code is as dumb [generic] as possible, deriving its intelligence from initialization files and the scripting language I designed for it. This way, my tool has no knowledge about a “Pulse” page or what a dojo listing is. It doesn’t need to and doesn’t care. I teach it what to do by feeding it scripts, and it “learns” more about different kinds of web pages and what to do with them through these scripts. The entire website can be re-architectured or even change in appearance by changing a few instructions in one of the scripts. I pass the little 1,2,3 instructions mentioned in my previous post to a simple precompiler [the precompiler was an afterthought, not originally designed into the equation] that rewrites the script files on the fly then passes those new script files to the main cruncher.

Right now, the order of items on the main menu is generated solely by the sequence of the initialization files I pass to it. In other words, if I want "Index" to come before "Stuff," I will feed it the "Index" ini file first. Kind of crude and not exactly an eloquent solution, but works and is ok (for the time being). To correct this, and to allow any order of input, I need to generate the instructions in the startup ini file which will then specify the desired order of things to the main app. This is an example of what I mean by the main app being dumb and learns as it goes.

The actual web page information I feed it is a plain text file, in either ASCII or MS Word format. Those files may or may not have HTML code in them, and if I take it far enough I will attempt to eliminate most, if not all, html code from them.

I think of this tool as a text to URL-system translator.

This afternoon, a friend just caught a broken link on my book page and I can’t [won’t] change the html code, rather change the text file, and then regenerate all the web pages and upload the errant one. Takes only a few seconds, maybe 3 or 4, to rebuild the whole thing and save it off to disk so I don’t care about rebuilding only specific pages.

It has been a pretty good project, now the cleanup starts.


------------------
Allen, Home: http://www.ury2k.com/pulse mirror: http://home.ici.net/~uechi/
Post Reply

Return to “Computer & Web Tech Help”