Originally posted by minihacker316
Announcement
Collapse
No announcement yet.
BASIC Chat
Collapse
X
-
-
GOD DAMN IT.
Surreal, I'm sorry. This is now the second time I've edited someone's post instead of replying to it. That wasn't intentional; it's just me hitting the wrong fucking button and tarding it all up.
Teh computar is hard. I'm going to go drink now.
Leave a comment:
-
Useful BASIC crap
Hey, kids! Wanna slow down yer VAX? Sure you do! Crunch some big prime numbers in VAX-11 BASIC!
10 rem big prime number cruncher
20 DECLARE GFLOAT a,b,c,d,e,f
21 declare GFLOAT x
25 input "odd num, please.";f
26 input "Enter search width :";h
29 d=f+h
30 for a=f to d step 2.0
40 c=REAL(sqr(a)+1,GFLOAT)
50 for b=3.0 to c step 2.0
60 x=real(a/b,GFLOAT)
70 if REAL(fix(x)=x,GFLOAT) then goto 90
80 next b
85 print using "##################";a;
86 print " is a prime number."
88 next a
90 print using "##################";a;
91 print " is not a prime, factor :";
92 print using "##################";b
95 goto 88
100 end
Too boring? Draw a Mandelbrot set on your GiGi terminal w/ ReGIS graphics. That thar's a useful program! (original progs by kevino, lest anyone call me a code-thievin' math geek)
10 declare gfloat a,b,c,za,zb,zza,zzb
20 declare integer color,px,py,d,e
25 clrflag=1
30 rem clear screen
31 print chr$(27);"Pp s(E)"
33 print "S(I0) W(V) W(I1) "
36 il=3
gosub 40
print "W(E) "
il=4
gosub 40
print "W(V) "
print "W(I2) "
il=5
gosub 40
print "W(E) "
il=7
gosub 40
print "W(V) "
il=17
gosub 40
print "W(E) "
il=80
gosub 40
37 goto 370
40 for py=0 to 478 step 2
50 for px=0 to 766
60 a=3.6*px/766-2.3
70 b=2.8*py/478-1.4
80 za=0
90 zb=0
100 for d=1 to il
110 zza=za*za-zb*zb+a
120 zzb=2*za*zb+b
130 if zza*zza+zzb*zzb > 4
then goto 300
end if
160 za=zza
170 zb=zzb
180 next d
300 if d<il
then color =1
else color =0
end if
340 rem set point px,py color=color
341 if color=0 and clrflag=1
then print "P[";px;",";py;"] "
clrflag=0
end if
342 if color=1 and clrflag=0
then print "V[";px-1;",";py;"] "
clrflag=1
end if
350 next px
360 next py
365 return
370 rem end of program loop here to save picture
390 end
Or, do yourself a favor and learn C
SurrealLast edited by skroo; August 26, 2005, 17:54. Reason: I'm too fucking illiterate to know the difference between 'edit' and 'reply'
Leave a comment:
-
Aw, I missed all the fun. Geez, I leave you kids alone for a few days and look at all the banned tards... >:)
*Some* basics can be useful-
LosT
Leave a comment:
-
Originally posted by astcellCan any program be written in any language? Nevermind about bulk or waste.
Of course, thats in theory.
Originally posted by astcellCan you technically write Windows in basic?
Dutch
Leave a comment:
-
Originally posted by astcellCan any program be written in any language?
That language seems to me to more or less be the software implementation of the front panel of an Altair 8800 than anything else...
Leave a comment:
-
Can any program be written in any language? Nevermind about bulk or waste. Can you technically write Windows in basic? Are some functions only available in one language with no counterparts whatsoever in others?
Leave a comment:
-
Basic
Is it just me or does python work a lot similar to basic.
python:
Print "Hello"
Print
Print "1 - You Suck"
Print "2 - Oh my god, you killed kenny, you bastard"
Print
userinput=input("Please type choice here: ")
if userinput==1:
Print "You Suck"
Print "-----------"
Print "What do you suck?"
Print "1 - Banana"
Print "2 - Not Listed"
Print
usersuck=input("Choice: ")
if usersuck==1:
Print "Thats gross"
if usersuck==2:
Print "You need mental Help"
if userinput==2:
Print "Oh my god, you killed kenny, you bastard"
Print
Print "Good Choice"
endifenter=input("Press enter to exit")
Leave a comment:
-
Originally posted by basculeIt is practically impossible to teach good programming style to students that have had prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.
-- Dijkstra
While I'm all for a bottom-up approach to teaching software engineering as a profession (build your own electronics, learn an assembly language, move up to C (and examine the assembly output), and then onto higher-level languages), why don't I hear a lot of talk about teaching very high-level languages (such as Ruby or Python) to the casual enthusiast? Is it because most of us don't use these languages and aren't familiar with them? Do we automatically associate languages that are meant to be easy with our own bad experiences with BASIC? Perhaps we are simply falling into the hacker trap of being too focused on the details rather than the goal?
I'm particularly interested in answers from people who work with languages that are "more advanced" than C++/Java. (I'm hesitant to include Perl in this group because, like BASIC, it is far too easy to generate horrible designs.)
Leave a comment:
-
I'm all for a discussion of the best way to kill clowns en masse.
But seriously, if you have to start on a programming language, and you can't handle languages like C or Java, go for COBOL. It's English based, and nothing says loving like batch processing a million files on an AS/400. :-)
Leave a comment:
-
Originally posted by basculeOkay, I don't want to read this whole trainwreck of a thread...
Leave a comment:
-
Guest repliedOriginally posted by bascule"BASIC is the Computer Science equivalent of `Scientific Creationism'."
Leave a comment:
-
Okay, I don't want to read this whole trainwreck of a thread, so my apologies if any of these have already been posted:
It is practically impossible to teach good programming style to students that have had prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.
-- Dijkstra
BASIC: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company.
BASIC is to computer programming as QWERTY is to typing.
-- Seymour Papert
Real programmers don't write in BASIC. Actually, no programmers write in BASIC after reaching puberty.
"BASIC is the Computer Science equivalent of `Scientific Creationism'."
Leave a comment:
-
Originally posted by DutchAstcell, would you care to revise that statement now, or wait untill the DC14 T-shirt with it goes on sale ?
Dutch
Leave a comment:
Leave a comment: