baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
sticaz has quit [Ping timeout: 244 seconds]
eckhardt has joined #ruby
cthu| has joined #ruby
r29v has joined #ruby
akaiiro has joined #ruby
bijan_ has joined #ruby
<Radar> sdegutis: yes I was
<sdegutis> oh cool Radar
cthulchu has quit [Ping timeout: 252 seconds]
cthu| has quit [Ping timeout: 264 seconds]
DTZUZO has quit [Ping timeout: 272 seconds]
jcarl43 has quit [Quit: WeeChat 2.2]
<Radar> yes it is I, "cool Radar"
sdegutis has quit [Remote host closed the connection]
ansraliant has joined #ruby
despai has quit [Ping timeout: 244 seconds]
<Eiam> probably thinking of radar.app given its sdegutis
<Eiam> (developer in the apple ecosystem)
<Eiam> but maybe its just cause you are cool too Radar , who am I to say =)
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
siery has quit [Ping timeout: 244 seconds]
LiftLeft has quit [Ping timeout: 252 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
ramfjord has joined #ruby
bijan_ has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
meinside has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
LiftLeft has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bijan_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
bijan_ has joined #ruby
r29v has quit [Quit: r29v]
bijan_ has quit [Ping timeout: 252 seconds]
dbz has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
ramfjord has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
r29v has joined #ruby
bijan_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
vonfry has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
graphene has quit [Remote host closed the connection]
vonfry has quit [Client Quit]
graphene has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Remote host closed the connection]
bijan_ has joined #ruby
gtramontina has joined #ruby
gtramontina has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
dbz has quit [Remote host closed the connection]
\void has joined #ruby
gnufied has quit [Ping timeout: 264 seconds]
bijan_ has joined #ruby
ramfjord has joined #ruby
bryanray has joined #ruby
kapil___ has joined #ruby
r29v has quit [Quit: r29v]
bijan_ has quit [Ping timeout: 252 seconds]
dbz has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
bryanray has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bryanray has joined #ruby
bijan_ has joined #ruby
dbz has quit [Remote host closed the connection]
bryanray has quit [Client Quit]
bryanray has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bryanray has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
bryanray has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has joined #ruby
bhrgunatha has joined #ruby
braincrash has quit [Quit: bye bye]
arescorpio has quit [Quit: Leaving.]
bijan_ has joined #ruby
lxsameer has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
thy0 has quit [Quit: TTFN]
braincrash has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
bhrgunatha has quit [Quit: ChatZilla 0.9.93 [Waterfox 56.0.4/20180202194147]]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
sdegutis has joined #ruby
bambanx has joined #ruby
bijan_ has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
bijan_ has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
bijan_ has joined #ruby
gtramontina has joined #ruby
orbyt_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
dbz has joined #ruby
gtramontina has quit [Remote host closed the connection]
bijan_ has joined #ruby
bryanray has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gtramontina has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
dbz has quit [Remote host closed the connection]
jp has quit [Ping timeout: 272 seconds]
dbz has joined #ruby
jp has joined #ruby
sdegutis has quit [Ping timeout: 252 seconds]
graphene has quit [Remote host closed the connection]
bijan_ has joined #ruby
graphene has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
bijan_ has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
r29v has joined #ruby
r29v has quit [Client Quit]
bijan_ has joined #ruby
Hobbyboy has quit [Ping timeout: 272 seconds]
gtramontina has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 252 seconds]
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
Hobbyboy has joined #ruby
ramfjord has joined #ruby
bijan_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
galeido has quit [Remote host closed the connection]
gtramontina has joined #ruby
Emmanuel_Chanel has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
DarthGandalf has quit [Quit: Bye]
kapil___ has quit [Quit: Connection closed for inactivity]
DarthGandalf has joined #ruby
Puffball_ has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 252 seconds]
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
bijan_ has joined #ruby
gtramontina has quit [Remote host closed the connection]
Rootsudo has joined #ruby
dbz has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 252 seconds]
gtramontina has joined #ruby
za1b1tsu has joined #ruby
dbz has joined #ruby
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
gtramontina has quit [Remote host closed the connection]
k0mpa has quit [Ping timeout: 250 seconds]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
bijan_ has joined #ruby
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
sspreitz has quit [Ping timeout: 276 seconds]
gtramontina has joined #ruby
chongtxtx has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
knight33 has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
ur5us has quit []
bijan_ has joined #ruby
\void has quit [Ping timeout: 268 seconds]
\void has joined #ruby
reber has joined #ruby
darkhanb has joined #ruby
Inline has quit [Quit: Leaving]
za1b1tsu_ has joined #ruby
DTZUZO has joined #ruby
za1b1tsu has quit [Ping timeout: 264 seconds]
sspreitz has joined #ruby
LiftLeft has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
sauvin has joined #ruby
gtramontina has quit [Remote host closed the connection]
dellavg_ has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LiftLeft has joined #ruby
brainslug has quit [Ping timeout: 272 seconds]
bijan_ has joined #ruby
brainslug has joined #ruby
haylon_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
doubledup has joined #ruby
aupadhye has joined #ruby
snickers has joined #ruby
bijan_ has joined #ruby
Freshnuts has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
apeiros_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
Yxhuvud has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
dbz has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 268 seconds]
dhollinger has joined #ruby
Rootsudo has joined #ruby
aufi has joined #ruby
code_zombie has quit [Quit: Leaving]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
doubledup has quit [Quit: Leaving]
sysvalve has joined #ruby
jinie has joined #ruby
yohji has joined #ruby
bijan_ has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
clemens3_ has joined #ruby
b0mbnet has joined #ruby
bambanx_ has joined #ruby
mike11 has joined #ruby
bijan_ has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
graphene has quit [Remote host closed the connection]
bambanx has quit [Ping timeout: 272 seconds]
graphene has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
Rootsudo has quit [Ping timeout: 268 seconds]
pabs has quit [Ping timeout: 268 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
aupadhye_ has joined #ruby
bijan_ has quit [Ping timeout: 276 seconds]
xall has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
bijan_ has joined #ruby
<apeiros_> not strictly limited to ruby - anybody here with experience with building and maintaining integration layers? any recommendations on what to read the topic? pitfalls you experienced? things you'd do differently today than you did before?
KeyJoo has joined #ruby
apeiros_ is now known as apeiros
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
ferhaty has joined #ruby
aupadhye_ has quit [Ping timeout: 268 seconds]
dbugger_ has joined #ruby
DTZUZO has joined #ruby
b0mbnet has quit [Ping timeout: 244 seconds]
bijan_ has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 252 seconds]
za1b1tsu_ has quit [Ping timeout: 276 seconds]
bak1an has joined #ruby
lxsameer has joined #ruby
dbugger_ is now known as Dbugger
bambanx_ has quit [Quit: Leaving]
despai has joined #ruby
xall has quit [Quit: xall]
Danielss89 has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
Emmanuel_Chanel has joined #ruby
yohji has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
Beams has joined #ruby
despai has quit [Read error: Connection reset by peer]
despai has joined #ruby
tty has quit [Quit: tty]
donofrio_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
donofrio__ has quit [Ping timeout: 244 seconds]
yohji has joined #ruby
despai has quit [Quit: ...]
vondruch has joined #ruby
despai has joined #ruby
bijan_ has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 252 seconds]
ansraliant has quit [Quit: Konversation terminated!]
mike11 has quit [Quit: Leaving.]
nicesignal has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
nicesignal has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
Freshnuts has quit [Quit: Leaving]
clorisu has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
za1b1tsu_ has joined #ruby
reber has quit [Remote host closed the connection]
sticaz has joined #ruby
reber has joined #ruby
kapil___ has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
aupadhye has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
reber has quit [Remote host closed the connection]
reber has joined #ruby
pabs has joined #ruby
alex`` has quit [Quit: WeeChat 2.2]
vondruch has quit [Quit: vondruch]
r3m_ has joined #ruby
r3m has quit [Ping timeout: 252 seconds]
r3m_ is now known as r3m
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
ramfjord has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
za1b1tsu_ has quit [Ping timeout: 244 seconds]
bijan_ has quit [Remote host closed the connection]
desperek has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
nowhere_man has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
<apeiros> *lolsob*, ---of course--- %p is *lowercase* am/pm while %P is *uppercase*. seriously, that decision, wtf?
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
tristanp has joined #ruby
za1b1tsu_ has joined #ruby
despai has quit [Quit: ...]
tristanp has quit [Ping timeout: 272 seconds]
za1b1tsu_ has quit [Ping timeout: 268 seconds]
<tbuehlmann> apeiros: you mean the other way around?
<apeiros> lol. yes, indeed I do.
<apeiros> %p -> AM/PM, %P -> am/pm.
<tbuehlmann> heh, that's unexpected
<apeiros> so unexpected that I even messed it up in my rant 😂
sticaz has quit [Quit: BELLA LI!]
za1b1tsu_ has joined #ruby
Burgestrand has joined #ruby
sticaz has joined #ruby
discopatrick has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
bijan_ has quit [Remote host closed the connection]
bijan_ has joined #ruby
AJA4350 has joined #ruby
gtramontina has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
octomancer has joined #ruby
bijan_ has joined #ruby
aupadhye has quit [Read error: Connection reset by peer]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
tristanp has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
alex`` has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
aupadhye has joined #ruby
bijan_ has joined #ruby
yohji has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
yohji has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
ramfjord has joined #ruby
bijan_ has joined #ruby
kasot has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
<kasot> hi, are there any guidelines for how to work with namespaces when creating frameworks in ruby?
ramfjord has quit [Ping timeout: 244 seconds]
<kasot> my framework will need to "autoload" _controller, for example
sylario has joined #ruby
<kasot> that is: PostController, while my ApplicationController is defined in the module FrameworkName
<apeiros> not sure what you're looking for. the most important guideline re namespaces is: have the smallest possible footprint in the toplevel namespace.
bijan_ has quit [Ping timeout: 252 seconds]
<apeiros> apart from that, the only other guideline is the name/file mapping: Foo::BarBaz should be loadable via require "foo/bar_baz"
<kasot> so, are the conventions for how FrameworkName::App to register PostController < FrameworkName::ApplicationController
<apeiros> no
<kasot> yeah, I know guidelines for namespaces generally
<apeiros> there are patterns, but no guidelines.
bijan_ has joined #ruby
<apeiros> also IMO you shouldn't enforce a parent class
<kasot> yeah, makes sense
<kasot> use include/extend instead?
<apeiros> for example, yes
Nicmavr has joined #ruby
despai has joined #ruby
<kasot> ok, generally, do you think application code using a framework should not be namespaced in a module?
<kasot> that is, the framework can look for *Controller in the global namespace?
<kasot> I guess that is how rails does it
<apeiros> see top guideline. I think it absolutely should be namespaced.
<apeiros> and since your application usually has a name, it makes sense to use that name as toplevel namespace.
<apeiros> you IMO absolutely should NOT put stuff in the toplevel namespace.
<kasot> right, so then... somehow... that module/application name should be sent to the framework, and the framework will look for classes/constants in that namespace
<apeiros> (apart from that single namespace your project/app/gem/engine/plugin/whatever defines)
<kasot> yeah, I can agree with that :)
<apeiros> "and the framework will look for" that's where we are in the patterns world. there are multiple ways for how to do that.
fmcgeough has joined #ruby
<apeiros> ways I'm aware of:
<apeiros> * explicit registration callback (YourFramework.register_controller YourApp::SomeController)
<apeiros> * implicit via hooks (class YourApp::SomeController < YourFramework::AbstractController --> def YourFramework::AbstractController.inherited(by_controller); …register by_controller… -- same can be done via Module#included, #extended, #prepended)
<apeiros> * implicit via scanning: YourApp::Controllers.constants.map { |c| YourApp::Controllers.const_get(c) }.select(&:controller?)
<apeiros> there are probably more. maybe even some I'd know about but forgot right now :D
<kasot> yeah, too many options for this in ruby :)
<kasot> Im guessing something explicit makes sense as a start
<apeiros> personally I've used the first two. if I did the 2nd, it was usually by actually having 1st implemented and invoking that explicit registration callback as a convenience if you followed a set pattern (e.g. used "extend AbstractThingy")
<apeiros> brb
yohji has quit [Remote host closed the connection]
yohji has joined #ruby
alex`` has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
alex`` has joined #ruby
<kasot> does this problem have a name?
<kasot> I find it hard to google
beefjoe has joined #ruby
clorisu has quit [Quit: Leaving]
<apeiros> it's a kind of registry system
bijan_ has quit [Ping timeout: 252 seconds]
aupadhye has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
<kapil___> `010 > help String.gsub` not working
graphene has quit [Remote host closed the connection]
<havenwood> kapil___: In IRB?
graphene has joined #ruby
<kapil___> yes
ineb has joined #ruby
bijan_ has joined #ruby
bmurt has joined #ruby
ferhaty has quit [Quit: ferhaty]
galeido has joined #ruby
ramfjord has joined #ruby
galeido has quit [Client Quit]
galeido has joined #ruby
<apeiros> kapil___: what?
ramfjord has quit [Ping timeout: 252 seconds]
GodFather__ has quit [Ping timeout: 252 seconds]
<kapil___> i need help for the String.gsub function
<apeiros> ok.
<apeiros> but you will have to elaborate if you want help.
<kapil___> how to get help of function inside irb?
aupadhye has joined #ruby
<apeiros> help "String.gsub"
<apeiros> or open another window and type `ri String#gsub`
<apeiros> without the ``
<apeiros> and actually it should have been String#gsub instead of String.gsub up there too (. will work, but # to denote instance methods is better)
<kapil___> apeiros: thanks
beefjoe has quit [Ping timeout: 268 seconds]
beefjoe has joined #ruby
kevinsjoberg has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
aupadhye has left #ruby ["Leaving"]
Rapture has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
gnufied has joined #ruby
yohji has quit [Remote host closed the connection]
yohji has joined #ruby
beefjoe has quit [Remote host closed the connection]
bijan_ has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
Inline has joined #ruby
apeiros has quit []
graphene has quit [Remote host closed the connection]
raul782 has joined #ruby
graphene has joined #ruby
bijan_ has joined #ruby
k0mpa has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
kasot has quit [Ping timeout: 252 seconds]
cthulchu_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
k0mpa has quit [Ping timeout: 250 seconds]
herbmillerjr has quit [Excess Flood]
herbmillerjr has joined #ruby
mostlybadfly has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
bijan_ has quit [Remote host closed the connection]
akaiiro has quit [Ping timeout: 272 seconds]
bijan_ has joined #ruby
vondruch has quit [Quit: vondruch]
troys has joined #ruby
akaiiro has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
GodFather__ has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
snickers has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
raul782 has quit [Remote host closed the connection]
bijan_ has joined #ruby
raul782 has joined #ruby
aufi has quit [Ping timeout: 272 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
[Butch] has joined #ruby
Burgestrand has quit [Quit: Closing time!]
lomex has joined #ruby
<alex``> What is the most recommended between array.flatten and array.reduce(:+)?
bijan_ has joined #ruby
<alex``> numbers = lines.map do |line|
<alex``> line.agents.map(&:number)
<alex``> end.flatten.sort
<alex``> s/sort/uniq/
<havenwood> alex``: In modern Ruby, #sum.
<havenwood> alex``: Also, #flat_map is like a #map followed by a #flatten(1).
bijan_ has quit [Ping timeout: 252 seconds]
<alex``> havenwood: Wow thanks
<alex``> #sum is like #reduce(:+) ?
Burgestrand has joined #ruby
<alex``> which version of Ruby has #sum?
<alex``> 2.5.1 here
graphene has quit [Remote host closed the connection]
GodFather_ has joined #ruby
graphene has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
<havenwood> alex``: Ruby 2.4.+
<havenwood> alex``: It's more like a more efficient version of: reduce(0, :+)
<alex``> Ah
<havenwood> >> [].reduce(:+)
<ruby[bot]> havenwood: # => nil (https://eval.in/1051492)
<alex``> I want merge the array list
<alex``> not sum the numbers
bmurt has joined #ruby
<alex``> (they are phone numbers)
<Eiam> apeiros_: could you elaborate a bit on what you mean by integration layers?
<havenwood> alex``: Ah, then flat_map
<alex``> Thanks :')
bijan_ has joined #ruby
<apeiros_> Eiam: I wish I could 😓. basically we (for a rather stretched definition of "we") have decided that we need an integration layer in order to attach 3rd party applications and legacy applications in our infrastructure. the scale is ~20 applications/services (where the number of services is supposed to go up by ~20 if we extract all the stuff from our beautiful monolith)
apeiros_ is now known as apeiros
GodFather__ has quit [Ping timeout: 264 seconds]
<apeiros> but as to what that IL should be capable of - we're not really sure. we're still very early in the discovery phase of what we actually need.
<Eiam> and this is to look for regressions in 3rd party and legacy products as you are integrating forward changes?
raul782 has quit [Remote host closed the connection]
<alex``> havenwood: did you write your article / CLI gem?
raul782 has joined #ruby
<havenwood> alex``: Not yet! I was at Rails Camp last week and now I'm at Droidcon NY. I betcha I'll have time this weekend though.
<havenwood> P.S. - Go to a Rails Camp! Summer camp for Rubyists. :-)
<apeiros> Eiam: it's more to connect 3rd party apps, not for regression testing
GodFather has joined #ruby
GodFather_ has quit [Ping timeout: 264 seconds]
<apeiros> and yes, it's in order to enable a switch towards a more service/microservice oriented architecture
<apeiros> i.e. enable forward changes
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
Burgestrand has quit [Quit: Closing time!]
<Eiam> hm. Okay. My day job involves this but not for web apps or micro services, its for actual native apps and the host platform
<Eiam> so I'm not sure my experiences would directly map
voxxit has quit [*.net *.split]
alicef has quit [*.net *.split]
samort7 has joined #ruby
<apeiros> I'm not sure there'll ever be experiences which map directly :D
<apeiros> pm?
<Eiam> yup lets do it, I never see anyone stumbling into my domain =)
Burgestrand has joined #ruby
nowhere_man has joined #ruby
<z64> within the ruby stdlib, is there a more efficient way (performance) of `JSON.parse #=> Hash` -> `MyObject.new(hash)`?
<apeiros> z64: afaik you can pass JSON an option what to use for Array and Hashes
gtramontina has quit [Remote host closed the connection]
<z64> oh, how didn't i see that option. alright. i'm not sure what my types needs to implement but i'll try that
justinweiss has quit []
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<z64> `#[]=` it looks like
sysvalve has quit [Quit: Leaving]
lxsameer has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
Rootsudo has joined #ruby
lxsameer has joined #ruby
cyclonis has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
<z64> hmm yeah i don't think https://carc.in/#/r/4txe will work for us.. what i really want is to drive the parser myself (a pull parser), but `JSON::Ext::Parser` only exposes `#parse`
jcarl43 has joined #ruby
lxsameer has joined #ruby
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 272 seconds]
Rootsudo has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
gtramontina has joined #ruby
cthulchu has joined #ruby
rikkipitt has quit [Ping timeout: 264 seconds]
rikkipitt has joined #ruby
akaiiro has quit [Ping timeout: 272 seconds]
jane_booty_doe has quit [Quit: Leaving]
eckhardt has joined #ruby
darkhanb has joined #ruby
r29v has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
rikkipit_ has joined #ruby
gtramontina has quit [Ping timeout: 272 seconds]
bmurt has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
yohji has quit [Remote host closed the connection]
bmurt has joined #ruby
rikkipitt has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
dbz has joined #ruby
bougyman has quit [Excess Flood]
bougyman has joined #ruby
dbz has quit [Read error: Connection reset by peer]
gtramontina has joined #ruby
lxsameer has joined #ruby
knight33 has joined #ruby
<knight33> I've got a small ruby app that runs on Windows. Anyone know of a gem I can use to monitor it? I don't know the terminology, but I'm trying to get the program to send requests out, and a service monitors that (versus the service sending requests to the app). This is cause the IP will always be changing.
justinweiss has joined #ruby
blackbaba has joined #ruby
Zaab1t has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
gtramontina has quit [Ping timeout: 252 seconds]
Beams has quit [Quit: .]
DTZUZO has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
drbrain has quit [Quit: Goodbye]
lxsameer has joined #ruby
orbyt_ has joined #ruby
drbrain has joined #ruby
jane_booty_doe has joined #ruby
gtramontina has joined #ruby
doubledup has joined #ruby
zxq2 has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
blackbaba has quit [Remote host closed the connection]
blackbaba has joined #ruby
lomex has joined #ruby
lomex has quit [Client Quit]
lxsameer has joined #ruby
blackbaba has quit [Client Quit]
gtramontina has quit [Ping timeout: 268 seconds]
lomex has joined #ruby
bijan__ has quit [Remote host closed the connection]
bijan_ has joined #ruby
gtramontina has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
rikkipit_ has quit [Quit: Leaving...]
bijan_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
lomex has joined #ruby
Burgestrand has quit [Quit: Closing time!]
SeepingN has joined #ruby
<baweaver> knight33: You want a reverse DNS
<href> that's not what a reverse dns is
<href> maybe a" dynamic dns" ?
dbz has joined #ruby
<baweaver> Ah, that's what it was.
lxsameer has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
code_zombie has joined #ruby
<baweaver> Don't remember all the potential services for it, but I wouldn't go reinventing it either if there's a good one for Windows that already exists.
graphene has quit [Remote host closed the connection]
jp has joined #ruby
graphene has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
bijan_ has joined #ruby
lxsameer has joined #ruby
mroutis has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
<href> baweaver: yeah there's a shitton of dyndns services out there :)
sameerynho has joined #ruby
<baweaver> iirc there were routers that'd allow you to hook up to one too.
<href> a reverse dns is something to ”link” an IP to an hostname; and goes in two part, a PTR entry in the arpa zone to point the ip back to the hostname; & the hostname to the ip
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
drbrain has quit [Quit: Goodbye]
lxsameer has quit [Ping timeout: 268 seconds]
drbrain has joined #ruby
bijan_ has joined #ruby
gtramontina has quit [Ping timeout: 244 seconds]
Puffball has joined #ruby
gtramontina has joined #ruby
lxsameer has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
drbrain has quit [Ping timeout: 245 seconds]
drbrain has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
moei has quit [Quit: Leaving...]
bijan_ has joined #ruby
lxsameer has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
tty has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
cyberzeus has joined #ruby
gtramontina has quit [Ping timeout: 244 seconds]
gtramontina has joined #ruby
lxsameer has joined #ruby
GodFather has joined #ruby
alex`` has quit [Quit: WeeChat 2.2]
Freshnuts has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snickers has joined #ruby
crankharder has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
heinrich5991 has quit [Quit: quit.]
heinrich5991 has joined #ruby
bmurt has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
knight33 has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
akaiiro has joined #ruby
clemens3_ has quit [Remote host closed the connection]
voxxit has joined #ruby
alicef has joined #ruby
cyberzeus has left #ruby ["ciao edie"]
sauvin has quit [Read error: Connection reset by peer]
bijan_ has quit [Ping timeout: 276 seconds]
bijan_ has joined #ruby
lxsameer has joined #ruby
cyberzeus has joined #ruby
cyberzeus has left #ruby ["ciao edie"]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zapata has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
sonOfRa has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
kevinsjoberg has quit [Ping timeout: 268 seconds]
despai has quit [Quit: ...]
dviola has joined #ruby
bijan_ has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
lxsameer has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
Puffball_ has joined #ruby
bijan_ has joined #ruby
Puffball has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
Puffball has joined #ruby
akaiiro has quit [Remote host closed the connection]
GodFather has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
Puffball_ has quit [Ping timeout: 272 seconds]
Zaab1t has quit [Quit: Zaab1t]
GodFather has quit [Ping timeout: 252 seconds]
akaiiro has joined #ruby
bijan_ has joined #ruby
nikivi has quit [Quit: ZNC is awesome]
Sina has quit [Quit: Connection closed for inactivity]
gtramontina has quit [Ping timeout: 272 seconds]
nikivi has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
jcarl43 has quit [Ping timeout: 244 seconds]
jcarl43 has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
bijan_ has joined #ruby
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #ruby
GodFather has joined #ruby
sonne has quit [*.net *.split]
bijan_ has quit [Ping timeout: 252 seconds]
za1b1tsu_ has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 264 seconds]
sticaz has quit [Ping timeout: 264 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #ruby
bak1an has joined #ruby
gtramontina has joined #ruby
za1b1tsu_ has joined #ruby
bijan_ has joined #ruby
sonne has joined #ruby
GodFather has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu_ has quit [Ping timeout: 240 seconds]
nikivi has quit [Quit: ZNC is awesome]
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
nopolitica has quit [Ping timeout: 268 seconds]
nikivi has joined #ruby
gtramontina has quit [Ping timeout: 240 seconds]
bijan__ has quit [Ping timeout: 252 seconds]
teej has joined #ruby
teej has quit [Excess Flood]
teej has joined #ruby
bijan_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
gtramontina has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 252 seconds]
cliluw has joined #ruby
akaiiro has quit [Quit: Ping timeout (120 seconds)]
gtramontina has quit [Ping timeout: 272 seconds]
bijan_ has joined #ruby
akaiiro has joined #ruby
gtramontina has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
dbz has quit [Remote host closed the connection]
zapata has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
bijan__ has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
evdubs has quit [Remote host closed the connection]
bijan_ has joined #ruby
evdubs has joined #ruby
GodFather has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
mroutis has quit [Ping timeout: 244 seconds]
gtramontina has quit [Ping timeout: 245 seconds]
Dbugger has quit [Ping timeout: 264 seconds]
ellcs has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
roshanavand has quit [Ping timeout: 244 seconds]
akaiiro has quit [Ping timeout: 246 seconds]
akaiiro has joined #ruby
gtramontina has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
scrptktty has joined #ruby
sticaz has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
moei has joined #ruby
akaiiro has quit [Ping timeout: 240 seconds]
akaiiro has joined #ruby
reber has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 245 seconds]
galeido has quit [Ping timeout: 272 seconds]
gtramontina has quit [Ping timeout: 252 seconds]
gtramontina has joined #ruby
dellavg_ has quit [Ping timeout: 252 seconds]
despai has joined #ruby
gtramontina has quit [Ping timeout: 246 seconds]
gtramontina has joined #ruby
teej has quit []
jane_booty_doe has quit [Quit: Leaving]
gtramontina has quit [Ping timeout: 245 seconds]
al2o3-cr has quit [Quit: WeeChat 2.2]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
gtramontina has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
bryanray has joined #ruby
ramfjord has joined #ruby
gtramontina has quit [Ping timeout: 246 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
setient has quit [Remote host closed the connection]
bryanray has quit [Ping timeout: 246 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
GodFather has joined #ruby
mrush has quit [Ping timeout: 268 seconds]
LACampbell has joined #ruby
<LACampbell> I have a bunch of strings like this "\"hello\r\n\"". IE, it's double quoted. how can I flatten them out?
nopolitica has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<apeiros> LACampbell: to clarify, if you'd use the string as an argument to `puts`, would you want to see "hello" (with a CRLF at the end), or \"hello\r\n\"?
<LACampbell> Just hello. i suppose I won't break anything if I just chain a bunch of gsubs on them actually
<apeiros> then how did you end up with "\"hello\r\n\"" in the first place?
<LACampbell> it's from an http response
<apeiros> I think there's still some crucial information missing
<LACampbell> what's missing? I have a large collection of strings that are double formatted
<LACampbell> I think I overcomplicated it, ".gsub("\"", "").gsub("\r", "").gsub("\n", "") will work
<apeiros> I think fixing the code procuring the data would be better. at least it very much seems like that's where something is off.
<LACampbell> I can't fix the API end point (:
jtdowney has quit [Ping timeout: 252 seconds]
<miah> i think you could just .strip it to remove that trailing \r\n as well
<al2o3-cr> "\"hello\r\n\"".undump.strip probably.
<apeiros> LACampbell: are you sure you're not getting something like JSON from that API back and "forgot" to parse it?
<LACampbell> apeiros: no, I'm parsing the raw body of it
despai has quit [Quit: ...]
<apeiros> care to paste the full raw body of a genuine response?
<LACampbell> Http.request(r).body
<apeiros> or even the full response so we can see the headers
<LACampbell> "\"The 'HerdType' element is invalid - The value '' is invalid according to its datatype 'HerdType' - The Enumeration constraint failed.\""
<al2o3-cr> LACampbell: i'd use str.undump.rstrip
gtramontina has joined #ruby
<al2o3-cr> for that anyway.
Nicmavr has quit [Read error: Connection reset by peer]
<apeiros> definitively more sane than the gsubs. an end-point which seems to return the inspect value of a string (or similar). what a weird API.
<LACampbell> undump must be a new method, I don't have it
<LACampbell> thanks though
<al2o3-cr> yeah 2.4+ i believe
Nicmavr has joined #ruby
<apeiros> huh? github down?
helpa has joined #ruby
Yxhuvud has quit [Ping timeout: 276 seconds]
<Radar> apeiros: seems fine to me
gtramontina has quit [Ping timeout: 245 seconds]
<apeiros> didn't load for minutes. now it loads fine.
<apeiros> LACampbell: https://github.com/apeiros/literal_parser contains something similar to #undump
code_zombie has quit [Quit: Leaving]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has joined #ruby
despai has quit [Client Quit]
Xeago has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
Exuma has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
doubledup has quit [Quit: Leaving]
gtramontina has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
jtdowney has joined #ruby
gtramontina has quit [Ping timeout: 252 seconds]
Azure|dc has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
setient has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
gtramontina has joined #ruby
ramfjord has joined #ruby
r29v has quit [Quit: r29v]
patr0clus has joined #ruby
gtramontina has quit [Ping timeout: 240 seconds]
patr0clus has quit [Ping timeout: 252 seconds]
desperek has quit [Quit: xoxo]
cthulchu has joined #ruby
gtramontina has joined #ruby
gtramontina has quit [Client Quit]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby