text stringlengths 0 1.17k |
|---|
[3427.04 --> 3433.56] as opposed to deserializing it so when you actually install a gem it uh unpacks the actual gem spec back |
[3433.56 --> 3440.12] into pure ruby and i guess this kind of gave people the idea of like well let's just put this gem spec in |
[3440.12 --> 3445.48] into the actual git repository for projects and we'll have it list you know you use git ls files |
[3445.48 --> 3451.56] but i kind of feel that like violates dry uh that we have this like random bit of code that we constantly |
[3451.56 --> 3457.74] regenerates and it has this like you know git commands embedded into it i kind of like the fact that |
[3457.74 --> 3463.88] like cabal uh hides a lot of that from you and what i actually do for a lot of my projects is i put all |
[3463.88 --> 3469.44] the metadata into a gem spec yaml file and then my gem spec is basically just boilerplate code that loads |
[3469.44 --> 3477.80] that file and sets all the fields um and also like cabal i mean cabal and haskell's ghc compiler uh |
[3477.80 --> 3482.44] has a really really kind of like advanced dependency tracking system where it can actually recompile code |
[3482.44 --> 3487.52] that you know if it detects some change somewhere so really interesting yeah i mean |
[3487.52 --> 3494.38] you mentioned you haven't looked into mpm much but one of the ways it does um package installation is |
[3494.38 --> 3501.36] you can pass it a fly to say um you know save to local basically so it's dash dash save or you can |
[3501.36 --> 3509.72] add a dash dash save dash dev onto it and it and it actually uh will either go global if you don't do |
[3509.72 --> 3515.86] dash save i think you might have to pass the flag dash g to it uh possibly so let me correct me if i'm |
[3515.86 --> 3522.82] wrong but but then it also just drops into your project um most often hidden if you're hiding it |
[3522.82 --> 3527.62] with your editor you know with your id or just sublime text whatever you use but then it drops it |
[3527.62 --> 3532.56] on to no modules and from there you have them locally with your project and that way you kind |
[3532.56 --> 3538.48] of don't have this gem set need you almost just have your project and you either save locally or you |
[3538.48 --> 3543.66] don't you just either install globally or install locally and it just pulls the version that way |
[3543.66 --> 3549.38] it's a i mean so far i've you know kind of been dabbling in some javascript development and it's been |
[3549.38 --> 3554.10] coming from the ruby world into that world i've saw kind of both sides of the fence and it's |
[3554.10 --> 3560.86] it's neat the way they handle it and no conflicts yet so it's yeah i don't quite have the job you do of |
[3560.86 --> 3564.80] maintaining this project and the and the dependencies it has against it but |
[3564.80 --> 3570.46] that kind of neat the way they do it oh yeah totally um yeah i definitely feel like kind of the |
[3570.46 --> 3577.40] uh challenges uh that ruby switchers have to deal with is kind of uh dealing with the environment |
[3577.40 --> 3583.78] variables that you use to then manipulate um how ruby gems operates and sometimes it would kind of be |
[3583.78 --> 3589.48] nice if if it did automatically detect uh gem direct dot gem directories and that's just how it |
[3589.48 --> 3595.12] works but of course there's like security issues with you know running into malicious gem gem |
[3595.12 --> 3601.78] directories and yeah you've got a security background so you're you're thinking not only how do you use |
[3601.78 --> 3607.50] it as a developer but how do you securely use it as a developer right right you know because you know |
[3607.50 --> 3613.32] we pull down tons of code every day off of trusted you know right yes quote unquote trusted and like |
[3613.32 --> 3618.78] it'd be very trivial for someone to have like um like for a lot of those tools that automatically load |
[3618.78 --> 3623.82] environment variables uh when you cd into the directory and you could totally convince someone |
[3623.82 --> 3630.10] to do that and like you would have some sort of a way to you know uh manipulate the path where you |
[3630.10 --> 3635.54] can actually redirect to it and like you know so instead of typing ls and using system ls it all of a |
[3635.54 --> 3641.68] sudden you know using their weird backdoored ls or alias version yeah right so that's kind of yeah |
[3641.68 --> 3648.16] so not to uh hijack the conversation too much but we are kind of running up against our our time limit |
[3648.16 --> 3653.78] here so i want to uh go ahead and ask our our standard set of questions for your postmodern if |
[3653.78 --> 3658.66] if you're okay with that um the the first one is for a call to arms or a call to action for |
[3658.66 --> 3664.48] uh the open source community on any any of the projects that we've talked about okay so um i |
[3664.48 --> 3668.68] actually been thinking about writing a blog post about this but it's probably better just to put it |
[3668.68 --> 3675.80] into words here uh so this is like super super radical thing to say but you do not need a ruby |
[3675.80 --> 3682.56] manager or switcher in production if you only have one ruby and this is just something that people |
[3682.56 --> 3687.78] i don't not necessarily the word cargo cults i think applies but we just have gotten used to doing it |
[3687.78 --> 3693.70] and then that's just how we do it and it's baked into all these configuration management tools like |
[3693.70 --> 3701.04] chef and puppets and you just don't first of all the package managers ruby is usually roughly up to |
[3701.04 --> 3706.80] dates um the latest version of ubuntu available on amazon uh it's it's recently up to i think it's |
[3706.80 --> 3712.82] 193 still but they're they're going to bump that to 20 and of course there's like still gc issues with |
[3712.82 --> 3719.70] mri 2.1 and even if your system and the benefit of using the package manager is you can enable |
[3719.70 --> 3724.94] things like unattended upgrades where the package manager will automatically imply security updates |
[3724.94 --> 3729.98] and just have to restart your processes and that's really nice uh as opposed to actually then |
[3729.98 --> 3735.66] freaking out at you know 3 a.m in the morning and you know do like doing rvm get ahead and installing |
[3735.66 --> 3742.70] the latest version to deal with some sort of critical uh security vulnerability and also even if the package |
[3742.70 --> 3748.38] manager doesn't offer the most up-to-date package you can roll your own packages with fpm you can also |
[3748.38 --> 3754.40] install the ruby into usr local and that's the purpose of usr local and the whole unix file system |
[3754.40 --> 3761.18] hierarchy is that it's for all the software that you install that's not installed by the system |
[3761.18 --> 3767.92] so like usr is controlled by the package manager the administrator controls usr and on most systems |
[3767.92 --> 3775.26] usr local bin always comes before usr bin in the path and so any software install there overrides |
[3775.26 --> 3782.02] the system software and like i feel that a lot of people kind of like miss this and i feel like |
[3782.02 --> 3787.68] setting up a you know production environment shouldn't be that difficult and you just really |
[3787.68 --> 3792.80] need to like install a package or extract a tar of a pre-compiled ruby and like this is not that |
[3792.80 --> 3799.04] difficult so yeah i don't know so just just to clarify i believe this is the first time that the |
[3799.04 --> 3805.26] call to arms from our guests has been to not use their project in production yeah you don't it's it's |
[3805.26 --> 3811.02] just it adds so much more complexity of making sure it works with all these system components and |
[3811.02 --> 3816.74] it's really more the ruby switcher is more optimized for developments and you know testing |
[3816.74 --> 3823.84] things because like seriously it it it just makes it so much easier awesome so the second question if |
[3823.84 --> 3830.52] you weren't doing what you're doing now what would you be doing oh man um so you mean like open |
[3830.52 --> 3836.44] source or work wise or well anything surfing or work wise or what what would you do with your free |
[3836.44 --> 3846.34] time yeah yeah oh man probably uh probably uh probably writing uh like uh various security |
[3846.34 --> 3852.94] exploitation tools that's uh it's kind of on my list of things to do so which technically i do so i do for |
[3852.94 --> 3859.66] work but yeah there's a there's a back end to that that uh question too which is like maybe uh |
[3859.66 --> 3863.82] an open source project out there that you've wanted to hack on but you know you've got |
[3863.82 --> 3868.08] obviously a list of things you're doing but you haven't had a chance to hack on it what's |
[3868.08 --> 3873.06] you know what's uh what's something you've seen out there that you wish you had time to hack on that |
[3873.06 --> 3878.20] you would you don't and you would love to if you had a weekend oh man okay so there's actually a |
[3878.20 --> 3883.50] couple of projects that i feel that really could use some like extra help and simplifying things |
[3883.50 --> 3888.48] and kind of like exercising out the really bad ugly code that's kind of built up the technical debt |
[3888.48 --> 3894.02] and one of the projects i've really loved in recently is padrino um i feel it's a really nice |
[3894.02 --> 3898.54] layer on top and they they've been doing more than just building on top of sinatra they have their |
[3898.54 --> 3904.64] own custom router and it feels very structured has that nice really rails to structure feel but without |
[3904.64 --> 3910.26] all the complexity that now comes with you know default rails and but the law of the code in |
[3910.26 --> 3914.86] there is kind of messy and i feel like it would kind of benefit from more people kind of looking at it |
[3914.86 --> 3919.58] and figuring out maybe better ways of handling things because it's a lot of their features are |
[3919.58 --> 3926.68] built on top of um kind of like sinatra before filters uh conditions sinatra conditions and rack |
[3926.68 --> 3932.20] middleware and so kind of that there's there's some weird issues for instance when you want to like |
[3932.20 --> 3939.80] disable csrf protection on like certain routes only so yeah um really awesome project the other one |
[3939.80 --> 3945.90] also is the rom project ruby object mapper where is that that i've like been waiting for that forever |
[3945.90 --> 3950.82] i know same here um and basically i've been like always talking with the developers and i'm usually |
[3950.82 --> 3956.84] very skeptical because uh they kind of tend to take principles to the extreme and this kind of results |
[3956.84 --> 3964.46] in a lot of kind of like excess code that is more kind of writing the code to uh comply with the |
[3964.46 --> 3971.40] style checker or the co-complexity scanner or um you know something like that or so i've been going i've |
[3971.40 --> 3976.16] been slowly going through that project and just sort of like making small pull requests but i kind of |
[3976.16 --> 3980.76] you know i'm just one person trying to undo complexity and that's usually hard once it's like |
[3980.76 --> 3988.32] built uh you know yeah rom rom would definitely be on my list of of projects to help with i i i am like |
[3988.32 --> 3994.04] you i would imagine i like i love using sinatra and data mapper in the past and so like i've been |
[3994.04 --> 4000.22] waiting for rom for quite a while now oh yeah oh yeah because data mapper one definitely has its warrants |
[4000.22 --> 4005.56] yep um yeah uh definitely check it out and try to contribute uh they're actually pretty close they |
[4005.56 --> 4013.08] have read supports but they're they still need to uh get uh write supports uh okay so the i guess the |
[4013.08 --> 4019.08] last project i'd have to say uh worth checking out is mruby and ruby is really well designed i would |
[4019.08 --> 4025.20] have to say of kind of embeddable languages i've been i was looking at those a couple years ago and it |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.