John, this is not very pleasant from your side...
I'll second that, Richinri. It's not always possible, but unobtrusive JavaScript is the best practice to avoid the problems of traditional JavaScript programming and should be the goal.
Remi
John, this is not very pleasant from your side...
I'll second that, Richinri. It's not always possible, but unobtrusive JavaScript is the best practice to avoid the problems of traditional JavaScript programming and should be the goal.
Remi
Last edited by remi; 07 April 2009 at 06:02 PM.
Thanks Remi - you gave me tears of joy!
I said "in this particular case". Didn't I? But you don't think, just blindly follow rules that you don't actually understand.
Now, to make it clear - in this particular case:
1. The tweak with similar SCC embedding is used so you already don't have a purely separate CSS even if you do what you suggest. Also, WD inserts whole lot of inline styles.
2. This recommendation goes to user who wants to reduce his work with code to minimum. Creating and editing one more file just for this simple setting is overkill.
3. In case of non-programmer user and XWD work flow the best practice is to embed as much as you can into WEB file to avoid unnecessary burden of manual file management.
4. The link to the CSS file in your example is not updated automatically if user changes exported file name. You have to use files folder if you want your CSS file to be published with WD.
5. Background may be different in different pages of the same site thus, in your case increasing number of files to maintain.
Now to you misunderstanding of standards and practices:
1. WD produces XHTML 1.0 Transitional. This is strictly defined standard which will never change. So everything that's valid for this standard today will stay valid forever.
2. Best programming practice is the one that produces best maintainable code. In these circumstances your code is a maintenance nightmare and provides no practical advantages.
Now, instead of doing something useful I waste a time to explain obvious things just because you don't want to think on your own.
John.
I agree that change is difficult. I had one heck of a time getting away from table based layout and kept thinking of reasons why it was easier. I also agree that some times, perhaps in this case, it was easier to do it the "old" way. But here is what I discovered about programming websites - it is always "easier" to do it the quick and dirty way once, then twice, then again, then it is too late to go back and change it all.
Programmers are notoriously sloppy - most in the business will tell you that. It was only when I saw how easy my websites became to find, fix and change things that I began to see the beauty of taking that little extra time in the beginning to build the proper foundation.
Some keep thinking it is only the inexperienced user that will use XWD - I have contended from the start that that may not and, I believe, should not be the case. I speak to that crowd.
Rich, all you say is absolutly correct for website programming. But XWD workflow is based on design, not on programming. You still can't grasp it. So even if we use some programming fragments they have to be optimised for the main workflow. You can't apply your programming habbits to one line of code in the project that you don't programm the usual way. Don't you understand?
As I say, there's no advantages in using most common programming practices with XWD simply because 90% of code will not follow them anyway.
You win nothing, you lose maintanability. Think about it. Programming for XWD is different.
You are talking about ease of maintaing you projects (sites). Yes, if you maintain them as a set of HTML files, images etc, then it's better to keep separate CSS. But XWD projects are maintained as WEB files. So, as you say: "how easy my websites became to find, fix and change things" - is not applicable to XWD, you search, fix and change WEB designs within XWD.
Last edited by covoxer; 07 April 2009 at 07:30 PM.
John.
Understood. But I contend there will be many that will want to bridge the gap to a middle road between XWD and 100% standards programming, especially if they design for the corporate world. The corporate market, many times, dictates certain practices - particularly in the area of unobtrusive programming. I say what I do to let those guys know that they CAN use XWD without throwing out what they have learned or need to do to satisfy the corporate demands if they exist.
BOTH sides, I believe, belong in this forum since both sides exist in the real web world.
Yes, XWD maintains via the .web file, but in certain key areas (unobtrusive programming, PHP includes etc.) it doesn't necessarily HAVE to. So, as shocking as this may sound, neither of us is wrong.
I design for the corporate world and in my corner of the world the code made by any wysiwyg application (incl. dreamweaver) is never used for production. I make wireframes and designs and other people do the coding according to standards and mostly by hand.
So that argument around corporate world usage does not apply - not where I live. Really how often and in what scale is one guy responsible of the design phases and also the coding (with a wysiwyg app)? Sorry, but I don't see that with bigger clients and bigger vendors. It is always team work with many disciplines involved.
In professional "website business" WD is great for the design phases; making wireframes, doing the final layouts and presenting the whole "cake" with working interactions. The coding is done after and with other tools.
For personal home sites WD can handle the whole process from design and up to deploying the files to the server. I would imagine that within these latter users whether standards are followed precisely or not is not so important.
In my mind WD does great what it was meant to do.
Bookmarks