Sponsored by Sony Pictures
Do you believe the 2012 Mayan Prophecy? view!
whowillsurvive2012.com - The Mayan Calendar predicts the end of time: 2012. See the trailer for 2012, opening November 13.
208 Comments
- binchaud, on 11/13/2008, -9/+257LOL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww ...
FAIL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww ...
FAIL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww ...
FAIL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww ...
PASS: http://validator.w3.org/check?uri=http%3A%2F%2Fwww ... - bixby1, on 11/12/2008, -15/+148My code is dirty as a Bangkok hooker on Sunday morning.
- neodem, on 11/13/2008, -17/+145HTML isn't real code!
- arcticsoft, on 11/13/2008, -13/+124html and css are not code its formatting markup, but ok
- DifferentAngle, on 11/13/2008, -2/+60I came to read about programming and all I got was some HTML *****.
I like how the internet thinks the only "code" is html, and the only "design" is web-page design. - thePTS, on 11/13/2008, -1/+48And here I thought this article was about code.
- Sparticuz, on 11/13/2008, -0/+43Most of the errors on digg were entity encoding errors, also smashing's website is transitional, maybe they should take their own advice!
- TheNik, on 11/13/2008, -12/+48Do people really care that much? You're arguing semantics and it doesn't make you any cooler. Also, you're argument is false.
XHTML, HTML, and CSS are markup languages; C and C++ type languages are programming languages; and PHP is a scripting language, etc, etc. All of those languages are code, which is just a human readable translation of what a machine will accomplish through the code. Just because markup languages require other software to function doesn't mean they aren't code - even most programming languages require compilers or interpreters. Maybe we should just start exclusively using instruction sets... - melonhedd, on 11/13/2008, -6/+41HTML is not coding.
- clinko, on 11/13/2008, -4/+37Another quick tip: Have a a good toolkit.
Personally, for HTML/ASP/SQL/PYTHON I use Notepad++ (It's on sourceforge)
Tab Indentation or Shift+Tab to "un-indent" and syntax highlighting keeps my code pretty clean. - inactive, on 11/13/2008, -2/+34Hilarious. Good point.
- s1000, on 11/13/2008, -1/+29Smashing Magazine didn't exactly write it...
http://css-tricks.com/guest-post-on-writing-better ... - MWeather, on 11/13/2008, -4/+32Agreed. markup != code. No logic, no code.
- Hydraulix, on 11/13/2008, -3/+30#13. Don't get high off your own supply.
- inactive, on 11/13/2008, -1/+25so.... why did you read the article?
- drmangrum, on 11/13/2008, -5/+29HTML is not code. Code deals with program logic. Just like it's name tells us, HTML is MARKUP!
- russj117, on 11/13/2008, -0/+20microsoft has never cared about the rules. thanks for IE6!
- chuckDontSurf, on 11/13/2008, -0/+19And then comment on it?
- chadsmith729, on 11/13/2008, -0/+19FAIL:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww ...
26 errors validating. Yes smashingmagazine.com is validating, but what about the actual article? - BuG56, on 11/13/2008, -0/+18You're an idiot. Doctypes ensure that the HTML and CSS will be valid across all standards-compliant browsers. I understand that when you're making a super-cool website for your dog with a gamut of about 5 tags and no CSS, that it will work in every browser. Some of us have actual web design to do, and we do it the right way.
P.S. Do you have any idea how needlessly complicated it would be to make all browsers close tags that standalone? Or how broken sites would look if half of them did not support it. I'm sorry XHTML is too hard for you. GTFO my profession. - Murdats, on 11/13/2008, -0/+18in the programming section no less
- rowjimmy, on 11/13/2008, -6/+23for cereal. markup != code
- drewbe121212, on 11/13/2008, -0/+16and what happens if browsers stop supporting the old stuff? Keep up with the times, shesh! Standards are their for a reason. To FOLLOW them.
- Meep3D, on 11/13/2008, -0/+14It's better to do it manually, really, as then you can break the conventions when you want to.
Notepad++ has code autoindent also for when you want it. - ifknot, on 11/13/2008, -0/+12@TheNik "yes" from the point of view of the SCIENCE of computing it matters a lot! Where one is assuming from the normative sematics that "code" means "programming language" and if you follow Chomsky's arguement that language is descriptive not prescriptive then the meaning of "code" is "programming language" then we can progress. A programming language does not have to be Turing-complete but must posses computational power eg SQL. (PHP is a Turing-complete language btw its mode of execution is irrelevant, in fact a programming language does not need a computer, a Jacquard loom will do for example). However in the abscence of ANY computational power algorithms can not be expressed and, therefore, markup languages like HTML & CSS or formal grammars like BNF are NOT considereded programming languages, ergo should not be called code. Whilst it is true that programming languages may be embedded in markup it does not qualify the surrounding layout hints as "code". All of which I feel falsifys your arguement and, therefore, enhances articsoft's coolness and makes you look very douche-like.
markup != code - Meep3D, on 11/13/2008, -1/+13I think the requirement for 'code' is to be turing complete. The line between compiled and scripted languages is also blurry at best, but HTML and CSS are really in a different group.
- rowjimmy, on 11/13/2008, -0/+12and a lot of wysiwyg code is absolutely horrible. so some company uses frontpage or whatever, and then a few years later hires an IT firm to make a database-driven site, but refuses to change the look and feel or some weird quirk - so the it people have to use the old, messed up markup, and it continues to live on, version after version after version, until the ugliness is so pervasive that to clean it up would require scrapping the entire site.
- prodigitalson, on 11/13/2008, -1/+13/sigh
Dugg down for your implied dependence on the incredibly bloated yet nearly useless application known as Dreamweaver. - gerrylazlo, on 11/13/2008, -2/+13Asp, asp.net, and php are tightly entwined with CSS, you pedantic jackass.
- eSentrik, on 11/13/2008, -1/+11You really have a knack for stupid and ignorant comments.
- covertbadger, on 11/13/2008, -2/+12Ugh, manual indentation? Why not use an editor that indents automatically as you type, and can reindent an entire file correctly with one command? Vim, for instance. Or Visual Studio for MS stuff like ASP (pretty nice for html too).
- Jelfish, on 11/13/2008, -0/+10This might be useful for static web pages, but if you're using a server-side scripting language like PHP, it's more important to keep your scripts neat than the HTML output, IMO. That said, inline scripting is almost impossible to keep consistently neat.
- inactive, on 11/13/2008, -0/+10"nobody gives a flying ***** about obeying the w3c ... as long as browsers render to standards"
Well, the W3C _IS_ those standards. - MiDri, on 11/13/2008, -0/+9I love me some Notepad++! HTML, JavaScript, and PHP by hand baby!
- inactive, on 11/13/2008, -0/+9Using "proper indentation" is all well and good for a copy maintained on the developer's side. The copy sent to the server's side should be as dense as possible (without so much white-space) to speed download time for the lowly page visitor (who, after all, deserves first concern).
The "wrapper" div is often necessary when the body is styled "text-align: center" and the wrapper is then "text-align: left" to place a column-based layout centered on the page.
Divs around a navigation ul allow for properties applied to the ul (margins, padding, etc.) to allow for the box-model vagaries of Internet Explorer. Again, the author possibly has not dealt with cross-browser testing with proper respect for the page visitor. The page visitor's usability should be, after all, the webmaster's FIRST concern.
The article writer's lack of proper grammar and spelling, itself, indicates poor webmastering skills: poor preparation for the task, and detracts from his credibility entirely. - wolfing, on 11/13/2008, -0/+9Bah, who needs CSS when you have tables baby yeah! embedding 8 tables is fun! (if you like the funny stair-type looking text in your HTML code that only shows 3 letters after the 4th embedded table and makes you scroll your source left and right to see anything type of thing and yes this is sarcastic and yes I hate punctuations I think they're overrated)
- steelclash84, on 11/13/2008, -2/+11The validation is nice, however it isn't end-all be-all. Many servers have the doctypes and encoding set for the entire server to return a specific encoding, so it isn't necessary to include in the html markup. Due to that, most validations will fail on these types of websites that have massive number of documents.
- Jarasmen, on 11/13/2008, -0/+9This is one of the biggest loads of bull I have ever seen. Hey, if you hate standards so much, why use html tags alltogheter? There's so many of them, they're hard to remember and make you dependant on some ***** who wants you to make pages in his own facist ways!
- mark3103, on 11/13/2008, -0/+9Whether you call it code or mark up or markup code these html & css tips are great - and well presented & illustrated - good job!
- simmin, on 11/13/2008, -0/+9A simile = comparison when using words "like" or "as"
- jjamminjon, on 11/13/2008, -0/+8Very nice article, I hate sloppiness.
- insertAliasHere, on 11/13/2008, -1/+9Your opinion is ignorant because this article is in the programming section with over 1000 diggs now. Obviously some people care about it and don't find it boring. You know, regular people.
So, yes, your comment is stupid. It's not like someone forced you to click the article and read it. So you come and comment to the people that actually enjoyed it and you talk about how much you don't care about it....come on. You have to see why we think you're a jackass. - jaysire, on 11/13/2008, -0/+8Or... how about "only put it in if you've ACTUALLY mastered it", meaning you are an expert at taking any photoshopped layout and turning it into as close an identical web-page as possible within hours, using clean, light markup which you know beforehand will work in all major browsers. This is not something "everyone knows". It is, however, something a lot of people claim to.
- inactive, on 11/13/2008, -0/+8But Google's generated HTML codes always uses inline js, and it is freaking fast.
- Dested, on 11/13/2008, -3/+11Hey you! Get off my soap box!
- russj117, on 11/13/2008, -0/+8when did we stop using frontpage? does this mean i have to learn HTML?
- gigitrix, on 11/13/2008, -0/+8//
(geddit! I'm commenting!) - homercles337, on 11/13/2008, -3/+10I was going to comment the exact same thing. Its good that i read the comments before commenting.
- wolfing, on 11/13/2008, -0/+7I like chicks in latex
- lauraT1987, on 11/13/2008, -0/+7Code turns me on. What is code anyway?
-
Show 51 - 100 of 212 discussions




What is Digg?