Annual coding contest running from 1st March till the End of January.http://www.codingmonkeys.com/index.php?topic=2082.msg12067#msg12067
0 Members and 1 Guest are viewing this topic.
I think no ASM is not from not being able to do it, but from a productivity sense and making it easy for a team to work on it. And if you program in ASM and it makes your code not cross platform then that is a good reason of course right there.
I wish I kept a link about the next C++ coming out from the creator of C++, sounds like a nightmare, it is due out around 2009. Let me see if I can find it in my history, brb....http://beust.com/weblog/archives/000374.html
open screen ' opens a screen the same as the desktop settingsask question from keyboard "What is your name"ask question from Microphone "What is your name"display "Hi " answer to question ' Displays responce on te screensay ""Hi " answer to question ' says reply over sound cardprint "Hi " answer to question ' prints responce to printernotice "ok to continue" ' displays a notice dialog with oprion OK (the first word as the button)
ComputerI'd like a game where the player is object "xxxxx" and they can mover hotizontaly at the bottom of the screen. the enemy AI to use object "yyyyy" will move at the top end of the screen and on each pass will move closer to the player shooting at random intivils. .... etc.. etc"
uses "SAPI"uses "console"DIM YourName AS STRINGSayAndPrint("What is your name?")YourName = inputbox$("What is your name?", "Tell me your name, please", "")if YourName = "" then SayAndPrint("I'm sorry but I cannot play without a name! Bye, bye.") stopend ifSayAndPrint("Hi " & YourName & ".")DIM YourInput AS STRINGDIM YourCommand AS STRINGDIM YourParams AS STRINGdim AskUser as stringrandomizewhile ucase$(trim$(YourCommand)) <> "BYE" AskUser = choose$(rnd(1,3), "What do you want to do!", _ "Tell me what I can do for you.", _ "Tell me.") SayAndPrint(AskUser) YourInput = inputbox$(AskUser, "Tell me what you want to do. Type bye or cancel to exit.", "") YourCommand = parse$(YourInput, $spc, 1) YourParams = trim$(mid$(YourInput, len(YourCommand) + 1)) if function_exists(YourCommand) then call YourCommand(YourParams) '---This is the trick to call a script function using a dynamic string else if YourCommand <> "" then SayAndPrint("I'm sorry but I cannot understand: " & YourCommand & ".") end if end if if trim$(YourCommand) = "" then exit while wendSayAndPrint("Bye, bye " & YourName & "! See you next time.")'---Console output plus sayfunction SayAndPrint(sText as string) console_writeline(sText) if sapi_moduleloaded = %TRUE then sapi_speak(sText)end function'---Some functions to play withfunction Play(sParam as string) select case sParam case "" SayAndPrint ("Ok, you want to play but at what game?") case else SayAndPrint ("Ok, " & YourName & ". We can play: " & sParam & ".") end selectend functionfunction Bye(sParam as string) SayAndPrint ("I hope you had good time with me.")end functionfunction Nothing(sParams as string) local Count as long SayAndPrint ("Ok, " & YourName & ". We can have some rest for the moment.") for Count = 1 to 4 SayAndPrint (choose$(Count, "One.", "Two.", "Three.", "Four.")) sleep 1000 next SayAndPrint ("Ok, " & YourName & ". Time to play again.") end function
What gets me is that in over 20 years no one has successfully buit an every day language..
choose a number 1-10, ask player to guess number if number is less than computers number tell player nember is less. if number is greater than computers number then tell player number is greater do all this until number is same then say you got it.
but my guess is he's never seen the process (and associated documentation) that businesses have to go through for things like ISO9000 certification. If you think that writing code is complicated, wait until you have to describe your internal business policies in the formalized language of a certification standard in order to implement the core business logic that drives your company.
Computers can only do what we tell them to do. There is no option to "do what you think I mean, not what I say" and hopefully there never will be. Once computers start making subjective decisions about what code they think they should execute, we've got a problem on our hands.
I hope that next programming language was not only for programmers but for almost every people.
of course users should not take care of programming,
... we went from those kind of OS's and cool languages just the wrong way in the 1990's, the 90's to programming was like the 70's to our space program. Dead or a wasted decade.
To link to us use this code/button on your site