Teen Programmers Unite  
 

 

Return to forum top

Dark Basic

Posted by slipknotclown [send private reply] at March 30, 2002, 04:19:26 PM

It still amazes how many people think they are programmers becasue they can use Dark Basic, Blitzbasic etc. I'm still fairly new to the game of 'C' but am I right in thinking that Dark Basic is not a language as such it is just a kind of template if you like of lots of different languages, as in Basic and c/C++?

Posted by taubz [send private reply] at March 30, 2002, 04:46:39 PM

If you're not writing hundreds of if statements yourself, it's not a programming language. You're on the right track by learning C.

- taubz

Posted by CodeRed [send private reply] at March 30, 2002, 08:58:30 PM

Why write hundreds of if's when you could use a switch? (actually I prefer if/else if/else blocks myself)

Posted by metamorphic [send private reply] at March 31, 2002, 10:58:27 AM

what? why dont you like switch statments? i hate having those deeply nested if/else statements

Posted by CodeRed [send private reply] at March 31, 2002, 05:19:12 PM

you don't write them correctly if they look nested. You probably do this:

if(){}
else{
____if(){}
____else{
________if(){}
________else{
________}
____}
}

You should do this:

if(){}
else if(){}
else if(){}
else if(){}
else{}

(underscores used because the leading spaces are disregarded by this screwy message board)

Posted by buzgub [send private reply] at March 31, 2002, 10:46:28 PM

actually, they'd be disregarded by your web browser anyway.

Posted by gian [send private reply] at April 01, 2002, 02:36:50 AM

CodeRed, stop preaching your code formatting ideologies to the rest of us.

Posted by CodeRed [send private reply] at April 01, 2002, 09:45:28 PM

This is the first such time I have done so as far as I can remember

Posted by gian [send private reply] at April 01, 2002, 10:06:59 PM

I have a rather clear recollection of my message reguarding "Code structure" being answered with a message with a whole program on one line...

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.