- 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
Admin
the picture in the article looks like it was taken in the quad at RPI.
is it ?
Admin
The problem here is that in PHP (I don't know how much you know about it) is that strings surrounded by single quotes act differently than strings surrounded by double quotes. There are different uses for each.
http://us3.php.net/types.string
Admin
Yep. and nevermind that it isn't movies or television... it's a class where you're supposed to learn. Using invalid information while asking where the IP address will go on a network diagram just confuses the hell out of those people who know it's invalid and wrong and does a great disservice to those who don't know it's wrong and are there trying to learn.
You can make valid, yet go-nowhere, IP addresses for examples in a class. Using dummy data that can never exist is teaching something that can cause problems later.
-- Seejay
Admin
For example, a 250GB HD has approx. 250,000,000,000 bytes of storage, not 268,435,456,000.
Admin
Geesh when I took the AP Computer Science A and AB exams, they both used Pascal.
I suddenly feel old, and I'm not even that old.
Admin
I disagree with those who say that a "bricks and mortar" high school can't effectively teach programming. I think it's true that they would have a hard time teaching all the latest tricks and techniques and keeping up with the newest changes to programming languages.
HOWEVER, at the secondary school level what is more important is the foundational principles of how computers work, how they understand code, and how to write good code. All else being equal, I'd rather have someone who learned all that from a competent teacher using Pascal than someone who taught himself C++ just using the documentation and some online tutorials.
Admin
$ apachectl -k stop
or
c:> net stop iisadmin
Admin
That should be c:> net stop w3svc, of course. Although
c:> net stop iisadmin this that and everything /FORCE
will not hurt either. Better be safe than sorry.
Admin
I had a required CIS101 class that basically ended up being "Intro to Office." They did have to cover lots of other basic things, though, and 99% of what came out of the prof's mouth was incorrect.
She stated:
It was horrific.
Addendum (2007-08-24 13:36):
When assigned to spec a computer for school, I was docked points for omitting a dial-up modem ("how would you get online?") and MS Office.
Admin
Admin
I almost never add my comments but I had one on one of my first CS classes. The teacher was explaining how to telnet to the computer science server. He gave out a handout, and was explaining to the class:
Go to Start. Then go to run. Type in telnet space comsci space [hostname] space edu.
Of course it did not work for anybody. The teacher told them to try it on another computer. I had to tell the teacher that I tryed replacing the spaces with dots by accident and it worked.
Thats when I realized I chose the wrong school. Stayed their anyway.
Admin
Admin
I "studied" IT GCSE and Computing A-Level in the UK, the sheer number of WTFs in the syllabus is mindblowing, but one of my favourites was an exam question that went "Describe the TCP/IP protocols" for 3 marks out of a possible 100. It cunningly penalised the knowledgeable, since I was only supposed to know three marks worth of stuff about TCP/IP. I had to rack my brains to work out what I was supposed to know, while all the average students just regurgitated what they had rote learned.
I think the correct answer was something like:
Admin
I don't see why teachers should have a problem keeping up with new trends in computing. Pro developers, sysadmins etc are all expected to stay on top of new technologies as part of their job. Why can't teachers? A subscription to Dr Dobbs and a few training weekends every year is all it takes.
Admin
Oh crap, didn't know about that! lol - disagree with it though, I've never even heard of a mebibyte before!
Admin
You mean like:
class Mother { ... };
class Father { ... }
class Milkman { ... }
class Child : public Mother, public Father, private Milkman { ... }
Admin
It is not, and I have bolded the reason why it has been changed. Hard drive manufacturers, who were selling drives by the fraction of a gigabyte, started calling 1,000,000,000 bytes a gigabyte in order to improve their marketing. (It's much like the 289/302/305 and 350/351 engine size wars of the 60's, 70's and 80's.)
If you look at a Seagate ST-225 20 megabyte hard drive, the byte count (notwithstanding bad sectors) was always over 20,000,000 bytes, usually slightly below or slightly above 20MB (20,971,520 bytes.) The fact that 360K and 720K floppies were measured that way (368,640 bytes in the case of the 360K floppy), and that RAM is STILL measured that way, indicates that this was a money grab by hard drive manufacturers, and only then did they get the standards bodies on-board.
It didn't matter that much in the 1.2GB vs. 1.3GB days, but now you're getting 36.8GB out of a 40GB drive, and only 931.3GB out of a "terabyte" drive--that's 70GB you're not getting.
Admin
No joke. If you intermix single quotes and double quotes throughout your code it's an indication that you don't have a logical brain. I'd hate to see your code. In fact I think I hate you.
Admin
If you haven't got a clue about PHP, Perl, bash or any other language where single and double quotes actually don't do the same thing and still feel compelled to express your opinion on their usage, it's an indication that you don't have a logical brain. I don't think I hate you, though. Hate is an indication of an illogical brain.
Admin
PHP, perl, bash, and their ilk aren't real languages (all have been replaced by superior languages). Pick a real language and you'll see the light. Real languages use "" to indicate strings and '' to indicate characters. Put that in your pipe.
Admin
Oh my goodness! It must have been Paula!
Well, I guess that's what the average PHB thinks, so it's not too bad. Or what the PHBs think is not too good - whatever.
Oh, come on, don't be so hard on her - this is almost remotely correct given that it stands for the World Wide Web aspect of the Internet. Though of course there is no longer a 1-to-1 mapping between the hosts named www and the WWW.
Admin
Real men don't use logical fallacies. Put that in your |.
Admin
Admin
I really only had two incompetent teachers. One was in my 4th year of university (the class was Software Engineering Principles). The prof had a BA and MA in Philosophy, and somehow got a PhD in CS, which evidently made him qualified to teach the class. The few classes I went to, he would show up reeking of pot smoke, and ramble on about topics that had nothing to do with computers at all. If you ever had to see him during office hours, chances are he would be hot-boxing his office. It was fun to knock on his door and listen to him shuffle around trying to pretend he wasn't there.
The other useless teacher I had was for a Unix Administration course the me and a few coworkers took several years ago (and paid for by our employer, which was a rarity). Each class consisted of reinstalling various flavours of Linux (RH5, RH6, Caldera, etc) and learning how to navigate the various GUIs (KDE, GNOME, etc). Nothing about actual adminstration. Most of our time was spent playing Minesweeper or helping the teacher when he had problems, and after about 4 classes, we dropped out and demanded our money back.
Admin
class Child : public Mother, protected Father, private Milkman { ... }
Admin
My thinking is that the best programmers are those who can self-teach the language constructs and have some intuitive level of how programming works, so that you don't NEED to be weighted down by bad teaching.
Fast forward to C++ lectures in first year engineering, 1996... The prof was decent, and I did learn some C++, but I could not believe how many people were signed up for software engineering who had no clue about computers or software or programming concepts. Call me arrogant if you like, but I think that if you really want to be a good programmer you need to have had some level of computer exposure prior to first year engineering.
I'm convinced there are two kinds of people in the world, those who can program, and those who cannot. There is some abstract thing, an 'aptitude' that people either have or do not have. People who have it often teach themselves to program at a young age, and people who do not will never program usefully.
This is not intended as any sort of insult, I suspect the same thing applies to mechanical engineering and playing music and acting and surgery and charmismatic speaking and boxing and writing fiction quite a lot of professions out there.
I could memorize lines, cues, facial expressions, and where my mark is, but that doesn't make me an 'actor'. Some jobs require training, which anyone can do, some require higher-than-normal physical or mental skills, which is more selective, and some require aptitude in some specific skill-set that is completely impossible to teach. And, of course, many jobs require two or all three of those. Acting takes training, aptitude, fairly good memory, and a lot of energy. (Stage acting, that is. That and a willingness to stare into bright lights and then walk blithely into total darkness without any night vision.)
However, those other jobs are older than programming, old enough that people realize you don't just decide, in college, that acting pays well (This is obviously hypothetical) so you will be an actor and take an acting class.
Right now, people see they can operate a computer (Which is something that just requires a lot of training and moderate intelligence.) and assume they can program a computer, that programming is simply a subset of 'operation' that pays more, and maybe requires slightly more intelligence.
When you think about society's exposure to computers, that is, normal people's exposure, it's been, at this point, 20 years. We're just now reaching the mark where normal people could have grown up with computers their entire life. Parents see their kids having a lot more training on computers than they do, and, not knowing anything about programming, assume that they could do that to, and the kids don't know better, and they go into college and fail, or, even worse, succeed. (It's more a societal thing than any specific 'parents' and 'kids'.)
I suspect in a generation, as people come to understand the difference between programming and operating a computer, we'll see less of this insanity fade away.
Admin
Not everything in the world has to do everything the same way as C#.
Admin
Not to put too fine a point on it, and no disrespect to Java as a programming language, but it's rubbish for teaching people the bones of computer science. I'm not even sure that C++ (my language of choice) is ideal: purists would argue for LISP or for Motorola assembler. Or maybe even Python.
I suspect that the only thing that got better was your grade point average. But is that worth coming out of the course without having learned anything worthwhile?
(And to repeat: in the real world, and in a properly decontaminated environment, there's nothing wrong with Java. As an academic language, it's useless.)
Admin
Don't mind me, I'm currently working on Rogue Wave's laughable wrappers around their equally laughable tools++.h.
And I'm sure that a number of people have referenced one or more of these books earlier on. Too many posts, too little time to check. And it's very, very late at night here.
Oh yeah. David, I'm afraid you're wrong. The STL is indeed "hard to learn." How many people do you know who habitually use STL algorithms at all, let alone correctly? (Discuss: member algorithms versus non-member algorithms.)
It is, however, easy to use. And extremely portable. And extremely powerful.
Admin
I used to wonder why my father, an admissions tutor in Computer Science at an English University (back in the days when we had Universities, rather than Kindergartens for the post-teens), would refuse to consider an applicant with an A-Level in Computer Science.
It seemed sort of counter-intuitive.
On the other hand, if you truly have the expected answer (which does indeed add up to three), then you fail. Well, you would have passed the test, perhaps. However, not a single one of the set (HTTP, FTP and SMTP) is a TCP/IP protocol. Arguably IP, but to be honest not even then. And why miss out the joy of IPTV (which had better bloody well be over TCP/IP) or Goatse/IP -- you need a good broadband connection for this one?
I think my father was right.
Admin
Yeah, but what are you gonna do? People who really know this stuff can earn more in industry instead of education. And the majority of PhD candidates in this country are not from this country.
Admin
You think that's bad, I got loads more. Like the fact that CD-RW drives were classified as "output devices", along with printers, speakers, monitors etc. And yet ordinary CD drives, floppies and so on were "storage devices".
Sorry, I know it's too late for anyone to read this anyway, but I still feel the need to vent after all these years...
Admin
The real WTF is that the student in question felt so superiour that they left the class rather than try to correct the teacher.
Admin
Note that to modern compilers, the keyword "register" is largely unneeded. Mostly, it's a promise by the programmer to never take the address of the variable. In general, modern optimizing compilers are pretty smart about register allocation, unlike the compilers in the 1970s.
If you declare a register variable, either the compiler will ignore/take it as a hint, or the compiler will keep that variable in a register for the duration of the function regardless if the code optimizer determines that it would be better to keep the variable in a register for only part of the function, and keep another variable in the register for another part of the function.
Admin
You need to review your logic.
"Those who can't [do], teach" != "Those who teach, can't [do]."
Admin
How exactly is Java useless as an academic language?
In a course that teaches you object oriented programming, it's good to be able to focus on just that... The objects, the principles of OOP (encaps, inheritance, abstraction) while keeping all the technical things out of the way. I would REALLY rather spend time learning that as a first year rather than learning "what are C++ function prototypes and why do we need to put them at the top before we can write the actual functions", or, my favorite, the nuance differences between a reference and a pointer.
Admin
Proof that the quote "Those who can't do, teach" is false:
"Those who can't do, teach" == "those who don't teach, can do". (If the first one is true, I want to prove that the second one must be true as well).
Proof:
Let T be "I teach" Let D be "I can do"
Premise:
~D->T (If I can't do, then I teach)
Using law of transposition:
~T->~(~D)
Using double negation rule:
~T->D
Which says, "If I don't teach, then I can do".
(If you want to be really picky, you'd have to use predicate logic and say "for all members of group people, if member X does not have predicate "can do", then that member has the predicate "teaches". It will, however, lead to the same conclusion, namely "for all members of group people, if member X does not have the predicate "teaches", then the member has the predicate "can do").
Acknowledge that in our existing universe of discourse, NOT all people who are not teachers are competent. There are many people who cannot do, yet have never taught.
Our initial premise "those who can't, teach" has led to a contradiction, and therefore, the premise must be false.
Q.E.D.
Admin
Sir, I award you the title of Grand High Pedant and the office of Nitpicker General.
Personally, I suspect that Bertrand Russel, being a philosopher of some repute himself, intended the quote which seems to bother you so as some form of witticism or "joke", rather than an axiomatic principle.
Admin
I got my SCJP (Sun Certified Java Programmer) certificate years ago (in 2001). To prepare for the exam, our company had arranged for us to get classes to study all the details we had to know.
The classes were a total waste of time; the teacher didn't even know if Java was case-sensitive, she wrote an example program using 'TRUE' while it should have been 'true' and then she was scratching her head over why it wouldn't compile...
She was a former COBOL programmer who had never used Java for a serious project. And she was supposed to teach us this...
Admin
And your assignment is: find two computer scientists who agree on what the bones of CS actually are.
I don't like Java, but obviously many CS educators consider it a useful teaching tool for some purposes.
If all you want to do is code, you don't need Stroustrup's books, right. But if you really want to understand the language, then there is no alternative to both The C++ Programming Language and The Design and Evolution of C++*, plus Meyers, plus Sutter.
Also, I don't quite understand how you would ignore Stroustrup's books without ignoring him entirely. There are not a lot of other ways of directly coming into contact with his views, at least for most people.
*) But the Reverend said design and evolution were mutually exclusive...
Admin
HTTP and SMTP, although being used almost exclusively over TCP/IP, are transport layer agnostic. But more recent versions of the FTP protocol are defined as an application layer protocol on top of TCP/IP. True, there used to be an NCP version that preceded the TCP version, but to my knowledge it is considered about as obsolete as IP versions 3 and lower.
Admin
My highschool was very similar:
int main(){ printf("Hello"); return 0; }
The above code would sometimes throw general protection windows errors (YEY). Infact all compilation errors would go though and instead we would get general protection errors... o well who is to say i'm wrong for thinking that that was stupid...
So one year a student decided that he was sick of it, and just hit alt+crtl+del during logon, killed the security process and went about his business... sigh the evil h4x0rz of alt+ctrl+del in a programming class. sigh
GOOOOO PUBLIC SCHOOLS!!!! Did I mention that IDE meant to them: "Notepad"? Eclipse? forgetaboudit! So narually I came out of that class knowing one thing and one thing only: 1+1 = general protection error!
Admin
That's funny, I've always been under the impression that 1024 bytes is a kilobyte, not a megabyte.
Admin
Sort of like in my CS class, when we were exploring function pointers, most of the class got several SIGSEGV messages followed by the system hanging with "Warning:" in the IDE.
Admin
Daniel? Is that you? Really though, she was a nice lady. Give her a break.
I do believe high schools SHOULD get a break teaching all the wrong stuff, because all they're really supposed to be teaching is conditionals and looping anyway. Who cares if nobody uses TC++ 3.0 for DOS. She was a nice lady.
Admin
Admin
Try posting in comp.std.c++, or use the contacting information provided on this page: http://www.research.att.com/~bs/
Pretty much anyone can get in contact with him if he/she wants to ;)
Admin
SMTP and HTTP only use a single byte stream; FTP needs to negotiate opening additional sockets to transfer the files over.
Admin
My ASM instructor did the same exact thing. He'd make literal explanations of obtuse computing concepts.
The only difference.
He was competent and was completely joking.
I feel sorry for Amro.