techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Mar 27, 2009, 08:27 AM   #1
Braveheart
500 Posts
 
Braveheart's Avatar
 
Join Date: Mar 2008
Posts: 965 (0.50/day)
Thanks: 93
Thanked 48 Times in 36 Posts

System Specs

small basic is out!

microsofts easiest and coolest computer programing language. wow this is soo easy! I've wrote programs in C++, VB, C# and so far my favorite's are C# and small basic, what do you guys think of it?
__________________
my heat.
Braveheart is offline  
Reply With Quote
The Following 3 Users Say Thank You to Braveheart For This Useful Post:
Old Mar 27, 2009, 11:48 AM   #2
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,347 (2.15/day)
Thanks: 750
Thanked 960 Times in 710 Posts

System Specs

It worries me that there are only "15 keywords". That seems like an awfully small basic to me. However, looking at the User Guide/Introduction it seems that it is really "Object Basic" and with object references there is much more flexibility than just "15 keywords".

If it is easy to use... AND... it introduces object oriented language to the beginner... AND... it is sufficiently similar to BASIC, then great!

However, I'm not really sure about the benefit of this over VB Express. A very friendly BASIC should allow statements like "PRINT" and "INPUT" and not require object methods identical to VB. If it does... then why not just use VB. Difference? Compiled vs. interpretted?

For anyone that tries it out... please comment... even better, do a very basic algorithm and see how speeds compare between Small Basic and C++ and VB.
lemonadesoda is offline  
Reply With Quote
Old Mar 27, 2009, 12:28 PM   #3
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

Quote:
Originally Posted by lemonadesoda View Post
It worries me that there are only "15 keywords". That seems like an awfully small basic to me. However, looking at the User Guide/Introduction it seems that it is really "Object Basic" and with object references there is much more flexibility than just "15 keywords".

If it is easy to use... AND... it introduces object oriented language to the beginner... AND... it is sufficiently similar to BASIC, then great!

However, I'm not really sure about the benefit of this over VB Express. A very friendly BASIC should allow statements like "PRINT" and "INPUT" and not require object methods identical to VB. If it does... then why not just use VB. Difference? Compiled vs. interpretted?

For anyone that tries it out... please comment... even better, do a very basic algorithm and see how speeds compare between Small Basic and C++ and VB.
AHH! NERD! jk
I wish i could really get into programming, just doesn't seem like I have the time. I really liked basic, it helped me learn programming, and I even made a few very fun games with it.
+1 very rare thanks from me, for finding this.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 01:07 PM   #4
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,347 (2.15/day)
Thanks: 750
Thanked 960 Times in 710 Posts

System Specs

Quote:
Originally Posted by 3870x2 View Post
AHH! NERD!
Thanks for the compliment!
lemonadesoda is offline  
Reply With Quote
Old Mar 27, 2009, 01:11 PM   #5
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

Quote:
Originally Posted by lemonadesoda View Post
Thanks for the compliment!
Exactly
I'm just a wannabe nerd ATM.

There's a lot of things i wannabe: Guitarist, software developer, level 80 human paladin, etc...
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 01:16 PM   #6
h3llb3nd4
2000 Posts
 
h3llb3nd4's Avatar
 
Join Date: Feb 2009
Location: Durban, South Africa
Posts: 2,902 (1.83/day)
Thanks: 372
Thanked 313 Times in 277 Posts
Send a message via MSN to h3llb3nd4

System Specs

Quote:
Originally Posted by 3870x2 View Post
Exactly
I'm just a wannabe nerd ATM.

There's a lot of things i wannabe: Guitarist, software developer, level 80 human paladin, etc...
LOL I wannabe a general
__________________
h3llb3nd4 is offline  
Reply With Quote
Old Mar 27, 2009, 01:23 PM   #7
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

O, but you CAN! smoke a few ounces of HASH and play C&C:Generals!
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 01:25 PM   #8
h3llb3nd4
2000 Posts
 
h3llb3nd4's Avatar
 
Join Date: Feb 2009
Location: Durban, South Africa
Posts: 2,902 (1.83/day)
Thanks: 372
Thanked 313 Times in 277 Posts
Send a message via MSN to h3llb3nd4

System Specs

LOLz
__________________
h3llb3nd4 is offline  
Reply With Quote
Old Mar 27, 2009, 01:52 PM   #9
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

Alright guys, Im posting a Small Basic thread!
http://forums.techpowerup.com/showthread.php?p=1283213
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 03:41 PM   #10
Braveheart
500 Posts
 
Braveheart's Avatar
 
Join Date: Mar 2008
Posts: 965 (0.50/day)
Thanks: 93
Thanked 48 Times in 36 Posts

System Specs

