This is not a step-by-step guide, but more of an overview that can help you stitch together the detailed step-by-step guides out there. Overview Install nodejs and npm packages from your distribution’s package manager. I’ll call this “System nodejs”. You’ll need sudo to interact with it. Install n, a node version manager, into System nodejs. Use n to install nodejs versions into your user space. For these versions, you don’t need sudo. Steps I’m running Pop!_OS 21.04, which is e...| The Code Whisperer
I couldn’t figure this out myself, nor even find the appropriate Stack Overflow article on my own, so I’m writing this. I hope you find it and it alleviates your annoyed state. Is this you? I want to read input from stdin in my Java application. I want to run my application using gradle run. I’m learning the Kotlin build DSL for Gradle as a replacement for the Groovy build DSL, which I’m somewhat used to. Great! That’s me, too. The Problem By default, gradle run uses an empty input ...| The Code Whisperer
Change the code as usual 2. Write a test that only passes after the change 3. Revert to before 1 4. Type the test again (copy/paste is cheating & invalidates the warranty of the exercise) 5. Make it compile by changing the code 6. See it fail 7. Change the code to make it pass — Kent Beck (@KentBeck) July 30, 2021 I literally did this for one afternoon (back in 1999, I think) and began to feel the difference almost immediately. I also happened to like that feeling, even though there were mo...| The Code Whisperer
I recently had this problem: I was writing some tests with Spock, but IntelliJ IDEA wouldn’t run them. It would run my JUnit tests (written with JUnit 4), but it wouldn’t run my Spock tests (or “specs”, if you prefer). At least this is how it seemed to me. I had made this work before, so I couldn’t understand at all why it didn’t work now. And, of course, I wanted to get this working for a training course, so I felt a certain pressure to get it to work. Nothing made sense to me. S...| The Code Whisperer
I made a silly mistake installing rvm on my new Linux laptop. I should mention that I don’t really know Linux yet, so that makes me susceptible to making this kind of silly mistake. I accidentally installed rvm as a multi-user/system-wide tool, rather than in single-user mode. Since I like the use the narrowest scope possible, I wanted to fix this. Of course I also had the problem that rvm wouldn’t work without sudo and that seemed really weird to me. I figured that I should uninstall rvm...| The Code Whisperer