basicprogramming.org


Welcome, Guest. Please login or register.
Did you miss your activation email?
Forum time; Jul 31. 2010, 01:20
Home Help Search Calendar Login Register
News: Have you got suggestions for BasicProgramming.org? Let's hear them!
Interested in creating your own programming language? Check out the QDepartment group!

+  BASIC programming forum
|-+  Basic Coding
| |-+  General Basic Programming
| | |-+  10 most important commands?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Reply Print
Author Topic: 10 most important commands?  (Read 158 times)
E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« on: Dec 29. 2009, 16:25 » Reply with quote

Ok folks. Lets give our imagination fly here a bit  Wink

You want to program, but at the next morning, there is only one programming language and it has only 10 commands you can use. Such as PRINT, INPUT or GOSUB. Naturally, that only language would be basic dialect, so gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.") are not in the list of allowed commands.

So now, who can pick those 10 commands with what you could actually create something?
Report to moderator   Logged

menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #1 on: Dec 29. 2009, 16:57 » Reply with quote

in no particular order: 0. juvyr
1. vs
2. gura
3. jraq
4. cevag
5. furyy
6. vaxrl$
7. zvq$
8. pue$
9. yra (rot13 "encoded" to allow other people to come up with their own list.)
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
gp1628
Staff Member
Full Member
*
Offline Offline

Posts: 184



« Reply #2 on: Dec 30. 2009, 09:46 » Reply with quote

I use Basic mostly for CGI's, system admining, and some generation of fun variations for games such as Dominions 3 when Im hosting the games. For me, the reason I dive into Basic when I need to, tends to be

1) Random
2) Open
3) Print
4) Chr$
5) If
6) System
7) Read
Cool Line Input
9) For
10) Error

I also use it to generate important sounds. Rising sound, falling sound, sirens, alarms, etc which is one of the reasons Im watching the peek/poke discussions. But I could probably work around that if need be as long as there is a system call. Hmmm I could probably work around system and error if need be also

Report to moderator   Logged
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #3 on: Dec 30. 2009, 10:35 » Reply with quote

I also use it to generate important sounds. Rising sound, falling sound, sirens, alarms, etc which is one of the reasons Im watching the peek/poke discussions. But I could probably work around that if need be as long as there is a system call.

using "beep" perhaps?  http://packages.ubuntu.com/karmic/beep (it was available for gutsy, it's been around for a while.) i don't know if there's a windows version, if you ever sysadmin windows stuff.

but as far as peek/poke, (in yab i assume?) it might be overkill to do this in sdl, especially using the native syntax. i'm hoping that thomas/psnake will have a friendly sdl wrapper for making sound in a "basic" way, using simple commands. presumably people that want to use native sdl are still free to do so? i'm not saying that sdl is the best thing for a sound feature. the ideal would be one "basic" sound command, and have it act as an "autowrapper" for whatever library you're using.

that's more work for devs, but huge win for "basicness." to use graphics as an example of this instead of sound, you could have a pset(x,y,), color, surface command (surface would be optional, and i don't know the yab command for pset- for sound, replace "surface" with "output?" or "channel?") and it would do a point in sdl if you were addressing an sdl window, or col, row (not row, col) if you were addressing... curses! a "circle" command would do the same- address sdl or curses, or whatever.
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
Pages: [1] Go Up Reply Print 
« previous next »
Jump to:  
Atom RDF RSS 0.91 RSS 2.0


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!