Does anybody use the program name as a control

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 2283 Views - Last Post: 15 November 2012 - 09:04 PM

#1 SpectateSwamp  Icon User is offline

  • D.I.C Head

Reputation: 51
  • View blog
  • Posts: 243
  • Joined: 31-December 07

Does anybody use the program name as a control

Posted 18 October 2012 - 02:53 PM

Lately I have been using the program name to control the program execution. If the name has "random" in it then random. If it has "mix" in it then it plays / displays a mix of text and video - pictures - audio. The 3 program prompts are set based on the name. Great for testing and setting up super simple demo apps.

Just asking?
Is This A Good Question/Topic? 0
  • +

Replies To: Does anybody use the program name as a control

#2 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2240
  • View blog
  • Posts: 9,411
  • Joined: 29-May 08

Re: Does anybody use the program name as a control

Posted 18 October 2012 - 03:00 PM

Have had a look in the My.Application.Info namespace?

This post has been edited by AdamSpeight2008: 18 October 2012 - 03:01 PM

Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,647
  • Joined: 02-June 10

Re: Does anybody use the program name as a control

Posted 18 October 2012 - 03:13 PM

I think using the program name to control... is a horrible idea. For one, you always should separate the GUI from the data/operation.

Make a Modes enum.

public enum modes
{
   unknown = 0,
   sequential = 1,
   random = 2,
   alphabetic = 3,
   usercustom = 4
}


If you want to put the mode IN the form's caption/title as a form of feedback that's one thing - but not the other direction as a way of controlling the application.
Was This Post Helpful? 0
  • +
  • -

#4 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2528
  • View blog
  • Posts: 4,630
  • Joined: 24-September 10

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 06:19 AM

:facepalm:
Was This Post Helpful? 0
  • +
  • -

#5 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon


Reputation: 7564
  • View blog
  • Posts: 12,682
  • Joined: 19-March 11

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 07:17 AM

I really like this. I mean, think about how much easier it is to use something like Word that has the word "word" in it than to use something like "vi" or "emacs" that don't actually mean anything. So from a UI standpoint, this is win city.
Was This Post Helpful? 0
  • +
  • -

#6 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,647
  • Joined: 02-June 10

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 07:33 AM

View Postjon.kiparsky, on 19 October 2012 - 08:17 AM, said:

I really like this. I mean, think about how much easier it is to use something like Word that has the word "word" in it than to use something like "vi" or "emacs" that don't actually mean anything. So from a UI standpoint, this is win city.


You're being sarcastic, right? You wouldn't really do this to CONTROL the application, would you? I mean you would put the text "print" in the titlebar then use that as the controlling event of the application to cause the program to string printing. You might start printing, and as a side affect display the status of "printing" in the titlebar. But the OP is saying that placing the commands/status such as "random" in the name of the application is how they are triggering behavior.

Quote

using the program name to control the program execution. If the name has "random" in it then {it plays} random.

Was This Post Helpful? 0
  • +
  • -

#7 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2528
  • View blog
  • Posts: 4,630
  • Joined: 24-September 10

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 07:35 AM

tlhIn'toq doesn't hang out in caffeine lounge a whole lot.

Jon is what you call a swampy, spectate swamp is who swampies entertain the dribbling nonsense of, spectate swamp is... oh dear god... I have no words to describe the user. I only hope he is a troll, but even then after how ever many years he's been running this joke... that's dedication.

[edit]
I must say, this is all fun and games in the caffeine lounge. But we shouldn't be letting him metastasize to other more serious forums.

This post has been edited by lordofduct: 19 October 2012 - 07:37 AM

Was This Post Helpful? 2
  • +
  • -

#8 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon


Reputation: 7564
  • View blog
  • Posts: 12,682
  • Joined: 19-March 11

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 07:39 AM

