question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding naming conversion to the specification document.

See original GitHub issue

When 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:open
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jdidioncommented, Oct 24, 2022

Thanks for pointing this out. I will correct these examples in version 1.1.1.

0reactions
junarugacommented, Oct 25, 2022

@DavyCats thanks for the references.

https://biowdl.github.io/styleGuidelines.html - 5. Naming conventions

  • Tasks: UpperCamelCase
  • Workflows: UpperCamelCase
  • Structs: UpperCamelCase
  • Calls: lowerCamelCase
  • Variables: lowerCamelCase
  • Inputs: see the notes below
  • Imports: lowerCamelCase

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
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found