News for hackers. Stuff that matters.
Re:Gitless a simple VCS built on top of Git by baby on Saturday June 17, 2023 @11:45AM (#36371204)
> But 20 hours seems a worthwhile investment to me for something they will likely use for at least the next decade

Yet most people just want to use VSCode and don't want to invest 20+ hours learning emacs or vim

Re:Gitless a simple VCS built on top of Git by KronisLV on Saturday June 17, 2023 @12:42PM (#36371857)
> Yet most people just want to use VSCode and don't want to invest 20+ hours learning emacs or vim

To expand upon this, for version control there are pieces of GUI software that can allow you to handle the typical workflows without touching the CLI. Packages like Git Cola, GitKraken and functionality that's bundled with most IDEs as well.

In addition there are also platforms like GitHub, GitLab and Gitea which will let you easily get changes merged across branches with either a single commit or different strategies, all with the press of a button.

I don't think that there is a reason for everyone to do a deep dive into Git, aside from their own curiosity, or when using complex workflows.

Re:Gitless a simple VCS built on top of Git by tuukkah on Saturday June 17, 2023 @12:05PM (#36371438)
Interestingly, the features of Emacs, Vim and VSCode are largely orthogonal (on top of any basic text editor). Further, a lot of people advocate using CLI instead of most VSCode features. Waiting for the holy grail, you can still learn from each:

* Vim key bindings for text edits

* CLI commands for Git

* Emacs modes such as Magit and org-mode

* VSCode for tight Typescript integration, nice block structure visualisation etc.

I hope some editor will combine this all. (I think Emacs will be best placed to achieve this with its extension ecosystem that already includes Magit, org-mode, evil-mode etc.)

Re:Gitless a simple VCS built on top of Git by cassianoleal on Saturday June 17, 2023 @06:04PM (#36375162)
VS Code already has extensions for all that.
Re:Gitless a simple VCS built on top of Git by subsection1h on Saturday June 17, 2023 @06:26PM (#36375332)
VS Code doesn't have anything comparable to Org mode. The "VS Code Org Mode" extension[1] has maybe 1% or 2% of the features of Org mode for Emacs. Go read Org mode's manual[2] from start to finish (134,062 words) and then direct us to an extension for VS Code that has comparable features (e.g., plain text spreadsheets).

[1] https://github.com/vscode-org-mode/vscode-org-mode

[2] https://orgmode.org/org.html

Re:Gitless a simple VCS built on top of Git by cassianoleal on Saturday June 17, 2023 @06:50PM (#36375552)
Fair enough! I don't use it so wouldn't know.
Re:Gitless a simple VCS built on top of Git by baby on Saturday June 17, 2023 @08:10PM (#36376059)
I've tried org mode several times and I think it's both overkill and not something most people would benefit from considering the time investment needed.
Re:Gitless a simple VCS built on top of Git by tuukkah on Saturday June 17, 2023 @06:39PM (#36375444)
VSCode has a long list of me-too features and extensions but in my experience, not many are of great quality.
Re:Gitless a simple VCS built on top of Git by cassianoleal on Saturday June 17, 2023 @12:14PM (#36371536)
What's your point exactly?

I spent a lot more than 20h learning emacs. It was my main editor for years.

I use VS Code now. It serves me very well.

Re:Gitless a simple VCS built on top of Git by qorrect on Saturday June 17, 2023 @01:36PM (#36372386)
> I spent a lot more than 20h learning emacs. It was my main editor for years.

Yeah same, are people saying 20h commitment is a lot now ? Not sure if I've gotten old, or if things are easier to learn now - but a 20h commitment seems like very lite.

Re:Gitless a simple VCS built on top of Git by HWR_14 on Saturday June 17, 2023 @02:38PM (#36373104)
(1) If I can spend 20 hours learning something boring or 20 minutes learning something else boring but they do the same thing I would prefer 20 minutes.

(2) There are more tools to learn. That 20 hours/minutes is being multiplied by an ever growing number.

Re:Gitless a simple VCS built on top of Git by cassianoleal on Saturday June 17, 2023 @06:08PM (#36375195)
Thing is, git is pretty much everywhere. I don't think I've had a single job in the last 15 years or so where the client or employer wasn't using git. 20h to learn a tool that will be used daily for decades (yes, I expect this trend to go on for at least another 10-30 years), and the choice is not mine to make, is not much.

I should say, if the choice was mine, I'd probably still choose git. It's powerful, it's something I can already make really good use, and I feel comfortable easing new people into it. Regardless, the point is that I don't have that choice as an individual who's part of a team or an organisation.

On the other hand, I can choose my code editor without interfering with my fellow engineers's own choices. Here I chose the one I could learn in 20 minutes and get better the more I used it.

It took me very little time to get productive with VS Code, and then a few more days to get used to most shortcuts I use. Everything else is accessible via the command palette and more shortcuts can be learned as their functions become used more frequently. Until that, the palette is an excellent interface. It also serves as a discovery mechanism for features.

With emacs I had to learn a lot before I started getting productive. I got very good at it. Multiple cursors, window jockeying, buffer wrangling, the works. Any functionality that fell in disuse for some time, I'd risk forgetting their shortcuts. If I did, the only way to use it would be to somehow remember the shortcuts, probably by interrupting work and googling, or by trying to navigate its archaic menu systems.

With vim it's not very different. I still use it more or less daily but mostly for single file editing over SSH, since even if I need to do more complex editing on a remote server, I can use my local VS Code.

I don't think people have to use VS Code. I work daily with other engineers who use it, but also any of the Intellij editors, vim, emacs, you name it. We can all live in harmony and collaborate just fine. Not so much if each would chose their own VCS.

Re:Gitless a simple VCS built on top of Git by SAI_Peregrinus on Saturday June 17, 2023 @01:06PM (#36372083)
"EMACS is not hard, you can learn it in a day… Every day."[1]

[1] https://www.youtube.com/watch?v=urcL86UpqZc&t=325s

Re:Gitless a simple VCS built on top of Git by GeorgeTirebiter on Saturday June 17, 2023 @03:26PM (#36373657)
The thing I like about Emacs is: there is always another 'prestige level' for you to strive for, because you will never master everything. You get better, and better, and better ... positive feedback, increasing ability to get stuff done.

win win.

Re:Gitless a simple VCS built on top of Git by tredre3 on Saturday June 17, 2023 @02:50PM (#36373239)
I used vim for 30 years by now, 15 of those it was my main text editor/IDE-like. I was one of those who would spend hours on achieving the perfect configuration and mix of scripts. I was one of those who thought smugly "I'm so much more productive than those idiots using Eclipse or Sublime".

But you know what? I moved to VS Code a few years ago and my productivity only increased. Everything is more intuitive and discoverable. Everything just works with no tweaking. All the convoluted macros and text manips I painstakingly crafted and memorized in vim are achievable in a few clicks in Code.

Spending 20+ hours learning emacs or vim is quite literally a waste, it's time we all admit it.

(I still think one should learn the basic cursor keys and how to save/quit in vi because sooner or later you'll have to edit something on a remote server with only vi. But learning emacs is still completely useless, though.)

Re:Gitless a simple VCS built on top of Git by codr7 on Saturday June 17, 2023 @04:22PM (#36374171)
Not at all.

There's nothing out there as configurable and portable as Emacs.

Easier, sure.

Re:Gitless a simple VCS built on top of Git by tombert on Saturday June 17, 2023 @04:51PM (#36374461)
I don't disagree, but I think a followup question would be "how configurable do you really need your text editor to be?"

Don't get me wrong, I'm all for tinkering with stuff and customizing to oblivion, it's fun and cool, but realistically how much better of a JS engineer are you going to be if you've customized the hell out of Emacs? Maybe a bit more, I'll concede that, but fundamentally I don't think it's going to be categorical.

Re:Gitless a simple VCS built on top of Git by codr7 on Saturday June 17, 2023 @05:03PM (#36374572)
I have no idea, I'm a software developer, I write code in whatever language I need to and Emacs is always there to support me.
Re:Gitless a simple VCS built on top of Git by subsection1h on Saturday June 17, 2023 @06:41PM (#36375465)
> Spending 20+ hours learning emacs or vim is quite literally a waste, it's time we all admit it.

For me, with my ability to learn at the rate that I do, Emacs provides the best solutions for Git (Magit), email (mu4e), calendar (Org), to-do lists (Org), note taking (Org) and more.

And I don't use software like mu4e because I already use Emacs; I use it because I installed and evaluated dozens of email clients over the years and concluded that mu4e is the best for me given my requirements.

For the sort of people who are satisfied with software like Gmail, Emacs may very well be "quite literally a waste".

Re:Gitless a simple VCS built on top of Git by koito17 on Saturday June 17, 2023 @08:32PM (#36376172)
Yup. I couldn't ever use Git without Magit. The nice part about Magit is that it's already a very discoverable interface and, like Gitless, it just runs git commands asynchronously, so you can inspect the exact things Magit is doing. Yet it's very painless to blame, rebase, squash, cherrypick, ... compared to the Git CLI and other graphical tools I've tried using in the past (mostly the built-in Git interface of IntelliJ).

Given the poster mentioned using Vim for 30 years, I assume he is blindly lumping in Emacs because I've never had to maintain macros or text manipulations -- smartparens and the built-in text yanking features have been sufficient for refactoring code and structural editing.

Most of the things I do with Emacs, people will claim are doable with tmux and a dozen assorted shell utilities, which IMO is just false since you don't get any user interface or convenience close to e.g. Magit, TRAMP, notmuch, eww, and so on.

For instance, one of the supposed benefits of Vim is that you can SSH into some box without your editor of choice installed and still edit files. Why settle for such an experience when TRAMP lets you stick with your current editor, with all of its configuration and plugins, to modify files remotely?

Likewise, notmuch is very good at organizing threads across several mailing lists, whereas Thunderbird has needed me to Google dozens of questions, click lots of buttons to set up filters, and still end up with nothing better than a flat list of e-mails in my inbox.

Since my post is getting long, I'll lastly mention eww is great for browsing things like Javadoc, Codox, the Common Lisp HyperSpec, and other statically-generated HTML documentation.

The most time investment I've needed into Emacs was essentially

  sudo port install emacs-app
Then asking a friend to guide me through installation of a few packages. I don't use distributions like Doom or Spacemacs, and the last time I modified my init.el was apparently 2022-05-13. I got into Emacs in 2020.

I've tried time and time again to try using VS Code so that I can help some friends get into programming languages like Clojure, but I always find myself spending 30 minutes searching how to do things I take for granted in Emacs, like automatically indenting code as you type rather than manually hitting "Format Document" or creating a save hook running that function.

Re:Gitless a simple VCS built on top of Git by baby on Saturday June 17, 2023 @08:09PM (#36376056)
I spent hours using emacs as well, and then moved to VSCode. Everything's just so much faster in VSCode because 1) there are more plugins and 2) I can test and quickly learn plugins.
Re:Gitless a simple VCS built on top of Git by LinXitoW on Sunday June 18, 2023 @04:19AM (#36378296)
I have to ask: Did you just quit Vim the editor or also Vim the keybindings?

Because I can totally see not using the editor, but the keybindings, even the basic ones every emulation plugin manages to do well, are such a big win it's hard for me to believe I'd ever give those up.

Also, at least from my perspective, VSCode and Neovim are eye-to-eye, in the sense that both get most of their magic from interfacing with Language Servers, which both do very well. Though even the more approachable Neovim still seems to have a fetish for configuration/a hatred against sane defaults.

Re:Gitless a simple VCS built on top of Git by tikhonj on Saturday June 17, 2023 @04:25PM (#36374198)
That doesn't mean that learning Emacs would not be worthwhile, it just means people don't do it.
Re:Gitless a simple VCS built on top of Git by tombert on Saturday June 17, 2023 @04:43PM (#36374385)
I've been using Vim (well, neovim now) for a long time, it's my primary editor, and I think I'm reasonably good with it, but I really don't think I'm appreciably more productive than the average VS Code user.