Fork me on GitHub
#off-topic
<
2019-05-02
>
dangercoder06:05:31

Anyone who can recommend any articles/tutorials/websites on Postgres? (In-depth).

dominicm13:05:28

Does anyone have recommendations for group programming switching between individuals vim/emacs setups?

solf13:05:38

Yesterday I found out about https://floobits.com/help/plugins, made for remote pair programming. It has emacs and neovim plugins. Maybe that helps?

dominicm13:05:26

I was hoping to stick around the same machine/repl, but I might be able to hack it up

jaide15:05:10

What about party repl?

dominicm15:05:56

we are vim/emacs users, 🙂 the problem we're solving is that our editors all work differently and we can't be productive

jaide16:05:43

I see so you’re talking about using the same machine?

dominicm16:05:34

Yeah, because of the nrepl and sharing the screen

jaide16:05:08

Spacemacs exclaims the ability to switch between vim\emacs bindings easily. https://pragprog.com/book/jkrp/remote-pairing I’ve been reading that this week. I think it raises a good point that with the right setup remote pairing, even if in the same room, can be more effective. As for the repl connection I suspect you should be able to run something like ngrok on a local nrepl port and people can connect to it remotely. Alternatively you could use tmux with a window running nREPL server, a window for vim and a window for emacs. Whomever has control can switch to the vim or emacs window.

jaide16:05:51

If you all connect to the same tmux session you will see the same screen, have a repl, and choice of editors available to the host.

dominicm17:05:14

The emacs users can't even all agree on key bindings

dominicm17:05:59

X forwarding seems like a good solution, just needs a filesystem

wiseman17:05:43

hm emacs has > --user=user Load user’s initialization file instead of your own

wiseman17:05:16

i guess each user could have their own instance of emacs. but honestly, i think that is more of a social problem than technical: get everyone to agree on some basic keybindings.

wiseman17:05:01

i dont’ completely understand why you need sshfs if you’re doing X11 forwarding?

dominicm17:05:15

X11 forwarding doesn't provide access to the host filesystem.

dominicm17:05:28

So we need some way to coordinate that.

dominicm17:05:19

Especially as code might be half broken

wiseman17:05:55

i imagined you were running the editor remotely via X. and so the editor has access to the remote filesystem

dominicm18:05:33

No, you push a window from your local machine to the server.

dkrieger20:05:01

if alternating between editors is out of the question (not sure why it needs to be), that leaves emulating the vim peoples' workflows in emacs, which should be fairly straightforward. spacemacs emulates many tpope plugins out of the box these days, and spacemacs bindings can be trivially set up in vim, so then it's just a matter of mapping fireplace functionality to cider. ...or skip all that work and switch editors when the driver changes

dominicm20:05:51

I'm the reason we can't/won't try spacemacs, I can't use it! It doesn't work anything like vim.

💯 4
dominicm20:05:06

Or, at least not the parts I need for editing clojure. I would have to learn bindings from the start again.

dominicm20:05:27

Additionally, the emacs users couldn't agree on bindings/plugins anyway.

dominicm20:05:39

seems like a good chance to learn from each other 🙂

dkrieger00:05:07

As a recent vim to spacemacs convert, join the dark side! I didn't work with lisp/clojure at all before making the switch, but from what I hear cider is far more powerful than fireplace. That said I know tim pope is brilliant at making vim plugins that feel native, I'm sure fireplace is no exception. Come for org-mode, stay for client-server, TRAMP, and the ability to extend your editor with lisp (say what you will about emacs lisp, but it blows vimscript out the water). I say this all as a 3+ year vim user who tried spacemacs and hated it a year or two ago.

solf13:05:01

On emacs you can enable auto-revert-mode so if you modify the file on another program emacs will automatically update it

solf13:05:22

I don't know vim, but it seems :set autoread is similar to that (https://stackoverflow.com/a/2158128)

dominicm15:05:17

this is a bit macgyver, but current idea is X11 forwarding + sshfs + nrepl.

dominicm21:05:06

Ended up using webdav/davfs