- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Thanks. Arg, below is another HTML document that validates.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<title>foo</title>
</head>
<p>foo</p>
</body>
</html>
Admin
Hate to quibble but its lowercase <html> </html>. If your teaching the next gen why not be XHTML compliant in your teachings. Otherwise WTF.
Admin
I don't disagree.
But I must share a personal experience:
My son (a recent graduate from The Art Institute of Washington: a school of some noteriety) was being (mis)taught HTML by a female like this.
She described HTML tables in the most bizaare way; including the TR tag OUTSIDE the TABLE tag.
I complained to the Dean (noting that most of the class was failing-that is a reflection on the teacher not the students) and was pointed to her online portfolio. It seems she was "an esteemed professional" web developer. Obviously, she knew how to use WYSIWYG tools but no understanding of the foundational principles of HTML.
So, this *does* exists sadly.
As a footnote; I coached my son (who is a gifted artist but was not a 'techie') and the only students who passed in that course were those whom he helped outside class.
Admin
i would kill for chick teacher. who cares she knows a shit
Admin
That would be the TV show "Numb3rs" !
Admin
Those who can - do.
Those who can't - teach.
Those who never will - need tenure.
Admin
Wrong-o. I had exactly this kind of lecturer (lecturer != professor) in my degree six or seven years ago - didn't understand basic computing or web concepts, called writing HTML "programming", instructed us that the code for images on a web page was "<image>filepath/filename.ext</image>", stumped by even the theory of complex things like "basic Javascript"... you name it.
I complained about his teaching, and was basically told by my head of department to shut up and sit down. I complained about her, and was nearly expelled for my trouble. Got away in the end with a slapped wrist (and she lost her job), but it always left a bad taste in my mouth.
Oh, and the lecturer? Moved the next year... to teaching first-years. Less chance anyone'll spot he was making it up as he went along, I guess.
Admin
I've read only halfway through the 190+ comments so far and cannot stop me from wondering how many "teachers" seem to be out there who can't admit they don't know much about something but have to teach it for those and those reasons. This is an opportunity for them to mount an expedition style course where the teacher is only primus inter pares and all participants can learn from each other. It is also a good opportunity for the teacher to teach a little about ways of how to learn. Such a course may turn out better than a course of a teacher who knows his field by heart but is an idiot when it comes to didactics...
In my opinion, a good teacher takes pride in students/pupils who surpass her/him. Instead, there are loads of lazy, numbed losers who don't care a penny about their students and who suck all joy of learning and all curiosity out of the students by suppressing anything that does not fit in their narrow and rigid corset of "teaching". This situation just drives me crazy. )-:
Another subject: For those of you who point out that omitting the HTML- and the HEAD-*tags* (not the necessary content, though) is valid according to the spec - this is correct, but nevertheless that was not the explanation of "Gabrielle". According to Alex, she "insisted that it made more sense that way because HTML was "the language" and not a part of "the code." Her "proof" of this was that, thanks to Internet Explorer's forgiving nature, the pages rendered just fine."
She should have said something about the spec and about good and bad style here. But she didn't. In fact she doesn't seem to know that something like a spec exists at all.
Admin
5 pages already? At least the people who taught us HTML had a clue, though writing files on the ASP server was another matter...
CAPTCHA: FrontPage (as in Microsoft FrontPage)
Admin
HTML is not a programming language.
Programming languages define operations. There are no operations in HTML.
Programming languages support flow-control, like if statements/JNEs and loops. There is no flow-control in HTML.
Programming languages support variables/registers. There are no variables in HTML.
HTML is a markup language. It is applied to a body of text, and is used to "mark up" the various elements either semantically (good, original intention) or for formatting purposes (bad, and not what HTML was ever originally intended for).
HTML is a list of fancy formatting codes. Unless you'd argue the RTF spec constitutes a programming language, you can't argue HTML is one, either.
There is no definition of "programming language" that includes HTML and excludes, say, the specs for the Word DOC format (in fact, this includes active elements like macros, so there's more in favour of this being a programming language than HTML).
There are, however, easy definitions which exclude HTML but include every other widely-agreed-on programming language in the world.
Admin
Sigh. The end tag for the TR element is optional. After all this back and forth about what's valid and links to the DTDs...
Admin
Yes, it validates as a fragment, but it does not validate if you save it as a file and upload it to the validator
Admin
If you actually bothered to read what it said she did, it said she used the body tag and not the html tag. If you use what you did, but put the body tag above everything but your doc type declaration, you would nopice that it is 100% invalid. Yes you can omit all html, body and head, but you CANNOT start an html document with body and make it valid. Here is what you had but modified to fit what she did:
or if you remove the title part for syntax reasons it still doesn't work. So this is clearly WTF.
Admin
We'll consider ourselves suitably chastised by the FrontPage 5.0 master.
Admin
Admin
In a high school programming course (final year) I once had a 45 min conversation explaining to my teacher what exactly a roman numeral was so that I could then spend 30 min asking her the implementation question about the assignment she had given me regarding roman numerals. She just didn't get it... thank god for University profs having above average intelligence. Thus far in my Computer Engineering program I haven't encountered anything worse then profs who can't teach but still know their stuff.
Captcha: perfection... hehehe
Admin
Vim? You know you should be using emacs, right? ;-)
Admin
<reminisce type="oldfart">
Ahhh, the goold old days again. I remember when this was an expected situation and everyone could handle it. My first (the first) high school comp sci teacher was a math teacher who seemed quite happy to learn so much from the course from those of us who could help her out.
</reminisce>
Admin
<sarcasm>
The </sarcasm> tag is optional. But if you have the </sarcasm> tag you must have the beginning <sarcasm> tag as well. Check it in the validator here http://thedailywtf.com/forums/AddPost.aspx?PostID=107247&Quote=True
Trust me, I programmed this post myself.
</sarcasm>
Admin
We've all had our own different experiences with the so-called ":educational system", but I realized in fourth grade that the purpose of school is to prevent education, not facilitate it.
As the years rolled on, I kept hoping I was just unlucky (or wrong) and that others had a better time of it. ALL evidence since then has only convinced me that my initial appraisal was right on target.
Admin
7.3 The <samp class="edef">HTML</samp> element
Start tag: optional, End tag: optional
. . .
7.4 The document head
7.4.1 The <samp class="edef">HEAD</samp> element
Start tag: optional, End tag: optional
You provided a link and din't even read the doc. It clearly states that the HTML, Body and Head elements are all OPTIONAL.
Admin
Admin
While the above posters are correct -- the HTML tag is not needed for validation -- neither is the BODY tag (nor HEAD). The elements are, but that's a different thing entirely.
However, best practices is (and always has been) to include all of them anyway. Note that even the W3C pages explaining this still contain HTML, HEAD and BODY tags. And from the sound of the above, I doubt that the 'professor' was aware of any of this.
Admin
That's why community colleges (you read that right) are usually not half bad. One of my teachers in CC was not the greatest, but almost all the rest were.
Admin
Admin
I took a dual credit course when I was in high school with the local community college, covering the A+ exam materials. The first day of class, she told us she didn't want to teach the class, and that she wasn't very good "at the computer things"...
Fast forward to a month and a half later, I'm in the dean's office for "trying to hack the school's network". I asked why they thought that, the response was "I looked at your screen while you were supposed to be doing an assignment, and windows were just popping up all over the place!"
... I was using ALT+Tab.
I told the administrators of the school that they were wasting my time and walked out of the meeting. I went to the high school the next day and dropped the class.
Captcha: awesomeness
Admin
I just tried it and it seems to validate
http://validator.w3.org/check?uri= ... test.html
Admin
Nice. I've got a computer-drafting degree from ITT and the whole time I was thinking the same thing (WTFU doesn't happen to be ITT, does it). Actual comment from the director of the computer-aided drafting department (who also happened to be our first teacher) during our first week of class, "I don't know anything about computers, and I don't plan on learning." That comment was made during a lecture by the way, not something private I overheard.
Every new class we ushered in a newly hired teacher (yes, 2 complete turn-overs of teachers in that department in 18 months--that includes department directors). I dare say most of those teachers hadn't used a computer before...and this was only 7 years ago.
No lie.
(granted, we're talking about a technical college in this case, but still...)
Admin
Just 'glorified' lisp? Really ?
Try running a recursive intensive application in common lisp, see what happens to the stack.
Admin
What many people don't know is that web servers do not serve requests on port 80, they only listen on port 80. When a connection request is accepted, another dynamic port is opened that will handle the actual connection (this is normal TCP). TCP-aware firewalls (which need to be stateful) recognize this and temporarily allow traffic to and from this dynamic port. On most OSes, the new port will always be in the dynamic (unprivileged) range 49152 through 65535.
FTP servers only establish the control connection in this way, the actual data transfer requires another (typically more or less dynamic) port that's used to create an outbound data connection (in the case of active FTP) rsp. listens for an inbound connection (passive FTP). This port number can typically be freely chosen by the application if it is not in use and the process has sufficient privileges.
No, it's considered a query language, else it would be called SPL.
This happened to me twice with a (non-Dell) midi-tower, so I guess it's fine that that large button actually has no technical function at all. However, its presence is still confusing. Why not just use the logo as seen on dell.com?
Hell, no! They are examples of domain-specific languages, without the "programming". Deal with it.
http://en.wikipedia.org/wiki/Argument_from_authority
While I agree there is a grey area in what constitutes a programming language, I consider the ability to implement some basic finite state automatons using it a minimum prerequisite. And neither HTML nor XML satisfy those requirements (although some XML-based languages like XSLT do). Standard SQL may, and most vendor-specific extended variants of SQL definitely do satisfy this requirement, though, I'll give you that much.
Admin
I see that you can write one-line programs in English. That does not make you a great English language programmer like Shakespeare.
Admin
This is completely normal. I'm in communications at some small Canadian university (I probably shouldn't name them, so lets just say they're located in Toronto and named after the location...). I had the same sad excuse for teaching several times. The funniest one is this, and it might just top yours. For our 'web culture' class, which tries to teach a little html and talk about people on the 'net, there was a section on leek culture. No, not leet/l33t culture... leek culture. She did an ENTIRE lecture on this, and every slide was entitled "leek culture". I LMFAO, at first I thought she was speaking about some strange internet cult, and then she got into it and no, it was definitely l33t. She talked about the use of numbers to substitute letters, she talked about online gaming, she talked about chat; her presentation was just... horribly wrong? Oh sweet jesus, I paid how much for this course? I went up to her at the end of class and said "you know it's leet speak right? like... elite?" "No no, I'm sure it's leek speak." "No.. really... it's pronounced 'leet'." At that point I loaded up a wikipedia article (which was of course more comprehensive than her class had been. "Oh, I guess that does make sense". Doh!
Admin
No, the really sad part is that elitist morons like you still think vim is the best thing since sliced bread. Ever heard of Textmate? Just as powerful, great syntax highlighting for a lot of languages...and best of all it doesn't have an obtuse syntax that you idiots force yourselves to learn...
Admin
I disagree: defining "programming languages" is inherently difficult.
For instance, look at your requirement that a programming language defines new operations. Assembly language does no such thing. You have a fixed set of operations -- the opcodes -- and a bunch of constants. Sure, modern assembly languages have things like macros and subroutines, but the early ones did not. Is assembly language a programming language?
How about your requirement that a programming language needs variables or registers? The reverse-polish-notation programs for HP calculators has no variables -- everything is stored on the stack. Likewise, there are stack-based assembly programs and virtual machines that have no variables, and you can program in subsets of Forth or Postscript without using registers or variables and still have a Turing-complete program. For that matter, a Turing machine has no variables -- just the memory strip. Is a Turing machine program a programming language?
What about flow control? Even a Turing machine has flow control, right? Well, Turing machines have been proven equivalent to the Church lambda calculus, which to my understanding has no flow control -- it's just math. Math itself can be done without flow control... Is it a programming language? How about a subset of the Mathematica programming language? Turing-complete, but no flow control. Or if this is all a stretch, how about Prolog -- a "widely agreed upon" declarative, Turing-complete programming language with no flow control.
And even Turing-completeness is not a sure thing -- it includes things that aren't "widely agreed upon" programming languages and excludes others. The term "programming languages" is not an easy thing to define.
Admin
I definitely agree.
E.g: My freshman year theoretical CS professor is a hardcore "mathematician hiding as a computer scientist" .. also teaches at Carnegie Mellon and researched at Stanford, member of MathML W3C group, what not.
In one lecture, he wasn't too sure about C++ syntax (while explaining compiler principles), used ':=' for assignment instead of just '=', before finally giving in and saying he's not sure. On the other hand, he runs out of Roman and Greek letters in lecture notes and resorts to weird symbols ("I'm gonna have to use this squiggly arrow to..."), can make StandardML and Prolog code appear out of nowhere and made us write our own compiler in 2nd semester!
Admin
The real WTF is how you think Windows/Linux users can use textmate for development. Also vim is the best editor, period, no matter how much you are obsessed with an OSX text editor.
Admin
Sorry, posted this before i got to your apology
Admin
Sorry, posted this before i got to your apology
Admin
Let me take that one more step, here's proof:
% host slashdot.org
slashdot.org A 66.35.250.150
% python
Python 2.3.5 (#2, Oct 16 2006, 19:19:48)
>>> x = 66
>>> x = x << 8 | 35
>>> x = x << 8 | 250
>>> x = x << 8 | 150
>>> print x
1109654166
% ping 1109654166
PING 1109654166 (66.35.250.150): 56 data bytes
..
% wget 1109654166
--11:25:44-- http://1109654166/
=> `index.html.2'
Connecting to 1109654166[66.35.250.150]:80... connected.
As an extra, if you are using internet explorer you can simply click here: http://1109654166/
Admin
Admin
Whether or not your disagreement is valid, it still doesn't change the fact that HTML is not a programming language.
Admin
his one is really making me reach for that believability-o-meter.
Agree. this sounds like BS
Admin
This reminds me of a intro to web programming class I had to take for my CIS degree. I argued for 15 minutes with the teacher in front of the class having to explain to him why he was wrong is saying that GIF files were vector images. His reasoning was that raster images were for photos and vector images were for clip art therefore since JPEG files were used for photos they were raster and since GIF files were for clip art they were vector. He still didn't believe me after I explained that GIF and JPEG were just two different types of compression for raster images. Sigh...
Admin
Admin
scary..i had an ex gymteacher for a computer introductions course at our comptech school, and she usually spoke about a zip driver when it was a zip drive, and there were lots of other dramas similair to the one above.
Admin
This reminded me of a TA I had in Intro to Comp Sci, which used FORTRAN.
The professor did the lectures, and TA's (i.e. grad students) taught the smaller classes. The one I was stuck with did not know FORTRAN at all, despite having apparently acquired a BS in computer science. I had to correct her constantly in the class, and eventually the other students simply started asking me the questions instead of her.
Admin
I should have mentioned that as well. =) Personally, I use XHTML 1.1 (yes, I've read "XHTML Considered Harmful", I just happen to think the people XHTML 'harms' deserve it), I just felt the need to vent at people who preach incorrect doctrine.
--
Christopher Clark
Admin
Reminds of one class I had at college -- an early engineering or possibly math course. The teaching assistant was, I believe, French. As far as non-native-English-speaking TAs go, he was by no means the worst, and I wouldn't normally pick on someone's accent, but it did produce some amusing results. He would pronounced "integer" with a hard 'g', as "integrrrr" rather than the standard English (American?) pronunciation of "intejer". It was jarring at first, but we quickly got used to it, to the point where American students answering questions would use his pronunciation and then correct themselves.
I also had a DiffEq professor who consistently pronounced "matrix/matrices" like "mattress/mattresses". But everyone knew what he meant, plus he was freaking brilliant, so no one ever complained.
Admin
It reminds me of the time I took a class on web development. In the first class the teacher used ms word to create web pages. I only took one class, so not to pollute any knowledge I already posessed
Admin
This reminds me of my Calc 3 and DiffEq professor. He was as blind as a bat .. maybe more so .. when he didn't wear his glasses (which I had only ever seen him wear when he was walking to/from his office). So when he'd go up to the chalkboard to show us examples and what-not, his face would be so close to the board, that his nose would inevitably erase everything he was writing. Luckily for me, these were cake courses that I was taking just for the easy A.