[futurebasic] Re: [FB] A few beginner questions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2009 : Group Archive : Group : All Groups

From: Deep <Info@...>
Date: Tue, 20 Jan 2009 14:37:46 +0000
> I'm hoping that developing apps with FB will be much easier than going
> directly to C!  Now let me delve deeper into this wonderful FB world!

You will not regret the decision! Some FB users are hobbyists, some make
professional software, some like to dabble in programming. One thing in
common is that there are lots of friendly and helpful people in the FB

From a beginning point of view of the novice programmer (although you seem
far beyond a novice), with FB and more to the point, with FBtoC in the mix,
you write your source code in FB and the resulting application is a
double-clickable universal binary application with a lot of the overhead
done for you. Simple one-liners become fully operational apps without the
need for knowing too much about the magic taking place in the background.

For more advanced programming, you then have a choice which route to take:

A) Go pure FB and use the FB syntax to manage menus, windows, buttons, etc.
This is the easy and traditional FB route and many find this to be the
strong point of FB especially when starting the learning process. Full GUI
Mac apps can be created with simplicity and rapidly.

B) For more adventurous programming, you can use the Mac toolbox directly,
with calls to all the various Carbon frameworks, perhaps using Interface
Builder, and so on. The canvas is plain and waiting for you.

Over time, many users wander from plan A to plan B, some willingly whilst
some without realising it!

The "future" of FB was designed for longevity. For this reason, and to help
ensure a viable future for FB regardless of the route Apple takes with
hardware, etc, the FBtoC takes FB code from the editor, pipes it into a
translator creating C source code, and then uses gcc to build the
application. This can all be shielded from the user, but is openly visible
to those who wish to see it. Additionally, there is a menu command "Make
Xcode Project" which takes your FB project and converts it into an Xcode
project. You can then open Xcode, compile, edit, etc, as you see fit if you
prefer and lets you use Xcode debugging tools.

There are lots of examples in the FB Package of both plain FB code, and
using the toolbox calls. In fact, many of the headers are already supported
and included, those which are not yet added can be easily added. Most of the
FB syntax is also glue code for back-end toolbox calls and you can openly
see the translated C code after translation so you can use it as a learning
tool on how Mac applications can be created in C but using the easier FB
syntax as the starting point.

Good luck in your development efforts!

> From: Ellery Bann <ellery@...>
> Reply-To: <futurebasic@...>
> Date: Tue, 20 Jan 2009 10:36:14 -0200
> To: <futurebasic@...>
> Subject: Re: [FB] A few beginner questions
> Thanks all for the useful information!
> I have no intentions of doing OOP, I just thought that perhaps one day
> OOP will be the norm and we would have to adjust to the new reality.
> I was querying whether FB would be structurally ready to implement OOP
> paradigms in that case.  It's just a sign on code maturity!
> My current programming background is strictly C in a Unix/Linux/
> Solaris/SunOS environment, so I am very comfortable with procedural
> programming with clib/glib librarys.  Not much experience with X
> windows programming.  I just recently (3 years) converted to Mac OS X
> and have minimal experience with its programming environment.  After
> reading about Carbon vs. Cocoa, I am definitely a Carbon type of guy.
> I like to use Emacs and gcc/gdb... XCode/IB just confuses the heck out
> of me!  I have yet to understand completely how to implement Cocoa
> widgets into a Carbon source code using FutureBasic!  I also plan to
> play around with Quartz2D and OpenGL.  Just messing around.
> I'm hoping that developing apps with FB will be much easier than going
> directly to C!  Now let me delve deeper into this wonderful FB world!
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...