Quote:
Originally Posted by 3870x2 View Post
Alright guys, Im posting a Small Basic thread!
http://forums.techpowerup.com/showthread.php?p=1283213
sweet, this should be fun!
__________________
my heat.
Braveheart is offline  
Reply With Quote
Old Mar 27, 2009, 04:08 PM   #11
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

The thing that drives me nuts about Small Basic, is that like QBasic there is no varying levels of scope (ie. all variables are global) so you cannot pass variables into subroutines. Makes for lots of spagetti code.

In any event, I'll put something togther and post it in the other thread.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
Old Mar 27, 2009, 04:11 PM   #12
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

sounds great! as we all know, small basic/Qbasic is very basic, but can be fun to toy around with.

Remember that thread can be anything that can be programmed.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 04:46 PM   #13
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,347 (2.15/day)
Thanks: 750
Thanked 960 Times in 710 Posts

System Specs

Quote:
Originally Posted by Kreij View Post
The thing that drives me nuts about Small Basic, is that like QBasic there is no varying levels of scope (ie. all variables are global) so you cannot pass variables into subroutines. Makes for lots of spagetti code.
?confused?

http://library.thinkquest.org/19436/lesson8.htm
http://en.allexperts.com/q/Qbasic-Qu...ined-types.htm
http://www.xs4all.nl/~hwiegman/qb-man/SUB.html
lemonadesoda is offline  
Reply With Quote
Old Mar 27, 2009, 04:57 PM   #14
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

WHAT!!! is anoyone going to post a challenge? I should have a game and a useful progam up by the end of the day. If you like the program, THANK THEM, it will kinda count as a vote. Who knows, there might be some very useful programs coming out of this.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 06:13 PM   #15
Braveheart
500 Posts
 
Braveheart's Avatar
 
Join Date: Mar 2008
Posts: 965 (0.50/day)
Thanks: 93
Thanked 48 Times in 36 Posts

System Specs

Quote:
Originally Posted by 3870x2 View Post
WHAT!!! is anoyone going to post a challenge? I should have a game and a useful progam up by the end of the day. If you like the program, THANK THEM, it will kinda count as a vote. Who knows, there might be some very useful programs coming out of this.
im working on it. im working on my blender game at the same time so im not getting a ton done, can't get stupid blender to work
__________________
my heat.
Braveheart is offline  
Reply With Quote
Old Mar 27, 2009, 06:16 PM   #16
RevengE
2000 Posts
 
RevengE's Avatar
 
Join Date: Dec 2008
Location: Ohio
Posts: 2,047 (1.25/day)
Thanks: 214
Thanked 212 Times in 194 Posts
Send a message via AIM to RevengE

System Specs

Quote:
Originally Posted by 3870x2 View Post
Exactly
I'm just a wannabe nerd ATM.

There's a lot of things i wannabe: Guitarist, software developer, level 80 human paladin, etc...
I'm a guitarist and a Nerd! It can be done my friend, all you need to do to achieve this goal is 1.spend countless hours staring at your computer. 2.hear your fiancé yell at you due to the amount of hours you spend Staring at your computer. 3. Play the guitar after your done staring at your computer for countless hours. 4.go to work 5.repeat steps 1-4.
__________________
RevengE is offline  
Reply With Quote
Old Mar 27, 2009, 06:36 PM   #17
Braveheart
500 Posts
 
Braveheart's Avatar
 
Join Date: Mar 2008
Posts: 965 (0.50/day)
Thanks: 93
Thanked 48 Times in 36 Posts

System Specs

Quote:
Originally Posted by xRevengEx View Post
I'm a guitarist and a Nerd! It can be done my friend, all you need to do to achieve this goal is 1.spend countless hours staring at your computer. 2.hear your fiancé yell at you due to the amount of hours you spend Staring at your computer. 3. Play the guitar after your done staring at your computer for countless hours. 4.go to work 5.repeat steps 1-4.
so you choose geekness over a wife?
__________________
my heat.
Braveheart is offline  
Reply With Quote
Old Mar 27, 2009, 07:11 PM   #18
RevengE
2000 Posts
 
RevengE's Avatar
 
Join Date: Dec 2008
Location: Ohio
Posts: 2,047 (1.25/day)
Thanks: 214
Thanked 212 Times in 194 Posts
Send a message via AIM to RevengE

System Specs

no man, I was just kidding
__________________
RevengE is offline  
Reply With Quote
The Following User Says Thank You to RevengE For This Useful Post:
Old Mar 27, 2009, 07:12 PM   #19
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Quote:
Originally Posted by lemonadesoda View Post
?confused?
When you have varying levels of scope it means that when something goes out of scope, anything created inside of the scope gets disposed.

For instance, in C# you can do something like ...
Code:
int a = 10;
int c = 0;

private int DoSomething (int number)
{
    int b = number * number;
    return b;
}

