/srv/irclogs.ubuntu.com/2013/06/18/#ubuntu-us-mi.txt

snap-lWhew, fixed up my bookcase02:10
snap-lthe back cardboard is tearing away, so eventually it would just crumble02:10
snap-lhammered some more nails in it. Hoping to get a few more years out of it before I have to replace it02:11
=== wolfger_ is now known as wolfger
wolfgersnap-l: Yeah... because nail hole improve cardboard structural integrity....09:47
rick_hmorning party people11:08
snap-lwolfger: Well, it'll at least keep it from moving12:15
snap-lIt's a cheap piece of crap bookcase anyway. This was just to make sure it didn't accidentally fall over and kill someone.12:32
snap-lI wish this code had adopted the manager pattern sooner.13:49
snap-lHaving to deal with SQL statments directly makes me nervous that I'll miss something along the way.13:49
rick_hlol, I always wish code adopted cleaner stuff sooner :)13:49
snap-lWell, I'm already trying to shim in one thing, and it would have been nicer to have a single shim point. :)13:51
snap-lAlmost missed the email portion of it which would not have been great).13:52
jrwren_sql statements?14:01
jrwren_have you considered repository pattern?14:02
snap-ljrwren_: Have you considered this code is over 3 years old with multiple authors and I'm on a deadline. ;)14:27
jrwren_yes14:28
rick_hlol, always leave the code better than you found it. Works on code and on bathrooms14:29
jrwren_the reason i ask, is that I don't see manager pattern mentioned in GoF or PoEAA14:30
jrwren_ha! I should teach my daughter that.14:30
rick_hjrwren_: so he's talking about something like the django manager orm bits14:31
rick_hjrwren_: in sqlalchemy I use stuff like https://github.com/mitechie/Bookie/blob/develop/bookie/models/__init__.py#L118 to contain any non-instance related methods/helpers/etc14:31
rick_hjrwren_: so not really a GoF, but a organization method vs pattern14:32
jrwren_in the .net world we consider that an antipattern, at least somewhat.14:33
brouschI usually use the Fuckit Pattern14:33
jrwren_brousch: fuckit usually leads to pizza or spaghetti14:33
jrwren_maybe some chinese takeout14:34
brouschYum14:34
rick_hjrwren_: why an anti-pattern?14:34
jrwren_is it an alchemy-ism because you don't define your data class like you do in django?14:35
jrwren_I'm not familiar enough to alchemy to say if it is the same antipattern from .net. I think it is not.14:36
rick_hjrwren_: honestly it's something I do myself just because I hate having Model.method_one doing stuff that's really nothing to do with Model the instance/etc.14:36
jrwren_rick_h: honestly, after studying that TagMgr class for a few minutes, it is a case of Repository pattern :)14:37
rick_hjrwren_: and helps clean up what methods a model allows on an instance vs thinsg that you can do but have nothing to do with it.14:37
jrwren_yes, exactly, understood.14:37
jrwren_fowler calls that Repository pattern14:37
rick_hhttps://github.com/mitechie/Bookie/blob/develop/bookie/models/__init__.py#L353 and https://github.com/mitechie/Bookie/blob/develop/bookie/models/__init__.py#L594 for a better example14:37
snap-ljrwren_: Chalk it up to me using the word pattern loosely.14:37
* rick_h goes to look it up14:38
jrwren_use english :)14:38
snap-lfuck dat sheeet.14:38
jrwren_http://www.martinfowler.com/eaaCatalog/repository.html14:38
rick_hjrwren_: yea, this looks right14:38
jrwren_its veyr close.14:38
rick_hjrwren_: and since SqlAlchemy uses full data mapper it probably fits nicer than some things14:39
jrwren_I think maybe its not repostiory because by inheriting from Base the objects can still save/udpate themselves.14:39
jrwren_the Repository is usually responsible for that.14:39
snap-lAll I know is it's another reason rick_h is right14:39
rick_hjrwren_: yea, but you still need to use the Session to save/update in sqlalchemy14:39
rick_hjrwren_: so maybe the session is a bit of repository really14:40
* rick_h hasn't done his required pattern reading in a long while. 14:40
jrwren_nor have I14:40
jrwren_I really only recall a few14:40
snap-lJohn keeps threatening us with going through the gang of four book14:41
jrwren_I recall SqlAlchemy being a DataMapper14:41
rick_hjrwren_: yea, so model.query is an instanced of an associated Session object14:41
jrwren_tehre is certainly no reason there cannot be many of these patterns.14:41
snap-lhonestly, the patterns stuff just feels like taxonomy, and I couldn't care less what the correct word for something is.14:41
rick_hjrwren_: so the ModelMgr is doing the querying through that Session (repository) and returning result sets and then the model instances are smaller/simpler/lighter and only deal with instance info14:41
snap-lor what one programming culture calls something14:42
rick_hsnap-l: but it's handy for talking. It'd have been simpler if you'd said "man I'm glad this code went to the repository pattern" and jrwren_ would have followed from the start and said "hells to the yea"14:42
jrwren_thanks for clarifying. I get it.14:42
jrwren_and I take it all back.14:42
jrwren_I think it is just a behavior type.14:42
snap-lrick_h: Agreed14:42
jrwren_you've isolated common behavior for that model type.14:43
rick_hjrwren_: yea, cool. I kind of tought this layout at my Sqlalchemy tutorial at PyOhio a while back and would hate to be teaching an anti-pattern14:43
jrwren_definitely not an antipattern.14:43
rick_hso was curious in being corrected :)14:43
snap-lrick_h: The code I'm looking at is definitely an anti-pattern. :)14:43
jrwren_its good stuff, I was just trying to understand.14:43
rick_hsnap-l: lol yea I don't even have to look at it to know that :)14:43
snap-lI believe it's called the "sql blender" anti-pattern. (and don't correct me if it isn't ccalled that because reasons).14:44
rick_hsnap-l: yea, I fought hard to try to get a rule that no controller should ever ever do Session.query.14:44
rick_hbut I'm going to guess there's still a lot of that around14:45
snap-lWell, there's lots of old code getting C/P into new code14:45
snap-lthus creating the maxim: Old code never dies, it just gets copied.14:45
rick_hhah14:45
rick_hhttp://www.ubuntu.com/phone/carrier-advisory-group :( no us unless you count DT I guess14:46
rick_h /us/U.S./14:46
snap-lhttp://www.autoweek.com/article/20130618/CARNEWS/13061982414:47
rick_hok, first camping trip in the new camper set for this weekend. What's the over/under for the number of disasters encountered?14:47
rick_hsnap-l: yea, saw that the other day. Makes a lot of sense. I like how my touareg has a mix of hard button and touch screen14:47
rick_hespecially with the slow touch screen tech used in these things14:48
brouschrick_h: Where are you going?14:48
snap-lYeah, honestly when I was looking at cars I wanted to like the Ford Sync14:48
snap-lbit it felt a little clunky14:48
snap-l(nevermind that it rebooted while I was taking the test drive)14:48
rick_hbrousch: http://www.destinationoakland.com/parksandtrails/campgrounds/addisonoaks/Pages/default.aspx 30min away for a nice close safe initial voyage14:48
rick_hsnap-l: lol, that would suck14:48
snap-lrick_h: First trip isn't the one that all of the problems happen14:49
rick_hbrousch: but will be up by alpena for the 4th, cadillac for aug, and in VA for sept.14:49
snap-lit's the second trip that the universe conspires against. :)14:49
brousch87 and humid. Does the camper have AC?14:49
rick_hsnap-l: then I'm screwed :P but at least we'll be up north with family14:49
rick_hbrousch: why yes...yes it does :)14:49
brouschnice14:49
snap-lKnowing rick_h, it'll auto level and set up satellite internet with a make command14:50
brouschmake campsite14:50
rick_hsnap-l: hah, no. I did buy my own electrical setup (high capacity 6v golf cart batteries in a custom box) I delivered to them yesterday to install14:50
rick_hand they've got a checklist of a bunch of things I want installed/setup before I take delivery on thurs14:50
rick_hbut no auto leveling or satellite14:51
snap-ldid you mention no brown M&Ms?14:51
* rick_h writes that down for the next time14:51
snap-lSo, does Clarkston allow you to park your camper on your property, or are they anal like I've heard Troy is.14:53
rick_hsnap-l: so I'll have it in my driveway for short times pre/post travel. But I'm going to sign up for an indoor storage place tomorrow14:53
snap-lyeah, that's what I thought14:54
snap-ljrwren_: liking the mix on digital gunfire at the moment14:54
ColonelPanic001damn. I haven't listened to DG in ages14:56
ColonelPanic001I have to do that today14:56
rick_hsnap-l: so according to the twp ordinances here I can park it in my driveway as long as I don't hit the street with it14:58
rick_hsnap-l: and it can't have permanent hookups to sewer/electrical/etc14:58
brouschDon't be that guy!14:59
rick_hheh, I don't want it sitting in the sun when I'm not using it so it won't be there much for sure.14:59
rick_hbrousch: http://www.generalrv.com/inventory/286100/New-2014-Jayco-Jay-Feather-Ultra-Lite-X23B.aspx is what we're getting15:00
rick_hnow to setup a camping bookie sprint lol15:00
brouschlooks like my brother's. They really like it15:00
rick_hyea, I'm excited. I think it'll make for some good times with the boy at the current age and such15:01
trevlarI loved camping with my family when I was little15:16
trevlardefinitely get one of these. my favorite camping accessory :) http://r1.coleman.com/ProductImages/Full/822-707T_500.jpg15:16
brouschI don't like camping15:17
snap-lJoDee doesn't like to camp. I don't mind it, having grown up with it.15:24
rick_hI've got visions of bookie hacking under an awning in some woods :)15:24
jrwren_my back yard is close enough to camping for me :p15:27
jrwren_i'm just getting use to house living instead of apt. living.15:27
snap-ljrwren_: Getting used to having to mow?15:28
snap-lOr do they hve an ordinance against grass growing there? :)15:28
jrwren_hired it out15:35
jrwren_i choose to skip that part of life15:35
rick_hlol of the day https://twitter.com/benbangert/status/34701418369241088015:37
snap-lrick_h: ++15:50
snap-lBTW: The BrickPip project funded with $127k17:05
snap-ls/BrickPip/BrickPi/17:05
jrwren_snap-l: did you see the A23 kickstarter?17:14
snap-lNo, what is it?17:21
snap-lAssemblage 23?17:21
jrwren_yes17:24
snap-lReally wish this was CC licensed. ;)17:25
snap-lbut only because I'd love to play assemblage 23 on the podcast.17:28
snap-l  I'm just happy I have Stromkern on the Mind / Body Vol. 3. ;)17:29
jrwren_stromkern put out new stuff?17:33
snap-lThis is an old r.m.Industrial compilation17:33
snap-lrec.music.industrial17:33
jrwren_rmi is sitll around?17:34
jrwren_i read rmi a few times back in the 90s17:34
snap-lhttp://www.discogs.com/Various-Mind-Body-Compilation-Volume-3/release/81229317:34
snap-lI also have Stromkern's Light it Up album in digital form17:35
snap-ladded more to my wishlist.17:35
jrwren_good album17:35
snap-lYeah, it's great mowing music. :)17:36
snap-lhttp://www.discogs.com/Stromkern-Light-It-Up/master/4153417:37
greg-gjrwren_: whoa, your retweet just blew my mind17:44
greg-gthe madonna one17:44
jrwren_:)18:07
greg-gand now I'm reading the rape story and disgusted18:08
jrwren_brave writing.18:14
jrwren_i need to start saving these and have my daughter read them when she is older18:14
greg-gditto re my son18:19
snap-lI don't understand how someone could do that (was re: the rape story)18:24
jrwren_sociopaths are around :(18:24
jrwren_the scary part to me is that the same person was functional enough to have a professional job.18:25
greg-gright, if you're in an org of any size, really, you're working with someone who would do/has done this (chances are)18:27
jrwren_scary18:29
snap-lThere's something to be said for consensual. :)18:29
jrwren_ha!18:30
jrwren_i REALLY need to get to know make better.18:32
jrwren_https://github.com/mbostock/world-atlas/blob/master/Makefile18:32
snap-lAnd I'm pretty sure "am I going to rot in prison for killing this asshole" is not the kind of sexy-time pillowtalk that most folks crave.18:34
jrwren_rule54?18:36
jrwren_but certainly not "most folks"18:36
snap-lI think you mean Rule 3418:37
snap-lwhich probably means there's porn of someone out there using the Make command.18:37
jrwren_oh, yes, that.18:37
jrwren_its probably make me a sandwich porn18:37
* brousch looks at rick_h's video collection18:38
* rick_h unplugs the NAS from the internet real quick...18:39
snap-l"You Autocomplete Me, vol 2"18:39
snap-l"ZSH hotties from hell"18:39
jrwren_root cause analysis18:40
snap-lHere we go: Gals of Sudo: Make me18:40
snap-lI can't wait to leave this airconditioning so I can be cool outside.19:37
snap-lUgh19:37
brouschYou're cool everywhere you go, snap-l19:41
snap-lI wish. :)19:42
snap-lgreg-g: Re: relicensing MySQL man pages: Fuck that shit.20:06
snap-lhttps://blog.mariadb.org/mysql-man-pages-silently-relicensed-away-from-gpl/20:06
snap-lhttp://dev.mysql.com/doc/refman/5.1/en/preface.html#legalnotice20:08
jrwren_oracle!20:09
greg-gso glad WMF switched to MariaDB recently :)20:38
greg-gef oracle20:38
greg-gsnap-l: I just listened to the Allergic Reactionary episode, and uh, what an ending22:25
snap-lgreg-g: You like? :)23:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!