Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The downward spiral of unnecessary complication

The downward spiral of unnecessary complication

Scheduled Pinned Locked Moved The Lounge
toolsvisual-studiowindows-adminlinuxalgorithms
28 Posts 24 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #1

    Quote:

    Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

    My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

    cheers Chris Maunder

    J T R V H 21 Replies Last reply
    0
    • C Chris Maunder

      Quote:

      Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

      My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

      cheers Chris Maunder

      J Offline
      J Offline
      jeffie100
      wrote on last edited by
      #2

      PowerShell just baffles me. For me I don't really spend a lot of time writing scripts. At the beginning and end of projects mainly for generating or loading images (bamboo server stuff). cmd.exe has simple syntax and I can search for examples and get a script up and running quickly, bash is another straight forward tool. But PowerShell, if you haven't used it in a while it takes days to get even the most simple thing to work. When I'm told to run a PowerShell script they never work the first time (typical MS). I worked briefly at MS years ago (was fired, I can laugh about it now, the area I worked in failed miserably and was disbanded) but it is filled with people that think they are at the top of the food chain, look at the 10 billion dollar mess Windows CE was. It was like being in a cult, I said early that Windows CE would never work (I worked on bare metal systems enough to know) and they looked at me like I was stupid and said their mom wears army boots. I have to say the new CEO is doing a great job all things considered. PowerShell is just one example of a group that got paid good money to write software that didn't have a hard "earn money" metric. In the end they are the smart ones, get paid to write software that no one cares about when looking at the revenue numbers. Its like the CA life guards that get $120k and full pensions. So when looking at that sometimes I do feel stupid but I like having challenging projects to work on.

      1 Reply Last reply
      0
      • C Chris Maunder

        Quote:

        Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

        My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

        cheers Chris Maunder

        T Offline
        T Offline
        theoldfool
        wrote on last edited by
        #3

        Stolen from the Linux work around for path stuff, although many of the commands work without it. Reminds me of a project I worked on that was almost impossible to install and configure. The reason: "They told us the users were sophisticated, so we made it complicated to use". :sigh: Yesterday, I said something in the house and my wife wasn't there. Was I still wrong?

        >64 If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.

        S 1 Reply Last reply
        0
        • C Chris Maunder

          Quote:

          Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

          My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

          cheers Chris Maunder

          R Offline
          R Offline
          RickZeeland
          wrote on last edited by
          #4

          PowerShell on Linux? No, Thank You [comic][^] :-\

          S 1 Reply Last reply
          0
          • C Chris Maunder

            Quote:

            Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

            My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

            cheers Chris Maunder

            V Offline
            V Offline
            vinclaro001
            wrote on last edited by
            #5

            Totally agree with this. Tried Powershell, hated it. I'm old enough to remember when the whole point of an IDE was to assist in moving away from arcane command line tools so that the developer could focus on the application being developed. My personal theory is that universities teach using *nix command line tools, so graduates only know those tools. But many of those tools date back to the 1980s (or earlier) and back in the 90s we would have thought that they were hopelessly outdated. We'd moved past that, or so I thought. It's like the younger developers don't even realise how much easier everything could be...

            1 Reply Last reply
            0
            • C Chris Maunder

              Quote:

              Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

              My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

              cheers Chris Maunder

              H Offline
              H Offline
              Henry Skoglund
              wrote on last edited by
              #6

              I once gave PowerShell a shot, I had a curl command line that was a bit tricky from good ol' cmd. curl is preinstalled on Windows 10 so it works fine from cmd. But using it from PowerShell? No dice, if you type curl in there you end up with a built-in "better"/"improved" version of curl, which does not have the same syntax as the real curl. Solution: to invoke the real curl in PowerShell, you have to type C:\Windows\System32\curl.exe and Bob's not your uncle.

              1 Reply Last reply
              0
              • C Chris Maunder

                Quote:

                Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                cheers Chris Maunder

                E Offline
                E Offline
                englebart
                wrote on last edited by
                #7

                I was always told that requiring .\mycommand was security related.(from Unix) “Never include . in your path or people will bury common exe names in directories. It is very easy to drop a custom ls executable in a directory that behaves exactly as ls, but will do other stuff when it detects you are root. “

                1 Reply Last reply
                0
                • C Chris Maunder

                  Quote:

                  Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                  My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                  cheers Chris Maunder

                  S Offline
                  S Offline
                  Super Lloyd
                  wrote on last edited by
                  #8

                  Man, PowerShell is the forbidden tool that is not for mere mortals to use! That's where you got it all wrong! :O

                  A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                  1 Reply Last reply
                  0
                  • R RickZeeland

                    PowerShell on Linux? No, Thank You [comic][^] :-\

                    S Offline
                    S Offline
                    Super Lloyd
                    wrote on last edited by
                    #9

                    True story! :-\

                    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      Quote:

                      Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                      My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                      cheers Chris Maunder

                      T Offline
                      T Offline
                      The Real Paps
                      wrote on last edited by
                      #10

                      Why doing simple when you can make it complicated? Over time we've rather slowly moved from CLI (MS-Dos, Unix) to IDE. And now we're rushing back to CLI again. Everything is CLI now. Why? IMO, esp. the open-source community, with so many people adding their own little brick, exotic requirement, ego-trip, or whatever, is probably to blame. The whole thing ends up being one big bloated confusion of options and possibilities. Like an exaggerated Swiss army knife which next to the knife and screwdriver also has a chainsaw, axe, and whatnot. There's a German expression

                      eierlegende wollmilchsau

                      (look it up :)) which perfectly explains this. It's a kind of Jack of All Trades, but worse :) I'm so tired having to learn new commands all the time. I'm about to give up.

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        Quote:

                        Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                        My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                        cheers Chris Maunder

                        L Offline
                        L Offline
                        lmoelleb
                        wrote on last edited by
                        #11

                        Adding .\ is indeed not user-friendly. Instead it is secure. And as almost all security it gets in the way but is necessary. At least tab-expansion helps by prefixing the .\ automatically. The way PowerShell handles pipes is far superior to bash (bash pipes characters around, Powershell pipes objects). But the syntax is horrible (though to be fair... so is the syntax of bash). And when do people designing languages learn that fail on error should be default, parameters should only be optional if explicitly told so, you should not have "sometime methods must be called with parenthesis around the arguments, other times this will create an array and pass the array to the first argument... good luck" crap. So overall: Yes, I understand why PowerShell has the word "Power" in the shell. There might be other shells with equal power, I just don't know any. But the syntax... oh my that is CRAP. If you use it regularly you can learn I guess, but I tend to have to dig it out 3-5 times a year and always struggle.

                        J 1 Reply Last reply
                        0
                        • C Chris Maunder

                          Quote:

                          Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                          My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                          cheers Chris Maunder

                          D Offline
                          D Offline
                          den2k88
                          wrote on last edited by
                          #12

                          How is that different from Linux not loading executables outside of $PATH variable?

                          GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

                          1 Reply Last reply
                          0
                          • C Chris Maunder

                            Quote:

                            Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                            My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                            cheers Chris Maunder

                            M Offline
                            M Offline
                            Mike Winiberg
                            wrote on last edited by
                            #13

                            The 'thing' about Powershell, for me, despite it's wierd syntax and complexity, is that it has access to all sorts of 'under the hood' windows stuff that is hard to manipulate any other way. Having said that, it's almost impossible to 'learn' as there is just SO much stuff buried in there. But I do have a little sympathy for the way this has grown into the beast it now is... There's no such excuse for the increasing complexity in just about everything else - especially programming languages. No doubt the script kiddies fluent in today's (as opposed to yesterday's or tomorrow's) version of C++ will say it's my failing - and they could be right - but when it became harder to work out how to use C++ effectively than it did to solve the (business) problems I was working on, I stopped using C++, despite having written some large applications with it. Nowadays more new 'best ever, replaces all that has gone before' frameworks come out every day, sometimes being significantly revised and updated before you've had time to even build a test prog, which is just madness. Ironically, my main work now is developing on a 19 year old app that has been in continuous use using MSAccess front end, SQL Server backend. I've added Python/Bootstrap/HTML5 frontending a web app linked to the data, same again to provide on-line card payments for emailed invoices, plus more VBA to hook the main app into Xero accounts. With the exception of Xero, none of this is new, shiny, exciting or modern in any way. You know what? It works and has improved the competitiveness of the business for many years - surely that's what software dev should really be about?

                            1 Reply Last reply
                            0
                            • C Chris Maunder

                              Quote:

                              Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                              My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                              cheers Chris Maunder

                              R Offline
                              R Offline
                              RickZeeland
                              wrote on last edited by
                              #14

                              Some alternatives can be found here: scripting-languages-for-writing-shell-scripts[^] If you have Git installed, you can also use Git Bash btw. :-\

                              1 Reply Last reply
                              0
                              • C Chris Maunder

                                Quote:

                                Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                                My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                                cheers Chris Maunder

                                G Offline
                                G Offline
                                GuyThiebaut
                                wrote on last edited by
                                #15

                                I agree that the .\ is a pain and I regularly forget it. That said I have found some of PowerShell's features to be very useful in writing scripts. In particular being able to use and manipulate .NET classes like List, which means that I can write a script which is reasonably readable, compared to one written in Windows Batch Script commands with all the horrors that entails.

                                “That which can be asserted without evidence, can be dismissed without evidence.”

                                ― Christopher Hitchens

                                1 Reply Last reply
                                0
                                • C Chris Maunder

                                  Quote:

                                  Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                                  My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                                  cheers Chris Maunder

                                  M Offline
                                  M Offline
                                  megaadam
                                  wrote on last edited by
                                  #16

                                  Chris Maunder wrote:

                                  Man. What happened to this industry?

                                  Microsoft.

                                  "If we don't change direction, we'll end up where we're going"

                                  1 Reply Last reply
                                  0
                                  • L lmoelleb

                                    Adding .\ is indeed not user-friendly. Instead it is secure. And as almost all security it gets in the way but is necessary. At least tab-expansion helps by prefixing the .\ automatically. The way PowerShell handles pipes is far superior to bash (bash pipes characters around, Powershell pipes objects). But the syntax is horrible (though to be fair... so is the syntax of bash). And when do people designing languages learn that fail on error should be default, parameters should only be optional if explicitly told so, you should not have "sometime methods must be called with parenthesis around the arguments, other times this will create an array and pass the array to the first argument... good luck" crap. So overall: Yes, I understand why PowerShell has the word "Power" in the shell. There might be other shells with equal power, I just don't know any. But the syntax... oh my that is CRAP. If you use it regularly you can learn I guess, but I tend to have to dig it out 3-5 times a year and always struggle.

                                    J Offline
                                    J Offline
                                    jsc42
                                    wrote on last edited by
                                    #17

                                    lmoelleb wrote:

                                    I understand why PowerShell has the word "Power" in the shell

                                    And now you understand why it also has the word 'hell' at the end of its name.

                                    L 1 Reply Last reply
                                    0
                                    • T theoldfool

                                      Stolen from the Linux work around for path stuff, although many of the commands work without it. Reminds me of a project I worked on that was almost impossible to install and configure. The reason: "They told us the users were sophisticated, so we made it complicated to use". :sigh: Yesterday, I said something in the house and my wife wasn't there. Was I still wrong?

                                      >64 If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.

                                      S Offline
                                      S Offline
                                      Slow Eddie
                                      wrote on last edited by
                                      #18

                                      Possibly...

                                      ed

                                      1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        Quote:

                                        Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                                        My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                                        cheers Chris Maunder

                                        M Offline
                                        M Offline
                                        MadGerbil
                                        wrote on last edited by
                                        #19

                                        See: Webpack

                                        1 Reply Last reply
                                        0
                                        • C Chris Maunder

                                          Quote:

                                          Suggestion [3,General]: The command go was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default.

                                          My understanding was that PowerShell was to be the bestest thing ever, way more better than bash or cmd, or Windows Terminal or any of the billion shells out there. They even introduced a most inscrutable syntax to make it feel even more awesome. And yet, on my Plain Jane Windows installation, running as an Admin, with a PowerShell instance launched as Admin, I can't actually just run a program. I can, I just need to say pretty please by doing .\command Why do they do this? Why are there constant barriers to productivity thrown in front of developers every day? I feel like I'm pair programming with Google when I code these days. And I've been coding a looong time. Programming used to be basic (no pun intended), then we got IDEs and integrated debuggers, and it started becoming fun, and crazy productive. We had intellisense, and auto-complete, and real-time linting and then...then they couldn't stop. The complexity introduced by those who know their own tools deeply, and who in turn forget that we do not care about their tools, is staggering. Their tools are a necessary evil. Their tools should be totally and completely hidden from view, even hidden from knowledge for new developers, and help, not hinder. Man. What happened to this industry?

                                          cheers Chris Maunder

                                          S Offline
                                          S Offline
                                          stratoFlyer
                                          wrote on last edited by
                                          #20

                                          I've done quite a bit of Powershell and curse it everytime... Powershell is basically a scripting language for .Net with allusions of being a shell. It's language design is just horrid though. You can see the influence of Bash (which is not a bad thing)... but it's completely out of its element. It's syntax is inconsistent between Powershell native objects/functions and .Net objects. I really wish Powershell had been some form of EMCAScript (ala... Javascript). That would have fit much better with .Net and sysadmin scripting as well as being much more accessible and consistent because you'd be leveraging what a lot of people already know.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups