terrellt

Activity Graph

Page 1 of 28 | Next »

2015-10-16

[00:19:07] terrellt: has joined #RubyonRails-offtopic
[00:19:15] terrellt: has joined #ruby-offtopic
[00:19:54] terrellt: has joined #RubyOnRails
[00:20:28] terrellt: has joined #ruby

2015-10-06

[20:43:47] terrellt: *.net *.split
[20:46:14] terrellt: has joined #RubyonRails-offtopic
[20:46:16] terrellt: has joined #ruby-offtopic
[20:46:17] terrellt: has joined #RubyOnRails
[20:46:21] terrellt: has joined #ruby
[23:10:21] terrellt: It's been too long - how to benchmark what parts of a method are taking the longest from the console?
[23:10:36] terrellt: Something like a method call graph you'd get from new relic, but from the console.
[23:10:45] terrellt: (Really it's from rspec, but same idea)
[23:12:27] terrellt: smathy++ That'll do it

2015-09-16

[18:11:51] terrellt: http://stackoverflow.com/questions/7156955/whats-the-difference-between-equal-eql-and I end up at this stackoverflow like four times a year.
[18:12:50] terrellt: tubbo: I help maintain an RDF library, where the difference matters because we have to implement it.
[18:19:24] terrellt: Mostly the fact that it's not called Diamond
[18:19:49] terrellt: Mandatory indent rules -and- curly braces.
[18:25:01] terrellt: nzst: Changes are for knowing whether or not the record needs to be persisted. Thus, when you persist (after update), those changes are erased.

2015-09-15

[03:28:52] terrellt: Ping timeout: 246 seconds
[03:36:13] terrellt: has joined #RubyOnRails
[03:36:14] terrellt: has joined #ruby
[03:36:29] terrellt: has joined #ruby-offtopic
[03:36:29] terrellt: has joined #RubyonRails-offtopic
[03:40:46] terrellt: Ping timeout: 246 seconds
[04:10:21] terrellt: has joined #RubyOnRails
[04:10:22] terrellt: has joined #ruby
[04:10:31] terrellt: has joined #RubyonRails-offtopic
[04:10:32] terrellt: has joined #ruby-offtopic

2015-09-09

[00:47:47] terrellt: Ping timeout: 246 seconds
[00:55:23] terrellt: has joined #RubyOnRails
[00:55:25] terrellt: has joined #ruby
[00:55:34] terrellt: has joined #RubyonRails-offtopic
[00:55:35] terrellt: has joined #ruby-offtopic

2015-09-07

[02:15:29] terrellt: *.net *.split
[03:04:38] terrellt: has joined #ruby-offtopic
[03:04:38] terrellt: has joined #RubyonRails-offtopic
[03:04:38] terrellt: has joined #ruby
[03:04:38] terrellt: has joined #RubyOnRails

2015-08-28

[10:27:03] terrellt: *.net *.split
[10:30:04] terrellt: has joined #RubyonRails-offtopic
[10:30:05] terrellt: has joined #ruby
[10:30:07] terrellt: has joined #RubyOnRails
[10:30:42] terrellt: *.net *.split
[10:33:01] terrellt: has joined #RubyonRails-offtopic
[10:33:02] terrellt: has joined #ruby
[10:33:04] terrellt: has joined #RubyOnRails

2015-08-26

[21:36:59] terrellt: Ping timeout: 244 seconds
[21:39:29] terrellt: has joined #RubyOnRails
[21:39:30] terrellt: has joined #ruby
[21:39:40] terrellt: has joined #RubyonRails-offtopic

2015-08-24

[10:55:15] terrellt: Ping timeout: 246 seconds
[11:04:16] terrellt: has joined #RubyOnRails
[11:04:17] terrellt: has joined #ruby
[11:04:33] terrellt: has joined #RubyonRails-offtopic

2015-08-20

[00:00:40] terrellt: http://rubular.com/

2015-07-21

[15:09:56] terrellt: *.net *.split

2015-07-20

[14:42:10] terrellt: Ping timeout: 248 seconds
[14:44:38] terrellt: has joined #RubyOnRails
[14:44:40] terrellt: has joined #ruby
[14:44:49] terrellt: has joined #RubyonRails-offtopic

2015-07-07

[15:37:00] terrellt: ActiveAdmin seems like so much work.
[15:37:10] terrellt: He says hours later.
[15:41:43] terrellt: leslie: spring stop?
[15:42:37] terrellt: leslie: Sure thing.
[15:43:20] terrellt: leslie: It should be fine now - spring (or rails?) doesn't autoload files in new directories.

2015-07-02

[17:42:05] terrellt: pipework: Pretty much.
[17:42:13] terrellt: pipework: ;)
[17:42:23] terrellt: pipework: I saw your PR, I should review it
[17:43:19] terrellt: pipework: Been too much work to keep up on IRC, how's it been?
[18:21:32] terrellt: That sounds interesting. Documented somewhere?
[18:28:36] terrellt: That sounds like a lot of fun.

