Like Tree8Likes
  • 1 Post By CommonTater
  • 1 Post By GReaper
  • 3 Post By MK27
  • 1 Post By Salem
  • 1 Post By CommonTater
  • 1 Post By quzah

EOF

This is a discussion on EOF within the C Programming forums, part of the General Programming Boards category; What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord??...

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    384

    EOF

    What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord??

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    8
    Quote Originally Posted by juice View Post
    What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord??
    There is no key by itself. On windows it's control-z, on unix control-d.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    *sigh* Another shotgun poster. How many forums did you post this to, Mr. juice?
    My best code is written with the delete key.

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,622
    Quote Originally Posted by Prelude View Post
    *sigh* Another shotgun poster. How many forums did you post this to, Mr. juice?
    But you gotta admit, his post was precise and constructed...
    Devoted my life to programming...

  5. #5
    Registered User
    Join Date
    Aug 2011
    Posts
    384
    everywhere from where I could get help.
    Last edited by juice; 09-18-2011 at 10:14 AM.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by juice View Post
    everywhere from where I could get help.
    Do you realize what an enormous waste of manpower that is? Do the math... you post to 5 forums, on each forum *several hundred* people will spend time on your question... Lets assume, for easy numbers, that 100 people on each forum each spent 3 minutes... that, alone adds up to 1500 minutes or ... 25 manhours... just to look at your question and decide an answer. Now if the conversation evolves into some back and forth... even with 2 replies you have a full work-week of manhours *wasted* on something you could very easily have spent less than a minute looking up in your Compiler's Documentation.

    Still think crossposting is a good idea?
    Salem likes this.

  7. #7
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,622
    Since he doesn't pay for their manhours, he doesn't care either...
    Salem likes this.
    Devoted my life to programming...

  8. #8
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    > *sigh* Another shotgun poster. How many forums did you post this to, Mr. juice?
    Repeat offender no less
    You ban them from daniweb, and I'll ban them from here - that at least should solve the annoyance in a couple of places.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Quote Originally Posted by Salem View Post
    You ban them from daniweb, and I'll ban them from here
    I'm sorely tempted to take you up on that.
    My best code is written with the delete key.

  10. #10
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Salem View Post
    > *sigh* Another shotgun poster. How many forums did you post this to, Mr. juice?
    Repeat offender no less
    You ban them from daniweb, and I'll ban them from here - that at least should solve the annoyance in a couple of places.
    Quote Originally Posted by Prelude View Post
    I'm sorely tempted to take you up on that.
    I know the weight of convention is too much to challenge here and at this point in internet history, but this always seems like a really ridiculous, counter-intuitive, counter-productive rule. The kind of rule that only people who really enjoy enforcing rules would consider worthwhile. Honestly (but no offense, lol).

    Most of what I do (on this forum) is answer questions, but I have no issue at all if someone goes and gets the same (or some other) answer from someone else somewhere else. Why should they not be free to do so? In fact, I'd encourage them to. When I was in school, using multiple sources* in research was considered prerequirsite -- not bad manners. If answering questions is such a drag that you start to present yourself as some kind of martyr, maybe you shouldn't do it at all.

    If you answer the same question repeatedly in different places, that is your choice, and if you regret it, it is absurd to blame the questioner.

    If someone else answers the same question you answered here somewhere else, why would you care? By this logic, we should crack down on people who just read the OP and then provide the same answer someone else did already (hi, iMalc) in the same thread. Which is why I said this is counter-intuitive.

    Anyway, I'm aware no change is possible on this front, for now, but still have to dissent. Hopefully one day in the future I'll be hailed as a visionary and liberator

    I decided to start a GD thread about this, so if anyone is in the mood to chastise and explain why I am wrong, you can take it there:

    God hates cross-posters!

    * the objection that those sources need not all be forums (or worse, that "only one of them should be a forum") is absurd, so spare it. If I post a question, then find an answer online or in a book or on IRC or on the phone or via email or my gigantic brain, what's the difference? You have still "wasted your time" giving me an answer I already have. But maybe (just maybe) the more the merrier.
    Last edited by MK27; 09-18-2011 at 03:15 PM.
    BIOS, quzah and gardhr like this.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    How To Ask Questions The Smart Way

    Well it works like this.

    1 poster in 100 cross-posting is an annoyance.

    But if EVERY poster cross-posted all over the place, and YOU knew that every poster cross-posted all over the place, what exactly would be your motivation for answering?
    Knowing full well that whatever you said would almost certainly have been said elsewhere.

    It's like some kind of arms race. One muppet cross-posts and gets quicker answers. But it's a short term gain for one person. If everybody does it, then pretty soon, all the regular helpers just get ........ed off from repeatedly wasting their time - the end result being NO threads anywhere getting answered (at least not with any reliability - save for a few random driveby keen-to-impress but no staying power types).

    But if you like answering the same question, feel free to sign up to multiple forums, and copy/paste your answer when you see the same question cross-posted. I'm pretty sure you'll get bored of it.

    > If someone else answers the same question you answered here somewhere else, why would you care?
    Our time is finite. If the same answer is given twice, then what about the question that doesn't get answered at all?
    Now imagine you're in the position of having an unanswered question, because the people who could have answered it were distracted by some selfish twat who cross-posted and got the question answered multiple times.
    MK27 likes this.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  12. #12
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Salem View Post
    .

    But if EVERY poster cross-posted all over the place, and YOU knew that every poster cross-posted all over the place, what exactly would be your motivation for answering?
    Knowing full well that whatever you said would almost certainly have been said elsewhere.
    Or worse... contradicted elsewhere. Sadly people have a very strong tendency to believe what they hear first, accepting it as inassailable fact.

  13. #13
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    @MK27 ...

    Think about what you're suggesting.... If everyone posts everywhere... then 100 forums become merely 100 copies of the same forum. The concept sounds wonderful until you realize the impact it has on the very diversity of information you seek...

    I will however side up with you on the idea that if someone doesn't get the answer they want here (as happened today) there should be no penalty to moving on to a new forum to try again...
    Salem likes this.

  14. #14
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It's silly to care if they post somewhere else. If you have the time to read five other forums, why do you care if you say "It's CTRL-*" on all of them? No one is forcing you to read all of those other forums. It's not like you actually reply to every single thread anyway. It's not like you can't see the title that says "EOF" or "what's EOF" on all those places and go "oh that's that dude, I already answered him, I'll ignore this post".

    By the same "logic", you should be mad that there is more than one explanation of pointers on the internet. "You wasted my time by writing a tutorial!" You should be mad that we've already answered the EOF question on this forum before. We should all start just replying "SEARCH, I'M NOT ANSWERING THAT AGAIN!" -- Hell, I know I've answered an EOF question here before. I shouldn't ever have to answer it again! YOU LOOK IT UP, it's on the internet already! Why are you even asking this question anywhere! Go buy a BOOK! Why even have a forum?

    It's stupid to care if they cross post on different forums. "But they're wasting my time!" Don't read it then. You aren't getting paid by the post you read, even if you were, that would just mean you earned more money. It's not like they are cleverly disguising the same post to trick you into reading it. I can see if they are posting in every thread on this forum, but what the hell do I care if they post somewhere else? I don't.


    Quzah.
    Last edited by quzah; 09-18-2011 at 03:54 PM.
    MK27 likes this.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21