tag:blogger.com,1999:blog-8512553837845348385.comments2021-05-14T07:45:39.929-04:00Attack of the Codosaurus!Dave Aronsonhttp://www.blogger.com/profile/05727750970755433075noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-8512553837845348385.post-47908882248110928072012-09-22T21:10:19.532-04:002012-09-22T21:10:19.532-04:00Comes back :isosceles, as is correct. Transcript ...Comes back :isosceles, as is correct. Transcript from irb:<br /><br />1.9.3p194 :001 > a = b = 3<br /> => 3 <br />1.9.3p194 :002 > c = 17<br /> => 17 <br />1.9.3p194 :003 > [:equilateral, :isosceles, :scalene][[a,b,c].uniq.length - 1]<br /> => :isosceles <br /><br />And furthermore:<br /><br />1.9.3p194 :004 > c = 3<br /> => 3 <br />1.9.3p194 :005 > [:equilateral, Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-90443877605083759412012-09-22T20:33:30.337-04:002012-09-22T20:33:30.337-04:00What about a = b = 3, c = 17?What about a = b = 3, c = 17?Jim Goltzhttps://www.blogger.com/profile/12102735521444971832noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-2466181758978323802012-04-16T10:43:16.807-04:002012-04-16T10:43:16.807-04:00Hi Jason!
About reading it a year later, maybe no...Hi Jason!<br /><br />About reading it a year later, maybe now you'll subscribe and get 'em hot off the virtual press! :-) When I wrote the reply on LI, I had totally forgotten about my reply above to Joe. Guess I think in tags a lot!<br /><br />I like your idea about visiting the current set of deals and having them vie to be picked. That would be very easy for each individual SKU, Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-10955410553893736252012-04-16T08:57:26.160-04:002012-04-16T08:57:26.160-04:00As I just read your response to someone else on Li...As I just read your response to someone else on LinkedIn (http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&discussionID=107978669&gid=40893&trk=eml-anet_dig-b_nd-pst_ttle-cn&ut=2JAQ3ZweePpBc1), I am just now reading this article (almost a year later).<br /><br />As to your point to Joe -- the SKU is just another tag, a way of identifying an item, generically or Jason Rogershttps://www.blogger.com/profile/03512788621802164511noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-32822591515582310152012-03-10T04:53:06.558-05:002012-03-10T04:53:06.558-05:00interesting idea.interesting idea.Broken Andyhttps://www.blogger.com/profile/01562569871940946226noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-67055815408417713682012-02-08T13:33:34.729-05:002012-02-08T13:33:34.729-05:00That seems to be an optional part of the rules for...That seems to be an optional part of the rules for a lot of people. Don't beat yourself up.Broken Andyhttps://www.blogger.com/profile/01562569871940946226noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-34569789322695860092012-02-08T12:49:27.616-05:002012-02-08T12:49:27.616-05:00Ergh. Just noticed it said "less than 200&qu...Ergh. Just noticed it said "less than 200". Grammar Girl, please don't beat me up! I just copied and pasted from my own nomination. I know it really should be "fewer"... put down the OED... please?Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-87485481904148901242012-02-08T10:02:36.167-05:002012-02-08T10:02:36.167-05:00Thanks for helping stop this awful legislation.
A...Thanks for helping stop this awful legislation.<br /><br />And for doing your part, I give you this <a href="http://sea.hxr.us/2012/02/ctone-has-no-taste.html" rel="nofollow">award</a>.Broken Andyhttps://www.blogger.com/profile/01562569871940946226noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-81848398789154910902011-12-09T10:05:55.899-05:002011-12-09T10:05:55.899-05:00At the very least, it can be useful when providing...At the very least, it can be useful when providing extension modules for DCI or other mixing-in purposes. It lets you see what the class you're extending responds to, so that you don't make too many far-reaching assumptions about its existing capabilities. Jim Gay gave a talk on DCI at Arlington Ruby Meetup, and made a followup blog post, where he discusses that. (I've been meaningDave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-7335610240062395302011-12-08T21:24:49.198-05:002011-12-08T21:24:49.198-05:00I don't know why Ruby doesn't handle it au...I don't know why Ruby doesn't handle it automatically, but I tend to wonder how often respond_to? is used in real code.Broken Andyhttps://www.blogger.com/profile/01562569871940946226noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-63323258818783447742011-05-18T13:06:31.130-04:002011-05-18T13:06:31.130-04:00Hi Joe!
The original exercise only identifies ite...Hi Joe!<br /><br />The original exercise only identifies items by SKU, so presumably there is no intent to group them into similar items so as to enable discount across multiple SKUs.<br /><br />BUT...<br /><br />Now we get to contemplate what we would do if we had built a system like this, and the customer now comes to us and says they want such a feature. (You know, the kind of situation that Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-18466268666564534392011-05-17T21:25:28.910-04:002011-05-17T21:25:28.910-04:00What if the price rule was "buy three boxes o...What if the price rule was "buy three boxes of cereal and get one free"? Your collection wouldn't notice that these counted as the same items since they had different SKUs. Similarly, what if the price rule is extended to specify that the cheapest of the four is the free one?Joehttps://www.blogger.com/profile/02543764742728222017noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-36419014973823743872011-04-25T20:21:30.456-04:002011-04-25T20:21:30.456-04:00If I had just flat-out read it, yeah maybe 5 minut...If I had just flat-out read it, yeah maybe 5 minutes. But you have to give the audience time to absorb the material, and yes, the occasional "dramatic pause". I was still going faster than I would normally have liked. As what I at least would consider a good pace, it would have made a good 8-10 minute speech, with 5 minutes for Q&A afterward.Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-29988617272755337602011-04-25T13:28:41.663-04:002011-04-25T13:28:41.663-04:00Reading that, I would have guessed it would take a...Reading that, I would have guessed it would take about 5 minutes to say. I guess dramatic pauses and all that make it 8:20.Broken Andyhttps://www.blogger.com/profile/01562569871940946226noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-19465634245857735542010-10-08T21:29:27.146-04:002010-10-08T21:29:27.146-04:00Thanks for your comments.
BTW, I accidentally sen...Thanks for your comments.<br /><br />BTW, I accidentally sent the wrong version to Github. Sorry, I'm new to both git and Github. I've corrected it just now (and after doing some more work on it as well).<br /><br />As for hotel versus park, the main thing is to keep Evan well-supplied with goats to sacrifice to the weather gods. He's done GREAT with that so far, but you know how Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-44436181821807277552010-10-08T15:52:09.652-04:002010-10-08T15:52:09.652-04:00Thanks for the GitHub link. If I'm speaking fo...Thanks for the GitHub link. If I'm speaking for anyone but myself (or the 40+ others), I'm glad to look at the code and see what we can add. Cheers on the post and great job cataloguing the spirit of the 'code retreat'. I dont know how may times in the past few weeks that I've found myself wanting to return to the woods with a bunch of hackers to work on whatever problem I'Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-20452326964717647592010-10-08T12:05:16.446-04:002010-10-08T12:05:16.446-04:00Anybody? Bueller?
I'm referring to the conve...Anybody? Bueller?<br /><br />I'm referring to the conversion between chars and booleans. I created another version that does c->b only once (creating the initial world, using Arrays of true/false values instead of Strings), and b-> only for to_s. Generating the next, uh, generation, without such conversions, takes about 20% less time.<br /><br />The new version, with additional Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-34417716534970194682010-10-04T19:46:06.185-04:002010-10-04T19:46:06.185-04:00What, no comments? I know from the stats that Goo...What, no comments? I know from the stats that Google gives me, that about forty people have viewed this.<br /><br />There's a fairly obvious speedup I chose to leave out. (Actually, I was going to do it, but kinda forgot before posting it. It also would interfere with some of the other extension plans I had, so even before forgetting, I dithered a bit....)<br /><br />Hint: it's not a Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-33482101336703699272010-08-08T12:26:03.988-04:002010-08-08T12:26:03.988-04:00Of course, already I see some ways I could have ma...Of course, already I see some ways I could have made these clearer. I could have used File.open instead of .new. I seem to recall some web page saying I could have used 'read' instead of just 'r'.<br /><br />And in case you were wondering, Part 2 is coming next week, and Part 3 the week after that.Dave Aronsonhttps://www.blogger.com/profile/05727750970755433075noreply@blogger.comtag:blogger.com,1999:blog-8512553837845348385.post-52812604296287557122010-07-08T13:39:11.534-04:002010-07-08T13:39:11.534-04:00I have one piece of advice:
There is no good reas...I have one piece of advice:<br /><br />There is no good reason to worry about not being the best. All you can do is give your best effort. If you fail, don't give up. Your only competition is your own fears.bryanlhttps://www.blogger.com/profile/13982445713632074640noreply@blogger.com