2015-06-21

[00:36:36] terrellt: *.net *.split
[00:49:35] terrellt: has joined #RubyonRails-offtopic
[00:49:35] terrellt: has joined #ruby
[00:49:35] terrellt: has joined #RubyOnRails
[13:08:03] terrellt: *.net *.split
[13:09:15] terrellt: has joined #RubyOnRails
[13:09:17] terrellt: has joined #ruby
[13:09:25] terrellt: has joined #RubyonRails-offtopic

2015-06-20

[20:14:58] terrellt: *.net *.split
[21:21:59] terrellt: has joined #RubyOnRails
[21:22:01] terrellt: has joined #ruby
[21:22:15] terrellt: has joined #RubyonRails-offtopic

2015-06-19

[23:25:52] terrellt: Ping timeout: 265 seconds
[23:30:53] terrellt: has joined #RubyOnRails
[23:30:54] terrellt: has joined #ruby
[23:31:16] terrellt: has joined #RubyonRails-offtopic

2015-06-03

[21:03:16] terrellt: Ping timeout: 265 seconds
[21:24:20] terrellt: has joined #RubyOnRails
[21:24:22] terrellt: has joined #ruby
[21:24:37] terrellt: has joined #RubyonRails-offtopic

2015-05-22

2015-05-15

[22:57:09] terrellt: thomcom: Redis takes care of it.

2015-05-08

[22:06:03] terrellt: epochwolf: Out of curiosity, who should we be avoiding?
[22:06:31] terrellt: Good to know.

2015-04-30

[15:57:53] terrellt: ...I mean, vim's vim. It has rails.vim, ctags, ctrl+p, vim-rspec, tslime, etc etc.
[15:59:05] terrellt: Or ctrl+p, really - fuzzy file searching.
[15:59:28] terrellt: Yes - I used other IDEs a year ago, I'm at least twice as fast.
[15:59:41] terrellt: toretore: Ew, :e otherfile. Never close vim!
[16:00:20] terrellt: There's tabs built -in- to vim.
[16:00:29] terrellt: Tmux is important still, but yeah.
[16:00:51] terrellt: Yes, use them both, by all means, but there's so much power in keeping tabs in vim.
[16:01:45] terrellt: That's where tmux is good.
[16:02:42] terrellt: But ctrl+p, fuzzy search file, ctrl+t to open a file in a new tab is just -so fast-
[23:00:14] terrellt: The answer to "how do I build Rails apps in Windows" is "Vagrant"
[23:01:16] terrellt: _blizzy_: I did it for months. Trust me, you'll end up with a VM.
[23:01:51] terrellt: That's why Vagrant.
[23:02:02] terrellt: Run the Rails commands in the shell, develop in windows.
[23:02:44] terrellt: How is that a difference?
[23:02:59] terrellt: What pipework said.
[23:03:13] terrellt: ACTION will.
[23:03:25] terrellt: rhizome: Ah.
[23:04:37] terrellt: _blizzy_: Your environment is either going to be really good for web development or running on windows.
[23:05:24] terrellt: At least half as easily as developers in Unix.
[23:10:27] terrellt: Then I started using VIM, at which point I wasn't getting anything out of keeping Windows.
[23:11:31] terrellt: I'll be over here doing "gem install puma"
[23:13:09] terrellt: I had a veggie burger.
[23:13:15] terrellt: There's a pretty good place on campus.
[23:15:38] terrellt: bricker: The time between lunch and dinner. We're all hobbits, it's time for food.
[23:20:20] terrellt: Er, the motivation for the code of conducts I've seen in communities I'm a part of aren't instituted with the idea that now they have a "good reason" for kicking someone out. They've always had that right.
[23:23:10] terrellt: I guess I don't understand.
[23:25:47] terrellt: Mm. In my experience, code of conducts are a way to show that your community has taken a stance on being a safe place for those groups of people who typically feel marginalized or discriminated against, in an effort to broaden the community. It's less about reminding those who are already a part, and more about showing that those who -are- a part welcome you.

2015-04-29

[23:35:51] terrellt: Timezones. The fear.

2015-04-27

