Saturday, April 25, 2009

Pseduo-Code

Pseudo-Code for how to follow our Generative Scripting I


For humans:

Take a laptop to get Internet
Register account in Google Website
Follow the Generative Scripting I


For computer:

Function get Internet:
With a computer
Press on-off of computer
Desired time= 2 min
If desired time < 2:
Enter Windows system
Else:
Reopen
Cable plug in
Open the Internet window
Input "www.Google.com" into Address field
Press "Enter"
Desired time = 5 sec
If desired time < 5 sec:
Connect the Internet
Else:
Reconnect
Execute function register account
Function register account
Click "sign in"
Input Email address
Press "Tab"
Input password
Click “sign in”
Desired time = 5 sec
If desired time < 5 sec:
Register done
Else:
Rewrite User name (Email) and Password
Execute function register account
Function follow the Scripting I Group
Input the "http://gs-i blogspot.com" into address filed
Press "Enter"
Click "view blog"
Click "Follow"
Input email and password
Click sign in
Desired time = 5 sec
If desired time < 5 sec:
Execute function follow Scripting I Group
Else:
Finish.

1 comment:

  1. Nice. But still a bit confusing! I don't understand the statements about the desired time, and the subsequent actions. Also, you are calling the functions within themselves: this would generate one of two scenarios: either the other functions will never be called (if you look at the other codes here, always one function calls the other, so to create a "chain"), or the function will keep calling itself indefinitely (infinite loop) and your script will crash!
    Also, the lack of identation makes the code a bit hard to read, and for python, it would simply not work.

    ReplyDelete