Readit News logoReadit News
mojifwisi commented on Git Notes: Git's coolest, most unloved­ feature (2022)   tylercipriani.com/blog/20... · Posted by u/Delgan
b0a04gl · 2 months ago
haha wait do you actually read long commit messages( more than a line) all the way through? like line-by-line, imo commit msg = tweet, git note = blog post.
mojifwisi · 2 months ago
That seems more complicated than just adding the info in the commit message. It's not like Git doesn't have flags for trimming commit messages when reading them (--oneline).
mojifwisi commented on Growing a Language [pdf] (1998)   langev.com/pdf/steele99gr... · Posted by u/ColinWright
Someone · 5 months ago
Why would

  a + b
suffer more from this than

  plus(a,b)
? In both cases, libraries will only clash if both define a function with the same name taking an A and a B. The only difference is that it is called + in the former case, and plus in the latter.

mojifwisi · 5 months ago
It's syntactically more straightforward to resolve the issue of clashing definitions through namespacing with functions compared to operators.

The following is pretty standard:

    foo::plus(a, b) // or foo.plus(a, b)
    bar::plus(a, b) // or bar.plus(a, b)
Whereas this is more awkward:

    a foo::+ b // or a foo.+ b
    a bar::+ b // or a bar.+ b

mojifwisi commented on German parliament votes as a Git contribution graph   abstimmung.eu/git/2024... · Posted by u/mxschll
eru · 5 months ago
I think the main thing you'd want to do to make git useful for human readable text, like laws or a novel, is to put each sentence on its own line.

By default, git's diff and merge want lines-of-code to be meaningful and are set up for that.

mojifwisi · 5 months ago
There's always git diff --word-diff, so a website tracking changes in laws in a Git repo could display diffs using that flag by default.
mojifwisi commented on The trap of "I am not an extrovert"   orkohunter.net/blog/the-t... · Posted by u/orkohunter
jimkleiber · 8 months ago
I try to just adopt the perspective that people like me, often more than they might even think they do.

It's not easy to do but when I do it, it makes it a lot easier for me to want to interact with them.

And if you want, ive built tools and tricks to help me with this that I could share.

mojifwisi · 8 months ago
I am not OP, but I am interested in those tools and tricks.
mojifwisi commented on Vimium – The Hacker's Browser   github.com/philc/vimium... · Posted by u/stefankuehnel
ilioscio · 10 months ago
I personally use neovim and something I love doing is :tabedit to create a new tab and then I slap a :term in there and baby you've got a fullscreen terminal in a separate tab right inside vim and get this, you can yank text from this buffer and easily move this between your terminal tab and the files you have open.

I think regular vim will do all this as well but I think maybe the commands are different?

mojifwisi · 10 months ago
Since Neovim 0.10, `:tab term` now opens the terminal window in a new tab. And you could use the exact same command in Vim since they introduced their own terminal emulation feature in Vim 8.0.0693.
mojifwisi commented on Ask HN: If you were rewriting Emacs from scratch, what would you do differently?    · Posted by u/volemo
mrob · a year ago
I'd make cursors be positioned within the document instead of on the screen. Currently, Emacs does not support off-screen cursors. If you attempt to scroll a cursor off screen, it will move within the document to stay on screen. This behavior is contrary to all modern text editors, and there is no good workaround. I once made a serious effort to start using Emacs, but ultimately stopped because of the annoying cursor behavior. (There were other annoyances, but none so fundamental and unfixable.)
mojifwisi · a year ago
This might be a dumb question, but how would an off-screen cursor work in a terminal? According to my understanding of the way terminal emulators/ncurses work, the cursor must be positioned somewhere in the screen, even if it isn't visible.
mojifwisi commented on Can men live without war? (1956)   theatlantic.com/past/docs... · Posted by u/lermontov
whall6 · a year ago
Mergers and acquisitions have taken the place of war in the modern era.
mojifwisi · a year ago
Quite an odd comment to make in the midst of the Ukraine war, another war between Israel and Palestine, and the ongoing civil wars in Sudan and Burma.
mojifwisi commented on Show HN: Mojo Language Syntax Highlighting for Vim   github.com/ovikrai/mojo-s... · Posted by u/ovikrai
giovannibonetti · 2 years ago
Isn't Mojo supposed to be a subset of Python? If so, any Python syntax highlighter should work.
mojifwisi · 2 years ago
The screenshot in the repo's README suggests this is not the case: Python doesn't have the "struct", "var", "fn", "inout", "trait", or "owned" keywords.
mojifwisi commented on fe: A tiny, embeddable language implemented in ANSI C   github.com/rxi/fe... · Posted by u/sph
hota_mazi · 2 years ago
Slavery was widely confirmed for even longer. Tradition, right?

How about instead of using tradition to decide if something is beneficial or not, you just assess it on its value?

mojifwisi · 2 years ago
> Slavery was widely confirmed for even longer. Tradition, right?

This is an egregious use of the noncentral fallacy.[1]

Conforming to this 50-year tradition makes the language more familiar and easier to learn, so it's reasonable to question why the language chose differently.

[1]: https://www.lesswrong.com/posts/yCWPkLi8wJvewPbEp/the-noncen...

u/mojifwisi

KarmaCake day65October 9, 2022View Original