text stringlengths 0 1.17k |
|---|
[2380.98 --> 2388.64] front some of their most in-demand jobs are web and mobile developers devops ui ux and even some |
[2388.64 --> 2395.60] product managers the average developer gets about five to fifteen offers with equity with salary all that |
[2395.60 --> 2401.04] up front uh and even if you're not looking for a job but you might know someone who is you can revert |
[2401.04 --> 2406.64] you can refer them to hired and get an awesome bonus as well if they accept the job and the amount of |
[2406.64 --> 2412.76] that one is one thousand three hundred and thirty seven dollars total leet so go to hired.com slash |
[2412.76 --> 2418.82] changelog podcast and get hired.com so thinking about contributions i was just looking at sidekick here |
[2418.82 --> 2426.62] as you're talking in uh 713 forks 242 contributors over its lifespan i would say that the model maybe |
[2426.62 --> 2431.02] some of that was before you had the pro version but it seems like there was no barrier for people |
[2431.02 --> 2436.52] wanting to hop in and help out there so that's good were you concerned about that especially with |
[2436.52 --> 2442.38] inspector i mean it's only been out for a day but you know one fork so far um my my main concern with |
[2442.38 --> 2448.00] inspector is just the fact that it's using go so that it's a relatively new language um yeah so |
[2448.00 --> 2455.60] you know monit is written in c and uses i think they're on bitbucket so they're they're just kind |
[2455.60 --> 2460.18] of in a different ecosystem so i'm not sure if people find bitbucket easy to contribute to or not |
[2460.18 --> 2466.24] i know that i don't i've never really used bitbucket before but hopefully it's it's on github it's written |
[2466.24 --> 2472.40] in go it's easier for people to contribute than something like monit but um but also keep in mind that |
[2472.40 --> 2477.98] inspector is different from sidekick in that it's not something that tightly integrates |
[2477.98 --> 2483.56] with your application you know people sidekick is a framework right people are interacting with |
[2483.56 --> 2491.04] sidekick apis their code is running within the sidekick process so you're just you've got a lot |
[2491.04 --> 2496.96] more moving parts interacting with your app code and so i think it's natural for people to interact |
[2496.96 --> 2506.92] with sidekick a lot more so i don't necessarily see as much contribution and as much activity |
[2506.92 --> 2511.98] around uh people contributing to inspector inspector is kind of a black box where |
[2511.98 --> 2519.08] you install it you set it up to monitor your components and then that's it um you know we'll |
[2519.08 --> 2523.20] see we'll see what happens that could be completely wrong but that's kind of my feel for it so far |
[2523.20 --> 2530.88] cool so let's talk about inspector then so uh you said that you had uh monit was a tool that you use |
[2530.88 --> 2538.30] um not super happy with it but useful um you decided to dig in see how you could make monit better |
[2538.30 --> 2543.74] and you said two things first of all removing features that you don't need and then secondly |
[2543.74 --> 2550.42] adding in some stuff that is more modern or that you think that you do need so you may reiterate a |
[2550.42 --> 2555.52] little bit but could you enumerate a few on either side sure of what you've done so you the first one |
[2555.52 --> 2561.26] was removing functionality um right which init d you mentioned is a big piece of that yeah there |
[2561.26 --> 2568.44] what i did with inspector is sort of make the decision that inspector will not start and stop |
[2568.44 --> 2580.54] processes directly so monit and god and blue pill they all have a way to start a process stop a process |
[2580.54 --> 2589.28] to set the user that it runs at as to set the group that it runs as all this all this boilerplate |
[2589.28 --> 2594.62] to start and stop processes and what i realized is that's the job of your init system all of these |
[2594.62 --> 2602.32] your the machine that you're using exists to run your application your application components are the |
[2602.32 --> 2607.84] most important thing running on that machine and the the most reliable way you can ensure that your |
[2607.84 --> 2615.40] components are running is to integrate them with your operating systems init system and that in ubuntu is |
[2615.40 --> 2625.76] upstart um in core os or uh centos 7 that is system d and future up future ubuntus are going to be using |
[2625.76 --> 2635.90] system d also so uh inspector defers the start and stop of processes to the init system to upstart |
[2635.90 --> 2645.58] system d run it and uh launch d you know s10 so uh what i try what i'm trying to guide people to do is |
[2645.58 --> 2653.62] is to integrate their application components into their init system so that they have something reliable |
[2653.62 --> 2662.18] that is always there to start and stop these things you know inspector itself uh people shouldn't |
[2662.18 --> 2667.04] necessarily rely on to ensure that this thing that your the components are started you know inspector |
[2667.04 --> 2672.92] can crash but the one thing that can't crash on your operating system is your init system if it crashes |
[2672.92 --> 2680.00] the machine crashes so uh so yeah if you want your components to be up you want to integrate them |
[2680.00 --> 2686.92] with that init system so when i made this decision i realized that cutting out the starting and stopping |
[2686.92 --> 2695.22] your processes is a big bulk of the configuration you know every monit recipe every god recipe |
[2695.22 --> 2702.10] has um four or five lines devoted to how do i start this thing how do i stop it what user does it run as |
[2702.10 --> 2707.98] all this kind of stuff so that that dramatically simplified um inspector because i don't have to deal with |
[2707.98 --> 2715.36] that a couple other features that monit had for instance are things like monitoring uh files |
[2715.36 --> 2720.78] and directories to make sure that they have the correct permissions to make sure that they have |
[2720.78 --> 2727.82] the correct uh shaw so that the file contents haven't changed that to me is is not something i've ever seen |
[2727.82 --> 2734.38] anybody ever use um having been an application engineer using monit to monitor the various demons |
[2734.38 --> 2741.18] it doesn't make any sense to me to monitor file shawes and directory permissions and that sort of thing |
[2741.18 --> 2744.74] seems like more of a security concern than a monitoring concern correct |
[2744.74 --> 2749.00] if you want uh if you want something like that you're going to be using either a read-only file |
[2749.00 --> 2756.78] system or you're going to be using some sort of um ids intrusion detection system so yeah that |
[2756.78 --> 2763.30] seemed like a kind of a poor man's security thing and and really no reason for it so that's that's |
[2763.30 --> 2768.12] another example of a feature that i just completely lopped off and had no interest in rebuilding |
[2768.12 --> 2774.72] so what about the installation story i mean as i said in email i'm a monit user have been for |
[2774.72 --> 2782.50] a long time i'm a debian usually um you know i can just app get install monit um inspector written |
[2782.50 --> 2788.10] in go we can talk about that as well go kind of has this great uh story around dropping a binary |
[2788.10 --> 2793.34] somewhere um how easy is it to get inspector on your machine maybe speak to the the open source and |
[2793.34 --> 2799.40] the pro versions i i'm sad to say that inspector is two times as heavyweight as monit you have to run |
[2799.40 --> 2806.80] two commands not one command oh man so twice as many yeah it in inspector i would imagine in the |
[2806.80 --> 2813.82] future will be integrated directly into the various operating systems package repositories but right |
[2813.82 --> 2819.00] now it being brand new i have to distribute it myself so can you do that with your pro version too |
[2819.00 --> 2824.84] though down the road or not uh yes i i do the pro version is ready for people to buy it's it's |
[2824.84 --> 2833.44] available um it is i run my own package repo that um i control um through basic auth just who can access |
[2833.44 --> 2841.30] it and uh and so when you buy inspector pro you get instructions on how to set up the repo access |
[2841.30 --> 2848.48] and then from there it's just app get inspector pro cool so yeah inspector itself is distributed |
[2848.48 --> 2855.74] through this great service called package cloud uh and they they provide a sort of package distribution |
[2855.74 --> 2863.84] in the cloud as the name might indicate and uh so the you know you have to run one command to set up |
[2863.84 --> 2872.08] their repo on your machine and then from there it's just apt get install inspector not too bad not not |
[2872.08 --> 2880.26] too bad it's as simple as i could possibly make it but yeah i mean i worked for probably a month to get |
[2880.26 --> 2887.32] debian and rpm distribution working it is ridiculous how hard that stuff is to get working |
[2887.32 --> 2894.38] was this your first big go project yep yeah in fact uh the reason why it took me |
[2894.38 --> 2901.94] uh you know four months of full-time work was because that i was learning go and so i would write |
[2901.94 --> 2906.92] a bit of functionality and then a couple days later i'd read through that functionality and say this |
[2906.92 --> 2911.94] code is terrible i've got to rewrite it write it again yeah and so yeah i mean i've rewrote inspector |
[2911.94 --> 2920.42] probably two or three times in in uh all of it i mean i rewrote all of it probably you know two or |
[2920.42 --> 2926.54] three times uh just because i i ramped up on go pretty quickly but you know it still takes a couple |
[2926.54 --> 2931.62] months to get a feeling for what does idiomatic code look like um what is a proper error |
[2931.62 --> 2937.28] handling you know where do you use interfaces and pointers and value objects and all that kind |
[2937.28 --> 2944.20] of stuff so was that fun for was that fun for you or was that frustrating it was fun straighting |
[2944.20 --> 2951.46] okay and i make up a word yeah i think you just did it was uh it was fun and frustrating it's it's |
[2951.46 --> 2957.62] always frustrating because you want to just be able to do something so there's this cognitive |
[2957.62 --> 2965.44] dissonance as you try to write ruby code and go right um but again it's one of those one of those |
[2965.44 --> 2971.54] paths where i realize you've got to walk down this path to to get to the destination which is |
[2971.54 --> 2978.64] being a journeyman programmer not a beginning programmer in this thing and so i i enjoy that i i enjoy that |
[2978.64 --> 2983.86] process so uh yeah it did take me a couple months and for the first month i was definitely really |
[2983.86 --> 2989.24] frustrated you know things like how do i take a string and split it up by commas and get an array |
[2989.24 --> 2994.64] of those strings and how do i convert a byte array into a string and how do i convert this type into |
[2994.64 --> 3000.14] this other type and you know that's stuff that you rarely ever need to do in ruby but it's it's |
[3000.14 --> 3007.40] it's critical and go and so that was stuff that i had to learn all new yeah i just wrote my my my |
[3007.40 --> 3013.56] first production go it's a small api for a customer and uh long time ruby and javascript |
[3013.56 --> 3017.52] developer so you know you get things ingrained in your fingers you know maybe you have to have the |
[3017.52 --> 3022.52] docs open if you forget an api but you're not like searching how do i do this in javascript or in ruby |
[3022.52 --> 3029.04] and i've just found my google search like astronomically increased you know with go over the last month and |
[3029.04 --> 3035.78] a half um there's a great site called gobyexample.com which if it's like i know how to program just tell me |
[3035.78 --> 3040.02] how to do this and go he has a great just like here's how you do json parsing here's how you do |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.