New website

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

Re: New website

Postby sancho2 » Mar 06, 2016 23:01

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: 1619
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: New website

Postby badidea » Mar 06, 2016 23:07

My code suggestion :-)

Code: Select all

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

Re: New website

Postby fxm » Mar 07, 2016 13:05

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: 33
Joined: Mar 25, 2015 7:56

Re: New website

Postby bihai » Mar 08, 2016 0:35

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: 3307
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: New website

Postby MrSwiss » Mar 08, 2016 11:08

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: 33
Joined: Mar 25, 2015 7:56

Re: New website

Postby bihai » Mar 10, 2016 10:55

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: 1396
Joined: Feb 26, 2007 5:32

Re: New website

Postby caseih » Mar 10, 2016 15:16

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: 33
Joined: Mar 25, 2015 7:56

Re: New website

Postby bihai » Mar 10, 2016 21:03

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: 1619
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: New website

Postby badidea » May 28, 2018 20:37

nimdays
Posts: 219
Joined: May 29, 2014 22:01
Location: ID

Re: New website

Postby nimdays » May 28, 2018 21:30

Just a suggestion

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

Re: New website

Postby coderJeff » May 29, 2018 23:50

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: 1479
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: New website

Postby St_W » May 30, 2018 18:44

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
Posts: 9310
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: New website

Postby fxm » Oct 07, 2018 8:14

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: 3486
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: New website

Postby TJF » Oct 08, 2018 5:35

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: 548
Joined: Mar 10, 2007 15:44
Location: Ohio, USA
Contact:

Re: New website

Postby bcohio2001 » Oct 10, 2018 5:38

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

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest