Martin Gill

Results 54 comments of Martin Gill

While I generally prefer AllMan for "proper" programming (C#, C++ et. al.) I use K&R (One True Brace Style variant) for PS because I found it's a neater compromise for...

I agree with @rkeithhill . The first rule of good style is to follow the existing style in the file/project. For new files you follow the company/team/project guidelines if you...

@Jaykul I strongly disagree with your assertion that: > The style guide rules focus on readability, to which StrictMode is tangential at best, detrimental at worst. While that is a...

That's a valid point and I'd not considered the timing implications. I'm showing my background from compiled languages. I think the timing argument is probably your strongest point, from my...

Wouldn't best practice nowadays be to use a class instead? Seems a lot clearer and simpler to me. ```powershell class ContextIdentifier { $SomePropertyKey $foo } function Get-MyAwesomeCustomType { [CmdletBinding()] [OutputType([ContextIdentifier])]...

I felt the main point of the post was type safety for custom objects in a module. The generic PSCustomObject gives you no real safety, hence the workaround with `$returnObj.PsObject.TypeNames.Insert(0,...

Added some thoughts @ https://github.com/Microsoft/vscode/issues/15466#issuecomment-260871236

This, I presume would need a 2nd dropbox App for this purpose, since the authorisation screen in dropbox also says what permissions are requested and that is App based I...

@Qwiso you can look at/borrow my patching code, it already behaves that way.

I can make that an option on the installer. The backup shouldn't be an issue, unless we both choose the same filename. Unless your mod does something with the backup?...