[20:33:48] terrellt: loc22: You could split into explicit #attributes=(params) and save calls.
[20:35:12] terrellt: loc22: No, #attributes= is like the first half of an update.
[20:35:46] terrellt: So bla.attributes = {:name => "Banana", :label => "Rama"} is like doing bla.name = "Banana" and then bla.label = "Rama"
[20:37:03] terrellt: Huh, there's an alias, plans to deprecat
[20:37:08] terrellt: deprecate*?
[20:38:35] terrellt: That's fair.
[22:14:29] terrellt: ACTION whimpers.
[22:16:12] terrellt: hnanon: https://github.com/OregonDigital/development-practices/blob/feature/postfix_conditionals/ruby/postfix_conditionals.md
[22:21:51] terrellt: Are we just going to ignore OpenStruct?
[22:24:52] terrellt: weaksauce: That's fair, even said that way the subject is at the end.
[22:30:38] terrellt: weaksauce Reading it feels like wasted cycles. I'm with bricker, clearly.

2015-04-24

[00:03:17] terrellt: Why does #new imply I get that class back?
[00:03:42] terrellt: It happens to be that classes are factories for their own instance, but there's so much power in breaking that paradigm.

2015-04-23

[20:01:48] terrellt: I've looked a few times, never found anything.
[20:16:23] terrellt: Just deploy to Heroku and do other stuff with your shared hosting.
[20:22:12] terrellt: Heroku's free, deploy there until it breaks.
[20:24:30] terrellt: DO's a good VPS, but it's a VPS.
[20:24:37] terrellt: So you need to be a sysadmin to maintain it.
[20:27:17] terrellt: That'd be a long series.
[20:27:19] terrellt: Like, years long.
[20:27:46] terrellt: But then you still will.
[20:28:18] terrellt: But yeah, DO's good if you actually WANT to learn how to maintain a server.
[20:28:21] terrellt: Which is a useful skill.
[20:28:51] terrellt: tubbo: "Damnit how many ports do I have to open"
[20:29:39] terrellt: This is unrelated, but charge backs as a way of getting money for being unsatisfied with a product is ridiculous.
[20:31:52] terrellt: Man if your startup is struggling to eat $75 those are some big issues.
[20:33:09] terrellt: Doddlin: https://education.github.com/pack
[20:52:30] terrellt: ACTION is done with rails conventions
[20:52:40] terrellt: Calcification is real.
[20:53:13] terrellt: pipework: So, like, day two?
[20:56:04] terrellt: Only conventions I stick to lately is Route -> Controller -> View and basic controller actions.
[20:56:09] terrellt: And even there I start to get a little twitchy.
[21:17:17] terrellt: smathy: Rails puts a lot of emphasis on inheritance, multiple responsibility, and coupling to make the code look simpler for that specific use case.
[23:48:19] terrellt: pipework: Bah, service objects. Done with them.
[23:49:36] terrellt: Every time I've written a Command or Service object lately it's just ended up a new place for crap to pile up.
[23:50:07] terrellt: Then my services objects are calling service objects and I've three layers of complexity deep.
[23:50:17] terrellt: Lately I've been doing composed factories.
[23:51:55] terrellt: I dunno man, lately service objects have just hurt. I'm happy to be doing them wrong, I just want to see them done right then.
[23:55:06] terrellt: +1 to well defined interfaces.
[23:56:23] terrellt: Small, tight interfaces with objects that have a single responsibility is the only way to do it.
[23:56:30] terrellt: (Also, happens to be what she said.)
[23:57:02] terrellt: I've got a crush on my Repository pattern right now. A thing that returns an object, responds to #new/#find(id).
[23:57:10] terrellt: Repository interface*

2015-04-22

[16:46:12] terrellt: chridal: They achieve the same goal, nested sets are a way of storing them in the database that gives you faster selects.
[16:48:35] terrellt: I like pry's show-source Listing#find, but I assume it does that same thing

2015-04-20

2015-04-15

[23:18:26] terrellt: https://github.com/terrellt/composed_validations Any thoughts on this?
[23:20:41] terrellt: Haven't tried reform.
[23:25:07] terrellt: I don't think reform would work for me. I needed to decide what validations to run at run time.

2015-04-10

[23:55:37] terrellt: Not a developer?
[23:55:44] terrellt: A full time paid developer*
[23:56:16] terrellt: That seems good to me then.

2015-03-24

[04:05:22] terrellt: pipework: Fine!
[04:05:32] terrellt: pipework: At a conference at the moment.
[04:06:23] terrellt: pipework: You may have asked me that forever ago, my bouncer is bad at timestamps

2015-02-10

