Thread: Palindrome Program Help!

  1. #31
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    More specifically, it's an ad hominem that attacks my ability to read and comprehend without actually dealing with what I said
    Well, he pretty much had the whole thing already, and "giving it to him" is easily equated with "read from the book/self-taught/raising your hand and asking the teacher".
    Could you spell it out for me then? You give him an assignment and it's like he learned it himself, somehow, you said. What did he have to learn if you just give him something to copy and hand in exactly?

    I guess you could make the case that he would learn more on his own, but I think that's just a romantic myth of independence
    How is that any better than any assumptions that I made? I learned an awful lot by myself, and that's why I'm slightly ahead of the curve in my classes now. I respect that not everyone can do that, but I will rephrase my point for you later. I didn't factor in the merits of independent learning when I accused you of helping someone cheat.

    that misunderstands how human beings work -- I recommend reading from Saussure to Lacan before basing your anger on sweeping assumptions about the human condition you probably aren't aware that you're making. Edit: Sweeping assumptions made in the folk-privacy of one's mind that don't consider how many years of epistemological study have gone into how annoyingly coercive "common sense" is.
    So basically you assume you understand how human beings work because you read Lacan. (Then you retracted that recommendation later, so I think you're trolling, but whatever.) That has nothing to do with anything I said. If we read my post again, you'll see that I told you how your supposed to help:

    You only posted your prior homework with one or two lines of bull........ dude, come on. I don't really want to understand your ........ philosophy. If you want to help people who've almost got it you could actually bother to explain exactly what they did wrong, like we do all the time. That way if you make a mistake in your code you at least look like you know what you're doing.
    I bolded the substance of my insults. We are not here to do homework for people.

    Quote Originally Posted by http://cboard.cprogramming.com/cplusplus-programming/announcement-homework.html
    The purpose of these board is not for other people to do your homework for you. Try things out work on your own, homework has a purpose. If you still have trouble with a specific piece of code or concept please feel free to ask. But please do not ask people to do your entire homework for you, it simply annoys people most of the time.
    This was addressed to people making topics about homework, but in a similar way, when you post entire solutions without explanation, it makes the guideline a double standard, and I complain. We can post entire solutions but people cannot ask for them.

    Unless you call this an explanation of how it works:
    This was my last project for my first computer programming class, which I turned in today! I like computer science! I learned how to js inject this morning! I deleted the White House!!!!!!!!!!!!!!!!!

    Terminal Velocity of a Cow

    Palindrome ++
    Feel free to explain how any of this stuff explains how to program the part the OP didn't understand. And what cows have to do with it. And yes, your credentials as you laid them out are bull......... Actually, if I could amend that, it's also unfunny bull.........

    It's amusing how you become a lot more intelligent after you've been insulted. I hope this meets your inflated expectations of the discussion.

  2. #32
    Registered User
    Join Date
    Nov 2011
    Location
    Saratoga, California, USA
    Posts
    334
    Let me be more succinct. Your program compiles and runs, but it does NOT work, and is therefore certainly not correct.

    "Correct" is not a question of programming style or choice - it is correctly using the language. And what I said is absolutely "correct": Even if a program works from the perspective of the end result, it in no way implies that the correct use of language is employed.

  3. #33
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Could you spell it out for me then? You give him an assignment and it's like he learned it himself, somehow, you said. What did he have to learn if you just give him something to copy and hand in exactly?
    I was under the impression I'd spelled it out, but okay. I didn't "give him an assignment," I pasted code for reversing a string, which is part of the assignment, which isn't "helping him cheat" it's giving him an example that "works" (whether it's "correct" is absolutely debatable, since "correct" as it's being used is still relatively vague), an example, if given to me, would've resulted in some form of a structured walkthrough which would've resulted in me learning what I was doing wrong. If not, I would probably have gone to the teacher who would've essentially told me how to do it by giving me examples - which is what I did. My post was not a permission slip to plagiarize, regardless of how possible my post made plagiarism.

    How is that any better than any assumptions that I made? I learned an awful lot by myself, and that's why I'm slightly ahead of the curve in my classes now.
    We are always building on what someone else came up with. It makes no difference what we choose to build on, especially if we're someone who sees the posted code of an assignment and assumes we can copy & paste that code and become a better student. I certainly didn't assume that, and I perhaps optimistically hope the other student didn't, either.

    So basically you assume you understand how human beings work because you read Lacan.
    Not what I said, not what I implied, I didn't say anything about my own understanding of human beings. There was no implication that having read said reading affected my knowledge. There was only the implication that it might possibly fruitfully affect your understanding of how social interaction works and the substructure of morality - cheating.

    I bolded the substance of my insults. We are not here to do homework for people.
    No one asked anyone else to "do their homework for them". They asked help on the reversal of strings, which happens to be their homework. This might be "hair-splitting", except that, in the involved cases, most code was written already. In my first palindrome thread, which was prior to code-writing, I explicitly said, "I don't expect you to write it." I wasn't asking for anything specific. I simply mentioned a programming challenge that also happened to be my homework - which, incidentally, the final code for differs from the suggestions made.

    As for the other student, well, I don't think he explicitly asked anyone to do his homework for him, nor do think that's what I did, which I already stated. Sure he could've turned in what I wrote, but, well, that would be pointless...and was a possibility that frankly didn't occur to me when I pasted.

    As far as explaining, I guess I thought my code was self-evident.


    "Correct" is not a question of programming style or choice - it is correctly using the language. And what I said is absolutely "correct": Even if a program works from the perspective of the end result, it in no way implies that the correct use of language is employed.
    The thing is, prescriptive language rules have been shown to be relative to usage. "Correct" is essentially a form of control in this sense, not representative of an actual misused of the language, such as "I are here," which, regardless of being "incorrect" in a sense, works. And so the normative assumptions of "correct" are neutralized by what "works". In fact, this deconstruction of "correct" shows "correct" to have an objectivity (that transcends specific, practical consequences) entirely dependent on an infinite regress.

  4. #34
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    The argument that forms of control are useful begs the question for what, which is an example of what I meant by the infinite regress. There's always a deference to authority even if we based "correct" on "works". Essentially it comes to, assuming you and I are the only two people on the planet, agreeing with each other. Or perhaps in this case a computer agreeing with a user or something.

  5. #35
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Also, I realize I posted more than just the reversal code, but that was the only part in question anyway, and my code was straightforward and showed essentially what was going on, etc., things already said.

  6. #36
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by galvadon View Post
    I was under the impression I'd spelled it out, but okay. I didn't "give him an assignment," I pasted code for reversing a string, which is part of the assignment, which isn't "helping him cheat" it's giving him an example that "works" (whether it's "correct" is absolutely debatable, since "correct" as it's being used is still relatively vague), an example, if given to me, would've resulted in some form of a structured walkthrough which would've resulted in me learning what I was doing wrong. If not, I would probably have gone to the teacher who would've essentially told me how to do it by giving me examples - which is what I did. My post was not a permission slip to plagiarize, regardless of how possible my post made plagiarism.
    Except it was a permission slip to plagiarize. Given that you wanted to show him how to reverse a string, you put it in sufficient context so he understands what is happening:

    Code:
    #include <string.h>
    #include <stdio.h>
    
    int main()
    {
       char reverseme[] = "foo bar baz";
       char *head;
       char *tail;
       char c;
       
       tail = reverseme + strlen(reverseme) - 1;
       for (head = reverseme; head < tail; head++)
       {
          c = *head;
          *head = *tail;
          *tail = c;
          tail--;
       }
       printf("%s\n", reverseme);
       return 0;
    }
    Just as illustrative as what you wrote, but you couldn't hand this in. Now if the person chose to lift this code, and make it into a function (or whatever is necessary to make it useable) you still have to do something to complete your own work.

    We are always building on what someone else came up with.

    No one asked anyone else to "do their homework for them". They asked help on the reversal of strings, which happens to be their homework. This might be "hair-splitting", except that, in the involved cases, most code was written already. In my first palindrome thread, which was prior to code-writing, I explicitly said, "I don't expect you to write it." I wasn't asking for anything specific. I simply mentioned a programming challenge that also happened to be my homework - which, incidentally, the final code for differs from the suggestions made.
    You hit the nail on the head and yet miss the point completely. If you give somebody the whole fish they eat for a day. Your book and teachers will give you knowledge you're expected to absorb, use, and build upon. It wasn't an incident. I'm willing to bet that Commontater did not paste the code in what you had written. If he had, you didn't need to learn anything, you simply needed to observe that your assignment was completed.

    From your point of view this is hair splitting, but I hope I've illustrated the difference between how you helped and how someone else has helped you. I'm not going to buy any excuse you have to offer me when the student gets away with a grade on the absolute minimum of effort.

    Would you say it's fair to summarize the whole discussion as follows? I was being a pessimist while you were being an optimist, assuming he wouldn't cheat, even if he had the opportunity. I mean, as long as you understand where I'm coming from in this, then I don't have to keep talking.

  7. #37
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Oh WOW... I don't think I've ever seen anyone with their nose so far out of joint over such a small thing before...

    Galvadon, you're going to be a real hoot in he workplace. People are going to be tweaking you just for the fun of it!

  8. #38
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    Yeah, I agree with your summary. I understood the point already, I just assumed the student wouldn't just copy what I did and turn it in. I suppose that was naive.

  9. #39
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by CommonTater View Post
    Oh WOW... I don't think I've ever seen anyone with their nose so far out of joint over such a small thing before...
    Hey, if I annoy you, I'm going to do it to everyone else. I'm an equal opportunity ...............

  10. #40
    Registered User
    Join Date
    Nov 2011
    Posts
    31
    The word "tweak" gilbs my gullet, I daresay.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Palindrome-kinda program with pointers
    By porsche911nfs in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2009, 09:16 PM
  2. Need help , Palindrome program
    By amigoloko in forum C++ Programming
    Replies: 9
    Last Post: 07-11-2005, 12:07 PM
  3. Palindrome Program using Memory mapping
    By rrsanch in forum C++ Programming
    Replies: 1
    Last Post: 09-24-2004, 11:49 PM
  4. Palindrome program help please
    By hunter_04 in forum C++ Programming
    Replies: 7
    Last Post: 09-20-2004, 07:38 PM
  5. C++ Palindrome program help
    By hunter_04 in forum C++ Programming
    Replies: 8
    Last Post: 09-19-2004, 09:23 PM