POLL: Which do you prefer:

Started by MrBcx, August 05, 2022, 11:18:09 AM

Previous topic - Next topic

Quin

This is a very old topic, but I find it fascinating nonetheless, so I'm throwing my hat in the ring. I prefer to capitalize my keywords as well, but I have roots in AutoIt/AutoHotkey/VB.NET/PureBasic/SpiderBasic, all of which use Capatalized keywords, so it's just habbit.

dragon57

Having voted capitalize, I will say in the end, it doesn't really matter. I have so many languages in my head, IDE's, editors. I seem to be able to switch in a couple of minutes when I create/mod some code.

Giving the users an easy way to change the code is BONUS (see what I did there?).

MrBcx

#13
The source code for BCX ( Bc.bas ) has always been and will continue to be provided in UPPERCASE.

I will, in all probability, continue to use UPPERCASE in everything I code because I'm an old dog and
I don't adjust easily to new tricks.   That said, there are plenty of tools available for anyone to do a
case adjustment on any BCX source code that they may have an interest in tinkering with. 
When a file is loaded, changing case takes 3 easy mouse clicks using BED.

Thanks for sharing your thoughts on this poll -- it was very helpful!


Robert

#12
Quote from: Jeff on August 06, 2022, 08:47:55 AM
After all this time, I expect to see UPPERCASE when looking at BCX code.  But counting all the votes for Capitalize, I'm preparing myself for a quick adjustment. :)

Out of curiosity, what will something like FORMLOAD look like Capitalized? Formload or FormLoad?  And what about the BCX_ prefixed keywords like BCX_FORM?  BCX_Form, Bcx_Form, or Bcx_form?

I'm with Jeff and MrBCX, UPPERCASE.

There is, as Jeff mentioned, CamelCase with BCX not Bcx which leads me to the "Keep yer auto away from my BCX_bEspOke foRmatTeD coDE." option. I hope that option, as well, will be offered and exist as the default. 

Edit : It's camelCase not "CamelCase". "CamelCase" is PascalCase. Don't forget snake_case and kebab-case.

MrBcx

#11
Also ... in the forthcoming version of BED, a right-click will bring up the Code Format Dlgbox.

No more futzing with the Main Menu and whatever changes made inside the Code Format Dlgbox
are automatically written to the registry -- again, no more futzing with the Main Menu to make
and save default settings.

MrBcx

Quote from: Jeff on August 06, 2022, 08:47:55 AM
After all this time, I expect to see UPPERCASE when looking at BCX code.  But counting all the votes for Capitalize, I'm preparing myself for a quick adjustment. :)

Out of curiosity, what will something like FORMLOAD look like Capitalized? Formload or FormLoad?  And what about the BCX_ prefixed keywords like BCX_FORM?  BCX_Form, Bcx_Form, or Bcx_form?

Hi Jeff,

The attached screenshot shows my current efforts improving the visuals of BED.  The example
will hopefully answer your questions.  The color theme is my reproduction of the Visual Studio Dark,
well, as best as I could create within limitations of Scintilla and my own deteriorating eyesight.  I haven't
done anything useful with the translate, compile, run process in BED, instead focusing on making the
code editor pleasant to work. 




Jeff

After all this time, I expect to see UPPERCASE when looking at BCX code.  But counting all the votes for Capitalize, I'm preparing myself for a quick adjustment. :)

Out of curiosity, what will something like FORMLOAD look like Capitalized? Formload or FormLoad?  And what about the BCX_ prefixed keywords like BCX_FORM?  BCX_Form, Bcx_Form, or Bcx_form?

MrBcx

Thanks guys!

It seems clear - my preference for UPPERCASE keywords makes me an odd duck.   8)

One tangible thing that resulted from this little poll is that I found ( and fixed ) several
translation errors in BCX and BED that were caused by keyword case. That was a fortunate
stroke of serendipity.  ;D


jcfuller



dgarner

No real opinion, but Capitalize seems to be popular so far.  I think that's what VB6 and VBA IDE did/does with them.


jbk


dragon57


MrBcx

#1
I'm a little curious ... How do you prefer your BASIC keywords?

Uppercase  .... for example:  PRINT
Lowercase  .... for example:  print
Capitalize .... for example:  Print