Jump to content
  • Advertisement
Sign in to follow this  
rt004

Python or Basic?

This topic is 4816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I was wondering if Python or BASIC is better to start off with. I have python and LibertyBASIC on my computer, and im tryin both. What are the pro's and con's of both?

Share this post


Link to post
Share on other sites
Advertisement
BASIC is a horrible, horrible language. It will teach you bad habits which you will spend years weaning yourself of. Go with Python.

Share this post


Link to post
Share on other sites
basic is a little easier to learn than python since it's alot closer to spoken english. But they are both definitely alot easier to learn than say c/c++.
pro's: they both require alot less typing than other languages like c/c++ to get stuff done(see "code complete" book for numbers)
con's: both dog slow compared to c/c++
both require you to include redistributables with your executable in order for user to run your programs
oh yeah another con that only applies to basic is that it will teach you bad habits that will be hard to break later. I think there is even some famous quote that goes something like "basic programmers are brain damaged beyond hope to learn any other language."
that's all I can think of off the top of my head.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Choose Python then, because BASIC is old, and was used for nonprogrammers to program relatively simple problems.

Share this post


Link to post
Share on other sites
Why is it that when people mention BASIC, you drag up old issues that applies to BASIC-languages from the late 80's.
The speed of the compiled applications depends on the compiler and not the syntax, and most newer BASIC-languages are NOT runtime interpreted.
I've seen and done benchmarking tests from languages like PowerBasic, PureBasic & BlitzMax and trust me, they do not fall behind.

So please stop with the old phrases, "It's interpreted, needs loads of runtime files and it's slow", because this simply ain't true anymore.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sweenie
Why is it that when people mention BASIC, you drag up old issues that applies to BASIC-languages from the late 80's.
The speed of the compiled applications depends on the compiler and not the syntax, and most newer BASIC-languages are NOT runtime interpreted.
I've seen and done benchmarking tests from languages like PowerBasic, PureBasic & BlitzMax and trust me, they do not fall behind.

So please stop with the old phrases, "It's interpreted, needs loads of runtime files and it's slow", because this simply ain't true anymore.


I agree. It's not the language it's the programmer. And most basic nowadays are very structured. The one I use (FreeBASIC) can compare it's speed (expression-wise) to almost 95% with that of GCC. I also use C, C++ , ASM and Pascal but I keep coming back to BASIC because it's fun to code with.

BTW, Freebasic can also use almost all C libs like OpenGL and SDL.

As a comparison, I made a FreeBASIC and C++ demo(OpenGL+SDL). Almost the same code and I don't notice any speed difference.

C++
http://rel.betterwebber.com/junk.php?id=48

FreeBASIC
http://rel.betterwebber.com/junk.php?id=47

Share this post


Link to post
Share on other sites
Hi there rt004,
How are you doing buddy?

The Problem
Learning BASIC or Python

The Solution
From my personal experiences with programmers that have used basic is that it's hard for them to learn other languages such as c-style languages cause of the huge syntax difference. Coming from a c-style learning language and coding in basic is easier. I would also say that with VB and C-style languages such as C#, c++, python that it comes down to the programmer although you find some people that code in VB learn horrible habbits as mentioned above.

There aren't really any pros or cons to the languages, I'd just say that the community has a strong point when it comes to languages and the general belief is that c-style languages are a better choice to learn.

Final point. Python ;)

Share this post


Link to post
Share on other sites
I'd say that Python is a lot more relevant in todays world than BASIC. If this was 1985, rather than 2005, I'd suggest learning BASIC, but it's not, so go for Python.

Share this post


Link to post
Share on other sites
Python is leagues ahead of every version of Basic that I've had the misfortune to use. Does your version of Basic come with these?
  • An XML parser
  • Socket functions
  • Regular expression parsing
  • Convenient sequence and mapping types
  • inheritance and polymorphism support
  • functions that you can pass as parameters to other functions
  • Free downloadable MySQL and SQLite support
  • String handling functions such as splitting at delimiters


If not, then use Python.

Share this post


Link to post
Share on other sites
You forgot multithreading support too.

Python is MUCH more developed than Liberty Basic. Also, if you use the PyGame extension you'll be able to run your games on Macintosh and Linux without much if any adaptation. Liberty Basic is stuck with just Windows.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!