Jump to content

Forum != PrivateTutor

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
16 replies to this topic

#1
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
I have been on this forum for a while and I have to vent about this.

We are not here to do your homework people. If you need help that is one thing but when you post crap that says: "I need to write a program for ... and have no clue. Please help."

Rule 1: When in doubt Google! - Try to search for the answer to what you're trying to do before you ask people. There is tons of code out there. You just have to know where to find it.

Rule 2: Try before asking - Do not post a question on the forum saying that you don't know how to program something if you have not tried to program it yourself.

I am a college student who is taking a full load of courses and I work 40 hrs a week as a Junior Developer for an engineering firm. I understand the demands of school, but you're never going to learn by having someone else do your homework.

Keep this block of code in mind when asking questions. I posted this about 2 weeks ago on another thread.

While( !User.hasAnswer )
{
     User.askQuestion();

     if( User.postCode && User.putForthEffort )
     {
          CodeCallMembers.Help();
          User.hasAnswer = true;
     }
     else
     {
          CodeCallMembers.Laugh();
     }
}


Would anyone else like to join me in venting? :)
-CDG10620
Software Developer

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I like your code snippet. Perhaps we should start posting that as our "solution code" for anyone who refuses to think. We could create versions of it for each major language :)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts

WingedPanther said:

I like your code snippet. Perhaps we should start posting that as our "solution code" for anyone who refuses to think. We could create versions of it for each major language :)

I think that's a great idea. :)
-CDG10620
Software Developer

#4
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
Sounds awesome! :D

Edit: Here's a VB.NET version:

Do Until User.hasAnswer

        User.askQuestion()

        If User.postCode And User.putForthEffort Then
            CodeCallMembers.Help()
            User.hasAnswer = True
        Else
            CodeCallMembers.Laugh()
        End If

Loop





Edit 2: Here's a Python version:

while not User.hasAnswer

    User.askQuestion()

    if User.postCode and User.putForthEffort:
        CodeCallMembers.Help()        
        User.hasAnswer = True
    else:
        CodeCallMembers.Laugh()


Edit 3: Here's a Ruby version(not one of the major languages but what ever):

until User.hasAnswer

	User.askQuestion()
	
	if User.postCode and User.putForthEffort
        	CodeCallMembers.Help()        
        	User.hasAnswer = true		
	else
        	CodeCallMembers.Laugh()	
	end

end



Edit 4: Here's a PHP version:


<?php

while !$User->hasAnswer {

        $User->askQuestion()

        if $User->postCode && $User->putForthEffort {
            $CodeCallMembers->Help()
            $User->hasAnswer = True
        } else {
            $CodeCallMembers->Laugh()
        }

}

?>

Edited by Vswe, 24 March 2010 - 07:53 AM.


#5
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
Here's a SQL version.

[FONT=monospace]DECLARE @answer nvarchar(250)

WHILE (SELECT attempts_count FROM user) <> 0
BEGIN
   IF (EXECUTE sp_PostCode)
      IF ( EXECUTE sp_PutForthEffort )
         SET @answer = EXECUTE sp_CCMembersHelp
         BREAK
          ELSE
              SET @answer = 'Forum != PrivateTutor'
                EXECUTE sp_CCMembersLaugh
   ELSE
      SET @answer = 'Forum != PrivateTutor'
      EXECUTE sp_CCMembersLaugh
END
[/FONT]

I think that's right. lol
-CDG10620
Software Developer

#6
progcomputeach

progcomputeach

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
Very good! Love it. I am trying to rewrite it in VB can you help me with it? I havent started writing the code yet though. :D



cdg10620 said:

I have been on this forum for a while and I have to vent about this.

We are not here to do your homework people. If you need help that is one thing but when you post crap that says: "I need to write a program for ... and have no clue. Please help."

Rule 1: When in doubt Google! - Try to search for the answer to what you're trying to do before you ask people. There is tons of code out there. You just have to know where to find it.

Rule 2: Try before asking - Do not post a question on the forum saying that you don't know how to program something if you have not tried to program it yourself.

I am a college student who is taking a full load of courses and I work 40 hrs a week as a Junior Developer for an engineering firm. I understand the demands of school, but you're never going to learn by having someone else do your homework.

Keep this block of code in mind when asking questions. I posted this about 2 weeks ago on another thread.


While( !User.hasAnswer )

{

     User.askQuestion();


     if( User.postCode && User.putForthEffort )

     {

          CodeCallMembers.Help();

          User.hasAnswer = true;

     }

     else

     {

          CodeCallMembers.Laugh();

     }

}



Would anyone else like to join me in venting? :)


#7
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
I have already made a VB version. :)

#8
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
Here's VBScript

Dim foundAnswer as Boolean
Dim reply as String
foundAnswer = false

Do Until foundAnswer
    If( user.PostedCode() ) Then
        If( user.PutForthEffort() ) Then
            CodeCallMembers.Help();
            foundAnswer = true
        Else
            reply = "Forum != PersonalTutor"
            CodeCallMembers.Laugh()
        End If
    Else
        reply = "Forum != PersonalTutor"
        CodeCallMembers.Laugh()
    End If
Loop

-CDG10620
Software Developer

#9
lor

lor

    Programming Goddess

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
Oh my God cdg, this could not have come at a better time. I caught my friend cheating for his C++ assignment and I told him not to and our friendship has ended because he thinks I was being over dramatic and a bitch. I honestly have no tolerance for cheaters, nor do any company or university. It's even worse when they say they work hard for it when they sit on their ass all day and chat to strangers on Omegle and Stickam. HUGE SIGH IRL.
I would vent but I would probably write an essay and I'd rather write one of those for something useful e.g. my communications assignment - o snap.


#10
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
Haskell version:
data User = Trying Boolean | NotTrying

getSolution NotTrying           _      = laughs codeCallMembers
getSolution (Trying codePosted) answer
    | codePosted == True = helpsWith answer codeCallMembers
    | otherwise          = getSolution NotTrying answer

OCaml:
while not user#hasAnswer do
    if user#putForthEffort && user#postedCode
        then codeCallMembers#help user
        else codeCallMembers#laugh
done;;

Just putting those out there.
Wow I changed my sig!

#11
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts

lor said:

Oh my God cdg, this could not have come at a better time. I caught my friend cheating for his C++ assignment and I told him not to and our friendship has ended because he thinks I was being over dramatic and a bitch. I honestly have no tolerance for cheaters, nor do any company or university. It's even worse when they say they work hard for it when they sit on their ass all day and chat to strangers on Omegle and Stickam. HUGE SIGH IRL.
I would vent but I would probably write an essay and I'd rather write one of those for something useful e.g. my communications assignment - o snap.

I'm glad that you could join me in my venting. It just drives me nuts when ppl do stuff like that. I have asked for help on a problem before but at least I tried to code and solve the problem before I sought help. :)

I have also been finding a lot of threads recently where my code applies. :)
-CDG10620
Software Developer

#12
Moudi

Moudi

    Programmer

  • Members
  • PipPipPipPip
  • 167 posts
i lol'd hard at VSwe's post :P I was converting it to php and VB then i saw his post xD
Anyway at OP, you are absoloutley right, if they show that they are making some effort, someone might help