[Gambas-user] collection of collection problem

Fabien Bodard gambas.fr at ...626...
Mon Mar 27 18:38:50 CEST 2017


Hi Lenz,

GambasForge was not an Community project but my own project at first.
That's why it is not conventionnal.

The goal was just to give a place for french people to share gambas
programs and code piece. This was also for me my first try on gambas
cgi.


Why hidding urls ? well in fact it's not really hidding it's making it
more human readable. In fact in a rewritted url you have all the
needed stuff to generate the true url.

http://gambasforge.org?section=forge&action=code&id=2


Main Sub Main()

Call the dispacher thatcall the Function CCode.VoirCode

'It's ShowCode for english speakers
Public Sub VoirCode()

  Dim tCode As Code
  Dim id As Integer

  'check the id value integrity
  If IsInteger(Request.Get!id) Then id = Request.Get!id
  If id < 1 Then Error.Raise("Invalid id.")

  'Getting the code datas in a specialzed structure
  tCode = MCode.VoirCode(Id)

  If Not tCode Then
    Main.Erreur("Ce code n'existe pas.")
    Main.RedirectPage("forge.html")
    Return
  Endif

'  Get the code commentary if any
  tCode.Commentaires = MCode.VoirCommentaires(tCode.Id)

  'Drawing the page
'  Call the common header
  CMain.Top()
'Add some scripts
  ThisPage.Scripts.Add("js/forge.js")
  ThisPage.StyleSheets.Add("css/code.css")
'  Adding the codepage
  VCode.VoirCode(tCode, MMain.MembreConnecte())

'add the bottom
 CMain.Bottom
'Render the full tree at once
  Main.Show

End


All the site is based on a virtual html Dom Tree. That during this
period that i've begin my idea of Html tree. And then Adrien have re
writted all the stuff in C and generated the gb.xml.html component.

The advantage of the tree is I can modify my header or adding some
script from every where. So for example the VoirCode function can
display Messages in the standart header. Then with the time some part
become objects like HtmlRecaptcha there are all stored in FormElements
sub directory.



2017-03-27 6:01 GMT+02:00 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
> in the more and more lack of documentation in spanish and differences
> respect others languajes (i'm not programer), triying to develop a web page
> in gabmas (to large scale) its dificult later to mantain..
>
> just taking a look to the gambas forge at the svn in sourceforge.. for
> people that "wants" to contribute its very tedious and in few days interes
> are loose quickly... that's my point in the ohter mail..
>
> i now get in understand that gambas force use many alias urls, and has 3
> kind of parameters
>
> once its for a main section, that determines the "kind" of software (main
> page, forums, wiki or forge)
>
> second its a section of that firts..
>
> the other i cannot understand still
>
> also, why hide the urls? and in the ide its hard to debug due the variable
> CGI_SCRIPT are not used in the IDE, due runs in embebed server, rather that
> the generated gforge.gambas.cgi program...
>
> or gambas its just for "great programers"?
>
> also there's so many hardcode typing urls
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-03-25 17:40 GMT-04:00 Jorge Carrión <shordi at ...626...>:
>
>> Fabian: +1  :)
>>
>> 2017-03-25 16:51 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>:
>>
>> > A long thought in bazaar...
>> >
>> >
>> > I think, the first job is to teach a new time to developpers how to
>> > develop. There is nothing great in the code i've sended, juste the
>> > evidence.
>> >
>> > I've start learnin coding in gwbasic and qbasic... well not the best
>> > to start. Now we have better languages like python, java, c# and
>> > i've the impression that taking one hour for making the lacking
>> > function,has become something insurmountable (in this case 10 minutes
>> > for me).
>> >
>> > In the past I had no choice, no internet, if I wanted something or if
>> > it did not exist, you had to buy it or create it (sometimes find it in
>> > a book). Honestly, today I have reproduced so much with Gambas that I
>> > think we can almost do everything. What is lacking in Gambas is
>> > documentation. Unfortunately, we do not have time to write it because
>> > we have grown up and have a lot of work now. All I can do is swing
>> > from time to time a spade on the mailing list to help the newcomers to
>> > understand the pattern of thought behind Gambas. Because I see that
>> > this is also the problem. Whether at the level of the language or at
>> > the level of the arrangement of forms, at the level of the event
>> > structure (gridview, drawingarea and many other widgets), the choices
>> > are quite innovative and destabilizing. Gambas is not there to replace
>> > or compete with other languages, it is as in kungfu there are several
>> > phylosophy and it is one among others.
>> > To summarize it is not the language in itself that must be understood,
>> > but the phylsophy of development. For the language, there is the wiki.
>> > For phylosophy ... we'll have to bend over.
>> >
>> > Benoit, had said that language was able to appreciate different types
>> > of procedural, object or event programming. But with time I realize
>> > that the object / event couple is dominant and that this is our
>> > signature somehow.
>> >
>> > Today it is a coherent mature language (despite the bugs), with
>> > coherent libraries.
>> >
>> > By experience, it is not necessary to copy a code from one language to
>> > another, but a concept. What it lacks for me would be a UML
>> > integrator, which would make it easier to manipulate the concepts of a
>> > project.
>> > 
>> > I think over time have spotted key points that make Gambas more
>> > difficult to digest for developers a bit too pampered.
>> >
>> > I will take the time to make a document for the helpers to appreciate
>> > our philosophy and allow them not to try to model the programming
>> > style of other languages in Gambas.
>> >
>> > ------------------------------------------------------------
>> > ------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > Gambas-user mailing list
>> > Gambas-user at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list