c = DoSomething(10);
This is an extremely simple example.

Since the variable b in created in the scope of the DoSomething method (or subroutine as they are called in Basic), it gets disposed when the method exits. Variable b ONLY exists in the method. It cannot be used from outside of the method.

In Small Basic ALL variables are global and can be used anywhere in the program. Because of this, passing a variable into a subroutine has no meaning, and therefore cannot be done.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
Old Mar 27, 2009, 07:25 PM   #20
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

Quote:
Originally Posted by Kreij View Post
When you have varying levels of scope it means that when something goes out of scope, anything created inside of the scope gets disposed.

For instance, in C# you can do something like ...
Code:
int a = 10;
int c = 0;

private int DoSomething (int number)
{
    int b = number * number;
    return b;
}

c = DoSomething(10);
This is an extremely simple example.

Since the variable b in created in the scope of the DoSomething method (or subroutine as they are called in Basic), it gets disposed when the method exits. Variable b ONLY exists in the method. It cannot be used from outside of the method.

In Small Basic ALL variables are global and can be used anywhere in the program. Because of this, passing a variable into a subroutine has no meaning, and therefore cannot be done.
Don't mess with kreij, his avatar is a picture of his daily breakfast.

However, as you see kreij, he meant different types of variables, like floating point, etc....

I am working on my program as we speak, and will post an example of how they should be posted, to make it look neat and clean.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 27, 2009, 08:59 PM   #21
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Quote:
Originally Posted by 3870x2 View Post
Don't mess with kreij, his avatar is a picture of his daily breakfast.

However, as you see kreij, he meant different types of variables, like floating point, etc....

I am working on my program as we speak, and will post an example of how they should be posted, to make it look neat and clean.
Now I'm ?confused?. Lemonade quoted my post on scope and said he was confused so I explained scope. What does that have to do with variable types?

Anyway, I was working on an enterprise resource planning application all day so I didn't have a chance to play with SB.
Maybe I can fiddle around with it this weekend at home.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
Old Mar 27, 2009, 09:15 PM   #22
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

"(ie. all variables are global) so you cannot pass variables into subroutines"
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 28, 2009, 01:07 AM   #23
Braveheart
500 Posts
 
Braveheart's Avatar
 
Join Date: Mar 2008
Posts: 965 (0.50/day)
Thanks: 93
Thanked 48 Times in 36 Posts

System Specs

im almost done with the MS tutorial that came with it and thus almost done with a pretty nice little console calculator.
__________________
my heat.
Braveheart is offline  
Reply With Quote
Old Mar 28, 2009, 02:25 AM   #24
3870x2
3500 Posts
 
3870x2's Avatar
 
Join Date: Feb 2008
Location: Joplin, Mo
Posts: 4,549 (2.34/day)
Thanks: 176
Thanked 692 Times in 558 Posts
Send a message via Skype™ to 3870x2

System Specs

Awesome, looking forward to it.
__________________
A+, N+, S+, MCSE.
Heatware
STEAM ID Name: furi0nst0rmrage (0s are zeros)
M O D E R N||W A R F A R E || 2 || CLUBHOUSE // TEAM
The amount exaltation of the processor cores can brings amazing floating” -sparkle
3870x2 is offline  
Reply With Quote
Old Mar 28, 2009, 03:27 AM   #25
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,655 (6.23/day)
Thanks: 1,788
Thanked 2,635 Times in 1,988 Posts

System Specs

Quote:
Originally Posted by lemonadesoda View Post
For anyone that tries it out... please comment... even better, do a very basic algorithm and see how speeds compare between Small Basic and C++ and VB.
I assume it runs on the .NET framework so the performance is probably the same.


Quote:
Originally Posted by 3870x2 View Post
WHAT!!! is anoyone going to post a challenge? I should have a game and a useful progam up by the end of the day. If you like the program, THANK THEM, it will kinda count as a vote. Who knows, there might be some very useful programs coming out of this.
I don't code unless I have something to code. You know, take this 10 step process and make it a 1 step process...
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is online now  
Crunching for Team TPU
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a small business network Vayne Networking & Security 31 Oct 23, 2008 06:52 PM
[WTB][US] Basic Mobo, RAM, CPU flashstar Buy/Sell/Trade/Giveaway Forum 3 Aug 19, 2008 09:53 PM
Windows Small Business Server 2008 Public Preview Available Today malware News 1 Jul 18, 2008 03:43 AM
Seagate Introduces Savvio 10K.3 Small Form Factor Enterprise Drive malware News 7 Jun 3, 2008 02:36 PM
GameSpot announces 3DMark06 Basic Edition Dark Ride News 0 Jan 17, 2006 11:48 AM


All times are GMT. The time now is 12:43 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts