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