sandelius

Activity Graph

Page 1 of 6 | Next »

2019-01-16

[17:55:30] sandelius: has joined #ruby
[17:55:32] sandelius: has joined #RubyOnRails
[21:28:34] sandelius: Quit: Textual IRC Client: www.textualapp.com

2019-01-04

[13:41:44] sandelius: has joined #ruby
[13:41:46] sandelius: has joined #RubyOnRails
[13:42:55] sandelius: Hello everyone
[13:51:32] sandelius: phaul I live in the south so it sure was windy but not that bad like other countries have it sometimes.
[13:52:14] sandelius: catbusters { are mostly used when doing one-liner blocks
[13:54:24] sandelius: catbusters try to wrap your head arounf that do/end is used for multi-line blocks and {/} for one-liners
[13:59:48] sandelius: catbusters it's exactly that tho your're calling a method from the scoped context
[14:00:13] sandelius: it kinda works the same way as jsvascript
[18:06:55] sandelius: Quit: Textual IRC Client: www.textualapp.com

2019-01-03

[20:10:07] sandelius: has joined #ruby
[20:10:09] sandelius: has joined #RubyOnRails
[20:14:26] sandelius: Evening Rubyists
[20:18:04] sandelius: comet23 ruby doesn't have a "shorthand" syntax for that, you need to call arr.unshift
[20:18:18] sandelius: or you want to make one?
[20:18:54] sandelius: ahh just define a def<<(value) method on array that uses unshift, or alias it
[20:21:16] sandelius: comet23 https://repl.it/repls/ExcitableOccasionalRuntimes
[20:22:16] sandelius: comet23 can you see my repl btw?
[20:23:12] sandelius: ok, I do not like to "monkey-patch" core classes. I would do something like this: (one sec)
[20:24:08] sandelius: can you see my changes?
[20:29:45] sandelius: Cause that will change it for all array in your entire program. This used på be popular but then people realized bug-hunting is just not worth it. It's pretty cool tho that we can create "operators" on the fly :)
[20:30:33] sandelius: It's about "Element of surprise" when the next person is going threw the code
[20:31:10] sandelius: IMO this is one of RoR biggest flaws
[20:40:13] sandelius: comet23 When the project gets bigger, or many people are working on it, that's when the issues occur. Not not so much about a bug in that method, more about playing detective
[20:48:47] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:49:36] sandelius: has joined #ruby
[20:49:40] sandelius: has joined #RubyOnRails
[21:04:55] sandelius: Good evening
[21:41:19] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-02

[08:31:41] sandelius: has joined #ruby
[08:31:43] sandelius: has joined #RubyOnRails
[09:56:28] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:07:55] sandelius: has joined #ruby
[14:07:57] sandelius: has joined #RubyOnRails
[14:22:15] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-01

[09:28:04] sandelius: has joined #ruby
[09:28:06] sandelius: has joined #RubyOnRails
[10:00:27] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:04:23] sandelius: has joined #ruby
[10:04:25] sandelius: has joined #RubyOnRails
[11:02:38] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:29:59] sandelius: has joined #RubyOnRails
[11:30:02] sandelius: has joined #ruby
[11:30:21] sandelius: Happy new year everyone
[11:38:29] sandelius: Yeah that's true, I sometime forget that the world isn't centered around Sweden ^^
[12:21:39] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:16:37] sandelius: has joined #ruby
[15:16:40] sandelius: has joined #RubyOnRails
[15:37:37] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:45:41] sandelius: has joined #ruby
[15:45:43] sandelius: has joined #RubyOnRails
[16:11:32] sandelius: Quit: Textual IRC Client: www.textualapp.com
[21:06:59] sandelius: has joined #ruby
[21:07:01] sandelius: has joined #RubyOnRails
[21:07:19] sandelius: "evening" everyone
[22:40:12] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-12-31

[10:28:18] sandelius: has joined #ruby
[10:28:21] sandelius: has joined #RubyOnRails
[11:31:21] sandelius: Quit: Textual IRC Client: www.textualapp.com
[12:45:48] sandelius: has joined #RubyOnRails
[12:45:50] sandelius: has joined #ruby
[12:46:39] sandelius: Happy New Year's Eve everyone
[15:21:12] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:07:57] sandelius: has joined #RubyOnRails
[21:08:00] sandelius: has joined #ruby
[22:52:44] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-12-30

