text
stringlengths
0
1.17k
[2875.70 --> 2882.84] buddy nate beck and it's it's basically you know what it says it is i when i released martini i also
[2882.84 --> 2889.80] had a accompanying demo video to go along with the source code and that demo video was um way better
[2889.80 --> 2895.10] received than i thought it would be and a lot of people watched it and a lot of people got interested
[2895.10 --> 2900.50] in the project because of it and still to this day i i look at github recently released uh statistics for
[2900.50 --> 2904.42] a repository so i take a look at those i'm like wow there's so many people that are coming from the
[2904.42 --> 2910.26] video like there's still people watching the video which is it blows my mind and feedback from that
[2910.26 --> 2918.24] video um was very positive people loved the pacing and uh it was suggested a lot to me and asked a lot
[2918.24 --> 2923.68] of me if i would start creating screencasts just to teach about go in general and about the technologies
[2923.68 --> 2930.40] and the projects that are out there um so that's why we started uh that's why we started gopher casts and
[2930.40 --> 2938.38] i have a background in audio nate has a background in audio and video and uh so we have very very
[2938.38 --> 2944.46] particular needs when it comes to producing screencasts like this so if you go to gophercasts.io
[2944.46 --> 2950.18] you'll see very high production quality um they're very uh very well-paced videos in my opinion
[2950.18 --> 2957.70] they um they're very digestible they're all three to five minutes long um and like it was mentioned
[2957.70 --> 2963.86] it's they're very very the site is very young so you'll probably only see a few videos up there
[2963.86 --> 2970.52] but we plan on releasing uh at least weekly episodes and i guess since we're talking about uh
[2970.52 --> 2978.80] the site itself is it written in martini no the site is not written in martini and let me tell you
[2978.80 --> 2985.08] why uh at first i wanted to write it in go and my my buddy nate he is not a go programmer he's picking
[2985.08 --> 2990.84] up go and he's learning go and he's um you know he's asking me all these questions and we're we're
[2990.84 --> 2997.62] kind of you know trudging through it together um we actually ended up writing the service in rails
[2997.62 --> 3003.84] and there's a couple reasons why one of them uh one of the reasons why was kind of prompted by
[3003.84 --> 3010.00] joel hooks who wrote a blog post on how he converted egghead io which is an angular js
[3010.00 --> 3017.36] screencast uh put on by john lindquist and joel hooks now um he mentioned why he wrote his site
[3017.36 --> 3021.66] in rails and why he didn't use something like node.js and angular or something like that
[3021.66 --> 3028.22] and you know it goes goes back to a lot of my philosophy with building things is you use the
[3028.22 --> 3034.60] best tool for the job um i'm going to be transparent and say like go for cast will not always be you know
[3034.60 --> 3042.14] all free everything free we do plan on feeling out the community seeing you know what it brings
[3042.14 --> 3047.10] what people like what people don't like and we want to offer you know something that will keep us going
[3047.10 --> 3052.48] to keep us producing super high quality screencasts and to see what people are willing to pay for it
[3052.48 --> 3057.02] because i think people are willing to pay for quality content so building things like a like a
[3057.02 --> 3064.88] publishing pipeline for video and you know tying in with like subscription services like stripe and
[3064.88 --> 3071.42] dealing with payments we already know how to do that in in rails and for us to do it and go is possible
[3071.42 --> 3079.18] but it's not the most productive at the time martini was built you know to make tiny services and and
[3079.18 --> 3086.20] smaller websites and in a more distributed computing fashion and so um that was the reason that we
[3086.20 --> 3091.02] mainly chose to write it in rails and it's it's been fine we've had a couple people that are like oh it's
[3091.02 --> 3096.80] written in rails and not go but overall i mean it's useful for people well i think what you said earlier
[3096.80 --> 3103.40] with um uh with with martini when you first started it out like your point wasn't to make a rails web
[3103.40 --> 3108.32] framework it was meant to be like a web services web framework you know to to kind of interact between
[3108.32 --> 3113.98] different services so in that case you know you're totally you're on point yeah absolutely it's using the
[3113.98 --> 3118.82] best tool for the job we don't have to we don't have to just like one technology i like a lot of
[3118.82 --> 3123.66] technologies you know there's a lot of things that bother me about rails but i still use it every day
[3123.66 --> 3129.68] and you know what it's really productive yeah i know jared and i have been talking about some
[3129.68 --> 3134.98] different stuff you want to do with the change log and uh he he always i'm gonna call you on this
[3134.98 --> 3141.78] jared he's like i'll do if you let me write it and go and so i don't know if that's the the inner
[3141.78 --> 3146.32] desire of jared who just wants to write it and go or what or if he's just uh if he thinks that's
[3146.32 --> 3151.06] the best tool for the job but we'll see yeah i'm the same way i want to just write stuff and go and
[3151.06 --> 3155.82] nate had to calm me down and be like let's pull this back and kind of in retrospect for the site i'm
[3155.82 --> 3160.90] glad we have it in rails will it maybe be in go eventually probably he'll probably be in go
[3160.90 --> 3166.84] eventually but right now we are able to ship and show people our screencasts and most importantly
[3166.84 --> 3171.80] we're able to show people content and that's really what it's about yeah just to defend myself
[3171.80 --> 3178.84] slightly here sorry about throwing you the bus there sorry about that the reason why i want to
[3178.84 --> 3184.96] do that is not some sort of idealism it's because i was saying that let's learn something as we build
[3184.96 --> 3190.24] this you know it's kind of a side thing and let's let's learn go and these different things as we build
[3190.24 --> 3193.72] it and then adam's saying this thing's going to be a production you know like this is going to be our
[3193.72 --> 3200.66] next version we can't we can't put you know newbie code out there so yeah ultimately he's going to
[3200.66 --> 3205.74] win that that argument but that was some of my thinking behind doing and go i was mostly just
[3205.74 --> 3210.38] looking for new projects to start and go and i was like oh sure let's do it and go well hey some
[3210.38 --> 3215.32] things are best learned in production right it's true i don't always test my code but when i do
[3215.32 --> 3222.48] i test it in production that's cool um what else do you want to talk about jared i know we talked
[3222.48 --> 3226.74] about gopher cast was one i'm super excited about that by the way i'm really glad that you listened
[3226.74 --> 3231.18] to the community and and decided to do that because i do think that martini video was well done
[3231.18 --> 3240.58] and and and to your credit i definitely think you have a nice smooth pace for those videos and keeping
[3240.58 --> 3246.42] them under five minutes um is definitely perfect i mean sure seven minutes eight minutes that's okay but
[3246.42 --> 3253.60] five minutes is like a quick idea enough to get them running whomever's listening and it's just like
[3253.60 --> 3259.56] in and out like let me take a break from whatever i'm doing and and just maybe listen to something
[3259.56 --> 3266.46] brand new you know go from maybe design to to listen to a gopher cast and kind of get some some new
[3266.46 --> 3271.48] knowledge yeah ideally what you want to do is you want to you want to trigger that spark in somebody's
[3271.48 --> 3277.14] mind to start creating instead of just copying and pasting the source or or figuring out some
[3277.14 --> 3281.32] sort of quick fix they're watching the video so they can get inspired and that's kind of what it
[3281.32 --> 3289.08] comes down to uh well let's loop back around yeah i got one more question about martini and then maybe
[3289.08 --> 3295.28] adam can do his his closing questions but um you kind of got started and go because you like
[3295.28 --> 3303.18] the deployment of these distributed command line applications um how do you deploy a martini
[3303.18 --> 3309.38] application a web app to the to production um it's in a similar fashion and there's a couple different
[3309.38 --> 3315.86] ways you can deploy it i know heroku if if anybody's used to working with heroku um it's a very easy
[3315.86 --> 3322.12] deploy process for martini um it's the same as any other go web app um what one really cool thing about
[3322.12 --> 3329.20] martini is um and this was a point for contention among a couple people but martini uses uh to
[3329.20 --> 3333.78] configure the port you have to configure the port environment variable you actually don't do it inside
[3333.78 --> 3340.64] the app and the reason for that is for deployment purposes in a lot of environments um especially
[3340.64 --> 3347.00] around kind of shared hosting or or or neighbor hosting you have the port set you know in the
[3347.00 --> 3353.56] environment automatically by the service provider so deploying a martini app um using the go build
[3353.56 --> 3358.76] pack and heroku is brain dead simple you don't do anything different you just push up your code with
[3358.76 --> 3366.60] the go but build pack uh via git and it just works um how about non-heroku style so so non-heroku style
[3366.60 --> 3371.66] would be uh simply compiling your app for the platform that you're in or pushing your code to the
[3371.66 --> 3377.32] the box that um the box that is going to be hosted on and compiling it there and just making sure that
[3377.32 --> 3383.52] any sort of asset folders you have um are are existing you know right next to where the binary
[3383.52 --> 3390.52] is run at or uh there there's another project called go bin data which actually can compile your assets
[3390.52 --> 3396.90] in as go source code so it's all one fat binary and there's a couple projects that actually do that
[3396.90 --> 3400.90] yeah yeah one of which is and i don't know if you guys use this tool but i'm going to totally
[3400.90 --> 3406.50] uh pimp it out because it's it's an awesome tool is ngrok is a tunneling service and tool
[3406.50 --> 3411.60] um built in go i think i think we covered that we linked to that on the changelog a while back
[3411.60 --> 3416.44] oh okay i've seen it but i haven't used it personally well it's a fantastic tool and it has
[3416.44 --> 3421.54] its own web interface that uses like bootstrap and pulls in all this javascript and stuff but the the
[3421.54 --> 3426.54] rad thing is all that stuff is hosted you know locally but it's all in one single binary it's still
[3426.54 --> 3432.66] one binary for all the assets um so that's another cool way depending on what kind of asset you're
[3432.66 --> 3437.24] serving and if you want to just pull them off of you know memory or pull it all into memory when you
[3437.24 --> 3441.88] run the program like it depends on what you're really doing but there's kind of something really
[3441.88 --> 3447.48] uh there's there's a lot of excitement around thinking oh i could just drag and drop this one
[3447.48 --> 3454.00] file onto a computer and it's deployed yeah for sure and then would you suggest behind behind a proxy
[3454.00 --> 3460.02] like nginx or hypoxy or would you just throw it on port 80 and let the thing roll you could you
[3460.02 --> 3463.38] could certainly throw it on port 80 and let it roll and there's some services that i've deployed
[3463.38 --> 3470.46] that have that um but nginx is such a huge boon to any sort of um to really any sort of web app that