Title: Capitalization of function parameter type · Issue #154 · PoshCode/PowerShellPracticeAndStyle · GitHub
Open Graph Title: Capitalization of function parameter type · Issue #154 · PoshCode/PowerShellPracticeAndStyle
X Title: Capitalization of function parameter type · Issue #154 · PoshCode/PowerShellPracticeAndStyle
Description: I'm currently working on a internal style guide for new colleagues and got stuck while comparing the capitalization content. So I read the article and discussions here. And there is one aspect I couldn't find or just have missed. Whats a...
Open Graph Description: I'm currently working on a internal style guide for new colleagues and got stuck while comparing the capitalization content. So I read the article and discussions here. And there is one aspect I co...
X Description: I'm currently working on a internal style guide for new colleagues and got stuck while comparing the capitalization content. So I read the article and discussions here. And there is one aspect ...
Opengraph URL: https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/154
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Capitalization of function parameter type","articleBody":"I'm currently working on a internal style guide for new colleagues and got stuck while comparing the capitalization content.\r\nSo I read the article and discussions here. And there is one aspect I couldn't find or just have missed.\r\n\r\nWhats about the function parameter types like:\r\n- `String/string`\r\n- `Integer/integer`\r\n- `Switch/switch`\r\n- `PSCustomObject/pscustomobject`? \r\n\r\nShould these be written in `PascalCase` oder is there difference between basic types and objects/classes? - In the code snippets of the [Code-Layout-and-Formatting](https://github.com/PoshCode/PowerShellPracticeAndStyle/blob/master/Style-Guide/Code-Layout-and-Formatting.md#capitalization-conventions) article they are in lowercase. So If i get this right, they should be in `PascalCase` because they match to the rule for .Net Class types, since pwsh types are basically .net Objects?\r\n\r\n:bulb: Example:\r\n\r\n```powershell\r\nfunction Invoke-FooBar {\r\n [CmdletBinding()]\r\n #[OutputType([String])]\r\n\r\n param (\r\n [Parameter(Mandatory = $true)]\r\n [String]$MyParam\r\n )\r\n\r\n begin {\r\n }\r\n\r\n process {\r\n }\r\n\r\n end {\r\n }\r\n}\r\n```\r\n","author":{"url":"https://github.com/OCram85","@type":"Person","name":"OCram85"},"datePublished":"2021-10-19T08:46:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/154/PowerShellPracticeAndStyle/issues/154"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:309174b2-2f68-032e-b0e3-7f0611cb7871 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86B0:243F3F:149BD92:1C7F27A:69777806 |
| html-safe-nonce | c2f41c58aa8208d9e0983f8d88813f1e2e02df28be70b252f87c7ec7eb0129aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkIwOjI0M0YzRjoxNDlCRDkyOjFDN0YyN0E6Njk3Nzc4MDYiLCJ2aXNpdG9yX2lkIjoiMjE5MjQwODMxMTkwMDg5NTIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dddabc51ddd8d58cbc0f80dec6e9b71d53da562fc18b87b7fc6c152a88ac363d |
| hovercard-subject-tag | issue:1030028647 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PoshCode/PowerShellPracticeAndStyle/154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d34cb930ebbeea429b32a87c860a16b43f782fdfbe58f94bba12993c8fed4763/PoshCode/PowerShellPracticeAndStyle/issues/154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d34cb930ebbeea429b32a87c860a16b43f782fdfbe58f94bba12993c8fed4763/PoshCode/PowerShellPracticeAndStyle/issues/154 |
| og:image:alt | I'm currently working on a internal style guide for new colleagues and got stuck while comparing the capitalization content. So I read the article and discussions here. And there is one aspect I co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OCram85 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9fea6af76c6e24ca5c5728a18d4220d768790d04abe1ba6aafa18526daff96e7 |
| turbo-cache-control | no-preview |
| go-import | github.com/PoshCode/PowerShellPracticeAndStyle git https://github.com/PoshCode/PowerShellPracticeAndStyle.git |
| octolytics-dimension-user_id | 5641451 |
| octolytics-dimension-user_login | PoshCode |
| octolytics-dimension-repository_id | 17317123 |
| octolytics-dimension-repository_nwo | PoshCode/PowerShellPracticeAndStyle |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17317123 |
| octolytics-dimension-repository_network_root_nwo | PoshCode/PowerShellPracticeAndStyle |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0bc7a371bc0035e2253b0269926586e60cf8a4ac |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width