[15:58:55] sandelius: has joined #ruby
[15:59:09] sandelius: Hello everyone
[16:00:35] sandelius: I haven't been in here for a long time. Are there any regular activity in this channel nowdays?
[16:01:16] sandelius: has joined #RubyOnRails
[16:05:43] sandelius: Ahh ok, not that much then. I'm gonna stick around from now on and help people as much as I can. I LOVE Ruby and have for 10 years but I'm a bit worried about what the near future will be. So I'm gonna try and do my part in keeping it relevant.
[16:06:36] sandelius: Job openings for Ruby in Sweden is decreasing big time and Node.js is raising threw the roof. Any ideas what "we" can do to help push Ruby forward?
[16:11:06] sandelius: I just wished more people would look at Ruby, beyond Rails, for web related stuff.
[16:13:10] sandelius: I like the idea of the tree routing structure in Roda but I really like Hanami's container structure. Tho not a big fan of ROM. But for smaller services Roda works great.
[16:44:29] sandelius: bswinnerton you could return the validation errors as json or similar
[16:45:57] sandelius: phaul why not try and get in touch with Heroku, they might be willing to sponsor it?
[16:48:04] sandelius: bswinnerton to trigger ajax:error you should be using something like: render json: model.errors.full_messages, status: 422
[16:49:59] sandelius: head 204 or head :no_content if your not responsing with any data
[16:50:09] sandelius: responding*
[17:08:32] sandelius: wonderful :)
[17:10:00] sandelius: nah you be more specific like (jQuery) $(document).on('ajax:error', '#my-element', funcction() { ... })
[17:21:05] sandelius: welcome back phaul I wrote earlier that "why not try and get in touch with Heroku, they might be willing to sponsor it?"
[17:36:32] sandelius: Hello there catbusters
[17:38:17] sandelius: Anyone got a better name for a "Base" class other than Module::Module::Base? I Hate naming :)
[17:38:55] sandelius: catbusters yes, start with Ruby then Rails ;)
[17:40:07] sandelius: catbusters if you're in to books I can recommend these for Ruby https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40
[17:40:55] sandelius: Once you get the "hang" of Ruby, Rails wont be so overwhelming and you'' understand alot more just by looking at the apis
[17:41:29] sandelius: But as lupine said, start small
[17:50:21] sandelius: catbusters I always set junior developers to go threw https://www.railstutorial.org/ it's free online and is a great intro to rails and tdd
[17:51:25] sandelius: catbusters it's still a book but interactive since you're building an app while reading
[17:52:16] sandelius: yeah I wasn't sure this was a legit question :)
[18:02:02] sandelius: catbusters Rails for Zombies used to be popular. Check it out, I think Pluralsight bought it tho
[18:55:12] sandelius: havenwood that was a nice solution 👌
[19:25:02] sandelius: Swyper it's usually called snake_case
[19:27:47] sandelius: <- vim and sublime over here
[19:30:48] sandelius: When I left Java for Ruby many, many, years ago I had an Eureka moment :)
[21:02:33] sandelius: Quit: Textual IRC Client: www.textualapp.com

2018-01-14

[19:56:53] sandelius: has joined #ruby
[21:10:04] sandelius: Quit: Textual IRC Client: www.textualapp.com

2017-09-17

[11:53:49] sandelius: has joined #ruby
[11:54:40] sandelius: How do I match a regexp pattern from a c extension? Imagine I access the pattern like: VALUE pattern = rb_iv_get(self, "@pattern");
[11:58:25] sandelius: matthewd I want to run the regexp from my extension
[12:01:02] sandelius: dminuoso I'm trying to make it happen inside a method defined with rb_define_method (in C)
[12:02:21] sandelius: matthewd yeah found rb_reg_match aswell, not alot of docs regarding this topic. thx tho
[12:25:05] sandelius: I got it to work with rb_reg_match but the new rb_reg_match_p (match?) I get implicit declaration of function 'rb_reg_match_p'
[12:34:04] sandelius: Quit: My MacBook has gone to sleep. ZZZzzz…

