I love the BASIC languages... (25)

1 Name: #!/usr/bin/anonymous : 2007-05-31 08:02 ID:JyQ2vqhR This thread was merged from the former /code/ board. You can view the archive here.

There are several reasons....

A) Its fast
B) Its easy
C) Theres MANY variations of it
D) It can be really good depending which BASIC you use
E) One of the first languages =P

Anyone else here a fan of BASIC languages (or RAD such as Delphi?)

2 Name: dmpk2k!hinhT6kz2E : 2007-05-31 08:54 ID:Heaven

I liked QuickBasic a great deal. It was easy to make small text and graphic games, and it had wonderful online documentation.

I cannot think of any other piece of software that I've seen with such great online help. It's a tragedy.

3 Name: idk : 2007-05-31 13:03 ID:Zad4v03P

what is basic even used for?

4 Name: #!/usr/bin/anonymous : 2007-05-31 13:10 ID:Heaven

What version of Basic does >>1 use? And for doing what?

5 Name: #!/usr/bin/anonymous : 2007-05-31 17:13 ID:heRJZ8Ky

>>2
I couldn't afford "online" waaaaaay back in 94 when I did qBasic. I had to settle for the built-in documentation and magazine subscriptions. Good memories though! Mostly did small crappy animations.

6 Name: dmpk2k!hinhT6kz2E : 2007-05-31 18:33 ID:Heaven

>>5
That's what I mean: the help you received when you hit F1. Those things used to be called online help. I'm not sure what they're called now.

Sorry I wasn't clearer.

7 Name: #!/usr/bin/anonymous : 2007-05-31 23:20 ID:jS6N9v6r

I owned a Mac back then. The Mac port of QuickBASIC was pretty poor, although it had some neat stuff like polyphonic music... In the vein of RAD though, I really liked HyperCard and its spiritual successor, SuperCard.
Anyone ever play with those? I still think they're better then Visual Basic (not technically, of course, but from an ease-of-use and programmer's perspective.)

8 Name: #!/usr/bin/anonymous : 2007-06-01 02:20 ID:Fk6SD4VI

>>3

10 beep
20 goto 10

9 Name: #!/usr/bin/anonymous : 2007-06-01 07:03 ID:8mrL7ixo

I remember HyperCard. we had to do a powerpoint-like presentation in elementary school but I ended up making a adventure puzzle game that was very similar to myst. They made me do it over but it was a pretty sweet game for something created by a kid in grade 6

10 Name: #!/usr/bin/anonymous : 2007-06-02 10:29 ID:EVD2iisz

>>6
Oh I see! That actually does ring a bell now that you explained it.

>>8
You can have a lot more fun using SOUND freq in Hz, length in some time unit in a for-loop. Too long ago to remember the correct syntax, but something like:
[code]FOR J = 30 TO 10000 STEP 100
SOUND J, .1
NEXT J[/code]

11 Name: #!/usr/bin/anonymous : 2007-06-03 00:43 ID:Heaven

A) WTF are you smoking? Any variant of BASIC is SLOOOOOOOOOOOOW
B) Easy to write simple programs, exponentially harder to write programs that do anything reasonably complex.
C) One word: standards
D) see C
E) and hopefully last language of its kind.

12 Name: #!/usr/bin/anonymous : 2007-06-03 05:40 ID:Heaven

gridwars2 is programmed in basic, i think. its cool.

13 Name: #!/usr/bin/anonymous : 2007-06-03 16:32 ID:aiL4+Utw

>>11
This is all pretty much what I was thinking when I saw this thread, but I was trying to be open-minded.

But yeah. I agree. Especially about "Easy to write simple programs, exponentially harder to write programs that do anything reasonably complex". I started programming in QBasic/QuickBasic and really got stuck for many years (mind you, I was a kid and it was just a hobby) and could not progress, because everything reasonably complex always seemed impossible.

14 Name: #!/usr/bin/anonymous : 2007-06-03 17:20 ID:Heaven

I like the variation of BASIC called Pascal.

15 Name: !!+V71xE13 : 2008-05-09 21:02 ID:7CCi9+Ql

QBasic and friends were just magic. imo its like windows today in some way: as long as the user isnt that experienced he wont do anything causing serious problems. its quiet difficult to code errors that arent easy to find or really kill your machine. it took me a while in port programming before i decided to set that alternating bit on port 4 of a 486 to a constant value and after that i needed to reinstall DOS:-)

16 Name: #!/usr/bin/anonymous : 2008-05-11 23:01 ID:YwRF6IVe

freebasic
its C with basic syntax, just alot harder to learn because you dont have a stupendous amount of tutorials to start with
youll have to learn it the hard way, or not at all :)
i use it, and ive been using C for a long long time

17 Name: #!/usr/bin/anonymous : 2008-05-11 23:03 ID:Heaven

>>16
> just alot harder to learn because you dont have a stupendous amount of tutorials to start with
A lot of inaccurate tutorials written by clueless idiots?
Maybe you don't have these in freebasic, but I don't see this as a bad thing.

18 Name: #!/usr/bin/anonymous : 2008-05-11 23:11 ID:YwRF6IVe

me neither, it was merely a heads up for those who think its a walk in the park just because it ends with "basic"
still, its a refreshing language and its multiplatform
i expect no less though

var t = threadcreate( cast(sub(byval as any ptr), @exit_on_escape), @sock )

var s = !"HTTP/1.0 200 OK\n" & !"Content-Type: text/html\n" !"Connection: Close\n\n"
s += !"<html> <head> <title> empty page </title> </head> <body> Hi. </body> </html>"

dim as socket_info si
do

dim as socket new_sock
if( new_sock.listen_to_new( sock ) ) then
? "Connection from " & *new_sock.connection_info

new_sock.put( *cast(ubyte ptr, strptr(s)), len(s) )
end if

loop while not sock.is_closed
threadwait( t )

a little snippet for a board daemon im making that will emulate this kind of board
basically it will have alot more than this thingie does and it will also be its own httpd :)
any ideas for features?
ill be adding telnet admin interface etc.

19 Name: #!/usr/bin/anonymous : 2008-05-11 23:13 ID:Heaven

>>18
I don't know what you do, but writing a board that's on top of an http is clearly a bad idea.
As for telnet, why not use sshd?
Telnet's not safe...

20 Name: #!/usr/bin/anonymous : 2008-05-11 23:16 ID:YwRF6IVe

it IS the httpd, and yes it will be secure - eventually
first things first.. i just started with fb and i have to look at the keyword list as im going

21 Name: #!/usr/bin/anonymous : 2016-09-19 03:10 ID:VONokSwN

I am a PureBasic user,
Basic is the best programming language for all me because I don't
need to make softwares as a job.

22 Name: #!/usr/bin/anonymous : 2016-10-07 05:55 ID:p/chzj6k

>>5,6
I always found the term "online help" to be confusing back in those days, apparently it's a holdover from the days when documentation was normally a physical book that came with the program.

23 Post deleted.

24 Name: #!/usr/bin/anonymous : 2016-10-18 18:32 ID:Heaven

>>19
Unless you're running a CGI server then that's how it's done.
Also, telnet just sits on top of TCP. You could upgrade to ssh no problem.

25 Post deleted.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: