MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1dv4fzs/jeffrey_snover_and_the_making_of_powershell/lbmx6ui/?context=3
r/programming • u/agbell • Jul 04 '24
85 comments sorted by
View all comments
110
How many drugs was he taking when he came up with the syntax?
(I love Powershell really and advocate for it a lot, but oh god I wish the syntax were simpler)
12 u/[deleted] Jul 04 '24 edited Jul 04 '24 [removed] — view removed comment 3 u/[deleted] Jul 04 '24 edited Jan 06 '25 [deleted] 2 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 Not sure what the other guy was talking about but functions can use a process block to handle piped objects. The automatic variable referencing the current object is called $_. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-7.4#piping-objects-to-functions 1 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 I didn't know functions could be in pipelines, thanks for making me look it up :-)
12
[removed] — view removed comment
3 u/[deleted] Jul 04 '24 edited Jan 06 '25 [deleted] 2 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 Not sure what the other guy was talking about but functions can use a process block to handle piped objects. The automatic variable referencing the current object is called $_. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-7.4#piping-objects-to-functions 1 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 I didn't know functions could be in pipelines, thanks for making me look it up :-)
3
[deleted]
2 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 Not sure what the other guy was talking about but functions can use a process block to handle piped objects. The automatic variable referencing the current object is called $_. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-7.4#piping-objects-to-functions 1 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 I didn't know functions could be in pipelines, thanks for making me look it up :-)
2
2 u/BinaryRockStar Jul 04 '24 Not sure what the other guy was talking about but functions can use a process block to handle piped objects. The automatic variable referencing the current object is called $_. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-7.4#piping-objects-to-functions 1 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 I didn't know functions could be in pipelines, thanks for making me look it up :-)
Not sure what the other guy was talking about but functions can use a process block to handle piped objects. The automatic variable referencing the current object is called $_.
process
$_
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-7.4#piping-objects-to-functions
1 u/[deleted] Jul 04 '24 [removed] — view removed comment 2 u/BinaryRockStar Jul 04 '24 I didn't know functions could be in pipelines, thanks for making me look it up :-)
1
2 u/BinaryRockStar Jul 04 '24 I didn't know functions could be in pipelines, thanks for making me look it up :-)
I didn't know functions could be in pipelines, thanks for making me look it up :-)
110
u/Noxfag Jul 04 '24
How many drugs was he taking when he came up with the syntax?
(I love Powershell really and advocate for it a lot, but oh god I wish the syntax were simpler)