Jump to content

Recommended Posts

Posted

Simply:
Do you mean that there should be only 2 underscore in a function name ?

_WD_Capabilities_APIDisplay() >>> _WD_CapabilitiesAPIDisplay()
 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I can take your approach to such nomenclature, but I would ask for some explanation of this approach.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Please also take a look for this function names:
_Date_Time_*()
_Net_Share_*()

After reflection I would better prospose:
_WDCapabilites_*()

instead:
_WD_Capabilites_*()
and instead:
_WD_Capabilites*()

This will fit:
_GUICtrl******_******()

or even:
_GUI******_******()

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 9/19/2021 at 6:50 PM, Danp2 said:

Your approach is fine. I just don't see the need for the additional underscore.

Expand  

I just work so much with different code that it starts to be useful to me.

Or maybe I'm getting older, and my eyes need better separation in function and variable names. ;)

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 9/19/2021 at 6:53 PM, mLipok said:

After reflection I would better prospose:
_WDCapabilites_*()

instead:
_WD_Capabilites_*()
and instead:
_WD_Capabilites*()

Expand  

And what about this ?
I think it will be distinguishable for everyone and will meet your requirements.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

So, if no one else objects, I'll stick to the naming convention as follows:

  On 9/19/2021 at 7:47 PM, mLipok said:

_WDCapabilites_*()

Expand  

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Just my 2 cents worth.

Somewhere in this thread you say that your WD Capabilities UDF should become part of the WebDriver UDF.
In this case, I would strongly recommend using the WebDriver UDF naming convention. The main benefit would be not to confuse users.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

So finally I clean up it a little, changed function names, add function headers, and here they are:
 

;~ Core functions:
_WD_CapabilitiesStartup()
_WD_CapabilitiesAdd()
_WD_CapabilitiesGet()

;~ Internal functions:
__WD_CapabilitiesInitialize()
__WD_CapabilitiesSwitch()
__WD_CapabilitiesNotation()

;~ Helper functions:
_WD_CapabilitiesDump()
_WD_CapabilitiesDisplay()


Check the  attached versionFetching info... .

Does it work for you?
Do you have any questions at this stage?
In your opinion, does this version deserve an official release?       (of course, after separating the examples).

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 2 months later...
Posted (edited)

wd_capabilities.au3 UDF was just changed/modified/refactored .... and commited/merged to https://github.com/Danp2/WebDriver

WARNING: Before you start using this UDF be sure you download the recent version from: https://github.com/Danp2/WebDriver

For support please take a look:


To the MOD team:
This topic/thread should be closed for new post. Please *click.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Jos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...