-not, $null, Exchangerate, Hashtables, Datatables, Classes, Functions
Events
- PS Usergroup Austria Q1/2024 – March 26th 2024
- PowerShell & DevOps Summit US – April 8-11 2024 Bellevue, WA – Anmeldung
- Expertslive.at Konferenz, June 26th 2024, – www.expertslive.at
Snippets
This weeks i checked the top topics on the subreddit r/PowerShell and found some interestig issues which where discussed there.
The „-not“ conditional argument
There was a question about the difference between „-not $MyVariable“ vs „($null -eq $MyVariable)“. There is a differnece, please read it here.
PS Module for Currency Conversion
Get your API Key from „Exchangerate“ and leveragr the PS-Module, which is wrapped around the Exchangerate-API to convert some currencies. Mark Wragg did the work for you, so go for it on his Github repo.
Hashtables or Datatables – whats the better choice?
When dealing with data in in programming, its always a question how to store retrieved data. Read this article on reddit on whats better – hashtables or data tables ?
Classes and Functions
Writing Classes in Powershell is a rare art, people continue to try again to deal with it. Read this conversation if classes and functions are similar and if people have found ways to use classes in a proper and useful way.
Have fun with reddit ! / R.
Foto von Brett Jordan auf Unsplash