Latest / Talk Python To Me / #70: Pythonic cover songs at Loudr
Transcript
- 0:00Some of the best songs are cover songs of popular music from earlier eras.
- 0:03If you're a musician who wants to create a cover song and actually sell it,
- 0:06you'll be diving deep into the complex agreements and legal arrangements with record labels.
- 0:11Sounds like no fun to me.
- 0:12But this is where Python comes to the rescue.
- 0:14The people over at Louder are using Python to run a service for creating, selling, and distributing cover songs.
- 0:20This week you will meet one of the co-founders, Josh Welchel.
- 0:23He's here to tell us all the cool ways Python makes this possible, including a touch of machine learning.
- 0:28This is Talk Python To Me, episode 70, recorded July 29, 2016.
- 0:57Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 1:05This is your host, Michael Kennedy.
- 1:07Follow me on Twitter where I'm @mkennedy.
- 1:09Keep up with the show and listen to past episodes at talkpython.fm.
- 1:13And follow the show on Twitter via at Talk Python.
- 1:17This episode has been brought to you by Rollbar and SnapCI.
- 1:20Hey, everyone.
- 1:22Quick follow-up from last week's episode about writing a programming blog with a.
- 1:26Jesse Jiru-Davis.
- 1:27Several people went to the show page and commented saying that this episode tipped them into deciding to finally create a programming blog and start contributing more to the community.
- 1:37I thought that was really awesome.
- 1:38So good luck to everyone who created a blog as a result of that episode.
- 1:41And I appreciate you adding your comments there.
- 1:43And thank you to Jesse for inspiring everyone.
- 1:46If you want to add a comment to any of the episodes, just go to the episode page.
- 1:49The one for the blog was talkpython.fm/episode slash show slash 69.
- 1:55Now let's do a quick update on the Kickstarter.
- 1:56The Python for Entrepreneurs Kickstarter is into its second week.
- 2:00You're probably not surprised that it's already funded and everyone seems pretty excited about it.
- 2:04In fact, I want to say thank you to everyone who backed it or who is still considering backing it.
- 2:09The campaign was fully funded in just an hour and 15 minutes.
- 2:12That's pretty awesome.
- 2:14And it's a good sign that I think Matt Makai and I are on to doing something cool for the community.
- 2:18I really, truly appreciate all of you who are contributing to it and helping me bring this course to life.
- 2:23So I want to say thank you so much.
- 2:25You can learn more about the Kickstarter campaign in the course at talkpython.fm/launch.
- 2:30Now let's talk about the intersection of music and Python with Josh.
- 2:33Josh, welcome to the show.
- 2:36Hi, thanks for having me.
- 2:37Oh, yeah.
- 2:38It's going to be really cool to talk about music.
- 2:40We've talked about all sorts of different things in the show.
- 2:43A lot of programming.
- 2:43We've talked about particle gliders.
- 2:45We've talked about font design, but we've never talked about music.
- 2:49So I'm really excited to have you here.
- 2:51It's going to be fun.
- 2:52Really excited to get into this conversation.
- 2:54There are very few opportunities to talk about music and programming together in the same interest group.
- 2:59So this is going to be fun.
- 3:00Yeah, it's going to be awesome.
- 3:01But before we get to the story of Louder and what you guys are up to at the company, let's just talk about you.
- 3:08How you got into programming?
- 3:09How do you get into Python?
- 3:09Like, what's your story?
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11Sure thing.
- 3:11So I was one of these kids who was – I grew up on Doom, right?
- 3:16Basically on video games.
- 3:17And I think the first big memorable experience I have getting into programming was as a kid.
- 3:24I had come across on the internet, the very early internet for that, a little program that let you make random levels for Doom.
- 3:31And I have been doing that anyway.
- 3:32I think I actually learned most.
- 3:34So you were making your own Doom wads.
- 3:36Is that right?
- 3:36Yeah, Doom wads for sure.
- 3:38There you go.
- 3:38I think that's how I learned math.
- 3:40I was actually tweeting at Graham Devine and Louder had a conversation where I went to like class in the fifth grade and I knew the word vertices and I corrected the teacher when she said vertexes.
- 3:50And that was my first moment when I knew I was doomed to be a nerd for the rest of my life.
- 3:55That's right.
- 3:55But yeah, so there was a random level generator written in C. It was called Slige.
- 4:00I might have been actually Lige or something with the D at the time.
- 4:03But yeah, so I just wanted to learn what the ins and outs of that was.
- 4:07And so I got into programming pretty quick.
- 4:09Programming the Doom wads, I never actually did it.
- 4:12I just sort of consumed it.
- 4:13I think my favorite was like a Simpsons one or something silly like this.
- 4:17Oh, yeah.
- 4:17But those were not actual.
- 4:19They weren't done in Python, were they?
- 4:21No, no.
- 4:22And I think that might have been before Python's popularity too.
- 4:25But yeah, I think you're right.
- 4:27I think it was just barely came out at the time, right?
- 4:29Okay.
- 4:29Yeah, absolutely.
- 4:30Yeah, it was very early.
- 4:31So Python for me really started, you know, as I got older, I'll say older, but I was still
- 4:36very young.
- 4:36As I got older, I did some contract work for a company called Click Team, who was making
- 4:41a product called Multimedia Fusion.
- 4:43And the idea, if anybody really remembers, it'd be called Click and Play in its earliest
- 4:46days.
- 4:46It was a sort of a grid-based, conditional event, action-based system for programming interactive
- 4:53experiences.
- 4:54And most of the time, those would be games.
- 4:55That's cool.
- 4:56A little like Flash type stuff?
- 4:59Kind of like Flash, but it would actually make binary executables, right?
- 5:02So these are standalone, you know, deliverables, which is really awesome.
- 5:06Like Blender, maybe?
- 5:07Is that closer or a better guess is Blender?
- 5:09Sorry, Blender?
- 5:10Yeah.
- 5:11No, Blender is definitely more focused.
- 5:13It has a bit of scripting.
- 5:14Click Team didn't really get into scripting too much, which is what opened the window of
- 5:18opportunity for me, actually.
- 5:20They had an extension system where you could basically program an extension that would get
- 5:24packaged with the game as a dynamic library.
- 5:27So that was really cool.
- 5:29I learned a lot about programming fundamentals and the low-level stuff from that experience.
- 5:33But I basically built the library that you would use if you wanted to play a module or
- 5:38like an impulse tracker file.
- 5:40So that's like very Amiga, very DOS kind of music.
- 5:43You know what I mean?
- 5:44Right.
- 5:44Of course.
- 5:45That's awesome.
- 5:46So you basically made it possible to plug in like soundtracks into the games.
- 5:50Yeah.
- 5:51And the neat thing about these soundtracks is, you know, you had MIDI and MIDI was already
- 5:55built in.
- 5:55And, you know, MIDI is different on everyone's operating system, basically, especially at the
- 5:59time because the sound fonts would be different.
- 6:01And there was a real desire to have sample-based music.
- 6:05If there are any big video game nerds, I think the one moment in video game music history
- 6:11where you could tell the difference between a sample and MIDI was in Final Fantasy VII at the
- 6:15end, there's a choir that comes in and it's mixing MIDI data with waveform audio.
- 6:19So modules very much can achieve that because it's all sample-based.
- 6:23Basically, you would have like, let's say I wanted to have a violin that's plucking a string,
- 6:27a pizzicato.
- 6:28You would just record like a C4 on that.
- 6:31And then the programming would basically stretch the frequency by using just sample playback rates
- 6:37and manipulation around that kind of idea to create music.
- 6:41And, you know, that's basically how most sample-based synthesizers worked.
- 6:45And still work today.
- 6:46So it was really cool to get into the low level of that, too.
- 6:49That's cool.
- 6:49And it sounds like the timing when you got into this was really good.
- 6:53Like, there's a real magical, the whole, you know, everything is open and can be invented at this time, right?
- 7:00Oh, my gosh.
- 7:01Yeah.
- 7:03I mean, it was such a magical time.
- 7:05There was just so much fruit.
- 7:06I remember one of the things that I learned during that time, I was also really interested in how, you know,
- 7:11different video game consoles were doing music as well.
- 7:14And it came to my attention that there was a format called PSF that was taking PlayStation soundtracks and squishing them.
- 7:20And I came to realize that the library code and the sample code for some of the most iconic soundtracks I listened to growing up fit into like a two megabyte window of data.
- 7:30And I was like, oh, my gosh, how does this work?
- 7:33I still don't know how some of that works.
- 7:35And I actually got to do an interview with the Final Fantasy Tactics composers where I pointed that out.
- 7:40And they were like, how did you know that?
- 7:41Nobody knows that.
- 7:42That was a lot of fun.
- 7:44That was something we did with Louder in the very early days.
- 7:46Oh, wow.
- 7:47That's really cool.
- 7:48Yeah, I feel like people who programmed back then, I don't know, I wouldn't necessarily say they had a different skill, but they certainly focused on different things.
- 7:56And it just, it was so different than today, isn't it?
- 7:59So.
- 7:59Absolutely.
- 8:00I mean, the demo scene basically is kind of the icon of that ideal, right?
- 8:05Like there were people that just wanted to make things because they could make things.
- 8:08And something that is really ripe in creativity, too, is working within limitations.
- 8:13And because we had so many limitations back, you know, in DOS and Windows, early Windows, it was just really fun.
- 8:19You had to figure out like, okay, well, we can't just pump bandwidth, right?
- 8:23We can't have people download 500 megabytes just for the music.
- 8:27So how do you make really good music fit into a much smaller space?
- 8:30Well, there's lots of creative ways to do it.
- 8:32And that's what I was exploring at the time.
- 8:34Okay, that's awesome.
- 8:35So let's jump up to today.
- 8:38Let's talk about Louder.
- 8:40So L-O-U-D-R.
- 8:42Louder.
- 8:43Yeah, Louder without the E.
- 8:44And without the E.
- 8:45If you want to check it out, it's at louder.fm.
- 8:47So I think this is a pretty cool idea.
- 8:50But why don't you tell everyone what Louder is for a start?
- 8:53Sure thing.
- 8:54So Louder is, well, primarily in the public side, I guess, Louder is a distribution platform where artists can come on.
- 9:02And similar to like DistroKid and CD Baby and that sort of thing, this is a tool you'd use if you wanted to get your music on iTunes or Spotify, that sort of place.
- 9:09The thing with Louder, though, that's distinctly different is that we do cover song licensing.
- 9:14So as an artist, when you want to do a cover song, you have to get a license.
- 9:18You have to deliver something in the mail.
- 9:20And then even worse, you have to do monthly tracking of your sales and send checks to publishers whom you use their rights with.
- 9:26Right.
- 9:27So Louder takes all this whole process and built a platform around it.
- 9:31This was something that the team was doing prior to, quote unquote, Louder as acapella records or Joypad records.
- 9:38We did it specifically for acapella artists on iTunes when nobody else was.
- 9:42And we did it specifically for the video game music cover crowd, which is very niche at the time, but it's definitely grown into a very big thing now.
- 9:49And we took that model and said, you know what, we need to make this an open platform where people can come on and just put cover songs online.
- 9:55And so if I were to cover a song right now, I would do it on Louder.
- 9:59I don't have to pay anything up front.
- 10:01And all the royalties for the publishers and the rights holders actually come out when the sales come in.
- 10:06So I'm not actually paying out of pocket to do any of this process, which was really neat.
- 10:10And when we launched Louder, that was that was not a thing that existed at the time.
- 10:14Yeah.
- 10:15So prior to this, was it pretty hard if you wanted to cover a song like one of the songs I really like that is a cover song is the Boys of Summer, the Don Henley song, but covered by Taurus.
- 10:26So it's got like this punk rock theme.
- 10:28Oh, yeah.
- 10:28To it.
- 10:29That's a cool song.
- 10:30Those guys, you know, they don't own Boys of Summer.
- 10:33Right.
- 10:33Don Henley does.
- 10:34Correct.
- 10:35So that's hard.
- 10:37Right.
- 10:37That's not so easy for people to do.
- 10:39Right.
- 10:39No, it's not trivial.
- 10:41And it's not trivial because there's a legal aspect.
- 10:43There's the actual execution, which, you know, has details and they're not fun details.
- 10:47And then there's, you know, you've got to be on top of this process every month, which is a chore.
- 10:52Right.
- 10:52So, you know, it's something that people would do.
- 10:55And you would typically see cover songs when done legally.
- 10:58That is, of course, you typically see cover songs be coming out by people who are represented by labels who knew how to execute licenses very well.
- 11:05And it would be really common to see labels, you know, do covers within their own catalogs.
- 11:10Right.
- 11:10There's a bit of a misnomer in that statement in that the labels who do the sound recordings and the publishers who actually write the songs and represent the lyrics and the musical notes, if you will, are actually different entities.
- 11:21That's a conversation for another time, I think, because you get really down the rabbit hole there.
- 11:25But that just, I think, demonstrates pretty succinctly how difficult this problem can be.
- 11:30Yeah, I can imagine.
- 11:31So, I don't have any musical skills.
- 11:34So, this is not a problem that I suffer from.
- 11:36But if I wanted to cover some song, I come and I create an account with you.
- 11:41And what do I do?
- 11:43I just, like, flat out record it?
- 11:45Or do I have to, like, get you guys to work with the original artists?
- 11:49Or, you know, maybe it's not even the artists, right?
- 11:51Maybe it's the label that actually...
- 11:53Yeah, you're close.
- 11:54Which makes it way worse, I'm sure.
- 11:56Yeah, it's the publisher, right?
- 11:58So, you basically come on, you would have already probably recorded your album or your single, right?
- 12:02So, you're coming to us to execute the distribution aspect as well as the licensing for a product you hopefully already created before you sign up.
- 12:08But it doesn't really matter.
- 12:10And you can do originals, too.
- 12:11That's also not a big deal.
- 12:12But the way you would do it on Louder is you just sign up with your free account.
- 12:16You would submit your album once you've gotten cleared.
- 12:18Because it's a free platform, we have, like, some upfront tax stuff we've got to figure out just because it's receiving a lot of money.
- 12:23And the overhead of doing this for free was a thing that we had to deal with.
- 12:26And that was our solution.
- 12:28Once you've done that, you just upload your album.
- 12:29You send us the metadata.
- 12:30You let us know what songs you've covered.
- 12:32And we take care of the rest.
- 12:33Fortunately, it's not a very long process because in most cases, there's not really a negotiation aspect anymore like there used to be.
- 12:40There is a lovely little section of copyright law that allows us to send what's called a compulsory license.
- 12:46Meaning that as long as the song you're covering has been released in the United States on either, like, a specific digital phono record or a physical one.
- 12:53Meaning, specifically, it has to not be something that's in the background of a video.
- 12:57It had to actually come out as its own product, right?
- 13:00Then we can cover it.
- 13:01Oh, wow.
- 13:01I had no idea.
- 13:02That's pretty interesting.
- 13:03Okay.
- 13:04So that definitely takes it, the legal part, the human involved part out of it.
- 13:09That's cool.
- 13:09Absolutely.
- 13:10The rest of it sounds like it involves a lot of software.
- 13:13And let's dig into the Python stuff.
- 13:15But before we do, you told me right before we hit record on this episode that Lauter has its team sort of scattered about some origins in San Francisco.
- 13:26But that recently you guys transitioned to being a fully distributed team, whereas that was not the case before.
- 13:32Can you give me a little bit?
- 13:33What's the story like that?
- 13:35How's that working out for you?
- 13:35It's actually worked out really well.
- 13:37So in the office, you know, we were a bunch of young guys and some talented, just talented everybody on the team, really.
- 13:44The things that we're suffering from in a small space, looking at just when we have focused conversations, do we have a conference room for that or can we do that on the floor?
- 13:52And what's the consequence if the operations team is getting into a big conversation while the engineers are focusing?
- 13:57These are all problems that are great, but it seemed that we were losing the ability to really hone in on specific problems, you know, just because of all the things happening at once.
- 14:09And I think this is something that happens with a lot of startups specifically.
- 14:12But for a startup tackling such an immense problem like the one I just described to you, and again, I've really only scratched the tip of this, right?
- 14:19You know, it wasn't becoming of us to constantly interrupt one another to try to figure out, you know, how are we going to solve this next problem, which is immediate?
- 14:27And, you know, this also has to do with solving legal problems, right?
- 14:30You know, every legal problem is an immediate problem.
- 14:32It's not necessarily something you can defer.
- 14:34And if you can't defer your problems, how can you take the time you need to solve them?
- 14:38Well, all that said, we wanted to keep the small space.
- 14:41We love it.
- 14:42The operations team and the business team is still in San Francisco, and they are thriving, doing so much great work there now.
- 14:48And the engineers are really benefiting.
- 14:50The funny thing about it, and, you know, since I think Slack came out particularly, a lot of the stuff that engineers typically do today is already really remote compatible, right?
- 14:59Like, so I'm not going to get on the whiteboard and copy paste my code onto a physical medium, right?
- 15:05I'm going to send it over Slack, or I'm going to get in a code collaboration tool of some sort to actually get in there and collaborate, you know, on a computer screen over the Internet, right?
- 15:15So if I'm already doing that big part of it, the next big step was to figure out, okay, well, how do we manage our tasks?
- 15:21How do we stay in sync?
- 15:22And how do we ideate?
- 15:24Well, we were already doing that online, too.
- 15:25We use Asana for task management.
- 15:27We were doing that when we were in the office, sort of like Trello as well, you know.
- 15:31Whiteboarding stuff we were already doing and a few tools that were available online, you know, kind of switching around.
- 15:36But my node was really succeeding for us.
- 15:37I have crappy handwriting, so I love to do things when I can just type it out and really get things out fast.
- 15:43And then I think with tools like Screen Hero, where we can share a screen and actually do cooperative coding, we were already the remote team just in the same rooms.
- 15:51So it worked out really nicely.
- 15:53It was a super smooth transition.
- 15:54The time zone thing, I think, is the biggest challenge.
- 15:57So what happened is we were all in San Francisco, and then due to some family things with a few of our employees that kind of happened at the same time a bit synchronistically, we just said, you know what, this is an opportunity.
- 16:08Give this a try and see if it works.
- 16:10We did a trial period.
- 16:11We found that we were super productive as a result of going remote, and we've stuck with it.
- 16:16That's a great story.
- 16:17And I'll definitely have to get links to those tools that you're talking about because…
- 16:21Oh, absolutely.
- 16:22Yeah, especially the collaborative, the Screen Hero one.
- 16:24That sounds cool.
- 16:25I've done a lot of Skype and various other ones, but I haven't tried that one.
- 16:29Oh, yeah.
- 16:29We love Screen Hero.
- 16:30I think Slack actually bought Screen Hero, so it should be integrated any day now, to be honest, because they bought them a while ago.
- 16:37If you're in Slack, if you've used it before, the call function was actually built by the…
- 16:42It was either Screen Hero or Speak.
- 16:43Actually, I could totally be making facts up.
- 16:45I should double-check.
- 16:47We used a tool called Speak as well before, and we didn't need to use it anymore.
- 16:51Okay.
- 16:52Yeah, that sounds really cool.
- 16:53And I totally agree with you.
- 16:54For some reason, I guess it makes a lot of sense, but we do seem to, as developers, already use tools that are extremely compatible with being distributed or asynchronous work.
- 17:05You know, GitHub pull requests, for example.
- 17:07Absolutely.
- 17:08All these things.
- 17:08So, I think it makes a lot of sense.
- 17:10I've spent the last 10 years, let me do a quick math, yeah, 10 years, working either remotely undistributed teams or, you know, this last year I've been doing my own solo thing.
- 17:22But I've lived that life, and it is really nice.
- 17:25I definitely feel more productive.
- 17:27The time zones are painful.
- 17:28Like, I'm spending this year in Germany, so I end up…
- 17:32Yeah, it's great.
- 17:33But the problem is, like, I've got a lot of meetings in California.
- 17:35So, it's like, hey, Michael, can you meet at 11?
- 17:38PM on a Friday night?
- 17:39It's like, you know, I didn't want to see my wife anyway, right?
- 17:42Right.
- 17:43So, you know, it depends how far it goes.
- 17:44But within the U.S., within a few hours, it's pretty nice.
- 17:47The time zones almost work for you, right?
- 17:49You get, like, that dead zone where you can actually get stuff done.
- 17:51Absolutely.
- 17:52And it's funny you say that you're in Germany.
- 17:54We've actually got contractors in Berlin right now.
- 17:56And I think that's kind of nice about me being in the East Coast is that I'm right there smack in the middle of the West Coast.
- 18:02And then our contractors who are in Germany and then the team that we have in the West Coast, it's really easy for me.
- 18:08To kind of get the sink from them at the end of their day.
- 18:11And at the beginning of the West Coast day, just kind of give them a brain dump on what's going on.
- 18:15And that's worked pretty nicely.
- 18:16You know, the other thing, too, you mentioned you've been happier.
- 18:19I think that's something we've definitely felt.
- 18:21You know, when you're able to live where you need to live, you know, there's definite advantages.
- 18:26And speaking as somebody who's just recently moved away from the Bay Area, I'll tell you the amount of money that we're saving just on the cost of living is it was like getting a huge raise.
- 18:36Right.
- 18:37But no actual money needed to be spent by the team to achieve that outside of the I think we've had some frustration just setting up Ohio taxes and stuff.
- 18:45But that kind of that kind of HR stuff's got to happen, you know.
- 18:48Yeah, sure.
- 18:49Yeah, that's really cool.
- 18:50This portion of Talk Python To Me has been brought to you by Rollbar.
- 19:07One of the frustrating things about being a developer is dealing with errors.
- 19:11Ah, relying on users to report errors, digging through log files, trying to debug issues, or a million alerts just flooding your inbox and ruining your day.
- 19:19With Rollbar's full stack error monitoring, you'll get the context, insights, and control that you need to find and fix bugs faster.
- 19:26It's easy to install.
- 19:28You can start tracking production errors and deployments in eight minutes or even less.
- 19:32Rollbar works with all the major languages and frameworks, including the Python one, such as Django, Flask, Pyramid, as well as Ruby, JavaScript, Node, iOS, and Android.
- 19:41You could integrate Rollbar into your existing workflow, send error alerts to Slack or HipChat, or even automatically create issues in Jira,
- 19:49Pivotal Tracker, and a whole bunch more.
- 19:50Rollbar has put together a special offer for Talk Python To Me listeners.
- 19:54Visit rollbar.com slash Talk Python To Me, sign up, and get the bootstrap plan free for 90 days.
- 20:00That's 300,000 errors tracked all for free.
- 20:03But hey, just between you and me, I really hope you don't encounter that many errors.
- 20:07Love to buy developers at awesome companies like Heroku, Twilio, Kayak, Instacart, Zendesk, Twitch, and more.
- 20:12Give Rollbar a try today.
- 20:14Go to rollbar.com slash Talk Python To Me.
- 20:17Let's talk about Python.
- 20:26Right?
- 20:26So Python, you said, is pretty central to what you guys are doing.
- 20:29How's it involved?
- 20:30Yeah.
- 20:31Sort of describe your architecture.
- 20:32What pieces, what moving parts are in there and how does Python fit into it?
- 20:36Oh, absolutely.
- 20:37Okay.
- 20:38So just I think to set the scene, right?
- 20:40So Louder is built on Google App Engine, which is on Google's cloud platform.
- 20:44And we've been on App Engine pretty much in one way or another since its inception.
- 20:49I started out, actually, the way I met the Louder team before I was working for them or with them, rather, to make Louder, was on a product called the Game Music Bundle, where I needed to build a store really quickly.
- 20:59And the way to do that, I found, was to build it on this new thing called App Engine.
- 21:04And it was a total, you know, it wasn't really a risk because I don't think that failure would have been that big of a deal for something that was new like this and just something I built in my free time with some friends.
- 21:12But to have it succeed in the way it did was really a proof that, like, okay, you can develop fast, you can iterate quickly, you can deploy quickly, and you can scale massively.
- 21:22And that was like, holy crap, this is really cool.
- 21:25So I became immensely fond with App Engine at that time.
- 21:28And I brought that into the Louder experience.
- 21:30What year was that?
- 21:32I want to say 2012, maybe even 2011.
- 21:34Okay, yeah.
- 21:35So that's pretty fresh.
- 21:36Like, App Engine probably still had that new cloud smell, right?
- 21:39Oh, yeah.
- 21:41It had the new cloud smell.
- 21:42It had the undocumented appeal.
- 21:43The whole thing was there, right?
- 21:45Exactly.
- 21:46Yeah, definitely.
- 21:46No, it was diving deep.
- 21:49It's cool.
- 21:50And Python was one of the two first available languages, or was it the first available language?
- 21:55I wouldn't know App Engine's history well enough to know.
- 21:58I know that as far as what's on their managed platform, your look, or managed runtimes, I guess you'd call these, you've got Python, Java, and Go.
- 22:06Go wasn't even around at the time, for sure.
- 22:08Right, and Java came later, so I think it was Python.
- 22:11Okay.
- 22:11I'd say it's probably Python, because Java, I don't recall being an option.
- 22:15I knew Java, and I probably would have started with Java, to be honest.
- 22:19Very glad I didn't.
- 22:20Yeah, for sure.
- 22:22So App Engine is really good at getting you started.
- 22:25I haven't done much work on it.
- 22:27I did check it out for a few projects.
- 22:29It seems like you can run real legitimate stuff there, at least back in the time frame that you're talking about, for almost free, whereas the other hosting options in that time frame were way more expensive, right?
- 22:43Yeah.
- 22:43Yeah.
- 22:43The nice thing, too, about Google is that they've been really aggressive on keeping up with pricing.
- 22:48And I think a few years ago, I was at the conference that they had.
- 22:55And they were cutting their data storage costs.
- 22:57I don't know what happened at one point, but they completely undercut Amazon in a big way, and Amazon responded to it.
- 23:04So it was really nice to kind of be on the front edge of those pricing changes.
- 23:07And data was really cheap.
- 23:09And the nice thing, and just kind of bring it back to Python here, when you're using App Engine, is you can just open up – this is not a good Python practice, by the way – but you could just open up one file, right?
- 23:19Stick your basic handlers in there, put your data schema in there in the form of a Python class, and integrate it with one of their API frameworks, which is just really beautifully written.
- 23:28I think Guido actually is the guy who wrote the NDB API in Python for them.
- 23:33So whenever I work with it, I've always got this tingle of magic, because it's basically doing future management with generators.
- 23:41And sorry, I could go on a complete tangent about this.
- 23:44That's really cool, yeah.
- 23:45Yeah, so I really love it.
- 23:47And there's definitely some grace to how it was designed.
- 23:50And then all the APIs that they have available, like you've got a built-in data store.
- 23:54You've got, obviously, the actual platform itself.
- 23:59They've gotten to the point with Cloud Platform now where you've got a container engine via Kubernetes and Docker, right?
- 24:04You've got managed VMs, which is the auto-scaling, just computer instance sort of thing.
- 24:09So, man, there's a lot of stuff in Google.
- 24:11And I think people come and they look at Amazon, and they think that's the de facto.
- 24:15But in reality, you've got a really aggressively smart platform with Google.
- 24:21And then also when you consider the things that Google's doing with, like, data flow and machine learning.
- 24:25And we all know where Google is with machine learning, right?
- 24:28So, like, to have them expose those tools as really smart frameworks and APIs is really exciting as well.
- 24:34And it's always been really fun to work with that kind of technology.
- 24:37Yeah, I'm sure it was.
- 24:39So, back then, that sounds like you were probably working with a platform as a service, not infrastructure as a service.
- 24:44But...
- 24:45Yes.
- 24:45Yeah, because that came along later.
- 24:47Good buzzwords.
- 24:48Yeah, of course.
- 24:49So, one of the things that I think is really cool, and you talked about how cool it was, is that there's all these APIs you can use.
- 24:57But it also feels like if you write your code for the Google App Engine, it's kind of like it's there, right?
- 25:04Because you can't extract it and, like, say, move it to AWS or to a VM, right?
- 25:08Sure.
- 25:09Yeah.
- 25:09And that's one of those things when you're looking at it and you're thinking, okay, well, we need some data liberation.
- 25:16How are we going to deal if Google one day is like, this is not a priority.
- 25:20This is a waste of our assets.
- 25:22We need to just cut App Engine, right?
- 25:24Fortunately, and this is really awesome.
- 25:26I don't remember when this came about, but there was a complete initiative of a team of people who was dedicated to making sure that all of the core APIs and frameworks for App Engine were available on an open source stack.
- 25:38And so I don't actually have the name of it, but I'll definitely try to find it and send it your way.
- 25:43But there is a way that I could take the whole code base and pull it off App Engine proper and actually run it on something like AWS if I wanted to.
- 25:51Oh, wow.
- 25:51Now, I think there's certain APIs that we'd be challenged with changing.
- 25:56Fortunately, kind of internally at Loudr, we do – when it doesn't make sense to use one of their crazy cool frameworks, we are, for example, using Elasticsearch.
- 26:04We could use BigQuery or something as well.
- 26:06But there has been an emphasis on making sure that if the day comes that Google's like, screw you guys, we're going home, that we're not going to be left in the dirt.
- 26:15Yeah, we're taking a ball and we're going home.
- 26:17Yeah, I don't see that happening.
- 26:20I mean, this whole cloud computing thing is really – it seems to have some actual legs.
- 26:24Like I just read, I think it was today, that Amazon's profits – not revenue – profits jumped 800%.
- 26:31Oh, I'm sure.
- 26:32And the majority of that was from AWS, right?
- 26:35Oh, yeah, absolutely.
- 26:35It wasn't doing better with books or, you know, things like this.
- 26:38So very cool.
- 26:39I think Google App Engine will definitely stick around.
- 26:41So maybe tell us about some of like – what does your architecture look like?
- 26:45What are the pieces?
- 26:46What kinds of things do you guys need to do in there?
- 26:48Sure.
- 26:49So we very much have that microservice mentality, right?
- 26:52We're building very segmented APIs to solve specific problems.
- 26:56I think one of the cornerstones of the Louder framework is built on this concept of a task queue.
- 27:01It's literally called Task Queue in Google, but that would be like Cassandra.
- 27:04But, you know, you can implement task queues in several ways, of course.
- 27:07But Google's got this nice task queue concept.
- 27:09And so we're building a lot of things, you know.
- 27:12So I guess our problem space we like to divide into three ideas or three core problems.
- 27:18And those problems are matching, fulfillment, and administration.
- 27:21I kind of talked to you about how you could come to Louder and you could say,
- 27:24okay, I'm going to cover Boys of Summer, right?
- 27:26It's our job to match your sound recording and the information you provide to us
- 27:30with the actual composition and know who the publishers are attached to that.
- 27:34So we're getting lots of ingestion from rights holders.
- 27:36Lots of data feeds are involved.
- 27:38So, you know, there's queues there, right?
- 27:40There's indexing problems so that we can search and find things quickly.
- 27:43That's good for elastic search, right?
- 27:44There's a lot of machine learning involved because we have to do this at scale.
- 27:48It's not just, you know, one or two people coming to get licenses.
- 27:51We have an enterprise service where we're doing this for big businesses like DistroKid, for example,
- 27:56which requires us to be able to, you know, we can't just have humans churn at everything.
- 28:00So there's that aspect of it as well.
- 28:02And I, you know, and I think the way we look at it, we kind of take those core problems and we segment our code into microservices that represent them.
- 28:09Then, of course, you've got the shared microservices for things like the user management.
- 28:13And, you know, we can go into complete tangents about this as well.
- 28:16But I think it gives you an idea of how we work and what we think about.
- 28:19We also have a big emphasis on, you know, not reinventing the wheel.
- 28:23So we like to utilize and contribute back to open source projects.
- 28:26Google's worked on something called a pipeline library for App Engine, specifically in Python,
- 28:32that we've given a lot of contributions to just because we so heavily rely on it.
- 28:37We've also been working with one of our really talented contractors helped us build an open source framework for an API in Python called Pail.
- 28:44And I really, really like the work that we've done there simply because it's the most Pythonic way to do a RESTful API that I've seen yet.
- 28:51The built-in documentation built into, like, the way you manage arguments on the API level is just something that's really fluent.
- 28:57And I'll share a link to that with you at the end of this call just so you can kind of get that out.
- 29:02Yeah, awesome.
- 29:02Yeah, I'll definitely put that in the show notes.
- 29:03It sounds really cool.
- 29:04So if I'm writing a web app on Google App Engine, do they have their own framework or is it like Flask or what's the web actual API?
- 29:16Yeah, so you've got a few choices.
- 29:18Web App 2 is what we use.
- 29:20So you're using that framework and they're kind of just built on top of it.
- 29:23You've also got Flask available.
- 29:25And then, you know, when you're on App Engine, you do have the choice between the managed platform, the managed runtimes, I think they're formally called.
- 29:31And what's called a managed VM, which is just a computer.
- 29:34It's just basically like an EC2 instance, a virtual instance, right?
- 29:37And you could do whatever you want on a virtual instance.
- 29:40On the App Engine runtime that's managed that we use for a lot of our code, you've got a really tight integration with the data store, super low latency.
- 29:47You've got access to all those.
- 29:49I think I mentioned the NDB API where you could use generators to manage futures.
- 29:53That kind of writing is really Pythonic and it's helping us write really efficient code really quickly.
- 29:58You know, I think the problem of dealing with lots of data, too, and all the complicated sort of business stuff we have to do,
- 30:05it is really behooving to have a situation and a platform already built for us where we can say, OK, go fetch this entity.
- 30:11And while you're doing that communication, get this work done.
- 30:14And then this work is done.
- 30:16OK, now maybe that response is ready and we'll block when we need to.
- 30:18And to write in tasklets where you're just yielding futures, the way that the runtime and the loop works in there, it feels a little bit like black magic.
- 30:27But you can actually just go look at it.
- 30:28I'm fairly confident that I know this is true because I look at it all the time.
- 30:33The NDB framework itself is also just out in the open.
- 30:36You can go look at the code for it.
- 30:37So it's just nice to be in that kind of space, right, where you've got the Google level engineers who have built a platform, you know, that is highly technical.
- 30:45And like I mentioned, Guido being involved, like it's just out of this world.
- 30:49Obviously, he's a Dropbox now and another really fun thing to do.
- 30:53But I think I think you get the gist here.
- 30:55Like it's it's great for as far as I'm concerned, like being on a platform as a service allows me to not worry, especially as a CTO on like the sort of operations problems like, oh, is this instance screwed up for this reason?
- 31:07Oh, do I need to hop in a shell to fix this trivial problem?
- 31:11Now, that's most of that stuff's already done for us.
- 31:12So it's really allowed us to focus on the problems that we need to solve and be really efficient and making sure that we're not spending our time doing work that really probably shouldn't be doing.
- 31:21Right.
- 31:21Yeah, yeah, that's awesome.
- 31:22Yeah.
- 31:23I mean, would you ever consider having like a data center in your own at your own company again?
- 31:29I don't know.
- 31:30Maybe it's pretty hard.
- 31:32It's pretty far fetched, though.
- 31:33I don't know.
- 31:34Well, I think usually what I would say that ever makes an engineer frown is business reasons.
- 31:40There would be reasons to have data centers like fortunately, you know, we've got Google's level encryption.
- 31:44So we've got confidence that they can't read certain things that we've got on there.
- 31:48And, you know, whenever we have anything super sensitive, we're using public key encryption on the server so that that private key is only in the hands of developers.
- 31:54Like people even get access to the data couldn't possibly read what's in there for a lot of the really sensitive stuff.
- 32:00So with those kind of technologies really blossoming, especially lately in encryption, like I don't feel that there's too many cons on the cloud.
- 32:08Right.
- 32:08Like I should put a caveat on there saying technical reason.
- 32:12Oh, right.
- 32:13Yeah.
- 32:13No, you probably should have.
- 32:14No, I can't see much technical reason.
- 32:16Cost might be one.
- 32:18But like you've got the pro and the con.
- 32:20You've got to balance.
- 32:20Right.
- 32:21Like what happens if your business blows up overnight and you haven't, you know, taken the time to build up your data center, put the resources in, have those guys build that sort of thing.
- 32:29You know, it's like, what's the point?
- 32:30I think that nowadays if you're going to start a new project, what you should do, you shouldn't do anything.
- 32:36But what might work for you is to build it on the cloud first and then figure out if you have a need to go to a data center unless you've got a very specific reason going and why you don't want to be on the cloud.
- 32:46Right.
- 32:47And then, you know, thinking about what if Facebook was built today, right?
- 32:50Like Facebook is, I've recently seen a lot of advertisement targeted at me because I'm a developer, I guess, about how they've got this awesome data center and the brightest minds are working on the Facebook product at that level.
- 32:59And, you know, that's really exciting and really cool.
- 33:02But honestly, would they have done that in this environment today?
- 33:06I'm not entirely so sure.
- 33:07Yeah, I agree.
- 33:08Although it is interesting, you mentioned Guido and Dropbox.
- 33:11I doubt Guido has anything to do with this, but they're moving out of AWS into their own data center.
- 33:17But fascinating.
- 33:17It's interesting, right?
- 33:19But it's like that's a pretty long ways to grow before you grow in the cloud.
- 33:23So, yeah, yeah.
- 33:24Very cool.
- 33:24Absolutely.
- 33:24And, you know, on the flip side, you've got a company like Spotify who just went on to Google Cloud.
- 33:30Right.
- 33:30So they're moving off their data centers and go in the opposite direction.
- 33:33Yeah.
- 33:34It's an exciting time to watch all these things happen.
- 33:36So you mentioned machine learning.
- 33:39What's the story there?
- 33:40Is that like scikit-learn and what problems are you actually solving?
- 33:43Yeah, totally.
- 33:44So like I mentioned, a big aspect of what we do is matching content to content, right?
- 33:48So we've got metadata.
- 33:49This is kind of one of the funny problems in the music industry that I'll quickly set up the scene for you.
- 33:54I did mention earlier how publishers, the entities who represent the rights holders of the music itself, the notes and the lyrics, the guys who are, you know, actually doing the notation, that sort of thing, are separate from the labels who represent the artists, the songwriter.
- 34:07Or not the songwriter, but the sound recordings, right?
- 34:09The band, the killers might be this group of guys.
- 34:13And then the actual people who wrote their songs are represented by a publishing team that have a different set of tasks.
- 34:18If you ever go to Hallmark and you buy a card that has like the Beatles lyrics on it, you bet your bum that Hallmark has to pay the publisher that owns the represents the Beatles.
- 34:27Right.
- 34:28And I'm not sure that that's Apple Records because Apple Records is the label side.
- 34:31So when you've got this segregation between the publishing data and the label data, one of the fun things that happens is the publishers don't always know who is using their music.
- 34:40And when they send out the song information to their partners, they're not always including like, OK, here's the song.
- 34:46Happy birthday.
- 34:47It was written by these people.
- 34:48Right.
- 34:48They know who it was written by, but they don't know who necessarily recorded it.
- 34:52And you can imagine, especially in that example, a lot of people have recorded happy birthday to you.
- 34:56Right.
- 34:57And then, you know, the labels on the other side will send content distributors and they won't include the publishing data because they don't necessarily know it either.
- 35:04It's not it's not a connected chain.
- 35:06So when you're looking at two sets of metadata and you need to start drawing lines between them, you start thinking, OK, I can either throw rocks at this or I can have a statistical method for solving that problem.
- 35:18And I think as everyone who's listening knows, Python really excels at these machine learning problems.
- 35:22There's lots of frameworks and lots of libraries and lots of tools that come to mind very quickly when thinking about machine learning in Python.
- 35:29What's nice is, you know, we've internally built this really abstract framework for doing machine learning based problems in terms of how it integrates with the ES level and with the platform level.
- 35:42Right.
- 35:42So we're able to quickly look at two different models of information and do some really cool things on the learning side, you know, with exporting training data, with setting a model, with changing features, that sort of thing.
- 35:52So I think Python really paid off there.
- 35:55Awesome.
- 35:55And that's like it learn or is it different?
- 35:58It's your thing.
- 35:59It's it's a bit of an internal thing.
- 36:01And then honestly, I'm not the guy who does the low level machine learning stuff to know what tools he's really using.
- 36:07But I do I do oversee the integration on the platform side.
- 36:11And that's where it's been really fun.
- 36:13So machine learning has been a very big learning process for me going into this.
- 36:17And right now, I think you're going to ask me about hiring later.
- 36:19But we've been looking for people who are really talented in that space.
- 36:22And we've actually brought on really recently some great engineers in that space.
- 36:25And it's like, oh, my gosh, the things you can do.
- 36:27It's really quite fascinating.
- 36:28Yeah.
- 36:28This episode is brought to you by SnapCI, the only hosted cloud based continuous integration and delivery solution that offers multi stage pipelines as a built in feature.
- 36:55SnapCI is built to follow best practices like automated builds, testing before integration and provides high visibility into who's doing what.
- 37:02Just connect Snap to your GitHub repo and it automatically builds the first pipeline for you.
- 37:08It's simple enough for those who are new to continuous integration, yet powerful enough to run dozens of parallel pipelines.
- 37:14More reliable and frequent releases.
- 37:16That's Snap.
- 37:17For a free, no obligation, 30 day trial, just go to snap.ci slash talk python.
- 37:23I don't know a ton about machine learning.
- 37:33I know a little bit about sort of neural networks and those kinds of things.
- 37:36But do you think that we're going to get to a future where we have software that does things and we don't know why?
- 37:44We cannot know why?
- 37:45Oh, boy.
- 37:46Yeah.
- 37:47Let's go down the rabbit hole.
- 37:49So that is a great question.
- 37:52And you think about neural networks and you think about, you know, throwing rocks.
- 37:55I think that we've got the limiting factor with Moore's law a little bit on that.
- 37:59However, as we get into quantum computing, right, that's when things get pretty interesting.
- 38:05And I think machine learning is just kind of inept into that.
- 38:08Like, if you're combining machine learning and quantum computing, I think you can start to scratch the surface on questions that are as far fetched as, you know, what is consciousness?
- 38:19Can we really even quantify that anymore when you've got a machine making decisions?
- 38:23And it might identify the need to change some of its internal programming.
- 38:26You know, like if a machine learned quantum computer can train itself to iterate upon itself, what happens next, right?
- 38:36Yeah, it gets pretty crazy.
- 38:38I mean, even before it like, you know, it goes that far.
- 38:41Like, if you're trying to just debug something or you're trying to manage like complex machine learning in like production, right?
- 38:50Like, it might start making decisions and you're like, I don't really know why it's doing that, right?
- 38:56But maybe it should or maybe it shouldn't.
- 38:58Yeah, so I mean, like, we have that.
- 38:59We already have that today, right?
- 39:01Like, so we have a trained model, right?
- 39:03And we might see that it's doing something a little fishy on certain results.
- 39:08And we might want to dive into it.
- 39:09Well, it's not necessarily just like look at it and go, oh, well, because the code path is this and if this than that, it's really easy to see that.
- 39:17Well, actually, it's not anymore because you've got a statistical model you're basing it on.
- 39:20You've got to look how different features impact one another.
- 39:23You have to look how combinations of features, you know, work together.
- 39:26If this feature is scored highly and this other feature starts to go down, does the confidence go up or does it go down?
- 39:33Like, none of it is necessarily intuitive anymore and it's all numbers.
- 39:36So the next step from that is exactly what you're saying where you're going, well, what about when the machine starts to do things that we can't even debug?
- 39:42And I think that's where you're looking at, you know, internal code patching where a program can look and understand its own code base enough that it can change it in such a way that it starts to only work in a statistical way, right?
- 39:55So it trains itself based on a conditional pattern and then you feed it correct and incorrect results and it starts to learn, you know, this model makes more sense than that model.
- 40:04And then at some point it gets so confident and so well trained and you've defined the features so precisely that it no longer has a conditional code path because everything that it does can be decided on a statistical model, right?
- 40:16And that's just talking like the two-dimensional equivalent of machine learning, I think.
- 40:20When you get into neural networks and you get into the sort of conditional-based machine learning, that's when it's going to – it's when it goes next level, right?
- 40:28Yeah, and then you get like the forest, which are groups of – I mean, it just gets really interesting.
- 40:32You know, the part you started to touch on, if people are interested and they want to see a really great movie that like sort of explores that in a science fiction way, Ex Machina is a really good movie that –
- 40:45I recently watched that and it really freaked me out.
- 40:47Yeah, that's one of those things.
- 40:50I think – I mean, just for the people who haven't, I think it's worth talking about a little bit.
- 40:54You've got a situation where this machine has learned, you know, basically what it needs to survive and it's learned how to – spoiler alert, I guess.
- 41:02It starts to learn how to interpret human emotion based on the output of the human response, right?
- 41:09So like if it can look at a face and determine that this emotion is that and then it's got, let's say, the entire history of all the data in Google to train upon.
- 41:17Let's just use that as a real-world example.
- 41:19If you can actually build a physical medium for this thing to exist in, yeah, it's going to start to do some really interesting things.
- 41:28And like you touched on, I think there's this point when it stops being conditional.
- 41:33It stops being functionally programmed, right?
- 41:35It's getting to the point where it's saying, is this working for me or is this not?
- 41:40If not, try something new.
- 41:42And I think that's – you've got some really talented people right now who have spoken out against AI.
- 41:47And I just – this feels like the natural progression.
- 41:50So just throw a rock at me if you want for going down this path.
- 41:53But like when you've got the guys coming and saying AI is a bit scary, it's because in my opinion, if a computer is going to do that trial and error and trial can be somewhat random, who knows what that means and who knows how it quantifies success?
- 42:06Because the motivations of a machine that doesn't necessarily have features, if you will, that are targeting emotional or human factors and responses, you're definitely getting a situation where that can be kind of scary.
- 42:20And that movie is why that's scary.
- 42:22That movie is the perfect quantification of the worst-case scenario for an artificial intelligence.
- 42:27Yeah, it was – it's definitely worth checking out.
- 42:31I recommend it.
- 42:32But super interesting.
- 42:33You know, of the people who spoke out about AI, a lot of them I was kind of like, well, you know, how much really do they know about software?
- 42:40It's kind of like an amorphous concept.
- 42:42But Elon Musk, like that's a guy who is actually creating the future.
- 42:48So I definitely give his statements more credit.
- 42:52Stephen Hawking too.
- 42:53I mean you've got a lot of smart guys saying stuff like this.
- 42:56I have to find this for you too.
- 42:58But I found this talk by the guys who were working on the first quantum computers.
- 43:03And for my sci-fi nerds, it's really fascinating.
- 43:06They're big black boxes.
- 43:07And he refers to them as black monoliths.
- 43:10And I just eat that up, right?
- 43:11Nice.
- 43:11But he's talking and he literally talks about the way qubits work.
- 43:14And he gets into this idea that, you know, it is kind of like you're pulling from – and this is going to go totally fringe.
- 43:21But it's like pulling from two different universes, right, that are parallel.
- 43:24But you've got a point where they converge and that point is the qubit.
- 43:27And everything that comes beyond the qubit is sort of like the shadow of what happens.
- 43:31And the way that these things work, he goes and talks about how, you know, the biggest challenge is how you keep all the chips at near absolute zero temperatures, which is a scientific feat in and of itself.
- 43:42And the stuff that he says in this talk is just like the predictions he's making and his colleagues are making are that in 15 years, computers are going to be able to do anything humans are going to be able to do and much better because they can train and iterate themselves.
- 43:58And, you know, we like to talk about it and joke that it's science fiction.
- 44:01But science fiction is becoming reality.
- 44:03It always has followed that trend.
- 44:05We've completely diverged from music.
- 44:07But, like, absolutely, it's one of these topics that is really fascinating.
- 44:11I think quantum computing is something to keep your eye on, especially in the next five to ten years.
- 44:16Yeah, I totally agree.
- 44:17To me, honestly, quantum computing is scarier than AI.
- 44:21Well, it is in its sense kind of like AI.
- 44:25If you put them together, then you're...
- 44:26Yeah.
- 44:26You put them together, you get all sorts of trouble.
- 44:28But even basic things like encryption, right?
- 44:31Like, what happened if tomorrow we found out that all encryption was useless?
- 44:36You know, what would that do to the economy, to jobs, to businesses?
- 44:40Like yours that need privacy?
- 44:42I think it would be really an immediate problem, I think.
- 44:46It would be...
- 44:47I think it would be an upheaval of current paradigms that we have in society.
- 44:51But, you know, one thing that humans are really good at is adapting, right?
- 44:54So, you know, let's say encryption goes out the window.
- 44:57I think humans will very quickly become aware that, okay, there is a real need for transparency in the world, you know?
- 45:02And we'll find a way to adapt.
- 45:04And you want to look at an example where that's happened.
- 45:06Bitcoin was the perfect prototype of, for example, a currency that was trying to solve so many problems by being transparent.
- 45:13And I can tie this back to music because one of the things that's really trending in this industry that I'm in right now is the idea of having a blockchain for music royalties.
- 45:23So whenever a usage is generating royalties, what they want to do is use a Bitcoin-like technology to attribute the stream or whatever is generating the money and transparently show who it's getting paid to.
- 45:34That would attempt to solve this huge, huge problem of why aren't artists actually getting paid for their content?
- 45:40Why aren't songwriters getting paid for their content?
- 45:42Right now, though, and to go back to transparency, the problem is that a blockchain doesn't work unless the data it's attached to is transparent.
- 45:49And right now, rights holders and other interested parties are not always privy to just saying, oh, this is all the music we own.
- 45:56And this is how much to pay us because there is value in that data.
- 46:00And they're able to make intelligent business investments and make some money by putting value to that information.
- 46:07Yeah, that's a really cool idea, but I can definitely see the real-world challenges.
- 46:11All right, so let's bring it back to Python just for a little bit.
- 46:14So you talked about the machine learning.
- 46:18You also talked about some other cool things.
- 46:20You said this RESTful API that you guys open source called Pale was really cool.
- 46:25Tell us a bit more about that.
- 46:26Yeah, so Pale is nice.
- 46:29And the reason I like Pale so much is we're writing things in such a way that let's just start from the beginning.
- 46:35If I'm going to build a new API, and actually I'm doing this by making a website for my own music where you can come.
- 46:41And I just wanted to have like Bandcamp music integrated into it so I could link everything to Spotify.
- 46:46So the way that I did this was I just pulled down Pale, right?
- 46:49And Pale you can implement with Flask or Web App 2.
- 46:52And you just get off the ground writing a RESTful API in a very Pythonic way.
- 46:57So you manage information that comes in responses in the form of resources.
- 47:02And you define those very succinctly.
- 47:04And they can nest really nicely.
- 47:06So I can have a user resource that mentions a password resource if that was structured in a smart way.
- 47:12And then you've got the concept of arguments that is going to handle casting.
- 47:16So you've got a string argument.
- 47:17You've got a Boolean argument.
- 47:18And the way that – why this is so good is because you kind of remove serialization from how information is handled.
- 47:26So you can have a JSON input, which is ideal in my mind.
- 47:30But you could also have an XML input.
- 47:32And what you're doing is you're doing a really nice kind of object-oriented solution of keeping the problem where it belongs.
- 47:39So, like, I'm not going to try to struggle with a string argument problem outside of the string argument class, right?
- 47:45And this is a trivial example of strings.
- 47:48But when you get into structures, you know, like currency types or other structured types of information where you might have a need to do all sorts of fun stuff, like permissions is a great one.
- 47:58So on Louder, for example, on our API, we have, let's just say, like an album resource.
- 48:03And it represents an album on the store.
- 48:05The thing is, when you are the owner of the album versus the public user looking at this album, you're not going to necessarily need to see the same fields.
- 48:15And one of the challenges when building any new framework is how do I actually manage those permissions in an intelligent way where my code and my permissions logic isn't all over the place?
- 48:24Pale provides a solution to that in that we've got this ongoing context.
- 48:29And the context is passed every time any field or resource is going to be rendered.
- 48:34And the context is going to carry all the things about the request, the HTTP request, all the arguments that come in that have already been deserialized to Python dictionaries.
- 48:43And it allows you just to look from, let's say I'm coding the album resource and I need to say these are the fields I want to expose.
- 48:49And I've already defined the fields at the class level.
- 48:51So the album has like a track, number of tracks, which is an integer argument.
- 48:55It's got the name, the string, all that stuff.
- 48:58And all I have to necessarily do is say context.
- 49:01Tell me who's accessing this.
- 49:03Let me determine what the permissions model is.
- 49:05And that itself can be abstracted, you know, however you want to when you implement.
- 49:08And then it's the resource's responsibility to decide how it's going to render arguments.
- 49:14So this makes things like expanding nested relationships really a lot more easy to tackle because you don't have to go into some really nasty conditions if you're thinking about just like how would you do this from scratch?
- 49:27What would you do?
- 49:28I think there's other cool API frameworks out there, but this is the first time that I've used one where I felt and I don't know if it's maybe my App Engine or Web App 2 kind of background to coming in where this context idea is so fruitful.
- 49:40But having that context and having all your permissions and all these challenges, whatever you want to do, be passed at that level where the request is kind of contained like that, it just makes programming this whole problem really nice.
- 49:53So, you know, I'm going back to my open source like website thing that I'm working on.
- 49:57It's really easy for me to quickly build something.
- 49:59I think in a day when I was using Pale, I was able to scrape Bandcamp, put all my albums into the API, have a situation where I could write a React front end and actually show the albums, have search for the albums, have album specific pages, have those streams play off Bandcamp and off Spotify literally within a day.
- 50:19And that feels ridiculous to me for some reason because I guess when I got started doing this in 2012, 2011, whatever it was, it was not that fast.
- 50:27Like, especially to do it.
- 50:28It was like a three month project or something, right?
- 50:31Right.
- 50:32And to do it in a restful way to like that, especially I guess it was just at that time and there wasn't necessarily as large of a push for it.
- 50:39But, you know, when Pales got this real big emphasis on being restful, which is the most intelligent way to do an HTTP API at this point, like it's just beautiful.
- 50:49Like you get to specify endpoints as classes and you can determine, you know, this endpoint and this endpoint might share the same URL, but they have different methods.
- 50:56And it's very, I mean, it's just straightforward.
- 50:58That's really cool.
- 50:59In addition to that.
- 50:59Very nice.
- 51:00You get to use, like to go back to this argument concept, I can have a URL argument and take advantage of web app twos like URI4, for example, and just dynamically determine what the URL should be for a canonical resource.
- 51:13And that's Pale, like a lot about Pale in a small amount of time.
- 51:17But yeah, I mean, that's why I'm excited about it.
- 51:19Okay, cool.
- 51:20Yeah, I hadn't heard of it.
- 51:20So I'm definitely going to check it out.
- 51:22That sounds awesome.
- 51:22I like it.
- 51:23Yeah.
- 51:23There's one example app that's like included in the code base.
- 51:26And I would like to solve that by having more examples.
- 51:29I think I'm talking about this thing that I'm building.
- 51:31It's not quite open source just because, you know, like when you start your project, you want to make sure it looks nice before you put it out and that it's usable for others.
- 51:38But that'll actually be a good example of an App Engine Pale integration that people can throw up on their website very quickly.
- 51:43I think it'll be, if all goes well, I think that the more technically inclined musicians that are trying to do some really interesting things with their websites might transition to.
- 51:50That's the goal.
- 51:52Yeah, that sounds very cool.
- 51:54So one of the sort of hot topics right now, given that we're coming up on the end of life for Python 2 in 2020, is whether people are using Python 2 or are they using Python 3.
- 52:06How about you guys?
- 52:07Yeah, it's 2.7.
- 52:09So these are things that we have to face.
- 52:11App Engine's got Python 3 support as of relatively recently, I think.
- 52:16Fortunately, in terms of how we've written code so far, I've done some early assessments of it.
- 52:21I don't think it's going to be too problematic to port over.
- 52:23It's just one of those things whenever you're doing like a big version change that it's like, oh my gosh, how are we going to gracefully transition?
- 52:30Are we going to be able to do it in time?
- 52:31Oh my gosh, what's the this and that?
- 52:33And, you know, I think, you know, while Python says that they're going to stop 2020 is going to be the end of the lifespan,
- 52:40I don't think that we're going to functionally see Python 2 die in the same way that Josh Welch will still play Doom on his computer and it's not the new Doom.
- 52:48I think Python 2 is going to die like Windows XP is dying, which is to say that I go to plenty of places and they take my credit card and it interacts with a thing that has Windows XP on it.
- 53:02It makes me nervous.
- 53:03But they do it or, you know, I think the U.S. military, at least for a time, was paying Microsoft extra for support even when it became unsupportable.
- 53:12You know, things like this.
- 53:12Yeah, absolutely.
- 53:13I don't know.
- 53:15Am I going to do like...
- 53:15I think that's how Python 2 is going to go.
- 53:17I think I'm going to like pip install requests and then pip is going to be like, installing Python 3.
- 53:21Suck it.
- 53:22No, Kenneth, what are you doing?
- 53:24Yeah, exactly.
- 53:27How awesome.
- 53:28All right.
- 53:29So you talked a little bit about having a lot of cool opportunities for people and bringing on some new folks that were able to really like make the machine learning zing and how awesome that was.
- 53:40Are you, you know, some of my most popular episodes are when I talk about people getting jobs or sort of what you can do with Python and so on.
- 53:49And from sort of getting started.
- 53:51Do you guys have open positions you're looking for Python people?
- 53:54Yeah, so we actually just put out a call for a senior back-end engineer.
- 53:58And if you've got machine learning experience, that's going to be absolutely a big plus.
- 54:02The same goes for like natural language processing, that sort of thing.
- 54:05My expectation is that we're going to see a blossoming of opportunities at Louder in the next, probably after a window of three to six months, somewhere in there.
- 54:16Just simply looking at the growth in terms of the clients that are integrating with us at this point and our need to scale to the amount of clients that we'd like to.
- 54:23There's definitely going to be some ripe opportunities, especially in machine learning.
- 54:27Right now, we have some really talented Python contractors doing some really dedicated machine learning work.
- 54:33And actually, if you've got the experience of machine learning and you are a contractor, particularly, and you want to get your hands wet or dirty or whatever,
- 54:41in a practical example where Python and machine learning actually come into a business practice, then you should definitely give me a – don't call me.
- 54:49Email me for sure.
- 54:51That's awesome.
- 54:51Yeah, so I'll put some – you can give me some link that we can use for them to –
- 54:55Absolutely.
- 54:56To get to test you in a proper way that is not waking you in the middle of the night.
- 54:59Yeah, right.
- 55:00Nice.
- 55:01That's going to happen anyway, but –
- 55:02Yeah, of course.
- 55:03All right, so we're kind of getting near the end of the show.
- 55:07And let me ask you a couple of questions I always ask my guests at the end.
- 55:10We talked a little bit about some of the PyPI packages that you are using.
- 55:15But, you know, there's 80,000 of them.
- 55:18And there's always – you know, every – I know it blows my mind.
- 55:21It might be quite a bit higher.
- 55:23I need to look probably.
- 55:23But there's so many that are amazing, like this Pale one that you told me about that people don't necessarily know about.
- 55:30So – but you have a lot of exposure.
- 55:31So is there one that you really like?
- 55:33Is that Pale or is that another one?
- 55:35I can't be – I can't say Pale because that would just be biased.
- 55:39But –
- 55:40Well, I'll nominate Pale for you and you can pick another one.
- 55:44Yeah.
- 55:44There's just so many Python packages.
- 55:46It's like hard to choose.
- 55:47Like I think you've probably gotten the answer requests probably a lot, I would think.
- 55:51Yeah, yeah.
- 55:52I don't want to be lame.
- 55:53I'll make it music related.
- 55:54There's one called Mutagen, which is great for handling metadata inside of an MP3 or WAV file.
- 55:59That saved us a lot of time in terms of just being able to look at what's inside of files.
- 56:05The trick that came with it, of course, is – and I think this might be why it's my favorite – is it required me to solve a problem.
- 56:10It required me to iterate on it a little.
- 56:12It required me to iterate on it a little.
- 56:12And I like that kind of interaction with anything I'm working with.
- 56:16If I actually have to get my hands dirty to solve a problem it has, I'm going to have a better experience with it.
- 56:21And I know that might sound strange considering a lot of people will just say, oh, yeah, put it in and it works.
- 56:25But I find that when you get to actually modify and you're going to learn and understand what you're working with a lot better.
- 56:30And Mutagen was one of those.
- 56:31So one of the things that we had to solve was how to get Mutagen to look at the metadata or the ID3 tags, if you will, inside of a file object rather than inside of something that was just a file name or on the file system.
- 56:43And it initially hadn't been written – it was actually written in a way where most of the architecture was working with an open file resource.
- 56:49But for whatever reason, the API itself and the opening and all that stuff wasn't right there at the time.
- 56:54And that's probably changed.
- 56:55It hasn't been a few years since I had to do this.
- 56:57But I really do enjoy using Mutagen because it's just like any time you can bring music into Python and solve some problem like that so that I don't have to call a command line or I don't have to get into the bytecode or do any frame decompression, yada, yada.
- 57:09I'm going to really appreciate it.
- 57:11And I think Mutagen is that for me.
- 57:12Yeah, that's awesome.
- 57:13Nice recommendation.
- 57:15And then the other question is when you're writing Python code, what editor do you open up?
- 57:19I am a Sublime guy.
- 57:20I've been using a little bit more of Vim these days.
- 57:23But for some reason, I still really like Sublime.
- 57:26I like the Python packages.
- 57:27And I haven't gotten into Atom really.
- 57:29It's just Sublime all the way.
- 57:31All right.
- 57:32Yeah, that's definitely a popular one.
- 57:34That's cool.
- 57:34All right, Josh, any final call to action?
- 57:37What should people do if they've got this music problem?
- 57:42How do they get started working with you?
- 57:44Yeah, I mean, so this would be fun.
- 57:46I mean, if you want to build a website sort of a la SoundCloud or something, you know, and you want to do it and make sure you don't get your butt sued when you do it, you would want to talk to louder.
- 57:55So if you're ever like streaming music on the Internet or you're ever distributing content or let's say that you're a small label.
- 58:01Actually, I kind of like this example because we work with a few distributors and labels.
- 58:05So like if you are looking to solve this problem that you have where you have artists or you are an artist yourself and you need to distribute cover songs or you need to secure mechanical license, you should definitely get a hold of us because we're solving ways that are solving this problem in a way that's very technical and scalable.
- 58:23Which means that, you know, by the maturity of the business level of integration, you're going to have access to some really cool APIs to look at your data.
- 58:30The stuff we're working on now is really exciting.
- 58:32And I think it's going to bring the level of technical understanding in the music industry to the next degree.
- 58:38I think the joke about the music industry and technology is it's about 10 years behind.
- 58:42And that's because I think technology has typically screwed the music industry in some form or another.
- 58:47You can have whatever opinion you want on it.
- 58:49But I think I think there is some truth to that statement.
- 58:53So I would say if you're if you're getting into being a label or especially if you're doing some cool integrations and you're, you know, maybe automating your distribution or something like that.
- 59:01Are you like working with software like talk to us a louder like we'll help you solve this problem in a really cool fun way for you because it can be done in code.
- 59:09And who doesn't like to solve all their problems in code?
- 59:11I don't know.
- 59:12Yeah.
- 59:12Well, I think the people listening generally like to solve their problems in code.
- 59:17So it definitely will be well received.
- 59:19All right.
- 59:20I hope so.
- 59:21Yeah.
- 59:21Josh, thanks for sharing your story.
- 59:23This is really interesting what you guys are up to.
- 59:24Absolutely.
- 59:25Thanks so much.
- 59:26I hope that we didn't go on too many crazy tensions.
- 59:28It was a lot of fun.
- 59:29Yeah, it was definitely fun.
- 59:30Talk to you later.
- 59:31Yeah.
- 59:31Bye.
- 59:31Bye.
- 59:31This has been another episode of Talk Python To Me.
- 59:36Today's guest was Josh Welchel.
- 59:38And this episode has been sponsored by Rollbar and SnapCI.
- 59:41Thank you both for supporting the show.
- 59:43Rollbar takes the pain out of errors.
- 59:46They give you the context and insight you need to quickly locate and fix errors that might have gone unnoticed until your users complain, of course.
- 59:54As Talk Python To Me listeners, track a ridiculous number of errors for free at rollbar.com slash Talk Python To Me.
- 1:00:01SnapCI is modern.com slash Talk Python.com slash Talk Python.com slash Talk Python.com slash launch.
- 1:00:14I'm so excited to be able to unveil my Python for entrepreneurs course that I told you about at the top of the show.
- 1:00:20If you want to learn Python web development and launch.
- 1:00:27Talk Python.com slash Talk Python.com slash Talk Python.com slash Talk Python.com slash launch.
- 1:00:28I hope we can build something amazing together.
- 1:00:32You can find the links from this episode at Talk Python.com slash Talk Python.com slash episodes slash show slash 70.
- 1:00:38Be sure to subscribe to the show.
- 1:00:40Open your favorite podcatcher and search for Python.
- 1:00:42We should be right at the top.
- 1:00:43You can also find the iTunes feed at /itunes.
- 1:00:46Google Play feed at /play.
- 1:00:48And direct RSS feed at /rss on Talk Python.com.
- 1:00:52Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 1:00:57Corey just recently started selling his tracks on iTunes, so I recommend you check it out at talkpython.fm/music.
- 1:01:04You can browse his tracks he has for sale on iTunes and listen to the full-length version of the theme song.
- 1:01:09This is your host, Michael Kennedy.
- 1:01:11Thanks so much for listening.
- 1:01:12I really appreciate it.
- 1:01:14Smix, let's get out of here.
- 1:01:16Stating with my voice.
- 1:01:18There's no norm that I can feel within.
- 1:01:20Haven't been sleeping.
- 1:01:21I've been using lots of rest.
- 1:01:22I'll pass the mic back to who rocked it best.
- 1:01:25First, developers, developers, developers, developers, developers.
- 1:01:29First, developers, developers, developers, developers, developers, developers, developers.
- 1:01:35developers, developers, developers, developers.
- 1:01:37.