News for hackers. Stuff that matters.
Re:Microsoft Is Driving Users Away by datagrimx on Sunday February 25, 2024 @04:55PM (#39505226)
For full Disclosure, I once upon was a software engineer at Microsoft. I witnessed first hand the evil decisions around Windows. I left Microsoft in 2006 but I am still part of the Alumni Network.

IMO Microsoft can gain users back by:

* Not requiring a Microsoft Account * Ending all data/telemetry collection * Not forcing Edge on its users * Stop releasing improved UI updates every week * Make bash, zsh, ... native for Windows * Taking the AI out and making it an optional extension * Making the Microsoft Store optional

A *plus* would be to open source Windows.

I would be interested in hearing your pet peeves.

Re:Microsoft Is Driving Users Away by timetopay on Sunday February 25, 2024 @05:02PM (#39505312)
It's wild how annoying Windows UX can be when it's something that microsoft wants you to use, to help improve their services revenue.

TBH, I'm on board with some of the negatives you listed, but I feel like the entire enthusiast community has been screaming about edge, telemetry, and start menu search for years. Microsoft seems determined not to listen, it's astonishing.

Re:Microsoft Is Driving Users Away by hakfoo on Sunday February 25, 2024 @10:10PM (#39507258)
They may not consciously confirm it, but I suspect someone figured out "learned helplessness is good for business."

New users can be steered through every dark-pattern install process, and upsold into every service since they don't have existing preferences.

They can't directly revert power users to that state, but by keeping the UI in a state of constant flux, they might get some accidental traction from them.

Re:Microsoft Is Driving Users Away by timetopay on Sunday February 25, 2024 @10:46PM (#39507439)
The absolutely insane pattern of making people click "back" after seeing an email/password login screen to create an account without logging in...
Re:Microsoft Is Driving Users Away by shiroiushi on Monday February 26, 2024 @04:51AM (#39509348)
Why should they listen? Will doing these things improve their profitability? I don't think so. Having this annoying stuff (telemetry, forcing Edge, etc.) is good for Microsoft's profitability, and that's all that's important. If users don't like it, they can pound sand. It's not like they're going to switch to Linux; if they were really going to do that, they would have done it already in the last 20 years. Microsoft has gotten smart, and realized that all those people swearing "if they do this, I'm finally switching to Linux!" weren't really serious, because they've been saying exactly that for a couple of decades now, and still haven't, so almost nothing they do at this point will actually get them to leave Windows as long as it actually lets them do their work, however poorly and annoyingly.
Re:Microsoft Is Driving Users Away by timetopay on Wednesday February 28, 2024 @04:44AM (#39535888)
The problem with this logic is that users _are_ pounding sand: to macos and ipados, which has been steadily ticking up.
Re:Microsoft Is Driving Users Away by shiroiushi on Wednesday February 28, 2024 @08:25PM (#39545593)
Those defections don't matter. The only thing that matters is MS's profits and stock price, and those are doing great. They can stand to lose a few malcontents and increase profits by squeezing the rest of the users.
Re:Microsoft Is Driving Users Away by TheLoafOfBread on Sunday February 25, 2024 @05:03PM (#39505322)
> Make bash, zsh, ... native for Windows

Why? There is PowerShell, able to run on Linux and MacOS. And compared to Bash it is actually readable language.

Re:Microsoft Is Driving Users Away by datagrimx on Sunday February 25, 2024 @05:12PM (#39505422)
IMO PowerShell is horrible. It is it an object, or not an object. You don't know, unless you know. How about operators? They make ZERO sense (-eq). They went supreme extreme on namespaces. I could write a paper on how bad PowerShell is.

You can keep it. I'll stick with zsh or bash.

Re:Microsoft Is Driving Users Away by metaltyphoon on Sunday February 25, 2024 @06:36PM (#39506107)
Ehh debatable. Just two different philosophies. I do think objects > text.
Re:Microsoft Is Driving Users Away by delta_p_delta_x on Monday February 26, 2024 @03:25AM (#39508783)
> It is it an object, or not an object.

It is always an object. Strings, arrays, paths, the registry—everything can be manipulated as an object.

Re:Microsoft Is Driving Users Away by shiroiushi on Monday February 26, 2024 @04:53AM (#39509357)
Um, to be fair, "-eq" is also an operator in bash.
Re:Microsoft Is Driving Users Away by Intralexical on Monday February 26, 2024 @04:54AM (#39509367)
> How about operators? They make ZERO sense (-eq). […] I'll stick with zsh or bash.

Ah yes. Bash, and its highly intuitive `if /usr/bin/\[ 5 -eq "5" ']'; then :; fi` comparison operators.

Re:Microsoft Is Driving Users Away by HeavyStorm on Monday February 26, 2024 @10:02AM (#39512011)
Huh... Everything is a object. But that object might be a string. And you don't have to know, you can ask.

I get that when everything is text, it becomes simpler to reason about. But you also have to do a lot of maneuvering to get information out of it. PS tries to give you more power.

My main gripe with ps is command discoverability: I don't know who thought that the "verb-subject" would be a good idea, because if I type "get-" and tab to auto complete, how the hell will I find the command about networking I want?

The learning curve also sucks, but I don't think it's worse than bash. I do remember spending six months with a bash manual tab open in my desktop back when I was starting Linux development.

There are also other crazy advantages ps have over bash, like the native ability to understand cmdlets and their parameters, powerful scripting capabilities with decent support for loops, conditionals etc.

And I don't event know what to tell you about the operators... They were copied from POSIX, so complaing about then is complaing about bash & co.

Finally, PowerShell also let's you access all of the dotnet namespace. This allows you to do a lot of stuff, because you would literally be programing instead of scripting.

Re:Microsoft Is Driving Users Away by datagrimx on Tuesday February 27, 2024 @06:05PM (#39531435)
Shells on Linux/Unix everything can be accessed as a file. Everything. In PowerShell it is a object, or maybe a file, or maybe a handle, or a resource, or a string. A complete catastrophe is Az PowerShell. Why isn't everything a object?

The answer is the origins of how Windows handles everything. It diverged every time a new hire took over a subsystem. "Not invented by me" ran strong in those days.

Re:Microsoft Is Driving Users Away by butlike on Monday February 26, 2024 @10:58AM (#39512749)
PowerShell on *nix is a hellscape realm I wasn't previously aware of.
Re:Microsoft Is Driving Users Away by PH95VuimJjqBqy on Monday February 26, 2024 @01:15PM (#39514851)
don't even get me started on PS.

try this PS script out

  clear
  function Get-Strings1 {
    @('hello')
  }
  
  function Get-Strings2 {
    @('hello', 'world!')
  }
  
  (Get-Strings1).Length
  (Get-Strings2).Length

OUTPUT:

  5
  2
You see, PS will strip away the array for 1-element arrays. (Get-Strings1).Length is 5 because you're really calling Length on the string and not the array (the array doesn't exist at that point). As you can see with (Get-Strings2).Length, if there is more than 1 element it will not do this.

and you'll watch different features crash into each other in bizarre ways. For example, everything is an object but if that's the case how do you output log statements to the console since it's also a shell?

PS is hosted, the default PS host will print out whatever reaches the "top". Think of your PS code as the "first function" with it's own set of returns. The host will print out whatever your code "returns", but this is consistent all the way down the chain.

  clear
  function Get-Strings3 {
    (Do-Stuff)
    return 'hello'
  }
  
  function Do-Stuff {
    Write-Output 'haha'
  }
  
  (Get-Strings3).Length
OUTPUT:

  2
So your returns can be polluted by downstream function calls, including calls into packages that you don't easily have access to the source for. So you'll eventually start writing defensively.

(Do-Stuff) | Out-Null # throws away anything coming out of the function call

And consider what we've demonstrated here. That PS will happily remove arrays based upon runtime state and happily add them based upon runtime state.

If you're confused about why this still happens even though this version uses the return keyword, remember it's PS which means any silly, preconceived notions you have are out the window.

returns does two things.

1. Write-Output

2. Ends execution of the function

If you remove the return keyword it will have the exact behavior it did previously because it's the last statement in the function. And yes, that's how easy it is to accidentally write something to the output and thus turn your return value into an array.

Since I'm on a roll, 1 last example.

  clear
  
  $arr = @($null, 'hello')
  
  $isNull = $arr -eq $null
  
  $isNull.GetType()

OUTPUT:

  IsPublic IsSerial Name                                     BaseType
  -------- -------- ----                                     --------
  True     True     Object[]                                 System.Array
How is the equality operator (-eq) returning an array?

You see, PS has been lying to you all this time, arrays in PS aren't arrays. They're wrapper objects that pretend to be an array to give all sorts of cool magic. One of those magic things being it's propensity to forward function calls on the array wrapper to the elements themselves.

What it's actually doing is calling -eq on each element (think LINQ select) and returning a new array.

Which is useful, you can imagine having a list of COM objects with a name property, you can do a select on the name by just doing ".name" on the array wrapper itself. It has its uses.

BUT

you can't do that for any properties that are on the array (such as Length). Also, PS allows you to attach functions to objects at runtime, if you were truly evil you could attach a myriad of functions to an array object you handed back and laugh as the poor suckers using your code can't understand why calling .Name doesn't forward like it should.

----

I could go on and on and on about PS. I once built a VPS automation solution in PS. My (naive) thinking at the time was that the remoting capabilities for windows was useful so I may as well build it out in powershell. I maintained that solution for 5 years, 4.5 years in and I was _still_ getting surprised by interactions w/i PS.

Here's an exercise for the reader.

write a function that will successfully test an input parameter against null for everything. There's a solution.

Re:Microsoft Is Driving Users Away by pjmlp on Tuesday February 27, 2024 @03:15AM (#39521474)
You never used Perl I see.
Re:Microsoft Is Driving Users Away by Falmarri on Sunday February 25, 2024 @05:09PM (#39505382)
I can't believe there are people that actually like powershell
Re:Microsoft Is Driving Users Away by throwaway3563 on Sunday February 25, 2024 @08:14PM (#39506667)
The main issue with powershell is its name. It would have been better named powerscript. It’s not really a shell but a much more powerful script language along the lines of Perl or PHP.
Re:Microsoft Is Driving Users Away by raincole on Sunday February 25, 2024 @05:14PM (#39505437)
If the alternative is bash then I don't just like powershell, I love it from the bottom of my heart.
Re:Microsoft Is Driving Users Away by yodon on Sunday February 25, 2024 @05:15PM (#39505442)
Ironically, power shell is the most consistent cross-platform scripting environment today. No more wrangling osx bsd grep commandline flags not working with linux gnu grep, and vice versa. Powershell just works cross platform. And this from a guy whose daily driver is an M3 MacBook.
Re:Microsoft Is Driving Users Away by HKH2 on Monday February 26, 2024 @04:12AM (#39509137)
You don't have to use grep.
Re:Microsoft Is Driving Users Away by SuperNinKenDo on Sunday February 25, 2024 @05:20PM (#39505498)
I agree. Windows should lean into its original strengths, not become a bad clone of a unix system sitting on top of a non-unix system.
Re:Microsoft Is Driving Users Away by orwin on Sunday February 25, 2024 @06:35PM (#39506098)
I will explain my point of view, please comment on if you think my view is fair, or if I'm wrong.

My issue with powershell is that it isn't really a shell language, or rather, not a tty language. I do think it's way better than bash, but I do not want to use it like bash, I want to use it like AWK, but for my system. I want it to use it only in scripts, or with an exec in a command line at worst. I think bash have better built-in for ttys, and is faster/more reactive (that might be my windows config but I don't think so).

I want to navigate with bash, and script with powershell (which I do to be completely honest, but I'd like to do that in a windows terminal and not wsl).

Re:Microsoft Is Driving Users Away by deviantbit on Sunday February 25, 2024 @05:28PM (#39505571)
I was at Microsoft, leaving around the same time, but I was in the Game Studios.

How about making the installation about 90% less and dropping DCOM support. That is a dinosaur that has long out lived its usefulness. It is a constant source of security problems. DirectX needs a massive overhaul.

Re:Microsoft Is Driving Users Away by bee_rider on Sunday February 25, 2024 @07:39PM (#39506493)
Most of the Linux ecosystem is not really interested in selling Linux, they are interested in solving their problems using Linux and then sharing. This leaves space open for groups like Valve or Google to create a nice UI on top of Linux and sell that. How can they compete with free? It turns out free is not actually interested in competing with them…

I still give it, like, less than 50% chance of occurring, but it wouldn’t be totally mind blowing to see MS selling a Linux distro, IMO. Why not, right?

Re:Microsoft Is Driving Users Away by pacifika on Monday February 26, 2024 @03:04AM (#39508677)
I don’t think MS is interested in sharing back its improvements, like a directx integration layer it would have to build.
Re:Microsoft Is Driving Users Away by k8svet on Monday February 26, 2024 @04:00AM (#39509043)
You mean like the kennel and mesa driver they largely wrote?
Re:Microsoft Is Driving Users Away by pacifika on Monday February 26, 2024 @04:04AM (#39509080)
No I’m talking about the work that affects their power / control over others.
Re:Microsoft Is Driving Users Away by shiroiushi on Monday February 26, 2024 @04:57AM (#39509385)
>they are interested in solving their problems using Linux and then sharing. This leaves space open for groups like Valve or Google to create a nice UI on top of Linux and sell that.

In theory. In practice, this doesn't happen.

Overall, I'd say desktop UIs are actually Linux's greatest failing. It's dominated by two different groups (Gnome vs. KDE) with extremely different design philosophies, and both having major (but different) problems. The whole Wayland vs X thing is also part of the problem. Everything else in Linux generally works really well, which is part of why it's so successful on servers and embedded systems.

Re:Microsoft Is Driving Users Away by bee_rider on Monday February 26, 2024 @10:48AM (#39512624)
i3 and Sway work great. UI isn't a failing in general. Just a particular type of discoverable UI that is needed to sell to non-technical users…

Chromebooks sell OK, right?

Re:Microsoft Is Driving Users Away by shiroiushi on Monday February 26, 2024 @09:00PM (#39519188)
Almost all the software engineers I've worked with, using Linux desktop systems professionally, use Gnome or KDE (with far more using Gnome actually). I've never even heard of "sway" and I think I've met one person who uses i3, and maybe a few who use xfce.
Re:Microsoft Is Driving Users Away by pjmlp on Monday February 26, 2024 @05:49AM (#39509757)
They already are, before WSL, I would be using VMWare Workstation or Virtual Box, now it is one software package less to install.

I am ok with Windows as thin terminal with great graphics and audio support.

Re:Microsoft Is Driving Users Away by layer8 on Sunday February 25, 2024 @05:16PM (#39505452)
Microsoft needs to realize that the UI revamps made since Windows 8 have been a degradation for usability, and return to the old values of the WIMP interface, interface consistency, and keyboard-ability, and get their UI framework story back on track for good.
Re:Microsoft Is Driving Users Away by js4ever on Sunday February 25, 2024 @05:39PM (#39505663)
I agree with everything you said!
Re:Microsoft Is Driving Users Away by Solvency on Sunday February 25, 2024 @05:02PM (#39505305)
What I don't get is... doesn't MS get more than enough data/telemetry from its cloud services and now AI usage? Do they REALLY have to shove it into the core desktop OS?

As much as I loathe my days being siphoned from me all day long while being forced to use Office, I'd at least forgive them if my daily driver OS wasn't a giant ad-infested spyware app.

Re:Microsoft Is Driving Users Away by timetopay on Sunday February 25, 2024 @05:04PM (#39505326)
Tbh telemetry is really useful for identifying bugs, feature requirements, and security issues. It's anonymized, not really that invasive, and the way they gather it is pretty responsible.

However...

It's my operating system. Can they not understand why people would be sensitive about this? It blows my mind that, at least, there isn't an on/off toggle in the Pro version. It's really disrespectful to those of us who care.

Re:Microsoft Is Driving Users Away by felsokning on Monday February 26, 2024 @06:24AM (#39510020)
>It's my operating system.

I think part of the problem is that it seems like an internal (corporate) push (shift?) to view it as only a "licensed" product that you're using, rather than as something you "own" on your machine.

We saw a bit of this with licensing and product validation. Now, we're seeing it with changes driven by internal (e.g.: corporate command chain) drives. They "need" this data but there's no open transparency about why they need it, where it's housed, who has access, what positive changes this data has driven (if at all), etc.

Back during the Watson or WER (Windows Error Reporting) days, that was the only "telemetry" that the company needed and they got by on quite a few versions of the OS without needing more.

I don't have an answer - but I do know that if my work didn't require Windows, I'd be happy to never see another Windows desktop again.

Re:Microsoft Is Driving Users Away by butlike on Monday February 26, 2024 @11:00AM (#39512783)
I like how the mouse tracks in windows over macOS. ¯\_(ツ)_/¯
Re:Microsoft Is Driving Users Away by mrkeen on Monday February 26, 2024 @03:35AM (#39508858)
Take the "You need to activate windows" watermark off my screen.

I paid damnit, I'm not paying twice.

Re:Microsoft Is Driving Users Away by pjmlp on Monday February 26, 2024 @05:47AM (#39509743)
From my point of view, WinDev decreasing their religious stance on COM and related crap tooling for using it (VB 6, .NET Framework, C++/CX, .NET Native were the only usable ones for it), would already be a great improvement.
Re:Microsoft Is Driving Users Away by hypercube33 on Monday February 26, 2024 @08:28AM (#39511013)
As an enterprise support engineer for the windows devices where I work a few notes: * I agree with your list * the store could have been awesome for users and enterprise but it blew it on both fronts. Linux has this nailed down. a note that I haven't seen a paid software store beyond steam I actually think doesn't suck or is full of garbage "is this malware" software * yes, please stop forcing ux changes clearly driven by marketing, especially in edge and office
Re:Microsoft Is Driving Users Away by Night_Thastus on Monday February 26, 2024 @11:10AM (#39512948)
* You can turn off the vast majority of the telemetry, and what little remains can be easily stopped via pihole

* Edge is advertised when you first install Windows, but nothing forces you to use it. I use Firefox with Windows 11 and no mention of Edge appears anywhere now.

* Updates aren't weekly, except maybe security updates. And most updates these days happen unobtrusively in the background.

* They've made great progress with the new Terminal and Powershell apps. They're very good and have more-or-less all the functionality you'd be used to. If you really want more, WSL exists.

* You can turn off anything AI-related. Again, I don't see anything like that on mine.

* You never need to interact with the store, and you can remove it via command if you're really insistent on it.

Re:Microsoft Is Driving Users Away by ProllyInfamous on Monday February 26, 2024 @01:05PM (#39514694)
Yes, but why are these opt-out instead of OPT-IN? [answer: $$$, "ease of use"]

Why must you use command lines to disable features which should have been opt-in, in the first place?

Why must one use a 3rd party device (e.g. PiHoles, which ARE awesome) to disable stuff — particularly when you can't even turn all telemetry off in the first place?

Re:Microsoft Is Driving Users Away by Night_Thastus on Monday February 26, 2024 @01:13PM (#39514804)
Because Window is, at its core, meant for average, everyday users. Not developers. Not power users.

And for the average user, all they care about is having a web browser and access to get the applications they need.

I really don't see the harm in the MS store being present. It offers them a user-friendly way to tell people to "just go here and install X" without having to walk them through anything more complicated.

Re:Microsoft Is Driving Users Away by ProllyInfamous on Monday February 26, 2024 @01:21PM (#39514923)
Perhaps, upon initial installation, operating systems should have an option of selecting which operating environment they prefer (e.g. do you want to have all your personal information sent to vendor for customized adds; do you want to have normal OS, or advanced; do you want to use generative AI)?

Personally, my only Windows machine runs Windows 7 Professional 64-bit [turns on once a month]. All my computers sit behind several PiHoles.

Re:Microsoft Is Driving Users Away by BizarroLand on Monday February 26, 2024 @05:45PM (#39517689)
I would gladly pay $10/m as a home user for a version of Windows that provides those options. I can live without alternate shells and I can accept closed source software for those prices.

Give me the same base setup as Windows 7 but with the Windows 11 security bells and whistles.

Re:Microsoft Is Driving Users Away by lenkite on Tuesday February 27, 2024 @01:43AM (#39520847)
Microsoft needs to fix their UX development platform urgently. WinUI 3 sucks compared to Apples SwiftUI. They don't appear to be investing anything much into it. Apple's efforts into improving their UX and development platform are orders of magnitude higher than Microsoft's.

Apple now owns the majority of the mobile+tablet+developer laptop market. Getting rid of Windows Phone was a VERY bad decision made by Nadella. A short-term gain in profitability for a long-term loss in marketshare. He completely ceded the OS/device competition and effectively made Apple the dominant cross-form-factor OS company.