Adding naming conversion to the specification document.
See original GitHub issueWhen checking the variables in the language specification. I see these are written as snake case (foo_bar
). But I see a few variables are written as a camel case (fooBar
). Today I saw one repository whose WDL files with the variables, and task names are entirely written in camel case. I was shocked. Because I was thinking about reusing some of the parts.
I think it’s better to show the recommended naming conversion snake or camel case in the workflow name, task name, variable names and etc as well as other language specifications. What do you think?
E.g. https://github.com/openwdl/wdl/blob/main/versions/1.1/SPEC.md#struct-usage
workflow workflow_a {
input {
Experiment myExperiment
}
File firstFile = myExperiment.experimentFiles[0]
String experimentName = myExperiment.experimentData["name"]
}
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
File Naming Conventions & Version Control
Include a 'version control table' with each important document, noting changes and their dates alongside the appropriate version number of the document. If ......
Read more >File Naming Conventions: How to Optimize Document ...
Learn some best practices for file naming and understand how making simple decisions early on in your planning can save a whole bunch...
Read more >File Naming Conventions | Data Management
A file naming convention is a framework for naming your files in a way that describes what they contain and how they relate...
Read more >Guide on data entity naming conventions - GovInfo
This document is intended to provide guidance on theestablish- ment of a set of naming conventions for use within a government.
Read more >Tip 1-8 Naming Convention Rules
Naming conventions are guidelines for naming electronic documents, files, ... Remove words that add length, but do not contribute towards the meaning.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for pointing this out. I will correct these examples in version 1.1.1.
@DavyCats thanks for the references.
As a reference, here are the Python PEP8’s naming conversions.
I am ok with the Workflow Task name as a Camel case. It is like Python’s class name.
In the WDL, I see that the attributes are the camel case. https://github.com/openwdl/wdl/blob/version-1.1.1/versions/1.1/SPEC.md#mandatory-runtime-attributes
maxRetries
returnCodes