[Gambas-user] Better use of prefixes

gen braga genbraga1 at gmail.com
Sat Mar 16 21:00:42 CET 2019


Cedron,

I didnt mean a group handler... I mean all buttons grouped sequentialy in
the IDE code editor's method selector combo box:

btnButtonThat_click()
btnButtonThis_click()
btnButtonWhatever_click()

Any reasonably intelligent person would need a minimun knowledge of Gambas
or VB to understand group handlers anyway. Past the needed knowledge to
understand prefixes.

Cheers,

Gen.

Em sáb, 16 de mar de 2019 16:53, Cedron Dawg <cedron at exede.net> escreveu:

> I would argue Sub Buttons_Click() would be simpler and better for a group
> handler.
>
> The acid test is how comprehensible is it to a reasonably intelligent
> person who has no prior knowledge.  Having to know a bunch of cryptic
> prefix abbreviations is not simple by any means.
>
> The only firm right or wrong is whether the compiler gets it right.
>
> It can be costly though if a maintainer gets it wrong.
>
>
>
> ----- Original Message -----
> From: "gen braga" <genbraga1 at gmail.com>
> To: "user" <user at lists.gambas-basic.org>
> Sent: Saturday, March 16, 2019 3:42:40 PM
> Subject: Re: [Gambas-user] Better use of prefixes
>
> If you allow me, in this case I do.
>
> And all buttons get grouped in the IDE method selector.
>
> You presented several good ideas indeed but I advocate the "KISS" method,
> with less options.
>
> But, afterall, its a matter of personal preference, since based on simple
> guidelines.
>
> Cheers,
>
> Gen.
>
> Em sáb, 16 de mar de 2019 16:26, Cedron Dawg < [ mailto:cedron at exede.net
> | cedron at exede.net ] > escreveu:
>
>
>
>
> Do you think "Sub btnNumber_Click()" is really better?
>
>
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190316/fcf901a8/attachment.html>


More information about the User mailing list