text
stringlengths
0
1.49k
**Kris Nova:** Yeah... And I feel like you see that a lot with Vim; like you said earlier, it's a lifetime of learning how to be better at it. People who use Vim grow and get better, and the longer they use it, the more they fall in love with it and the more they sort of learn to master it. And I guess for me, I don't ...
**Brian Ketelsen:** That's me. I can do the basic stuff. I've never really learned -- now, today, since we're on editors and kind of going sideways, I did the free webinar for JetBrains on Gogland IDE, and I was blown away, because I did that with Florin and I was blown away by how many cool features are in Gogland. So...
\[52:10\] When you're looking at text editors, obviously there's a huge difference between the heaviness of Vim and something like Gogland, but... I've been using Gogland more and more lately, and I'm impressed by just how much it does.
**Kris Nova:** If I'm on my Mac, I use Gogland exclusively, and I'll write in Emacs if I'm at home on my Arch Linux box... And it's great. I remember coming over from IntelliJ with like the Go plugin; getting the Kubernetes codebase to index was like this 20-minute process... \[laughter\] I think it was like 7.5 gigaby...
**Brian Ketelsen:** Wow...
**Kris Nova:** It's highly optimized for Go, and it works great. I use it for demos and I code in it all the time.
**Brian Ketelsen:** Now, one of the things we were talking about with indexing speed today - if you have JavaScript mixed into your GOPATH with Go code, the indexing is significantly longer, which is part of my problem, because I've got this gigantic GOPATH. But I've put all of my code in my GOPATH; I just figured GOPA...
**Kris Nova:** I have a question - open question for the gang here... I have multiple GOPATHs in my home directory, for different modes of writing Go that I'm in, and then I just change my GOPATH variable based on like if I'm in Kubernetes mode, or if I'm in Azure mode. Am I the only one who does that, or...?
**Brian Ketelsen:** Not at all.
**Kris Nova:** Okay.
**Brian Ketelsen:** I do it by project most times. In fact, all of my classroom material for teaching Go is a self-contained GOPATH, and then I've got GOPATHs from my personal projects, and if I have a job - which sometimes I do - then I'll have a GOPATH specifically for that, just to keep everything clean.
**Erik St. Martin:** And if you're not already aware of this, I will up your "different environment" game. There's a project called [direnv](https://direnv.net/) that I use the crap out of. Basically, it allows you when you `cd` into a directory, it can execute shell scripts or set up aliases or your paths specifically...
**Kris Nova:** I was literally thinking about writing this exact tool like two days ago.
**Brian Ketelsen:** Yeah, I use [direnv](https://direnv.net/) for everything. All I have to do is change into the directory and it automatically changes my GOPATH, exports, the Docker variables for Postgres, whatever. It was Erik, I'm sure, that introduced me to [direnv](https://direnv.net/), or maybe its predecessor. ...
**Kris Nova:** Awesome.
**Erik St. Martin:** Yeah, it's so much fun. I use it to change up my `kubectl` configs and things like that, too.
**Brian Ketelsen:** You're not using kubectx yet?
**Erik St. Martin:** Usually, there's a kube-control or kubectl. I haven't got into the kubectl thing...
**Brian Ketelsen:** No, I'm talking about [kubectx](https://github.com/ahmetb/kubectx). There's a new app called [kubectx](https://github.com/ahmetb/kubectx) that allows (it's almost like [direnv](https://direnv.net/)) but it allows you to change your context for `kubectl`, and you can just type `kubectx work` and get ...
**Kris Nova:** Awesome, because right now I have a bunch of kube configs in my directory, and then symlink them according to what I'm doing. But this sounds awesome.
**Brian Ketelsen:** Oh, no, no, no. I'll paste this one into Slack. It's awesome. We were using this last week when I was at training, and it's so much nicer.
**Erik St. Martin:** Or even with [direnv](https://direnv.net/) too, you can have it execute shell commands and stuff for you. So you can have it just change your context when you CD into the directory.
**Brian Ketelsen:** \[56:09\] Yeah, so I just put a link to that in Slack. It's [github.com/ahmetp/kubectx](https://github.com/ahmetb/kubectx).
**Erik St. Martin:** I feel like we need to have an episode all the time where we share tools...
**Brian Ketelsen:** A tools episode? Heck yeah. I think that'd be an awesome episode. All of the cool things that we each put into the automation of our workspaces, that make our lives easy... That'd be fun.
**Kris Nova:** Yeah.
**Brian Ketelsen:** And then we could create this gigantic, super-duper repository of the best ways to automate your entire workflow, and the end of the day you wouldn't even have to write code. You'd just show up and click a button, the code would self-write, and you'd just watch the compilers work.
**Kris Nova:** Awesome. I finally just cracked down and I decided pushing my entire home directory up to a Git repo.
**Brian Ketelsen:** What?! The whole thing?
**Kris Nova:** Well, I Git ignore downloads and stuff like that, and the big directories that have all my junk on it on my Mac book or my Arch Linux box...
**Brian Ketelsen:** So like documents, too?
**Kris Nova:** Yeah. Dotfiles, documents - I just get it all up there and then I can just pull them down whenever I need them, and edit them and push them back up.
**Brian Ketelsen:** Holy cow... That's brave.
**Kris Nova:** Yeah... I also run my own Git server, so...
**Erik St. Martin:** I have a lot of my [dotfiles](https://dotfiles.github.io/) publicly too, although I don't think I've updated them in a long time. I need to just wipe stuff and start over, and using the [Stow](https://www.gnu.org/software/stow/) tool that makes that really easy, too.
**Brian Ketelsen:** There's another one... It's not RCS, but... Shoot. I just saw the other day something like RCS, the name is like.. One of those Ruby companies made a really cool dotfile configuration tool, and I saw somebody... Elithrar - who's Elithrar? The name is escaping me... On Twitter, Elithrar. Darn it, I'm...
**Erik St. Martin:** Yeah, so some of those things are cool, though...
**Brian Ketelsen:** Matt Silverlock.
**Erik St. Martin:** But I guess I'm like an old school Linux geek, so [Stow](https://www.gnu.org/software/stow/) just works so well for me. It just automatically symlinks, and the binary is there, and it's super fast, and the package exists already, and...
**Brian Ketelsen:** [RCM](https://github.com/thoughtbot/rcm). I said RCS, but it's [RCM](https://github.com/thoughtbot/rcm).
**Kris Nova:** I have a Bin directory that is just like eight years' worth of hacky shell scripts that I add to path whenever I move into a computer...
**Brian Ketelsen:** Oh, you've gotta publish that.
**Kris Nova:** Okay... Let's find it right now. I'll pull my dotfiles out and I'll publish it for you guys.
**Brian Ketelsen:** Thank you.
**Kris Nova:** I sometimes forget that they're not on every system, and I'll be like "Wait, you don't have this kcxx27d command?"
**Brian Ketelsen:** "Doesn't everybody have that?"
**Kris Nova:** \[laughs\] Yeah...
**Erik St. Martin:** I used to do that with Git aliases... First I'd alias G to Git, and then I had actual aliases set up inside of Git too, so that I could shorthand everything, and I'd be on somebody else's computer or logged in over SSH somewhere, and I'm trying to run my aliases and it's yelling at me that it's not...
**Brian Ketelsen:** "Of course it is, I just typed my alias, GX!"
**Erik St. Martin:** And I have like an alias for viewing the Git log, where it's kind of like a tree where you can kind of see railroad tracks and things like that, and I just kind of have that alias, so it'll drive me nuts when I'm on somebody else's machine and I try to Git log and it shows up in the standard way, a...