Program name used to control logic flow

  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4

49 Replies - 2726 Views - Last Post: 31 July 2012 - 05:54 PM

Poll: Program name to control logic (16 member(s) have cast votes)

Most apps could make good use of this feature

  1. What a dumb idea SpectateSwamp (2 votes [6.06%] - View)

    Percentage of vote: 6.06%

  2. Brilliant just brilliant (7 votes [21.21%] - View)

    Percentage of vote: 21.21%

  3. Good design does not need this (2 votes [6.06%] - View)

    Percentage of vote: 6.06%

  4. I use that all the time (3 votes [9.09%] - View)

    Percentage of vote: 9.09%

  5. what do you mean program name control (3 votes [9.09%] - View)

    Percentage of vote: 9.09%

  6. Wow count me in (2 votes [6.06%] - View)

    Percentage of vote: 6.06%

  7. The perfect perfects will be pissed (6 votes [18.18%] - View)

    Percentage of vote: 18.18%

  8. This will change programming forever (8 votes [24.24%] - View)

    Percentage of vote: 24.24%

Vote Guests cannot vote

#46 WolfCoder  Icon User is online

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 753
  • View blog
  • Posts: 7,549
  • Joined: 05-May 05

Re: Program name used to control logic flow

Posted 31 July 2012 - 09:42 AM

I can't read more than one post at a time on any machine or screen, not since the forum got this motif back in.. I forgot when they switched to this new style.

This post has been edited by WolfCoder: 31 July 2012 - 09:43 AM

Was This Post Helpful? 0
  • +
  • -

#47 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon

Reputation: 5421
  • View blog
  • Posts: 8,707
  • Joined: 19-March 11

Re: Program name used to control logic flow

Posted 31 July 2012 - 09:44 AM

View PostWolfCoder, on 31 July 2012 - 11:42 AM, said:

I can't read more than one post at a time on any machine or screen, not since the forum got this motif back in.. I forgot when they switched to this new style.


I get confused if I try to read more than one post at a time.
Was This Post Helpful? 3
  • +
  • -

#48 stackoverflow  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 164
  • View blog
  • Posts: 545
  • Joined: 06-July 11

Re: Program name used to control logic flow

Posted 31 July 2012 - 01:31 PM

Python does this all the time. If a program is executed its internal name is '__main__'. Python developers often make modules execute test code if they are ran as 'main' and if not ran as main they are modules.

http://www.python.or.../peps/pep-0299/

This post has been edited by stackoverflow: 31 July 2012 - 01:33 PM

Was This Post Helpful? 0
  • +
  • -

#49 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3872
  • View blog
  • Posts: 11,405
  • Joined: 18-April 07

Re: Program name used to control logic flow

Posted 31 July 2012 - 04:20 PM

Quote

Putting in a goto and jamming it saved me a lot of time.


And this is why the ladies don't like us nerds. We just don't take our time with them.
Was This Post Helpful? 2
  • +
  • -

#50 dorknexus  Icon User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1189
  • View blog
  • Posts: 4,590
  • Joined: 02-May 04

Re: Program name used to control logic flow

Posted 31 July 2012 - 05:54 PM

"GOTO Considered Unromantic"
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4