Ebok

Activity Graph

Page 1 of 6 | Next »

2017-12-25

[20:10:23] Ebok: has joined #ruby
[20:28:12] Ebok: Quit: Leaving

2017-05-06

[02:12:07] Ebok: has joined #ruby
[02:34:48] Ebok: Quit: This computer has gone to sleep
[02:36:39] Ebok: has joined #ruby
[03:03:27] Ebok: It's not horrible.
[03:03:57] Ebok: I mean, I would try to avoid needing to do this type of conversion in the first place
[03:04:53] Ebok: what kind of queries are we talking about?
[03:05:01] Ebok: Like sorting queries?
[03:05:15] Ebok: Yeah.. How much of this is there already?
[03:05:24] Ebok: That's a shame
[03:05:46] Ebok: Well if you have to add to bad code, it's not going to look great.
[03:06:32] Ebok: I would strongly suggest a good test suite, and then a day of splitting.
[03:07:15] Ebok: Or you could just write methods for them
[03:08:27] Ebok: def sort_by_name_reverse ; call sort_by_name.reverse ; end
[03:13:28] Ebok: correct me here. @title_args is a symbol
[03:13:40] Ebok: I mean tag
[03:13:46] Ebok: @title_tag
[03:14:05] Ebok: Then in title... @title_tag gets called #t(args)
[03:14:18] Ebok: Why is a symbol invoking anything?
[03:14:41] Ebok: Also where is flavor defined?
[03:15:56] Ebok: Oh, this is just a chunk of a module, right. So the parent is responcible.
[03:16:36] Ebok: Honestly... it looks like major refactoring needs to take place.
[03:18:20] Ebok: Well, the very first thing I'd do is put in that code you've got to get it working.
[03:18:45] Ebok: This is rails..?
[03:18:58] Ebok: Okay then.
[03:19:11] Ebok: There are a number of suggestions then.
[03:19:36] Ebok: 1. ) In your own time / when your boss says okay / when you've nothing on your plate
[03:20:00] Ebok: I'd consider pulling out the sorting from the main class.
[03:20:38] Ebok: Write it as a service to whatever active record model you're using.
[03:21:07] Ebok: And handle all the sorting logic in one place.
[03:22:08] Ebok: Only do this if you have good test coverage over the features. Hopefully your test coverage was well written unit tests.
[03:22:23] Ebok: Otherwise I'd write tests first <_>
[03:23:29] Ebok: Open source, or just learning?
[03:24:12] Ebok: Yeah, the way we think about rails now is not how they thought about rails then.
[03:25:00] Ebok: rails can be really flexible, but you can also build some really fragile code if you're not careful.
[03:27:18] Ebok: I tend to write a lot of small service classes organized by module. module FEATURE class ACTION. So you want to pull out the code so when you go to test the thing, you only have to test input to output.
[03:32:55] Ebok: Honestly, I learned to code in Rails
[03:33:17] Ebok: But everytime I pull most of the ruby out of it, everything is nicer
[03:34:15] Ebok: When I'm allowed, I pretty much work on Rails as a plugin. At which point anything could be there instead and it would work just as well.
[03:35:43] Ebok: It's certainly easy to become dependent on Rails when working in it.
[03:36:27] Ebok: Best code I've seen pretty much works by itself, and the framework is used as a transition module. How to get input and output to the user.
[03:37:42] Ebok: Or the database... or another website.
[03:40:56] Ebok: Being full stack does not mean it's good to mix client and server logic
[03:41:38] Ebok: I'm a full stack dev myself, it's not hard to be anywhere. The trick is being disciplined in everywhere.
[03:48:41] Ebok: Quit: Leaving

2017-03-28

[17:25:07] Ebok: has joined #RubyOnRails
[17:25:07] Ebok: has joined #ruby
[18:55:22] Ebok: Have you Read the Community Guidelines for Ruby? I found it extremely useful when learning the language.
[18:55:58] Ebok: It's mostly syntax, but due to that it ends up being a great list of features.
[18:56:13] Ebok: Which can be easily googleable / testable
[20:03:40] Ebok: Quit: Leaving

