PDA

View Full Version : QuickBASIC programming for scientists and engineers



primo
25-11-2017, 08:58
QuickBASIC programming for scientists and engineers
https://books.google.jo/books?isbn=0849344344

i have a paper version of this book: (but without its floppy disk):
Turbo basic Programs for scientists & engineers: Alan R. Miller
(turbo basic is the grand mother of powerbasic)

so it was not shame to program in Basic in 90 and 80. i saw even a calculus books have listings of basic code. not to mention the astronomy books. basic is the natural language in which the scientists usually think everyday. now the engineers know to use complex programs but i swear they know nothing about the deep issues in their subject, they lost inside the complexity.

ErosOlmi
25-11-2017, 12:34
Yes there are a lot of strange programming languages out there.

Most if them have what I HATE most in programming languages: semicolon

http://irisclasson.com/wp-content/uploads/2013/02/semicolon.jpg

:mad:

Why so big love for semicolon?

primo
25-11-2017, 16:11
it is possible the ';' is a relic from the oldest languages, there was no full awareness of the white space such as new line because the oldest languages was executed using a printer not a modern monitor
i have noticed that all basic languages does not have ";" as a statements separator, it seems only in basics there is a good awareness of the newline whitespace.
in thinbasic there is an extra awareness of the new lines such as we can use multilines string inside the ide without giving us an error, so we can push a new line inside the string, then we can parse it later by this new line separator
here is my test


'---Load Console Module
Uses "Console"

String st
Long i
Dim textLines() As String
st = "hello world
this is a multi lines
string in thinbasic
"
Parse(st, textLines(), $CRLF)
For i=1 To UBound(textLines)
PrintL textLines(i)
Next
PrintL: PrintL
PrintL "Press a key to end program"

'---Wait for a key press
WaitKey

ErosOlmi
26-11-2017, 12:39
Plus: thinBasic has implicit line continuation.
If previous line ends with a delimiter, it is implicit that next line is continuation of the previous one.

Example


Uses "Console"

Printl "1",
"2",
"3"