FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Constant variables placement with in a script. · Issue #142 · PoshCode/PowerShellPracticeAndStyle · GitHub

Constant variables placement with in a script. #142

Description

What is the general guidance on the use of Constance and where to place them within a script?
For example, I need to declare a URI of $api = "http://127.0.0.1:500/api/path". Is it better to place this variable next to the invoke-RestMethod or place it at the beginning of the script since it's a constant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL