jbrains

@jbrains@sh.itjust.works

This profile is from a federated server and may be incomplete. Browse more on the original instance.

bash coding standards?

i didnt care about how i wrote my bash scripts, coz i know theyd ultimately be used just by myself. but for the past few day, i’ve been working on this project, mk-blog which uses some bash scripts, there are chances that others might look at them. besides in work they’re asking me maintain a server. so why not learn the...

jbrains,

I haven’t used it on a project for money, but I have some tests in shunit2 and that alone encourages me to extract code to functions.

jbrains,

Computers don’t directly understand the code that humans write. Humans find it extremely difficult to directly write the code that computers understand.

Compiling is how we convert the code that humans write into the code that computers can run. (It’s more complicated than that, but that explanation is probably enough for now.)

Different computers understand different flavors of computer code. Each kind of computer can compile the same human code, but they produce the flavor of computer code specific to that kind of computer. That’s why you sometimes need to compile the human code on your computer: it’s easier for your computer to know how to compile human code than for a human to know how to compile human code for every kind of computer that exists now and might exist in the future. There are some common kinds of computer and many projects pre-compile human code so that you don’t have to, but that’s not always easy. Also, some people insist on compiling the code themself, rather than trust someone else to correctly compile the code for their computer.

As for how to compile, that can be complicated. When you find the human code (“source code”) for a software project, the README often gives you instructions for how to compile that project’s code. Many of the instructions look familiar, because they are similar between projects, but the detail can vary a lot from project to project. Moreover, different human programming languages have very different instructions for how to compile their flavor of human code into computer code.

jbrains,

Yes.

jbrains,

I finally build something nontrivial in jq, then this happens…

jbrains,

A few times per year. Mostly janitorial work.

jbrains,

Now we need a comparison article about fff, ranger, and nnn. I chose ranger, but quite arbitrarily at the time. I tried nnn, but my fingers kept being used to ranger.

jbrains,

Thank you. What makes the learning curve bad in your opinion? I only tried it for a few minutes.

jbrains,

I’m happy with Kakoune, but when I start to want more, Helix is high on my of editors to learn.

jbrains,

I needed to install a plugin to select objects delimited by characters, which I infer provides some of the basic behavior of tree-sitter, but since I forget the details, I guess that means there’s no fiddling involved. Set it and forget it.

Kakoune has a welcoming and helpful community, so when I struggled to understand the basics of configuration and installing plugins, I got the help I needed. It’s been a few years since I needed help, so perhaps that means I’m not adventurous enough and perhaps that means everything has simply kept working with little maintenance.

I have vague memories of putting in effort to set things up, but evidently that didn’t traumatize me.

jbrains,

And just in case it’s helpful: github.com/phaazon/kak-tree-sitter

Where? Is? Quick Look!?

By far, the feature I most sorely miss in Linux compared to macOS is Quick Look. Press the space bar, see file contents. Use the arrow keys, view different files. Simple, quick, and WAY faster than opening an entire app every single time I want to check the contents of a file. I also miss the column view in conjunction with...

jbrains,

I adopted ranger as my file manager and there is a way to enable preview that works for text files, PDFs, and images (plugin). It’s not Quick Look, but you might not hate it.

I like it primarily for reasons of using the keyboard to navigate, search, copy, move, delete, and open files. It helped me miss Alfred less.

Someone else has mentioned nnn, which has similar aims.

jbrains,

The old joke remains.

My only regret is that there isn’t a hell for her to have gone to.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fightinggames
  • All magazines