New website

General discussion for topics related to the FreeBASIC project or its community.
sancho2
Posts: 547
Joined: May 17, 2015 6:41

Re: New website

Post by sancho2 »

Here is a link to it (because I couldn't find it in this forum thread)
Looks good. It would be cool if instead of one code sample, you could flip through several via an arrow button, similar to how picture sets are sometimes displayed on web pages.
There is one small line that mentions object oriented:
FreeBASIC is a high-level programming language supporting procedural, object-orientated and meta-programming paradigms,
There does seem to be a lot of mentioning of QuickBasic.
In this forum there are very few questions about QuickBasic and I assume very few people going that route. I would think that QuickBasic compatibility is a very minor selling point.
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: New website

Post by badidea »

My code suggestion :-)

Code: Select all

screenres 600, 400, 32
print "Red cirle. Awesome!"
circle (300, 200), 150, rgb(255, 0, 0)
sleep
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: New website

Post by fxm »

It is impossible to show some capabilities of OOP from a very short code.

Example of code showing an OOP subset only:

Code: Select all

Type Animal Extends Object
    Declare Abstract Property greeting () As String
End Type

Type Cat Extends Animal
    Declare Virtual Property greeting () As String Override
End Type
Virtual Property Cat.greeting () As String
    Return "Meow!"
End Property

Type Dog Extends Animal
    Declare Virtual Property greeting () As String Override
End type
Virtual Property Dog.greeting () As String
    Return "Woof!"
End Property

Type BigDog Extends Dog
    Declare Virtual Property greeting () As String Override
End type
Virtual Property BigDog.greeting () As String
    Return "Woooooof!"
End Property

'Using directly the derived-type instances
Dim c As Cat, d As Dog, b As BigDog
Print c.greeting, d.greeting, b.greeting,
Print

'Using the polymorphism (by overriding) on a collection of base-type pointers
Dim pa(0 To 2) As Animal Ptr => {@c, @d, @b}
For i As Integer = Lbound(pa) To Ubound(pa)
    Print pa(i)->greeting,
Next i
Print

'Dowcasting/Dereferencing the base-type pointers
Dim pc As Cat Ptr => Cast(Cat Ptr, pa(0)), pd As Dog Ptr => Cast(Dog Ptr, pa(1)), pb As BigDog Ptr => Cast(BigDog Ptr, pa(2))
Print pc->greeting, pd->greeting, pb->greeting,
Print

Sleep
Shorter version with only 2-level inheritance and polymorphism:

Code: Select all

Type Animal Extends Object
    Declare Abstract Property greeting () As String
End Type

Type Cat Extends Animal
    Declare Virtual Property greeting () As String Override
End Type
Virtual Property Cat.greeting () As String
    Return "Meow!"
End Property

Type Dog Extends Animal
    Declare Virtual Property greeting () As String Override
End type
Virtual Property Dog.greeting () As String
    Return "Woof!"
End Property

Dim c1 As Cat, d1 As Dog, c2 As Cat, d2 As Dog

'Using the polymorphism (by overriding) on a collection of base-type pointers
Dim pa(0 To 3) As Animal Ptr => {@c1, @d1, @c2, @d2}
For i As Integer = Lbound(pa) To Ubound(pa)
    Print pa(i)->greeting
Next i

Sleep
Last edited by fxm on Mar 08, 2016 14:15, edited 1 time in total.
bihai
Posts: 36
Joined: Mar 25, 2015 7:56

Re: New website

Post by bihai »

D.J.Peters wrote:"FreeBASIC is a free/open source (GPL), BASIC compiler for Microsoft Windows, DOS and Linux."
I would change it in:
FreeBASIC is a free/open source (GPL), BASIC 32/64-bit compiler for x86/x86_64 DOS, Windows, Linux and many ARM devices.

Joshy
How about this one:
Let FreeBASIC = "Free BASIC compiler and tools for DOS, Windows, Linux and Web. Portable for x86/x64 and ARM devices."
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: New website

Post by MrSwiss »

bihai wrote:Let FreeBASIC = "Free BASIC compiler ...
Never in a Livetime, the Name is: "FreeBASIC", not free BASIC ever.
Don't try to re-Name the well known FB-Compiler, or give it any unwanted new Meaning ...
bihai
Posts: 36
Joined: Mar 25, 2015 7:56