[05:21:13] terrellt: I've nver had a -problem- with godaddy
[05:21:15] terrellt: But others are better.
[05:34:31] terrellt: ssb123: class TaxCalculator < Struct.new(:subscription_plan, :zip_code); def tax; math; end; end; Have you considered trying that?

2015-01-29

[16:33:34] terrellt: Ruby helps. Important is experience with system installs, managing updates, using tools like Puppet/Chef/Ansible, configuring CI environments, network setup, yada yada.
[16:35:42] terrellt: To be perfectly honest then, only if you're coming in as a junior-level devops with a significant amount of on-site training being available.
[16:37:48] terrellt: Nope. I've just done enough of it to know what I'd want.
[17:43:12] terrellt: nickenchuggets: Oh, I know this one. http://id.loc.gov/vocabulary/iso639-1/en.html You can get the JSON from http://id.loc.gov/vocabulary/iso639-1/en.json or the RDF n-triples from http://id.loc.gov/vocabulary/iso639-1/en.nt
[17:46:10] terrellt: nickenchuggets: https://github.com/svenfuchs/ruby-cldr might do your work for you
[20:02:47] terrellt: The "hump"?
[20:12:06] terrellt: AR, where the law of demeter is more like the suggestion of demeter's crazy aunt.

2015-01-22

[00:00:02] terrellt: The CreateResponder idea comes from a blog post about hexagonal rails. I'm relatively sold, but it's still a weird concept for me, and I struggle with where to define things.
[00:08:46] terrellt: Has github always had split diff view?
[00:08:48] terrellt: Because it's sexy.
[19:52:56] terrellt: It's pretty easy.
[22:30:28] terrellt: LazyCoder8: Need to decrypt it means you need to display it, raw, right?
[22:32:36] terrellt: LazyCoder8: Just make sure you don't actually need to compare encrypted X to encrypted Y, where encrypted Y can be stored encrypted and never decrypted.
[23:36:09] terrellt: I work in a library. VERSION EVERYTHING O.O

2015-01-21

[01:29:08] terrellt: Oh, Australia
[01:29:13] terrellt: I was like, how'd I miss hearing about that.
[16:37:47] terrellt: xhoy: You're modifying the hash in place, but what you did with the string was creating a new string object.
[16:38:27] terrellt: xhoy: It's not different. What you did with the string example is equivalent to x = {:bla => 1}, y = x, y = {:bla => 2}
[16:40:09] terrellt: I don't, but I'm rare around here in that I hate 1.9 hash syntax.
[16:41:36] terrellt: ignurant: The purpose of the Screenshot class is an object which takes a screenshot and saves it to a path?
[16:43:24] terrellt: ignurant: So you have to decide if you want to tie screenshotting to persistence of a website. If so, then consider a before_save. I'd probably create an object which handles creation of a website though, and make it do something like Screenshot.call(website, path); website.screenshot_path = path;
[16:43:41] terrellt: Then call that object wherever you need to.
[16:44:46] terrellt: Also slick would be something like Screenshot.call(url, image_path, website), where Screenshot calls whatever's in the third argument to tell it that it's completed succesfully.
[16:45:48] terrellt: 1.9 syntax saves like two characters and has reduced functionality.
[16:48:18] terrellt: ignurant: /lib and /app/services are popular.
[16:49:27] terrellt: Eh, I think the use case is too context sensitive for an observer.
[16:49:49] terrellt: Abstracting the interaction and calling it when appropriate seems more stable
[23:43:37] terrellt: Nested if statements period scare me.
[23:43:48] terrellt: Students and I just spent twenty minutes refactoring out one three-deep.
[23:43:51] terrellt: It felt satisfying.
[23:47:58] terrellt: neanderslob: Combination of tell-don't-ask and performing methods based on single line-ifs.
[23:53:24] terrellt: neanderslob: I'm not convinced I'm doing it right yet. https://github.com/osulp/find-a-friend/commit/cf7282c09550de4dbfb23afd1018644c0c810ba5?diff=split That's the diff we ended up with for the initial round.
[23:53:36] terrellt: Then a little cleanup with https://github.com/osulp/find-a-friend/commit/09b2c0dd25c876029407da2581c1c024ec1a9000

2015-01-20

[23:19:41] terrellt: "Why use form_for?" "Because it's free money"
[23:21:19] terrellt: That's two opinions I disagree with.
[23:22:35] terrellt: blahwoop: EVERYBODY hates timezones about 2 hours into having to use it
[23:23:48] terrellt: Time to go to PERL
[23:55:31] terrellt: Huh, somehow managed to miss that ruby has method currying now.
[23:59:23] terrellt: The only reason to do that would be if you're passing parameters you're keying off of, which don't necessarily go into the model.