This Isn't BASIC

General discussion for topics related to the FreeBASIC project or its community.
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

This Isn't BASIC

Post by chris319 »

This isn't BASIC.

I've been struggling for hours trying to accomplish some fairly simple tasks with FreeBASIC, porting working code already written in another "dialect" of BASIC. The BASIC language is supposed to be easy. FreeBASIC isn't. It's become an arcane bastardization of BASIC. There is nothing easy about it. I feel like I'm programming in C all over again. Try this, try that, search the documentation high and low -- nothing seems to work. Too much trial and error, too much work. I'd be better off converting my project to C because at least C is (sort of) standardized. My current project isn't going to be ported to FreeBASIC. It's going to remain in its current BASIC "dialect" where at least it works and I don't have to devote an entire evening trying to accomplish something with no success.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

You are certainly entitled to your opinion, but I can't recall any times you posted in recent memory asking for guidance on any issues. You have two choices at this point: ask questions about the problems you are having, or abandon FreeBASIC. If you would like to ask a question, please do. If you are abandoning FreeBASIC, then good luck with your project.

-Vince
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Post by chris319 »

After about five hours I finally hit upon the breakthrough that got my code working. It wasn't easy but it works, so I recant my previous post and will press on with FreeBASIC. Sorry for any ruffled feathers, but after five hours one can get a little hot under the collar.

Thanks to those who answered my questions in another section of the board.

Moderators: feel free to delete this thread.
1000101
Posts: 2556
Joined: Jun 13, 2005 23:14
Location: SK, Canada

Post by 1000101 »

Could you provide some examples of what you were doing which is problematic in FreeBASIC? FreeBASIC is still BASIC just as Americans speak English, Canadians speak English, Austrialians speak Austrailian, etc.
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

Porting's almost always a pain. I would know well ahead of time what potential issues I would run into, but then again I know FB like I know English. Or better, sometimes.
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Post by agamemnus »

One of the defining aspects of this community, I think, is the willingness to try to help people with issues and then try to make sure they never happen again. So please, do tell us what your problems were and how you tried to fix them.
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Post by chris319 »

Thanks for the kind offers of help. I think I'm good for now. I'm trying to work things out as best I can and am saving my questions for when I really need them.

I think I see some room for improvement in the documentation, though. I have contributed to the documentation wiki in the past (when anyone could edit it) and I would be happy to do so again. I would like to see the alphabetical keyword list expanded.

Porting is a pain, yes, but in most regards FreeBASIC is closer to the way real BASIC ought to be. Before discovering FreeBASIC I had started writing a BASIC to Perl and a BASIC to Pascal converter so I know a thing or two about it.
aston
Posts: 16
Joined: Nov 29, 2009 20:32

-

Post by aston »

Heh...
FreeBasic is in some aspects is near to C language becose user must many
things do manualy which you dont in many other basic dialects.
But on this way user learn deeply how things really works.
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: -

Post by chris319 »

aston wrote:Heh...
FreeBasic is in some aspects is near to C language becose user must many
things do manualy which you dont in many other basic dialects.
But on this way user learn deeply how things really works.
This is true. I'm finding this out by interfacing with a C library which contains structures and pointers to structures and pointers within structures and strings which have to be zstrings and pointers to structures which have pointers to strings which have to be zstrings. Whew! I understand some of this is necessary either to maintain some semblance to QB or to make the language powerful in a C sort of way, but it does present a learning curve.
Voltage
Posts: 110
Joined: Nov 19, 2005 7:36
Location: Sydney, Australia
Contact:

Post by Voltage »

Austrialians speak Austrailian
Streuth.

Australian's speak English.

There are no Austr_i_alians that speak Austra_i_lian.

Crikey bloody moses.
MichaelW
Posts: 3500
Joined: May 16, 2006 22:34
Location: USA

Re: -

Post by MichaelW »

chris319 wrote: ...but it does present a learning curve.
It didn't for me. One of the things that really impressed me initially was how easy and intuitive the syntax was. Most of the problems I had were with the early header files.
Richard
Posts: 3096
Joined: Jan 15, 2007 20:44
Location: Australia

Post by Richard »

In Australia the common language is either Strine or Horse-trail-yen.
See; http://en.wikipedia.org/wiki/Afferbeck_Lauder
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Post by agamemnus »

Richard wrote:In Australia the common language is either Strine or Horse-trail-yen.
See; http://en.wikipedia.org/wiki/Afferbeck_Lauder
You learn something new every day.
1000101
Posts: 2556
Joined: Jun 13, 2005 23:14
Location: SK, Canada

Post by 1000101 »

@voltage, first one was a typo the second was just bad spelling. It doesn't matter, you guys are barely understandable anyway. :P
Voltage
Posts: 110
Joined: Nov 19, 2005 7:36
Location: Sydney, Australia
Contact:

Post by Voltage »

...usually due to alcohol excess.

I have heard whole sentences spoken as one or two words though. For example "What, TheBloodyEllIsGoinOnEreThen?".

Nice link Richard. It's hard to read unless you throw a thick Aussie drawl over the top of those "sentences". Afferbeck Lauder :)

/endOffTopicness
Post Reply