More servicesWindows Live
HomeHotmailSpacesOneCare
 
MSN
Sign in
 
 
Spaces home  Steve's Programming plac...ProfileFriendsFilesMore Tools Explore the Spaces community

Steve's Programming place

Using FLEX AIR REBOL PHP & MySQL
March 10

Steve's Rebol Blog

 

I've used REBOL this month for a small database application, using REBOL and RebDb for the storage

Populating the database was very straight-forward as the data is pretty flat-file based. I'm still using Henrik's

List-View control, as it's so easy to use.

Still waiting for the update to REBOL - A new Alpha release for version 3 is due soon - I believe! Hopefully

we will be able to start using it for serious applications soon.

Steve

February 18

Steve Thornton's FLEX 3 Blog

 

Well it's blazing thru February now and the need to do 'paid' work is getting in the way of learning more about REBOL.

I've also tried to spend some time familiarizing myself more with FLEX 3 (Adobes soon to be released development system running on the Flash 9 platform.

As well as my ruminations about the upcoming release of REBOL 3, I'm having to create a FLEX presentation app and possibly another app after that.

So I'm going to comment on my progress with FLEX too.

Looking at any new development system you will eventually uncover THE annoyances !!

The biggest annoyance with REBOL 3 is 'It's not here!"

Whereas the annoyance I've found with FLEX 3 is that they still have not made it easy enough to use databases. They have included an embedded

version of SQLite if your using AIR (The desktop part of FLEX) but I was hoping for more! Perhaps a multi-user default SQL database or even I

would like a native XML database (easily accessible !!) even in FLEX (Web apps) would get my money!!!

Bye for now

February 01

Steve Thornton's REBOL Blog

Thornton Software
www.thorntonsoftware.co.uk

E-Mail: steve@thorntonsoftware.co.uk
pwr-rebol

Dip a toe into VID 3
   


I've been working with VID 2 this week (Visual Interface Dialect), yes it's a dialect. A dialect is an extension to the REBOL language that can be 'plugged-in' to extend the language itself. In the case of VID it's used to create GUI'S (Graphical User Interfaces).