2017-03-27

[00:17:25] Ebok: Quit: Leaving

2017-03-26

[22:17:42] Ebok: has joined #RubyOnRails
[22:17:42] Ebok: has joined #ruby

2017-03-17

[06:49:03] Ebok: has joined #RubyOnRails
[06:49:03] Ebok: has joined #ruby
[07:17:47] Ebok: Quit: Leaving

2016-07-29

[22:42:38] Ebok: has joined #RubyOnRails
[22:42:38] Ebok: has joined #ruby
[22:44:52] Ebok: Client Quit

2016-07-28

[00:43:39] Ebok: has joined #RubyOnRails
[00:43:39] Ebok: has joined #ruby
[02:22:57] Ebok: Quit: This computer has gone to sleep

2016-07-27

[03:25:09] Ebok: Quit: Leaving

2016-07-26

[22:18:28] Ebok: has joined #ruby
[22:18:29] Ebok: has joined #RubyOnRails

2016-07-23

[01:41:54] Ebok: has joined #RubyOnRails
[01:41:54] Ebok: has joined #ruby
[05:12:52] Ebok: Quit: This computer has gone to sleep
[14:03:04] Ebok: has joined #RubyOnRails
[14:03:04] Ebok: has joined #ruby
[14:15:42] Ebok: Quit: Leaving

2016-07-22

[22:28:09] Ebok: has joined #RubyOnRails
[22:28:09] Ebok: has joined #ruby
[22:28:44] Ebok: Anyone seen Ox0dea around?
[22:42:29] Ebok: A month ago I was just checking in every few days and looking around
[23:30:31] Ebok: Quit: This computer has gone to sleep

2016-07-21

[17:42:29] Ebok: has joined #ruby
[17:42:45] Ebok: has joined #RubyOnRails
[17:43:58] Ebok: I have a question. I need to have a rails controller redirect a post request to another website, and I need to be able to change the headers of this request.
[17:44:42] Ebok: Yup. I have control over both, and the other is expecting a very specific type of entry.
[21:14:14] Ebok: Ping timeout: 250 seconds

2016-07-16

[00:27:39] Ebok: has joined #ruby
[00:27:39] Ebok: has joined #RubyOnRails
[09:49:48] Ebok: Quit: Leaving

2016-07-15

[17:21:48] Ebok: has joined #RubyOnRails
[17:21:48] Ebok: has joined #ruby
[17:38:01] Ebok: Quit: This computer has gone to sleep
[17:44:36] Ebok: has joined #ruby
[17:44:36] Ebok: has joined #RubyOnRails
[19:24:01] Ebok: Quit: This computer has gone to sleep
[20:57:49] Ebok: has joined #RubyOnRails
[20:57:49] Ebok: has joined #ruby
[21:08:36] Ebok: Quit: This computer has gone to sleep
[22:20:31] Ebok: has joined #ruby
[22:20:31] Ebok: has joined #RubyOnRails
[23:37:49] Ebok: Quit: This computer has gone to sleep

2016-07-13

[02:08:02] Ebok: has joined #ruby
[02:08:02] Ebok: has joined #RubyOnRails
[05:03:36] Ebok: Quit: This computer has gone to sleep
[11:35:48] Ebok: has joined #RubyOnRails
[11:35:49] Ebok: has joined #ruby
[11:36:21] Ebok: Client Quit

2016-07-12

[01:32:23] Ebok: has joined #ruby
[01:32:23] Ebok: has joined #RubyOnRails
[02:29:54] Ebok: Quit: This computer has gone to sleep
[02:58:30] Ebok: has joined #ruby
[02:58:30] Ebok: has joined #RubyOnRails
[03:30:32] Ebok: Quit: This computer has gone to sleep
[11:19:31] Ebok: has joined #ruby
[11:19:31] Ebok: has joined #RubyOnRails
[12:00:05] Ebok: Quit: This computer has gone to sleep
[21:46:25] Ebok: has joined #ruby
[21:46:25] Ebok: has joined #RubyOnRails
[21:56:57] Ebok: Quit: This computer has gone to sleep
[21:58:11] Ebok: has joined #ruby
[21:58:11] Ebok: has joined #RubyOnRails
[22:56:19] Ebok: Quit: This computer has gone to sleep