Re: New website

Post by bihai »

MrSwiss wrote:Never in a Livetime, the Name is: "FreeBASIC", not free BASIC ever.
Don't try to re-Name the well known FB-Compiler, or give it any unwanted new Meaning ...
I am not wishing change the fbc's name,
Let FreeBASIC = "Free BASIC compiler and tools for DOS, Windows, Linux and Web. Portable for x86/x64 and ARM devices."
This is a real line of code and can be compiled by fbc.
If you don't like it, just ignore.
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: New website

Post by caseih »

Possibly to avoid ambiguity of the name, the phrase could be, "A free BASIC compiler for..." Or maybe better yet "A free and open source BASIC compiler..." Perhaps that would help MrSwiss feel better about your idea. I kind of like the idea of using valid code as a tag line, though the LET statement is really not used in the FB dialect. How about:

Code: Select all

Dim as String FreeBASIC = "A free and open source BASIC compiler for..."
bihai
Posts: 36
Joined: Mar 25, 2015 7:56

Re: New website

Post by bihai »

caseih wrote:How about:

Code: Select all

Dim as String FreeBASIC = "A free and open source BASIC compiler for..."

Code: Select all

Dim Shared FreeBASIC As String="..."
or
#Define FreeBASIC As String="..."
maybe better.
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: New website

Post by badidea »

Note for web-master(s): The link to FBedit on https://freebasic.net/gallery.html seems broken.

edit:
And on wiki e.g.: https://freebasic.net/wiki/wikka.php?wa ... Installing
And on forum: viewtopic.php?t=13932

Link to https://svn.freebasic-portal.de/svn/fbedit/Package/ ?
nimdays
Posts: 236
Joined: May 29, 2014 22:01
Location: West Java, Indonesia

Re: New website

Post by nimdays »

Just a suggestion

FreeBASIC is a free/open source (GPL), Multi Platform BASIC compiler.
coderJeff
Site Admin
Posts: 4313
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: New website

Post by coderJeff »

Who is maintaining FBEDIT? Is there an official package?

1) wiki is easy to change, many members here could to that.
2) I prefer not to, unless there is very good reason, but I could edit the forum post, with a note from me, if it is no longer maintained by author. And I can change the OP if there is someone else to take it over.
3) As for the website, some other admin will have to do that. Not every admin/developer holds every key... And personally, I think that's a good practice.
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: New website

Post by St_W »

coderJeff wrote:Who is maintaining FBEDIT? Is there an official package?
FBedit is unmaintained since years and the official homepage is not available anymore. The fbedit SVN repo on freebasic-portal.de, which badidea referred to, is actually a fork of the original fbedit after a few years of inactivity, but that fork is inactive nowadays too.
An official binary release of the latest version of original FBedit is only available on third-party sites like https://www.freebasic-portal.de/downloa ... de-30.html
The official SourceForge page contains only the sources and outdated binaries (so you'd have to compile from source using FreeBasic and MASM32 compilers).
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: New website

Post by fxm »

For the Search Query menu:

Admins,

Could you reduce the minimum size of words taken into account for the search function from 4 to 3 (as is done on other forums) ?
I think that a sequence of 3 concordant characters (acronym for example) is already quite discriminating as a search criterion.
This would often avoid going to Google for example, to search inside the FreeBASIC forum.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: New website

Post by TJF »

fxm wrote:For the Search Query menu:

Admins,

Could you reduce the minimum size of words taken into account for the search function from 4 to 3 (as is done on other forums) ?
I think that a sequence of 3 concordant characters (acronym for example) is already quite discriminating as a search criterion.
This would often avoid going to Google for example, to search inside the FreeBASIC forum.
I second that. I mislike that I often have to use external search engines for 3 letter word searches.
bcohio2001
Posts: 556
Joined: Mar 10, 2007 15:44
Location: Ohio, USA
Contact:

Re: New website

Post by bcohio2001 »

And allow for searches with the underscore character. Such as "__FB_64BIT__" or "WM_PAINT"
Post Reply