VID 2 is quite powerful but some of my questions to the ever patient (Rebol Guru's) have been answered with 'well in VID 3 it will be a LOT easier!'. So with a public 'alpha' release being available I thought I'd dip my toe in and have a look.

We don't need to do anything complicated to see quite a difference.

Let's try a one-liner - if we look at example 1 the first thing I noticed is that 'effects' are now 'options' this is more logical I think. A couple of additions I really like are 'rounding' which allows us to create a button, box etc and specify how rounded the corners should be. We also have 'material' which include sand, glass, blue-glass etc, Stylising these should allow some pretty funky skins.

Running the script creates fig.1

Right now try re-sizing the screen!

Firstly, the screen is re-sizable by default - nice, but also see how the button has re-sized itself accordingly. This is because VID 3 will include a 'table' style layout manager this arranges controls in virtual columns working on a top - down basis 

You can have a look at many more cool styles you can play with at the following link

Rebol VID User Guide

Steve

Henrik from HMK as passed on a postscript on how styles will be used in VID 3

 


example 1


view [ button "Hello World!" options [rounding: 8  material: 'sand] ]


Fig1.


image

 
Fig2.


 image 

 


Courtesy of HMK Design

"'effects' are now 'options'" - the idea is here to remove the need for face hacking. Options is a clean, self documentable  way to alter the settings for a specific style. But here, the fact that we can alter the appearance of the style is a bit of a fluke, because we wanted a simple way to test options. Originally it was the idea that altering any such effects parameters directly in your layout would be prohibited; The style would take care of this internally and you'd use specific button types that would then use a specific style. You would use buttons defined through its purpose rather than its appearance. You'd have zero control over the appearance of the button, because that is controlled by the style alone.

I know that sounds a little terrifying, but VID3 is meant to lift styling to a whole different level; You don't style every single face. You focus on the contents of your UI, and the purpose of each element, rather than its appearance and VID3 works out how to display it. This is for multiple reasons:

- VID3 can display on other devices than bitmapped displays, such as text consoles or vectored output.
- Styling becomes the job of one or more dedicated developers rather than the application developer, which standardizes styling. It makes it much simpler to build very large applications and it becomes possible to switch consistently between different styles, where one won't look crappy while another one looks great. They'll work equally well. Compare it to VID which is just the Wild West of styling. :-)
- Abstraction will make it possible to identify parts of a user interface, such as allowing VID3 to, on its own, find the cancel button in a window or automatically put key focus on the correct button for great consistency.

So when you, in your user interface design say: "I want a button that shows importance", you don't try to make a red button. You could use the 'warning-button style (just an example, doesn't exist yet). Similarly there will be styles for ok-button, cancel-button, etc. They are not called red-button, yellow-button, but are purely purpose oriented styles.

So while VID3 may look like just a prettier VID with resizing in a one-button example, it's actually a whole different beast. :-)

 

January 26

Steve Thornton's REBOL Blog

Thornton Software
www.thorntonsoftware.co.uk

E-Mail: steve@thorntonsoftware.co.uk
pwr-rebol

Week two! - further de-programming
 


Well we're into the second week of learning REBOL.

While the applet on the right is only a dozen lines of code, it showed me a few thing about REBOL. Firstly I was trying to do something quite simple - I wanted the name to be forced into uppercase. We needed to select the expiry date and create an encoded licence. In your event handling of the name box you can 'bind' to the base text handler called ctx-text. This allows us to 'interrupt' the key-presses and change them to uppercase.

On a full-blown application I can create functions for interrupting key-strokes and getting the effect I want. HOWEVER! this is a lot of work for a twelve line applet, all this applet needed was  'cname: field [uppercase cname/text]', when you leave the field it's converted to uppercase.

Still struggling with 'BIND' but  I think I've learned enough about PARSE, BIND, CONTEXT & DIALECTS, to start using some of these facilities in some programs.  Biggest lesson so far this week has been 'Don't use it just because it's there!'  Stepping back from some of the things I've tried have lead me to simplifying my program rather than achieving a complicated solution!

If you've started using REBOL - please let me know how your getting on.

Steve

 


image
 





















   
January 19

Steve Thornton's REBOL Blog

Thornton Software
www.thorntonsoftware.co.uk

E-Mail: steve@thorntonsoftware.co.uk

I've learnt an awful lot over the past week! But I think one of the most profound lessons I've learnt,

I quote from one of the WIki guides on the language

" This is perhaps the most important single piece of advice when learning REBOL for the first time:
    forget the past. Forget what you already know about programming.
    REBOL is different. If you know other programming languages such as C or BASIC, and you expect to program REBOL the same way,
    then what you will get as a result is C or BASIC. Nothing better. We've seen this happen many times. " courtesy of Wikibooks

 

Every function or data routine I've written this week, I have stepped back from and thought "that's the c# way of doing it!"

Rebol opens up wonderful ways of approaching software tasks - I think I'm just entering my second week of de-programming.

January 15

Steve Thornton's REBOL Blog

Thornton Software
www.thorntonsoftware.co.uk

E-Mail: steve@thorntonsoftware.co.uk
  pwr-reb-tech
     
     

Well it's a week since I started learning the REBOL Development System.

I think it's one of the most productive languages I've ever come across. I've used the (MS) Visual Studio languages since they came out - all the way back with Visual Basic 1.0. Lots of people laughed at it when it was released saying it was only any use for prototyping! Well it and Visual Studio have become about the most successful languages at 'Getting people programming'.

I see the same kind of simple power with REBOL. At first glance I didn't think it could compete when doing any serious desktop applications - I thought it was just an effective web language like Ruby! In the past week I've found it to be very powerful. Apart from trying to read the mountain of documentation available on the REBOL web site, I have been prototyping a couple of applications one is a relationship management come document tracking system and the other is a re-write of a booking system I wrote in VB6.  I'll let you know how I get on over the coming months.

On the right is a screen shot of the relationship manager, I'm quite pleased with rich feel it's possible to achieve with REBOL. To do the same effects with Java I would need to link several widget & graphic libraries (Never again!)

The icons at the bottom are made from plain old boxes, but the reflection is created with one line of code (per icon) and when you hover the mouse over the icons they expand (Mac - toolbar) style. Hovering also shows a description of each item at the bottom of the screen.

One of the big differences with REBOL is the community! it's second to none. I must give a big thank-you to Henrik, Gregg and others for their patience with me this week.

Please have a go at REBOL and let me know what you think.

Regards

Steve

 

  image


























Main Menu screen for TS-VRM
October 21

First entry !!!

Hi! I'm Steve
 
Jane (my wife) and I run a software development business 'Thornton Software' based in Blackpool (United Kingdom)
 
I've been writing software for about twenty years.
 
I've used Clipper, VB, C#, Java, Pascal, Modula, Fortran (yes I'm that old!) Nerd
 
I also train accountants how to use Time/Practice Management/Mailing/Accounts/Tax software.
 
I've recently started using the REBOL development system, so I'm using this blog as a report of my progress
and a bookmark for people to see what you can develop with REBOL.
 
You can contact us directly, or you will find further information on our website for Thornton Software
 
 
 
Thanks for visiting!

Public folders

Folders shared with the world
by