2016-07-11

[01:30:23] Ebok: has joined #ruby
[01:30:23] Ebok: has joined #RubyOnRails
[02:40:46] Ebok: Quit: This computer has gone to sleep
[03:23:15] Ebok: has joined #RubyOnRails
[03:23:15] Ebok: has joined #ruby
[04:09:11] Ebok: Quit: This computer has gone to sleep
[11:24:38] Ebok: has joined #ruby
[11:24:38] Ebok: has joined #RubyOnRails
[11:57:35] Ebok: Quit: This computer has gone to sleep
[21:56:24] Ebok: has joined #ruby
[21:56:24] Ebok: has joined #RubyOnRails
[23:21:11] Ebok: Quit: This computer has gone to sleep

2016-07-10

[05:31:14] Ebok: has joined #RubyOnRails
[05:31:14] Ebok: has joined #ruby
[07:07:22] Ebok: Read error: Connection reset by peer
[07:10:55] Ebok: has joined #RubyOnRails
[07:10:55] Ebok: has joined #ruby
[07:44:41] Ebok: Quit: This computer has gone to sleep
[13:04:58] Ebok: has joined #RubyOnRails
[13:04:59] Ebok: has joined #ruby
[13:57:03] Ebok: Quit: This computer has gone to sleep
[15:55:17] Ebok: has joined #RubyOnRails
[15:55:17] Ebok: has joined #ruby
[16:06:43] Ebok: Quit: This computer has gone to sleep
[17:09:16] Ebok: has joined #RubyOnRails
[17:09:16] Ebok: has joined #ruby
[17:19:07] Ebok: Quit: This computer has gone to sleep
[18:44:59] Ebok: has joined #RubyOnRails
[18:44:59] Ebok: has joined #ruby
[19:42:57] Ebok: Quit: This computer has gone to sleep

2016-07-09

[04:10:57] Ebok: has joined #ruby
[04:10:57] Ebok: has joined #RubyOnRails
[04:12:37] Ebok: Client Quit
[12:17:44] Ebok: has joined #ruby
[12:17:44] Ebok: has joined #RubyOnRails
[12:49:15] Ebok: Quit: This computer has gone to sleep
[12:51:42] Ebok: has joined #ruby
[12:51:42] Ebok: has joined #RubyOnRails
[13:01:46] Ebok: Quit: This computer has gone to sleep
[13:15:17] Ebok: has joined #ruby
[13:15:17] Ebok: has joined #RubyOnRails
[14:06:59] Ebok: Quit: This computer has gone to sleep

2016-07-08

[18:47:29] Ebok: has joined #RubyOnRails
[18:47:29] Ebok: has joined #ruby
[19:01:45] Ebok: Quit: This computer has gone to sleep
[20:59:35] Ebok: has joined #ruby
[20:59:35] Ebok: has joined #RubyOnRails
[21:21:23] Ebok: Quit: This computer has gone to sleep
[21:37:53] Ebok: has joined #ruby
[21:37:53] Ebok: has joined #RubyOnRails
[22:23:31] Ebok: Quit: This computer has gone to sleep

2016-07-02

[14:52:34] Ebok: has joined #RubyOnRails
[14:52:34] Ebok: has joined #ruby
[15:36:47] Ebok: Quit: Leaving

2016-06-24

[17:30:32] Ebok: has joined #ruby
[18:53:18] Ebok: Quit: Internet is down or Computer is restarting. I'll be back.

2016-06-16

