PDA

View Full Version : table fun & bloated extra useless code >



mat
07-13-2002, 07:48 AM
is this really really bad code.. bloated, junky dreamweaver generated stuff... yes i know.. it's sad & i need help, i really want to make all the code as simple and clean as possible.
i'm just going to post the links and let you see for yourself.

www.theory1.orcon.net.nz/21.html
(sample cd catalouge page *50 of these* whatever i do in order to clean it up will have to be done to another 50 :( )

http://www.theory1.orcon.net.nz/search.html
(search page, this one is really bad-check it in netscape )

http://www.theory1.orcon.net.nz/browse.html
(not browse but actually sample results page)

i'm learning, this is just a fake project (obviously :o )

if you had to keep the exact same layout as in the above linked pages but clean & tidy all the code up, what would you do?

Vladdy
07-13-2002, 08:10 AM
use Notepad, seriously....

ACJavascript
07-13-2002, 05:17 PM
I saw alot of <td>&nbsp;</td>
Thats a wast of space, you should just create one lead table and build the rest of the tables within that one, it would clean the code up nicly.

Like this:

Lead Table
<table>
<tr>
<td>

Second Table
<table>
<tr>
<td>
Info
</td>
</tr>
<tr>
<td>
Other info ect.
</td>
</tr>
</table>

Info below that table
</td>
</tr>
</table>

Somthing like that, it might clean it up nicly, ;) :D

Hope this has helped :D:D

joh6nn
07-13-2002, 05:37 PM
here's a batch mode text editor. will allow you to make the same changes to multiple files at the same time.

http://www.simes.clara.co.uk/programs/xchange.htm

mat
07-14-2002, 01:12 AM
thanks,

i like the idea of using notepad and hand coding the whole thing but is it realistic when you have many, many pages and i also don't know code well enough -so it would be a very painstaking process- the ideal situation is to use DWMX and then know enough to be able to clean up all the crap and optimize the code :)

boxer_1
07-14-2002, 01:26 AM
You really need control over your raw source, once you get code generated by most WYSIWYG editors, cleaning it up can be as painstaking as hand coding. If you hand code, you can speed things up by using little shortcuts like copy/paste.

How about something down the middle...not a WYSIWYG editor, but with many built in features to speed-up your coding, such as tag tips, where you just type "<", wait a moment, and a menu will appear with a list of tags to choose from (just one example).

Here's a good free one you might want to have a look at. Very powerful! You can code quite quickley (with correct syntax checking) and still have complete control of your source ;).

http://www.chami.com/html-kit/

joh6nn
07-14-2002, 01:39 AM
or, again, the batch mode editor, allowing you to make the same changes, to several files at once, so that you don't have to do every file by hand.

Vladdy
07-14-2002, 03:39 AM
I respectfully disagree with the statement:

the ideal situation is to use DWMX and then know enough to be able to clean up all the crap and optimize the code

Doing is most of the times faster than RE-doing.