- 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
Sleep doesn't have a save. At least prior to the crappy kids editions.
Admin
Obviously the "j" key was broken.
Admin
Admin
It's amazing how many clueless people are in a position to teach others these days.
Admin
Somebody earlier made the comment that they hoped the professor was from a "community" college.
I teach in a community college and the college hires only instructors with successful industry experience. Students don't suffer under academics who haven't succeeded in a real job.
Associate degree graduates also have the advantage of having taken more program classes (i.e. programming classes for a programming degree, networking classes for a networking degree...) than a student graduating from a 4-year college with the same degree.
Don't knock the 2-year colleges. They are a well-kept secret of quality instruction, especially in the technical fields.
Of course, there are bad instructors in all colleges. But on average, I believe the 2-year faculty are better.
Admin
Edit to my comment above: At least in Wisconsin.
My captcha for this post: wisi
Admin
Admin
Those professors love it when they ask you for a string length function if you give them:
Especially if they ask you to write it on a whiteboard... so that people who have never programmed before can see and learn from it.
I think that was the last time I was asked to demonstrate anything for that class ;)
Admin
Dividing by modulus is dividing by positive number. Negative divided by positive is negative.
Admin
Oh, c'mon... Java operator % is not a modulus, it's a remainder. Remainders are always positive.
Admin
[quote user="Some Guy] No. Just, no. Performing modulus division on a negative number always results in a negative number.
Let's go back to "frist" grade for a moment here, and do some "remainder division".
21 / 5 = 4R1. Simple. Dividing 5 goes into 21 4 times, leaving 1 leftover unit. Reversing this, we get 5 * 4 + 1 = 21.
Now, let's add the not-quite-so-frist grade concept of negative numbers into the fray.
-21 / 5 = X. We already know that we'll get -4, but what remains? The remainder is -1. Dividing a negative number by a positive one cannot result in a positive remainder. Why? Reverse the equation. 5 * -4 + X = -21. X becomes -1. So -21 / 5 = -4R-1. QED.[/quote] Yes, but -1 mod 5 = 4 mod 5.
Admin
hehe. were you in school in Leeuwarden?
Admin
Come on. If some human beings can't be left alone with furniture, why the hell are we even investing in them with education? Teacher was right to mock him, someone should tell the teacher and the class about this website, so that even more hilarity would ensue.
Admin
Once I fell asleep in class, unfortunately while sitting in the first row where it was visible to everyone including the prof. Even more unfortunately, I fell asleep with my mouth hanging open. I was awakened to the sound of pieces of chalk flying by my face as the prof tried to land one in the wide-open target.
The same prof (who was teaching some kind of computers course) made a mistake in class which I tried to correct. He made some jerk comment which caused the whole class to laugh at me. Undaunted, I went home, found proof that I was right, and emailed it to him. The next day he actually apologized to me in front of the class.
We actually got along quite well after that, and 14 years later when I look back, I still remember him as one of my favorite profs. He was the one who wrote a letter of recommendation for me which landed me a summer job in the faculty for a few years.
Admin
Signaling Link Code Interface?
Admin
Signaling Link Code Interface?
Admin
Admin
"Krona", if you please.
Admin
My teachers used to love to joke like this, i was sort of 'in' with teachers so when teachers sit together and chat about various stuff they were telling of various jokes like this. I'm pretty sure that teacher would get extremely amused to see it posted as WTF. Somehow, teachers are most amused by dunning kruger effect.
Admin
I once had a very similar experience with one of my professors, who, surprisingly enough, held a PhD in Computer Science from USC. She had given us an assignment to write a C console app to simulate the "dining philosopher" problem. She instructed us that the program needed to accept two string parameters from the command line. Don't ask me what the parameters were supposed to be, I've long since forgotten. Anyway, after lecture, I went into the lab, sat down, and started writing my program:
#include <stdio.h>
int main (int argc, char **argv) {
All of a sudden I was interrupted by my professor's voice, right in my ear:
Professor: "What are you doing???" Me: Doing my programming assignment. Professor: For what class? Me: For your class. Professor: Then why do you have int argc and char **argv? Me: Well, you said we needed to write it in C, and that it needed to accept parameters from the command line. Professor: Yeah, but that's not how you do it. Me: Yes it is. Professor: <taken aback> No it's not! I told you that it needs to accept two string parameters. Me: I know, but I haven't gotten to that part yet. Professor: You did it wrong. That's not how you do command line parameters in C. Me: Yes it is. Professor: <getting angry now> No it's not! Me: <exasperated> Okay. How do you do it? Professor: <leaning in to type> Like this:
int main (char *param1, char *param2)
Let's just say that conversation didn't end on a positive note. She eventually gave up in a big "harrumph!" and walked away, content in her knowledge that my program was doomed to fail. Until some of the other students who had never written in C before began to ask her how to do it. At first she just regurgitated the same example she had typed on my computer, but when it became clear that that was indeed NOT how to accept command-line params in C, she eventually just pointed to me and said "Ask him." Not exactly a big moment of glory and triumph for me, mind you, since I hadn't volunteered to be a T.A. for the day, and I wasn't happy about being singled out, and then having to show half the class, one by one, how to use argc and argv.
Admin
This reminds me our instructor in practical lessons who was admitting that SQL syntax errors returned by the remote SQL server are caused by wrong "values" in capacitors inside the computer and student was forced to turn off his computer and keep it switched off for more then 30 seconds just to be sure that all capacitors will be fully discharged. Surprisingly this mystical procedure had no effect on the syntax error :)
Admin
I dunno... I have seen a lot of programmers fresh out of college repeating what they see in books... and there is the old saying that those who cannot do ... teach. I suspect that the teacher read : ( rnd * Range ) + offset and lacked the capacity for independent thinking to realize that offset was a requirement only if your minimum number was greater than 0. That very form of thinking seems to possess 90% of the CS majors that I have met.
Captcha: incassum - u said *ss :)
Admin
Admin
Supra shoes are so popular all over the world. Whatever you take on Supra being in the Supra Skytop Shoes market. Now Supra Strapped Shoes also very popular attention. It is nice that they actually took the time to make Supra Skate Shoes that work well. Supra shoes is a brand that has been inspired, designed and marketed by passionate individuals. We have brought to you the fullest selection of Supra footwear at cheapest price.
Admin
Actually, a couple of comments:
When I was programming in early Oracle in the '80s, it was common--and recommended in some cases--to write SQL queries that included phrases like
or The story was that the Oracle query processor wasn't very optimizing, and, if a column were indexed and the table had not very many rows (say, fewer than a thousand), it would sometimes take a lot longer to do an indexed search rather than a brute-force one. Adding null-like parts was a way to force the query processor to use a calculated rather than "raw" search term, and thus not use the index. Just one of the many reasons I grew to hate Oracle.About the mod "controversy":
I had had a lot of mainframe experience, but I was very excited to start using my new Turbo Pascal 1.0 for CP/M 2.2 (only $49!!). I happened to use a mod calculation with some negative numbers, and the results weren't quite what I expected. So I started trying out the mod functions on the various machines, big and small, and languages, available to me, and got a very wide variety of answers. I posted these on the then Compuserve Turbo Pascal forum, and got a few responses, including someone who pointed out that Ada, "attempting to be all things to all people" actually had two functions, mod and rem. http://codewiki.wikispaces.com/mod+and+rem explains it this way:
Something for everyone!Admin
reminds me of when a teacher's aide in my high school pronounced "pseudocode" "piss-way-doe"...