[13:31:21] Ebok: has joined #RubyOnRails
[13:31:21] Ebok: has joined #ruby
[15:12:52] Ebok: Quit: This computer has gone to sleep
[15:18:34] Ebok: has joined #ruby
[15:18:34] Ebok: has joined #RubyOnRails
[16:17:25] Ebok: Quit: Leaving

2016-05-30

[01:15:01] Ebok: Read error: No route to host
[01:15:41] Ebok: has joined #ruby
[01:15:41] Ebok: has joined #RubyOnRails
[05:59:50] Ebok: Quit: Leaving

2016-05-29

[01:07:17] Ebok: Quit: This computer has gone to sleep
[01:08:44] Ebok: has joined #ruby
[01:08:44] Ebok: has joined #RubyOnRails
[09:59:37] Ebok: Quit: This computer has gone to sleep
[16:32:01] Ebok: has joined #RubyOnRails
[16:32:01] Ebok: has joined #ruby

2016-05-28

[20:25:38] Ebok: has joined #RubyOnRails
[20:25:38] Ebok: has joined #ruby

2016-05-26

[01:01:39] Ebok: You'd have to turn it into a string
[01:02:42] Ebok: I think that you liking the oney gem has gotten me to start liking the money gem
[01:03:20] Ebok: I love to learn about wellused and muchloved gems
[01:03:38] Ebok: I've not had the opporunity to play with as many as I want to
[01:04:53] Ebok: I need to watch more railscast that being said
[01:05:15] Ebok: I stard to play with node.js and then realized I like ruby better. lol
[01:05:18] Ebok: Ahem started*
[01:48:37] Ebok: Quit: Leaving

2016-05-25

[21:23:17] Ebok: has joined #RubyOnRails
[21:23:17] Ebok: has joined #ruby
[21:23:41] Ebok: When is the -> operator useful in ruby?
[21:24:53] Ebok: Does it have a specific term?
[21:25:01] Ebok: Oh I men, the ->
[21:25:06] Ebok: If that is what you meant
[21:25:55] Ebok: Yeah. I know how lambads work, I just hadnt ever needed to use one. I couldnt think of a good reason to need it.
[21:26:16] Ebok: But yeah, I also wanted to make sure it didnt have any hidden extras. Like in rails -> is used to define scope
[21:26:43] Ebok: I know how scope plays inside.
[21:26:52] Ebok: lol very cool
[21:27:00] Ebok: I didnt realize.
[21:27:59] Ebok: Thanks for the feedback
[21:31:13] Ebok: I think I'd need context to approach this question.
[21:32:49] Ebok: A method shouldnt get called more then once unless you call it more then once.
[21:33:20] Ebok: almost got it
[21:35:33] Ebok: I had a good one I read a few months ago when I was picking ruby up. Lemmie see if I can find the title
[21:38:42] Ebok: http://peterc.org/beginningruby/ <== This book was the one I used. It helped clear a lot up and get me really on my feet with the language.
[21:39:34] Ebok: I went from that into reading the style guide and some algorithm books, and then into rails
[21:39:51] Ebok: I fully recommend reading the ruby style guide as you're learning.
[21:40:26] Ebok: It'll make sure you learn the standards that will be expected of you when it comes to spacing, format, etc.
[21:46:06] Ebok: I've never been a fan of trying to parse erb files. So much ugly surrounding the pretty. I dont actually see on what line check_tank is even invoked. A search through givess me the title of one document and the method but no calls.
[21:46:40] Ebok: I never do.
[21:50:30] Ebok: No... You can tell atom what your indents are
[21:50:37] Ebok: two spaces is good.
[21:53:32] Ebok: Or you can just ask yourself who you could be calling it six times. Is there another piece of related data that has six parts? Maybe you're calling it while iterating?
[21:54:22] Ebok: The number of actions is defined by your code, so there will be something relational to the problem at hand.
[22:04:36] Ebok: Quit: This computer has gone to sleep
[23:38:23] Ebok: has joined #RubyOnRails
[23:38:23] Ebok: has joined #ruby

2016-05-24

[21:58:13] Ebok: Quit: This computer has gone to sleep