Skip to content

Instantly share code, notes, and snippets.

@pepopowitz
pepopowitz / transcript.md
Last active Oct 14, 2022
Transcript for A Developer Experience Podcast: Trailer
View transcript.md

Steven Hicks: [00:00:00] Hello! My name is Steve, Steve Hicks. I read it as Steven. I speak it as Steve, and I'm very sorry for being difficult about that. I'm a software engineer, currently working as a developer experience engineer. And I think of developer experience as basically this. If you are a developer, I want you to have a nice time with the tools that you're using.

If there are massive hurdles between you and success, I wanna make those hurdles smaller or remove them entirely. If you get tiny paper cuts every day from your tools, I want to reduce the number of paper cuts. And so you're probably thinking that this show is about the field of developer experience.

It's a good guess. It says it in the name, A developer experience podcast. But the name of this show is kind of intentionally misleading. I get a lot of joy out of the ambiguity and fluidity of words, and this is one of those times. This show is less about the field of developer experience, or Dev Ex or DX, or whatever you wanna call it.

View diffusion-elasticsearch@5.6.md

How I got all diffusion tests passing locally

  • I had installed elasticsearch@2.4 from homebrew, but the diffusion gemfile called for version 5. As a result I was seeing errors from bundle exec rspec ./spec/workers/artist_match_worker_spec.rb complaining about the syntax of elasticsearch queries.
  • I tried to brew install elasticsearch@5.6 but the 5.6 formula had been removed in the last month :(
  • I ran brew install elasticsearch@6 and tried to run the tests but there were breaking changes between 5 and 6, and I got more query errors from the same spec file.
  • I tried to install v5.6 again and Jon made me read the error output better. I discovered that you can still get to the deleted formula via the old git SHA, with this command:
    • git -C "$(brew --repo homebrew/core)" show 157167491^:Formula/elasticsearch@5.6.rb
  • That will output the entire contents of that file,
@pepopowitz
pepopowitz / better.js
Created Jan 28, 2018
Chekhov's Gun - Better Test
View better.js
describe("validateBeer", () => {
it("returns invalid for beers with no abv (less setup)", () => {
const beer = makeMeABeer({
abv: undefined,
});
const result = validateBeer(beer);
expect(result).toEqual(false);
});
@pepopowitz
pepopowitz / noisy.js
Created Jan 28, 2018
Chekhov's Gun - Noisy Test
View noisy.js
describe("validateBeer", () => {
it("returns invalid for beers with no abv", () => {
const beer = {
id: 87983,
brewery: {
id: 12332,
name: "Central Waters",
location: "Amherst, WI",
overallRating: 5,
},