2016-06-28

[06:17:41] sandelius: has joined #RubyOnRails
[06:17:41] sandelius: has joined #ruby
[10:11:42] sandelius: fox_mulder_cp match either current_page?(page) or use request.path
[13:04:15] sandelius: Read error: Connection reset by peer

2016-06-27

[08:08:42] sandelius: has joined #RubyOnRails
[08:08:42] sandelius: has joined #ruby
[08:09:34] sandelius: if I have Foo::Bar and do Object.send(:remove_const, :Foo) will bar also be removed or does it live in limbo somewhere?
[08:10:34] sandelius: dminuoso it's in some tests, I get unexpected results and that might be the cause of it
[08:11:10] sandelius: dminuoso I get unexpected results sometimes. if I redefine the same modules again after removed.
[08:11:35] sandelius: I should remove them recur...
[08:13:24] sandelius: dminuoso we all did :)
[08:14:20] sandelius: Developer001 here's a good article about middleware https://www.amberbit.com/blog/2011/07/13/introduction-to-rack-middleware/
[14:26:40] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-26

[08:04:44] sandelius: has joined #RubyOnRails
[08:04:44] sandelius: has joined #ruby
[09:06:06] sandelius: LACampbell ffi has alot of overhead, what are you calling?
[09:07:48] sandelius: LACampbell then https://github.com/ffi/ffi is pretty good. I used it myself with success :)
[10:19:57] sandelius: I've been doing ruby for many years now and I still giggles sometimes I look at it
[10:23:04] sandelius: sandelius I've been doing some bench against activerecord and that part is really performant in sequel
[20:55:14] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-25

[08:04:27] sandelius: has joined #RubyOnRails
[08:04:27] sandelius: has joined #ruby
[12:20:59] sandelius: gettalong do the same in crystal and bench it :)
[12:38:12] sandelius: gettalong Ruby is more than enough 95% of the times soo go for it :)
[18:47:03] sandelius: roelof use rails 5.0.0.rc2
[18:47:08] sandelius: roelof not 4
[21:01:04] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-23

[04:19:37] sandelius: has joined #RubyOnRails
[04:19:37] sandelius: has joined #ruby
[05:20:26] sandelius: Arcaire yeah but I noticed it has a ton of overhead
[05:22:37] sandelius: Arcaire so you dont know the types?
[07:29:24] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[08:10:24] sandelius: has joined #RubyOnRails
[08:10:24] sandelius: has joined #ruby
[13:25:56] sandelius: Quit: Textual IRC Client: www.textualapp.com
[19:31:53] sandelius: has joined #RubyOnRails
[19:31:53] sandelius: has joined #ruby
[20:33:11] sandelius: yeah I would say Smalltalk
[20:33:32] sandelius: and crystal?
[20:45:17] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-22

[05:59:45] sandelius: has joined #RubyOnRails
[05:59:45] sandelius: has joined #ruby
[07:58:43] sandelius: Quit: Textual IRC Client: www.textualapp.com
[11:25:22] sandelius: has joined #RubyOnRails
[11:25:22] sandelius: has joined #ruby
[14:52:29] sandelius: Quit: Textual IRC Client: www.textualapp.com
[18:31:21] sandelius: has joined #RubyOnRails
[18:31:21] sandelius: has joined #ruby
[21:25:46] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-19

[13:48:48] sandelius: has joined #RubyOnRails
[13:48:48] sandelius: has joined #ruby
[20:03:11] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-17

[08:42:58] sandelius: has joined #RubyOnRails
[08:42:58] sandelius: has joined #ruby
[15:03:42] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-15