View PosttlhIn`toq, on 19 October 2012 - 09:33 AM, said:

View Postjon.kiparsky, on 19 October 2012 - 08:17 AM, said:

I really like this. I mean, think about how much easier it is to use something like Word that has the word "word" in it than to use something like "vi" or "emacs" that don't actually mean anything. So from a UI standpoint, this is win city.


You're being sarcastic, right? You wouldn't really do this to CONTROL the application, would you? I mean you would put the text "print" in the titlebar then use that as the controlling event of the application to cause the program to string printing. You might start printing, and as a side affect display the status of "printing" in the titlebar. But the OP is saying that placing the commands/status such as "random" in the name of the application is how they are triggering behavior.


Think about it logically. The name and the functionality should really be tightly bound right? You wouldn't want a program called "calculator" that maybe managed you shopping list - it would be confusing. So Swamp's got a point here - this should not only be allowed, it should be required.
ICANN could probably come up with a list of functionalities that programs might want to implement - "calculator", "spreadsheet", "browser", "music player", etc - and you would just look up the functionality that you wanted and build a name around it.
What could be simpler?
Was This Post Helpful? 0
  • +
  • -

#9 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,647
  • Joined: 02-June 10

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 08:03 AM

View Postlordofduct, on 19 October 2012 - 08:35 AM, said:

tlhIn'toq doesn't hang out in caffeine lounge a whole lot.


No. But I do live on caffeine. I have often been heard to say:

tlhin`toq said:

I hate it when the blood level in my caffeine system gets too high.

Was This Post Helpful? 0
  • +
  • -

#10 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4428
  • View blog
  • Posts: 7,696
  • Joined: 08-June 10

Re: Does anybody use the program name as a control

Posted 19 October 2012 - 01:04 PM

Yeah, you should just abandon thread at this point. Nothing good or funny will happen here.

Posted Image
Was This Post Helpful? 1
  • +
  • -

#11 SpectateSwamp  Icon User is offline

  • D.I.C Head

Reputation: 51
  • View blog
  • Posts: 243
  • Joined: 31-December 07

Re: Does anybody use the program name as a control

Posted 20 October 2012 - 03:46 PM

catmydrive.exe Catalogs the drive for MPEG
randomseg.exe Plays random segments of the above catalog videos
randommix.exe Plays random video with large font text describing the action
catmydrivejpg.exe Does a catalog for jpg

All programs are the exact same code.

The list could go on and on.

I'm going to create one called addmynotes.exe that will immediately jump to the enter notes prompt to add to mynotes.txt.

lastpagemynotes.exe Will show the last entry to that file.

Just easy and quick for the end user.

Another will be findemailfriends.exe that will search mynotes.txt to find the people I email regularly, that have "emailfriends" in the line. Returning those email addresses to the clipboard one at a time.

Anything that I do on a regular basis will have it's own program and shortcut. How fast and simple that will be.

Yup Jon.KiparskySwamp you can definitely see what the others overlooked. Good Going.

This post has been edited by SpectateSwamp: 21 October 2012 - 06:44 AM

Was This Post Helpful? 1
  • +
  • -

#12 no2pencil  Icon User is online

  • Dic Head
  • member icon

Reputation: 5167
  • View blog
  • Posts: 26,849
  • Joined: 10-May 07

Re: Does anybody use the program name as a control

Posted 23 October 2012 - 09:48 AM

Quote

# alias
alias word='vi'

Was This Post Helpful? 1
  • +
  • -

#13 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon


Reputation: 7564
  • View blog
  • Posts: 12,682
  • Joined: 19-March 11

Re: Does anybody use the program name as a control

Posted 23 October 2012 - 10:13 AM

View PostSpectateSwamp, on 20 October 2012 - 05:46 PM, said:

Yup Jon.KiparskySwamp you can definitely see what the others overlooked. Good Going.


I'm feeling a sort of obscure mix of pride and shame right now...
Was This Post Helpful? 1
  • +
  • -

#14 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2528
  • View blog
  • Posts: 4,630
  • Joined: 24-September 10

Re: Does anybody use the program name as a control

Posted 23 October 2012 - 10:36 AM

see, these kind of programs sound more like command prompt programs... similar to the kind of programs we run in PICK or *nix.

And I far prefer a parameter based input.

myprogram -modetorunin


And the program definitely shouldn't do 12 unrelated things. If in mode1 it plays movies, and mode2 it sorts my e-mails... well that shouldn't be the same damn program!


[edit]

I hate you swamp, I hate that you got me to respond to this again.

Ughhhhhhh... ::eats cyanide pill::

...

damn it, it was just a tic-tac

This post has been edited by lordofduct: 23 October 2012 - 10:37 AM

Was This Post Helpful? 0
  • +
  • -

#15 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon


Reputation: 7564
  • View blog
  • Posts: 12,682
  • Joined: 19-March 11

Re: Does anybody use the program name as a control

Posted 23 October 2012 - 10:42 AM

View Postlordofduct, on 23 October 2012 - 12:36 PM, said:

damn it, it was just a tic-tac



Better luck next time.

(Altoid rather than tic-tac, I mean)
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2