Most active commenters
  • egorfine(3)

←back to thread

Microsoft Edit

(github.com)
486 points ethanpil | 19 comments | | HN request time: 6.455s | source | bottom
Show context
anyfoo ◴[] No.44372516[source]
Fun. I must admit I don't really know who this is for, but it seems fun.
replies(5): >>44372607 #>>44372679 #>>44372736 #>>44373224 #>>44373591 #
DrJokepu ◴[] No.44372607[source]
It’s right there in the readme actually:

> The goal is to provide an accessible editor that even users largely unfamiliar with terminals can easily use.

replies(2): >>44372647 #>>44372719 #
scblock ◴[] No.44372647[source]
That may be the written goal, but I doubt that's the actual reason the project exists.
replies(2): >>44372682 #>>44372718 #
1. cosignal ◴[] No.44372682[source]
Yeah ... I don't think there's any overlap between "users largely unfamiliar with terminals" who want something easy to use, and 'Linux users who are sufficiently technical that they would even hear about this repo'.
replies(7): >>44372753 #>>44372760 #>>44372902 #>>44373046 #>>44373211 #>>44375293 #>>44376841 #
2. cAtte_ ◴[] No.44372753[source]
well the editor was obviously designed primarily for Windows, not sure why the title says Linux
3. zamadatix ◴[] No.44372760[source]
The title is a bit confusing depending how you read it. Edit isn't "for" Linux any more than PowerShell was made for Linux to displace bash, zsh, fish, and so on. Both are just also available with binaries "for" Linux.

The previous HN posts which linked to the blog post explaining the tool's background and reason for existing on Windows cover it all a lot better than a random title pointing to the repo.

replies(1): >>44375201 #
4. kevin_thibedeau ◴[] No.44372902[source]
There's no shortage of less technical people using nano for editing on Linux servers. Something even more approachable than that would have a user base.
replies(2): >>44373743 #>>44373857 #
5. paulfharrison ◴[] No.44373046[source]
Here's a scenario. You're running a cluster, and your users are biologists producing large datasets. They need to run some very specific command line software to assemble genomes. They need to edit SLURM scripts over SSH. This is all far outside their comfort zone. You need to point them at a text editor, which one do you choose?

I've met biologists who enjoy the challenge of vim, but they are rare. nano does the job, but it's fugly. micro is a bit better, and my current recommendation. They are not perfect experiences out of the box. If Microsoft can make that out of the box experience better, something they are very good at, then more power to them. If you don't like Microsoft, make something similar.

replies(2): >>44373841 #>>44375327 #
6. rtpg ◴[] No.44373211[source]
I dunno, I spent a lot of years (in high school at least) using Linux but being pretty overwhelmed by using something like vim (and having nobody around to point me to nano).

EDIT.COM, on the other hand... nice and straightforward in my book

7. mikepurvis ◴[] No.44373743[source]
Especially noting it's a single binary that's just 222kb on x86_64— that's an excellent candidate to become an "installed by default" thing on base systems. Vim and emacs are both far too large for that, and even vim-tiny is 1.3MB, while being considerably more hostile to a non-technical user than even vim is.

I can definitely see msedit having a useful place.

8. hulitu ◴[] No.44373841[source]
> You need to point them at a text editor, which one do you choose?

mcedit ?

9. hulitu ◴[] No.44373857[source]
Midnight commander comes with mcedit.
10. egorfine ◴[] No.44375201[source]
TIL PowerShell exists for Linux.

But.. why?

replies(2): >>44375348 #>>44378682 #
11. 0points ◴[] No.44375293[source]
It's a windows 11 terminal editor. Don't get confused by the fact that it also works on Linux.
12. 0points ◴[] No.44375327[source]
> You're running a cluster, and your users are biologists producing large datasets. They need to run some very specific command line software to assemble genomes. They need to edit SLURM scripts over SSH. This is all far outside their comfort zone. You need to point them at a text editor, which one do you choose?

Wrongly phrased scenario. If you are running this cluster for the biologists, you should build a front end for them to "edit SLURM scripts", or you may find yourself looking for a new job.

> A Bioinformatics Engineer develops software, algorithms, and databases to analyze biological data.

You're an engineer, so why don't you engineer a solution?

13. skc ◴[] No.44375348{3}[source]
Well why not?

Is there supposed to be a single elected shell for Linux? Powershell on Linux is just one of plenty others.

replies(1): >>44376208 #
14. egorfine ◴[] No.44376208{4}[source]
I'm not against it. Absolutely go for it.

I just wonder what was the reason to port it and then I would like to have a word with a real living person who is actually using that shell.

replies(2): >>44376592 #>>44380629 #
15. MattSteelblade ◴[] No.44376592{5}[source]
I believe this was the original announcement https://azure.microsoft.com/en-us/blog/powershell-is-open-so.... I have used it on Linux and it is included by default in Kali and ParrotOS.
16. joseda-hg ◴[] No.44376841[source]
I dunno, I use edit since I've heard of it instead of figuring out why my vim config breaks on windows

I might use nano via wsl (Or at that point just nvim), but that also has it quirks

It occupies the same space as micro did for me, but it's / it will be preinstalled so it's better (Also a reason I even cared for vi at first)

17. trelane ◴[] No.44378682{3}[source]
Well, parts of it do, anyway.

As with .net, it is not intended to let you easily get away from Microsoft.

https://learn.microsoft.com/en-us/powershell/scripting/whats...

18. WorldMaker ◴[] No.44380629{5}[source]
PowerShell lends itself really well to writing cross-platform shell scripts that run the same everywhere you can boot up PowerShell 7+. It's origins in .NET scripting mean that some higher-level idioms were already common in PowerShell script writing even before cross-platform existed, for instance using `$pathINeed = Join-Path $basePath ../sub-folder-name` will handle path separators smartly rather than just trying to string math it.

It's object-oriented approach is nice to work with and provides some nice tools that contrast well with the Unix "everything is text" tooling approach. Anything with a JSON output, for instance, is really lovely to work with `ConvertFrom-Json` as PowerShell objects. (Similar to what you can do with `jq`, but "shell native".) Similarly with `ConvertTo-Json` for anything that takes JSON input, you can build complex PowerShell object structures and then easily pass them as JSON. (I also sometimes use `ConvertTo-Json` for REPL debugging.)

It's also nice that shell script parameter/argument parsing is standardized in PowerShell. I think it makes it easier to start new scripts from scratch. There's a lot of bashisms you can copy and paste to start a bash script, but PowerShell gives you a lot of power out of the box including auto-shorthands and basic usage documentation "for free" with its built-in parameter binding support.

replies(1): >>44427260 #
19. egorfine ◴[] No.44427260{6}[source]
That's a very good and insightful comment. Thank you!