[06:15:28] sandelius: has joined #RubyOnRails
[06:15:28] sandelius: has joined #ruby
[08:00:05] sandelius: is it possible tto remove all the instance variable @instance_variable not initialized warings? it's driving me crazy :)
[08:00:23] sandelius: it's from sequel
[08:00:54] sandelius: shevy grr that's what I thought :/
[08:03:38] sandelius: shevy it's during test it bugs me so that might work. I see on ruby tracker that it's proposed to to be able to disable it per gem basis
[08:09:23] sandelius: iCHAIT what's password in to actual?
[08:09:31] sandelius: iCHAIT what's passed* in to actual?
[08:09:43] sandelius: what does it contain
[08:11:39] sandelius: change Array[@required_params[object_name]] to @required_params[object_name]
[08:13:29] sandelius: iCHAIT yeah you got an array inside an array
[08:13:48] sandelius: iCHAIT %w(name slugs) is an array
[08:14:11] sandelius: iCHAIT you could write it as ['name', 'slugs'] aswell
[08:15:28] sandelius: yes bur remember to dup the array or else it will be gone forever
[08:15:40] sandelius: @required_params[object_name].dup
[08:16:46] sandelius: since @required_params is defined outside the method and ruby is object oriented xd
[08:17:06] sandelius: if you know the name to delete then use delete
[08:17:21] sandelius: micro optimization :)
[08:18:05] sandelius: micro optimization is stupid is what I ment :)
[08:18:46] sandelius: iCHAIT for loops are rarely use tho. Use each instead: actual.each do |key, value|
[14:34:36] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-11

[08:06:14] sandelius: has joined #RubyOnRails
[08:06:14] sandelius: has joined #ruby
[08:09:23] sandelius: would you put validations in an entity or a repository?
[08:15:09] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-10

[06:19:50] sandelius: has joined #ruby
[06:19:51] sandelius: has joined #RubyOnRails
[08:14:58] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[08:26:36] sandelius: has joined #RubyOnRails
[08:26:36] sandelius: has joined #ruby
[10:16:54] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[10:34:19] sandelius: has joined #RubyOnRails
[10:34:19] sandelius: has joined #ruby
[12:13:14] sandelius: Quit: Textual IRC Client: www.textualapp.com
[12:13:37] sandelius: has joined #RubyOnRails
[12:13:37] sandelius: has joined #ruby
[12:21:44] sandelius: this is pretty short and easy to grasp about the topic https://lucaguidi.com/2016/06/07/the-penguin-that-cannot-fly.html
[12:21:52] sandelius: composition that is
[12:22:08] sandelius: no that's the problem :)
[12:23:29] sandelius: shevy haha right
[12:25:40] sandelius: Bish no but it points out the problem with inheritance :)
[12:25:51] sandelius: not all inheritance is bad tho
[12:30:32] sandelius: off topic: I havent done any real PHP work but in most languages we use connection pools for creating new e.g database connections. But in PHP it seems like a new connection is created upon each request? Can this really be?
[12:31:30] sandelius: Bish but but but wont the dataabse slap you in the face if you get many requests?
[12:32:05] sandelius: you would end up with an insane amount of open connections
[12:32:33] sandelius: (porting a php project to ruby)
[13:48:00] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[13:48:46] sandelius: has joined #RubyOnRails
[13:48:46] sandelius: has joined #ruby
[14:32:53] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-06-09

[15:10:01] sandelius: has joined #RubyOnRails
[15:10:01] sandelius: has joined #ruby
[15:15:23] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[15:20:41] sandelius: has joined #RubyOnRails
[15:20:41] sandelius: has joined #ruby
[15:32:42] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[16:02:10] sandelius: has joined #RubyOnRails
[16:02:10] sandelius: has joined #ruby
[19:15:12] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[19:24:54] sandelius: has joined #RubyOnRails
[19:24:54] sandelius: has joined #ruby
[19:39:51] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[20:54:49] sandelius: has joined #RubyOnRails
[20:54:49] sandelius: has joined #ruby
[21:05:42] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…

2016-04-29

[07:07:35] sandelius: has joined #RubyOnRails
[07:07:35] sandelius: has joined #ruby
[08:57:29] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[10:14:20] sandelius: has joined #RubyOnRails
[10:14:20] sandelius: has joined #ruby
[14:16:10] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-04-27

[05:33:58] sandelius: has joined #RubyOnRails
[05:33:58] sandelius: has joined #ruby
[05:59:22] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…
[06:15:04] sandelius: has joined #RubyOnRails
[06:15:04] sandelius: has joined #ruby
[19:59:24] sandelius: Quit: Textual IRC Client: www.textualapp.com

2016-04-26

[21:45:21] sandelius: Quit: My Mac has gone to sleep. ZZZzzz…