havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
<Papierkorb> And chainable and everything, yes
<dminuoso> So I take it you can also do this without arguments, just thing(&.bar) ?
<Papierkorb> correct
<dminuoso> Neat :)
<Papierkorb> You can also do `foo.select(&.> 5)` to select everything greater than five
jrabe has joined #ruby
<Papierkorb> reduces block spam by magnitudes compared to ruby
<dminuoso> Papierkorb: Is that also only allowed in argument position?
<dminuoso> Or can you do this to create partially applied functions?
<dminuoso> i.e. can you do something like a = &.> 5 ?
al2o3-cr has quit [Ping timeout: 240 seconds]
<Papierkorb> & is like in ruby, it creates a block. but you can build a Proc using that
<dminuoso> That is neat.
alfiemax has quit [Ping timeout: 240 seconds]
<Papierkorb> `a = Proc(Int32, Bool).new(&.> 5)` <- Ah well, the compiler doesn't fully deduce proc types yet
<dminuoso> You can do this in Haskell too (even more compact) like `a = (> 5)`, or `b = (5 >)`
<dminuoso> So I can definitely appreciate the elegance in that.
<dminuoso> Mmm, that is a bit length.
<Papierkorb> But as you pass blocks in 99% of all cases when you have to pass logic, it's a non-issue
<dminuoso> Papierkorb: That .try by the way is called fmap in Haskell, or map in ruby. ;-)
<Papierkorb> It's actually called try in ruby too.
<Papierkorb> Only call if called on non-nil
<Papierkorb> Or, Crystals version of &. - basically
<dminuoso> Papierkorb: That's a railsism
<dminuoso> In Ruby core its the equivalent of Array#map
<Papierkorb> More like `x.y if x`
<Papierkorb> (proper nil check left as excercise to the reader)
<dminuoso> Papierkorb: Which is #map for the Maybe functor. :)
<dminuoso> Papierkorb: Ignoring `false`, || is the equivalent of <|> as implemented for Maybe. Your code does not look too terribly different actually.
jxv has joined #ruby
<jxv> Are underscores preferred in package names (instead of spaces or dashes)?
<dminuoso> jxv: both dashes and underscores can be found
al2o3-cr has joined #ruby
<jxv> thanks
<dminuoso> Papierkorb: I do like that initializer shortcut. I really hate boilerplate initializers :(
<Papierkorb> dminuoso: In my view, OOP is still the way. Sure it got a bad name over decades of abuse (Java). But the issue isn't OOP. It's that many languages' type systems don't live up to OOPs capabilities (Type erasure, wtf?). Hence my reason for Crystal. I'd probably go to Rust if I were to leave that language.
<RickHull> TViernion: seems like a passenger problem
<Papierkorb> Yeah there are ton of nice little additions
<dminuoso> Papierkorb: Im tempted to try out OCaml to see how well a fusion of the two can work.
<RickHull> TViernion: whoops, lost track of the IRC, nevermind
cdg has joined #ruby
<dminuoso> (Also I want to try out a real ML language)
<Papierkorb> dminuoso: Yeah OCaml sounded interesting to me too
<dminuoso> Supposedly the library ecosystem is horrible, but the language has some real attractive things.
<Papierkorb> Though I'm a bit spoiled by union types. Way way way fewer OOP hacks around awful type systems with that
<dminuoso> Papierkorb: You get those too in OCaml.
<Papierkorb> Really annoying that Rust doesn't have them. If it had I'd probably be gone. Rust has an amazing innovative memory management system, but its type system is boringly conservative
<dminuoso> Papierkorb: And better yet, you get a hindley milner typesystem.
jphase has quit [Ping timeout: 258 seconds]
<dminuoso> Something you will hate crystal for not having once you experience it.
<RickHull> so Haskell?
<RickHull> or SML maybe?
shreve has joined #ruby
apeiros has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> which is more repulsive, lisp or smalltalk?
cdg has quit [Ping timeout: 252 seconds]
<dminuoso> Neither really.
<dminuoso> Though my smalltalk experience is limited at best.
apeiros has quit [Ping timeout: 248 seconds]
<RickHull> lisp can't even distinguish between code and data, let alone data types
VladGh has quit [Remote host closed the connection]
apeiros has joined #ruby
VladGh has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
<Papierkorb> why are academic languages always so ugly?
ta has joined #ruby
<RickHull> isn't it pretty neat that ColorForth is more powerful than Forth?
<RickHull> since when was adding color more than aesthetic?
<Papierkorb> Ocaml: `"string" ^ "concat" ^ "blows the roof."`
railswebdev has joined #ruby
<RickHull> Papierkorb: i think that's mostly legacy, a legacy of being old
<Papierkorb> dminuoso: ocaml lists are much less powerful than crystal arrays
apeiros has quit [Ping timeout: 260 seconds]
<dminuoso> Papierkorb: How are they less powerful?
<Papierkorb> `[1;2.0]` is an error in ocaml. `[1, 2.0]` is a `Array(Int32 | Float64)` in Cr
<shreve> \q
shreve has quit [Quit: Lost terminal]
<RickHull> is it ever proper to operate on a collection of ints and floats?
<dminuoso> Papierkorb: My opinion is, should you want to ever create such lists - the problem lies in your approach
<dminuoso> not the language
<RickHull> if floats are involved, should the ints be floats?
<dminuoso> Papierkorb: To implicitly assume there must be a union type involved if type inference detects two possible types is just a sure way of guaranteeing bugs in statically typed languages.
<Papierkorb> RickHull: as that'd create special rules for floats, no.
<dminuoso> or rather in strongly typed languages.
ta has quit [Ping timeout: 248 seconds]
<RickHull> Papierkorb: why stuff ints into a collection of floats?
<RickHull> what's a good example of that necessity?
<Papierkorb> dminuoso: As all code paths are traced completely, such bugs are generally cought at compile time. Comibining Floats and Ints may be a bit hairy, but as you usually have no reason to combine these two types...
<dminuoso> Papierkorb: Though in Haskell this actually works but for other reasons.
shreve has joined #ruby
shreve has quit [Client Quit]
<dminuoso> Papierkorb: what is so powerful, it the ability to express as general as possible, without losing stuff.
<RickHull> i think in ruby and other languages, a literal int is created easily and wants to be stuffed in float collections, but we should make sure, somehow, to keep the collection homogenous
<dminuoso> For example the ability to declare a function as: a -> a -> b
<dminuoso> is incredibly generic but not too generic.
ur5us has quit [Remote host closed the connection]
<Papierkorb> dminuoso: Yeah we do that in Crystal too
<RickHull> dminuoso: duck typing is one approach...
<dminuoso> Papierkorb: Do you have parametric types?
<Papierkorb> dminuoso: Free variables you mean? Sure
<dminuoso> Papierkorb: Huh?
<Papierkorb> `def foo(a : T, b : T) forall T`
<dminuoso> Papierkorb: What does that mean?
<RickHull> foo operates on arity-2 all types T
<Papierkorb> foo will accept any type for a and b, as long a and b have the same type
<RickHull> oh
<dminuoso> Papierkorb: and I can express foo :: forall a b, a -> a -> b
<dminuoso> in haskell for example
<dminuoso> s/,/./
jphase has joined #ruby
<dminuoso> Papierkorb: essentially expressing takes 2 of any type, as long as they are the same type, but returns any type
<Papierkorb> yep that part I know
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> Really, in crystal you call these "typings" restrictions, as you restrict the type to something you specify. If you don't restrict, it's free-for-all.
<dminuoso> Papierkorb: With parametric type I meant.. type constructors as functions, so you can do things like: a x -> b x -> x
jxv has joined #ruby
<Papierkorb> dminuoso: you want an A(X) and a B(X) to return an X?
<dminuoso> Papierkorb: no this is saying `function taking `a x`, `b x` and returning `x`
<dminuoso> where a x in itself is a type
<dminuoso> for example [] x
<dminuoso> or more commonly using the syntax sugar [x]
<dminuoso> but it could be anything, like `Leaf Int` for example
mtkd has quit [Ping timeout: 240 seconds]
<Papierkorb> That paradigm by itself doesn't translate well from FP to OOP. In OOP, you simply use a common base class
<dminuoso> Papierkorb: Oh it absolutely does. C++ does this in form of templates for example.
jxv has quit [Client Quit]
<Papierkorb> you mean with template-templates?
<dminuoso> Papierkorb: ?
<Papierkorb> `template<typename T<typename>>` or however the exact notation was?
<dminuoso> Do you have parametric polymorphism?
<dminuoso> Sure if you want higher kinded types.
<Papierkorb> Dude not everyone spent 10 years studying academics to know every buzzword
<dminuoso> I never went to uni.
<dminuoso> :S
<Papierkorb> I know that haskell sure loves their concept names
<dminuoso> C++ uses that word!
* dminuoso hides
axisys has quit [Ping timeout: 255 seconds]
<Papierkorb> People outside compiler devs read the standard?
<Papierkorb> Well, yes, but throughoutly?
<Papierkorb> > "Parametric Polymorphism" is just another term for "Generics" in Java.
<Papierkorb> Just say so. We even call them Generics in Crystal too.
<dminuoso> Yup
apeiros has joined #ruby
<dminuoso> Well, every language has a different name for it.
<dminuoso> It's like typeclasses. Elixir calls them protocols, ocaml calls them traits, C++ calls them concepts..
<dminuoso> Haskell calls them typeclasses..
<Papierkorb> "template" or "generic" is generally a good guess
<dminuoso> Ruby calls them... well.. 'mixins'
chouhoul_ has quit [Remote host closed the connection]
<RickHull> </3 mixins
<Papierkorb> ruby is dynamically typed, who cares, you can just pass whatever anyway
apeiros has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 240 seconds]
<Papierkorb> .. scrolling through some ocaml slides, so what's the big difference between haskell and ocaml exactly?
<Papierkorb> is hs simply a successor of that?
jxv has joined #ruby
<Papierkorb> oh ocaml supports mutable data. hell of FP just froze over.
<dminuoso> Papierkorb: also haskell has typeclasses
<Papierkorb> and ocaml isn't actually type safe. And that's a pass.
<dminuoso> huh?
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> Papierkorb: look at https://en.wikipedia.org/wiki/Standard_ML too
<RickHull> closer to Haskell I think, anyway
<Papierkorb> err, page 37
<dminuoso> and thats not being type safe???
<dminuoso> Im not sure whether you are making a joke.
<Papierkorb> I've yet to be actually impressed by any FP language. It's not that I regard them as bad, but as plain hard to read
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
railswebdev has joined #ruby
<Papierkorb> dminuoso: If I do something that causes the language to segfault that should be caught by the type system, that's a defect
<dminuoso> Papierkorb: Well the further I progress, the more I enjoy it because you have a much greater freedom in expressing your code. I suppose there are some good reasons why Haskell seems to be dominated by academics with a mathematical background.
<Papierkorb> If it helps mathematicians, that's good
<Papierkorb> I'm no mathematician
latemus is now known as waveprop
jdawgaz has joined #ruby
<dminuoso> Papierkorb: Btw that would appear to not be page 38 then. :P
<Papierkorb> It's page 37, or page 87, depending on how your pdf reader displays it
<dminuoso> # let hetero_list = [1;2; 3.0 ];; ^^^ Error: This expression has type float but an expression was expected of type int
<dminuoso> Ahh.
waveprop is now known as latemus
cschneid_ has joined #ruby
<dminuoso> If I had any clue what that `''"!! help. How do I even?!
<dminuoso> Oh it's just '
rubycoder37 has joined #ruby
apeiros has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
porfa has quit [Quit: porfa]
alfiemax has joined #ruby
<Papierkorb> Smalltalk looks like it could be useful
workmad3 has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<latemus> isnt smalltalk where ruby gets the |e| notaition from
<rubycoder37> why is python still more popular than ruby? I'm a bit upset my friends migrated to python for this reason, I still prefer ruby
<RickHull> python is closer to C, more pragmatic, less pure in terms of developer experience
<RickHull> see also: numpy
<Papierkorb> Who cares? Use what you like the most. If someone pins you on that, their loss
apeiros has quit [Ping timeout: 240 seconds]
<RickHull> also, python has a culture of pythonicity, the one true way
<Zarthus> so does rust and go, with rustfmt and gofmt
sepp2k has quit [Ping timeout: 258 seconds]
<RickHull> newest and newer
<RickHull> will probably eclipse python IMHO
cdg has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<rubycoder37> RickHull: you think rust will eclipse python?
sepp2k has joined #ruby
<RickHull> in some measures, for sure
<Papierkorb> Hard to replace a scripting language with a compiled and strictly static language
<RickHull> popularity measures for various applications
<rubycoder37> do you think crystal will eclipse ruby?
<Papierkorb> Time will tell.
<Papierkorb> Maybe, maybe not
<Papierkorb> Will Elixir "eclipse" ruby?
<Papierkorb> And if so, in what measure?
<RickHull> i think crystal + elixir will
workmad3 has quit [Ping timeout: 240 seconds]
<RickHull> union, not addition
<rubycoder37> I don't think elixir will eclipse ruby
<Papierkorb> I know that I'm not interested in Elixir. But that's because I'm not interested in webdev.
<RickHull> ruby is legacy now, kinda. it's very hard to steer the battleship
<Papierkorb> And Crystal lets me (finally again) wreck havoc on bare metal
<rubycoder37> a lot of people think ruby is just a rails thing
<wmoxam> those ppl are wrong 😅
<Papierkorb> ^
<rubycoder37> wmoxam: yes
<rubycoder37> I talk to people who are wrong all the time
<RickHull> mruby looks like the brightest lineage for ruby 100 years from now -- agree?
<rubycoder37> I love proving them wrong
<rubycoder37> not that I'm always right
cdg has quit [Ping timeout: 246 seconds]
guardianx has joined #ruby
<wmoxam> IMO Ruby has always been, and still is a great glue language
<RickHull> i think ruby will be the Algol of the 2000s
<RickHull> most contemporary languages will owe homage
<wmoxam> Elixir, Crystal etc aren't as good as glue
<Papierkorb> `result := a > b ifFalse: [ "bar" ]` smalltalk has had unless for ages - with the difference being its pendant being readable by everyone easily. Nice
<wmoxam> if anything will replace it maybe it'll be Perl :D
<Papierkorb> wmoxam: Compared to e.g. Lua, Ruby has a huge disvantage in that the VMs are so hard to embed and use
<RickHull> mruby
<Papierkorb> It's admirable how good Luas API is
guardianx has left #ruby [#ruby]
damasta has left #ruby [#ruby]
<rubycoder37> I started using rails in 2008 when rails was a hot thing, I was still writing PHP (yuck) back then, but I already saw ruby being used, I wanted a more general purpose language and ruby was it
<Papierkorb> RickHull: wasn't mruby similar to CRubys API?
<wmoxam> Papierkorb: that's not what I meant by glue :D
<rubycoder37> eventually people moved to go and node and other langs, but I didn't
<RickHull> Papierkorb: i think so, I haven't used it in anger yet
<RickHull> (yet)
<Papierkorb> RickHull: Then it doesn't hold a candle in that department to Lua
<Papierkorb> (Well OTOH, Luas stdlib is whack at best)
<rubycoder37> some of my friends still make fun of me for sticking to ruby, and I get even more upset with them
<RickHull> perhaps, but it still has use
<RickHull> rubycoder37: don't get emotionally invested
<RickHull> PROTIP
<Papierkorb> rubycoder37: Why do you care? Knowing a tool, even if it isn't the most-perfect fit for the job, really really well is so much more useful than knowing the most-perfect tool for the job only somewhat
<wmoxam> rubycoder37: I haven't seen much migration away from Ruby/Rails
<Papierkorb> And if you move to JS from Ruby, I really can't help you
<wmoxam> lol
<RickHull> gotta be full stack yo
<Papierkorb> lol
John___ has quit [Read error: Connection reset by peer]
<Papierkorb> You'd hope that dogfooding your own JS client code on the server would eventually improve the quality of client and server code, as you don't want to waste resources on your server
<latemus> jquery is rather ruby-like
<latemus> i've noticed
<Papierkorb> But jokes on me, with electron, crappy server AND client code is now packaged as electron!
<Papierkorb> What a time to be alive
<wmoxam> ugh, electron
<wmoxam> I've quit using electron app
<wmoxam> s
<Papierkorb> I only use Atom. It's the least worst editor I know :(
<RickHull> is that github's atom editor framework thing?
<wmoxam> Sublime is better :p
<rubycoder37> Papierkorb: I had a experience writing python at wor recently and it wasn't a very good experience, but I also think that's mostly because I inherited a very crappy codebase and not because of python itself
<RickHull> emacs ftw
<rubycoder37> work*
<rubycoder37> electron is awful
<RickHull> rubycoder37: a craftsman doesn't blame his tools unless they really suck
DLSteve has joined #ruby
<Papierkorb> rubycoder37: I really really like OOP. Not in the Java sense. Proper OOP. Python isn't so sure if it's imperative or object-oriented. So that's a "Meh" from me.
DLSteve has quit [Client Quit]
mtkd has joined #ruby
<rubycoder37> RickHull: yes, nothing against python
<RickHull> in ruby it's nice that everything is an object except for some stuff
<Papierkorb> "Numbers are objects" was a revelation to me
<rubycoder37> I like Ruby, I want to see ruby being used more
<RickHull> dminuoso: i thought that ruby couldn't properly implement |> because of the difference between an instance as a method receiver vs the first arg
<RickHull> i.e. def operates_on_float(flt)
<RickHull> vs Float#operates_on_float
<Papierkorb> The only thing that'd make any sense at all would be `object.foo |> another_object.bar`. And I'm not sure it'd be that useful. But I'm not really against it either.
<wmoxam> really want to check out Perl 6. Have heard great things
<rubycoder37> Larry Wall is a nice guy
<Papierkorb> The perl sucks talks were great fun too :P
hahuang65 has joined #ruby
<rubycoder37> I think he's a funny guy
eckhardt has joined #ruby
csk157_1 has joined #ruby
<matthewd> module Kernel; def pipe_arrow(obj, sym, *args, &block); obj.send(sym, self, *args, &block); end; end
<RickHull> >> 'str'.pipe_arrow(:reverse) # 'str' |> reverse
<ruby[bot]> RickHull: # => undefined method `pipe_arrow' for "str":String (NoMethodError) ...check link for more (https://eval.in/888901)
<RickHull> something like that?
<RickHull> how do you handle String#methods vs methods(str) ?
<Papierkorb> RickHull: We have that already. We call it the .... dot operator!
hahuang65 has quit [Ping timeout: 240 seconds]
<Papierkorb> >> 'str'.reverse
<ruby[bot]> Papierkorb: # => "rts" (https://eval.in/888902)
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> amazing
<RickHull> right, but it's not like |> in some critical way(s)
<matthewd> RickHull: 'str'.pipe_arrow(self, :reverse) # 'str' |> self.reverse # reverse('str')
sepp2k has quit [Read error: Connection reset by peer]
csk157_1 has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
<RickHull> so you specify val goes to (receiver, method)
<Papierkorb> |> would only make sense to turn `one.two(three.four)` into `three.four |> one.two`
<matthewd> Not claiming it's a compelling syntax.. just noting that it's "just" a matter of adding something to the parser
<RickHull> useful?
<Papierkorb> That's the actual question. I'm not sure if it would improve code, worsen code, or if nothing would change at all (because no one cared)
<matthewd> I'm not terribly convinced, but I'm open to the idea in principle
<Papierkorb> ^
<matthewd> ISTM that we already have reasonable chaining via `.`, such that breaking up those chunks with intermediate variables is more likely to be descriptive than uselessly verbose
<Papierkorb> ISTM?
<RickHull> it seems to me
<Papierkorb> Probably, you'd need to modify ruby to support that |> and then write code (or port existing code) for it to see how it "feels"
<RickHull> it's not the same "win" it is in elixir, at all
DebianUser_ has quit [Read error: Connection reset by peer]
<Papierkorb> elixir is a functional language, not OOP
<Papierkorb> It mimics many parts of OOP though, give it that
<matthewd> Right, because a good portion of what it's doing in Elixir, is done by `.` in Ruby
<RickHull> Papierkorb: yep, this discussion of |> goes back to FP discussions
<RickHull> here in the last week
DebianUser_ has joined #ruby
<Papierkorb> we had people calling for |> in the FP sense (and not in a OOP sense) in the crystal github as issue years ago
<RickHull> (all I know is the elixir sense)
<Papierkorb> Because writing "foos |> Enumerable.each" is totally better than "foos.each" or something
<RickHull> it's pretty great, actually
<RickHull> that's not the best example
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> in ruby, we use #tap and #andand to work around this lack
<RickHull> and similar things
<Papierkorb> It completely breaks the type system
<RickHull> not in Elixir, unless I misunderstand you
<Papierkorb> and makes that thing to test a nightmare
<matthewd> RickHull: Oh? What does tap look like in Elixir?
<Papierkorb> RickHull: Elixir isn't Ruby
<RickHull> no shit?
<Papierkorb> What they do they do. Elixir is a functional language, what may make sense for them may not make sense in OOP
<Papierkorb> Which is fine
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> see how |> gets used
<RickHull> the structure is much different though, despite the strategies being similar
jottr has joined #ruby
<matthewd> Right; that line would be `conway.tick.print(options).sleep(options).loop(options)` in Ruby
<Papierkorb> Yeah
<Papierkorb> Which is actually more readable
<RickHull> it could be, if those would deign to return self
<RickHull> but they don't
<matthewd> That's unfair
<Papierkorb> Then write it on a separate line?
<matthewd> They're your methods
<RickHull> ;)
<matthewd> And your Elixir methods have to return their first argument for that to work
jdawgaz has joined #ruby
<RickHull> there is a convention that makes it work that doesn't exist in Ruby
<matthewd> That has nothing to do with the syntax, though
|ifei5g00d has joined #ruby
s3nd1v0g1us has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
<RickHull> methods don't have receivers
|ifei5g00d has quit [Read error: Connection reset by peer]
<RickHull> and as such they aren't tempted to have to return self
<RickHull> in order to chain
|ifei5g00d has joined #ruby
<matthewd> Just because you name the first argument something other than 'self', doesn't make it not self
<matthewd> (ask Python)
<RickHull> in elixir, the first arg is not self implicitly
<matthewd> It is when you call it with |>
<RickHull> functions are functions, not methods with access to private state
<RickHull> you're right that the ruby userspace could be rewritten that way
<RickHull> but ruby is OOP not FP, per Papierkorb
<Papierkorb> I already gave a |> that'd at least make some kind of sense in OOP. If it'd be a good addition I don't know.
<matthewd> So why do we keep having this comparison discussion?
<RickHull> sorry, I remain convinced that |> can't work usefully in Ruby
<RickHull> ruby makes this big distinction between the method receiver and the first arg
<RickHull> and it doesn't jive with FP
<matthewd> Then let's stop discussing it
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
* RickHull taps foot
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore|2 has joined #ruby
jxv has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
<RickHull> perl -e 'print "Larry"' -W all
cdg has joined #ruby
jphase has joined #ruby
Technodrome has joined #ruby
d^sh has quit [Ping timeout: 252 seconds]
d^sh has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
<rubycoder37> lol
jphase has quit [Ping timeout: 248 seconds]
chmurifree has quit [Ping timeout: 252 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
jphase has joined #ruby
apeiros has joined #ruby
<rubycoder37> ruby feels a lot more perlish to me than python does
<RickHull> it would; python is more german and structured whereas perl is more french and postmodern
<Papierkorb> There are sadly some perlisms left in Ruby
<Papierkorb> Crap like $~
<RickHull> no one uses it besides golfers
<RickHull> not a problem in practice
<RickHull> other than legacy crap that no one wants to touch, looking at you stdlib
<RickHull> *bats eyelashes*
<rubycoder37> why is perlism a bad thing?
<RickHull> most perlisms are revolting
<Papierkorb> perl is a pile of write-only junk
<RickHull> early perl made sense as a kind of awk/sed replacement, kind of forth-like with single chars doing broad things
<RickHull> then it got more general purpose, which enabled lots of good stuff
chmurifree has joined #ruby
<Papierkorb> There are ton of things in perl that are just plain bad ideas
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> Lists? wtf?
<RickHull> we need perl: the good parts, like javascript
<Papierkorb> Casting an array to a scalar returns its length? Wat?
<RickHull> it kinda makes sense
<Papierkorb> who really needs perl?
apeiros has quit [Ping timeout: 240 seconds]
<RickHull> but annoying in practice
<Papierkorb> and that $ @ prefix junk
<rubycoder37> python seems very anti-perl, they don't even like regexes that much
<rubycoder37> if it's not easy to read and it doesn't make sense, it's bad, that sort of thing
NightMonkey has quit [Ping timeout: 260 seconds]
vee__ has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
<RickHull> i agree with that
jphase has quit [Ping timeout: 240 seconds]
<RickHull> SICP, programs are meant for people to read and only incidentally for computers to execute
<RickHull> PRs requested: https://github.com/rickhull/compsci
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NightMonkey has joined #ruby
hndk has joined #ruby
vee__ has joined #ruby
goyox86 has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
alex`` has joined #ruby
zanoni has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
apeiros has joined #ruby
workmad3 has joined #ruby
duderonomy has joined #ruby
uZiel_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HTTP_____GK1wmSU has joined #ruby
cdg has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
HTTP_____GK1wmSU has left #ruby [#ruby]
apeiros has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
apeiros has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxv has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
arvindsaik has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
d^sh has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
railswebdev has joined #ruby
rubycoder37 has quit [Quit: Lost terminal]
hahuang65 has joined #ruby
csk157_1 has joined #ruby
jphase has joined #ruby
cdg has joined #ruby
uZiel_ has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
csk157_1 has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 252 seconds]
arvindsaik has joined #ruby
astrobunny has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 258 seconds]
erlend has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
erlend has joined #ruby
rvca has quit [Remote host closed the connection]
jottr has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has quit [Ping timeout: 255 seconds]
astrobunny has quit [Ping timeout: 258 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
arescorpio has quit [Quit: Leaving.]
astrobunny has joined #ruby
eckhardt has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
buahaha has quit [Ping timeout: 248 seconds]
mson has quit [Quit: Connection closed for inactivity]
astrobunny has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
Technodrome has joined #ruby
railswebdev has joined #ruby
cdg has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Harzilein has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 258 seconds]
cdg has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Immune has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.9.1]
Heph_ has joined #ruby
alfiemax_ has joined #ruby
jxv has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
guacamole has joined #ruby
_whitelogger has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
k3rn31 has joined #ruby
railswebdev has joined #ruby
hahuang65 has joined #ruby
csk157_1 has joined #ruby
kapil___ has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
cdg has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157_1 has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ruby
jxv has joined #ruby
enterprisey has joined #ruby
shinnya has joined #ruby
jottr has joined #ruby
DebianUser_ has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DebianUser_ has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
alfiemax_ has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
railswebdev has joined #ruby
guardianx has joined #ruby
DebianUser_ has quit [Quit: DebianUser_]
apeiros has quit [Ping timeout: 258 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uptime has quit [Excess Flood]
mjolnird has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ptx0 has quit [Ping timeout: 248 seconds]
uptime has joined #ruby
apeiros has joined #ruby
dionysus69 has joined #ruby
eckhardt has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
uZiel_ has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
guardianx has left #ruby [#ruby]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
pilne has quit [Quit: Quitting!]
cdg has joined #ruby
jphase has joined #ruby
apeiros has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
apeiros has quit [Ping timeout: 258 seconds]
_whitelogger has joined #ruby
apeiros has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 240 seconds]
Asher has quit [Quit: Leaving.]
jphase has joined #ruby
enterprisey has quit [Remote host closed the connection]
uZiel_ has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
uZiel has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
workmad3 has joined #ruby
csk157_1 has joined #ruby
doublemalt_ has joined #ruby
railswebdev has quit [Quit: Textual IRC Client: www.textualapp.com]
DoubleMalt has quit [Ping timeout: 240 seconds]
csk157_1 has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
<latemus> does ruby have a method to recurse through a nested hash and find deepest objects
jphase has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> #dig
apparition has joined #ruby
hahuang65 has joined #ruby
cdg has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
arup_r has joined #ruby
<arup_r> Can anyone help me in 1 regex. I would like to match a name - be a minimum of ten characters not including spaces.
jottr has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<apeiros> arup_r: not without more information. come on, you're in here long enough to know that such meta questions suck.
<arup_r> apeiros: I don't know what more information on this I can provide.
<apeiros> too bad for you then. can't help.
<arup_r> yeah. no problem .. thanks.
HTTP_____GK1wmSU has joined #ruby
eckhardt has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
arup_r has left #ruby [#ruby]
csk157_1 has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
csk157_1 has quit [Ping timeout: 255 seconds]
mson has joined #ruby
nardul has joined #ruby
<nardul> Heyo, in ruby, is 'load!' a special function in that it is automatically executed when a module is import by some method?
<dminuoso> nardul: #load! is not a Ruby thing.
<dminuoso> &ri load!
<`derpy> No results
<latemus> RickHull: Nice. Thank you
<nardul> dminuoso: Thank you!
cdg has joined #ruby
<dminuoso> nardul: So Ruby does not really have a module infrastructure.
<dminuoso> nardul: What require/load actually just do, is basically 'execute' another file (with some minor twists, such as local variables remaining local)
<dminuoso> require does this once, load does this multiple times
DTZUZO has quit [Ping timeout: 248 seconds]
<dminuoso> So if you had the need to run code 'when something is required', just put it into the file. ;-)
marr has joined #ruby
<nardul> dminuoso: Understood. :) Working with padrinorb. The setup is a bit strange and I've never touched ruby before :) Just trying to make sense of it all.
<dminuoso> nardul: You might be interested in
<dminuoso> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
cdg has quit [Ping timeout: 258 seconds]
arquebus has joined #ruby
<nardul> Thank you :)
jottr has joined #ruby
Freshnuts has joined #ruby
arquebus has quit [Quit: Konversation disconnected]
raynold has joined #ruby
ur5us has joined #ruby
imode has quit [Ping timeout: 240 seconds]
ta has joined #ruby
minimalism has joined #ruby
rippa has joined #ruby
rippa has quit [Client Quit]
rippa has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
csk157_1 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
csk157_1 has quit [Ping timeout: 246 seconds]
Guest46818 has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
mlehrer has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
alfiemax has joined #ruby
oetjenj has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
FahmeF_ has joined #ruby
FahmeF has quit [Ping timeout: 240 seconds]
ShekharReddy has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 246 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
Freshnuts has quit [Quit: Leaving]
linduxed has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
lxsameer has joined #ruby
zapata has quit [Ping timeout: 246 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
zapata has joined #ruby
dinfuehr has joined #ruby
cdg has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
InfinityFye has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alfiemax_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 240 seconds]
zanoni has joined #ruby
michael1 has joined #ruby
sagax has quit [Ping timeout: 258 seconds]
<latemus> is it correct to say that func1().func2() and func2(func1()) is the same, in the sense that they are passing messages the same?
<matthewd> huh?
<matthewd> No, they're not the same
mikecmpbll has joined #ruby
<latemus> does . connect up the standard input and output of the two methods in a duplex way
<matthewd> ... huh?
<latemus> i guess, im wondering, how does the first method in a chain pass messages to the second method in the chain
<matthewd> It doesn't
<latemus> does the second recieve what is returned by the first
<latemus> okay
<matthewd> f1.f2 # <-- call `f1` on self, then call `f2` on whatever it returns
<elomatreb> in func1().func2() you call func2() on whatever func1() returns
<matthewd> f2(f1) # <-- call f1 on self, then call f2 on self while passing the return value from f1 as an argument
jameser has joined #ruby
<latemus> alright. not quite ready to ask this question i suppose. thanks anyway
<matthewd> "standard input and output" is a fair way away from a reasonable depiction of what's going on
<dminuoso> latemus: What you are asking for will exist in Ruby 2.5.
<latemus> im trying to understand how chaining is different from just passing in args
<latemus> stil grappling with oo messages i think
<matthewd> latemus: Do you understand the idea of calling a method on an object?
<latemus> yes
<dminuoso> Oh I cant read apparently.
<matthewd> >> "hello".size
<ruby[bot]> matthewd: # => 5 (https://eval.in/888945)
<latemus> right, i get that.
<matthewd> >> def f1; "hello"; end; f1.size
<ruby[bot]> matthewd: # => 5 (https://eval.in/888946)
experienced_newb has joined #ruby
<matthewd> >> def f1; "hello"; end; f1.size.odd?
<ruby[bot]> matthewd: # => true (https://eval.in/888948)
jameser has quit [Client Quit]
<experienced_newb> hi everyone saying I'm a newbie to ruby development, would to unserstand what version of ruby should be used for a new project?
<dminuoso> experienced_newb: 2.4.2
<experienced_newb> I cannot understand LTS policies
<matthewd> latemus: Does that help at all?
<latemus> yes the method returns an object which hase the methods and attributes of it's class
<experienced_newb> very well it seems like 2.^ and 3.^ branches have an LTS version
<latemus> matthewd: i'm clear on that, it doesnt really cover what im triying to ask
<matthewd> Right. And so chained calls are just invoking a new method on each return value, in turn.
<dminuoso> latemus | im trying to understand how chaining is different from just passing in args - semantically its not too different actually.
<latemus> dminuoso: okay
<matthewd> latemus: Every call has a receiver; when chaining, the receiver is the thing on the left. When it's not specified, it's self.
<latemus> matthewd: okay, so the 'medium of transport', if you will, by which chaned objects communicate, is the return value
<dminuoso> latemus: yup
<matthewd> Kinda?
<latemus> if so,
<matthewd> I'd say it's really more the value being transported
<latemus> that is the same as pipelining commands in unix
<experienced_newb> dminuoso, sorry, could you argument to me why use the 2.4 and not the 2.3 that it's an LTS? really I'm new to the language
<matthewd> latemus: Except that it's not a pipeline. The return value isn't available until the method returns.
<latemus> you mean theres no buffer?
<dminuoso> experienced_newb: We do not have such an LTS system as far as I jknow.
<matthewd> (thus not medium -- there's no communication)
<latemus> i think i see
<matthewd> There's an infinite buffer
<matthewd> latemus: Think `grep x y > tmp; cat < tmp`, not `grep x y | cat`
<latemus> ahhhhh
<latemus> okay i get it now
<dminuoso> experienced_newb: So the latest Ruby version will give you the longest maintenance down the road.
<experienced_newb> probably I landed on a "commercial" site offering LTS support, so please could you argument why the 2.3 version it's best suited? later ones are unstable?
<dminuoso> experienced_newb: Nope. 2.4.2 is quite stable.
<matthewd> latemus: So `f1.f2` is identical to `x = f1; x.f2`
<dminuoso> experienced_newb: We don't release unstable untested versions.
<matthewd> experienced_newb: Are you talking about Ruby or Rails?
<experienced_newb> ruby
* matthewd is suspicious of "LTS" + "2.3"
<matthewd> URL?
<experienced_newb> i was just googling for "ruby LTS"
<experienced_newb> not important
<dminuoso> Im getting some rails related hits.
<experienced_newb> I thought I was on the official ruby site
<latemus> matthewd: that cleared it up. thanks matthewd Dimik elomatreb
<dminuoso> Which is still scary as heck, to see people selling 'rails 2.3 lts'
<matthewd> "2.^ and 3.^ branches", yeah, that's Rails
<latemus> s/Dimik/dminuoso
<experienced_newb> so just to understand and please have patience with me
<matthewd> experienced_newb: So yeah, that's a third party attempt at legacy support for versions that are no longer actually supported
doublemalt_ has quit [Ping timeout: 248 seconds]
<matthewd> experienced_newb: There is no official LTS anything; you should use the latest released version
<experienced_newb> could you argument why to opt for a version or another, let's say in the future I would like to make study MVC project with rails but also long term running processes
<matthewd> experienced_newb: Use. the. latest. released. version.
<dminuoso> experienced_newb: Latest versions give you latest features, and *official* support/maintenance/patches.
<matthewd> experienced_newb: There is no argument. There is no reason to use an older version.
workmad3 has joined #ruby
<dminuoso> If you for example ask in here about ruby 1.9 features, you might get ridiculed and told to upgrade.
<matthewd> People use older versions because they haven't gotten around to upgrading yet, or it's difficult to upgrade, or.. etc. A new project should always start on the latest available (and where possible, try to keep upgrading).
csk157_1 has joined #ruby
mathys has joined #ruby
kapil___ has joined #ruby
camilasan has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
beccamorgan has joined #ruby
csk157_1 has quit [Ping timeout: 240 seconds]
experienced_newb has quit [Ping timeout: 260 seconds]
<latemus> are udp sockets simplex on unix, since it is one way
<latemus> or arent sockets always dup
vee__ has quit [Ping timeout: 264 seconds]
doublemalt_ has joined #ruby
<dminuoso> latemus: They are duplex for the reason you can receive and send through one socket.
<elomatreb> UDP is connectionless, not directionless or one-way
<dminuoso> What they said.
<dminuoso> bertamole
<dminuoso> Bert-A-Mole.
<elomatreb> :)
uptime has quit [Quit: Look, low effort people produce low quality results. What do you plan on doing once you've made everyone a robocop? Even the blind can see there ain't no loyalty.]
uZiel has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
hahuang65 has joined #ruby
vee__ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 246 seconds]
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
leah2 has quit [Ping timeout: 246 seconds]
leah2 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mathys has quit [Remote host closed the connection]
zautomata has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
uZiel has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
HTTP_____GK1wmSU has joined #ruby
houhoulis has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
ahrs has quit [Remote host closed the connection]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
ahrs has joined #ruby
Defenestrate has quit [Client Quit]
Psybur has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
michael1 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Azure has quit [Read error: Connection reset by peer]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
zanoni has quit [Ping timeout: 240 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
DebianUser_ has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
cdg has quit [Ping timeout: 252 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Psybur has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby
duderonomy has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
zanoni has joined #ruby
Azure has joined #ruby
sepp2k has joined #ruby
Azure has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
houhoulis has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
doublemalt_ has joined #ruby
DTZUZO has joined #ruby
jottr has joined #ruby
alfiemax has quit [Remote host closed the connection]
cschneid_ has joined #ruby
hahuang65 has joined #ruby
John___ has joined #ruby
HTTP_____GK1wmSU has joined #ruby
Azure has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
HTTP_____GK1wmSU has left #ruby [#ruby]
hahuang65 has quit [Ping timeout: 255 seconds]
troulouliou_div2 has joined #ruby
Defenestrate has quit [Quit: Leaving]
linduxed has quit [Quit: WeeChat 1.9.1]
Sightes has joined #ruby
linduxed has joined #ruby
cabotto has joined #ruby
Sightes has quit [Client Quit]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
cdg has joined #ruby
Sightes has joined #ruby
Sightes has quit [Client Quit]
raynold has quit [Quit: Connection closed for inactivity]
Sightes has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
[[thufir]] has joined #ruby
DLSteve has joined #ruby
pilne has joined #ruby
troulouliou_div2 has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
danielglh has joined #ruby
alfiemax has joined #ruby
<latemus> input = [/#{bs[a-z]{1}}/]
<latemus> this assignment fails with an error. complaining about the braces in the quantifier. what is the proper way? i thought i could use /#{}/ to place a regexp in an array
<latemus> i want to do it right there in the array declaration, without assigning var = /pattern/
jxv has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
<apeiros> latemus: #{} is for interpolation
<apeiros> that is, if you want to put dynamic stuff in your regex
<apeiros> >> foo = [/array with regex/] # none needed for a plain regex
<ruby[bot]> apeiros: # => [/array with regex/] (https://eval.in/888974)
<apeiros> >> dynamic = "hello"; /#{dynamic} world/
<ruby[bot]> apeiros: # => /hello world/ (https://eval.in/888975)
<apeiros> ^ this is what #{} is for. same as with strings.
alfiemax has quit [Ping timeout: 252 seconds]
griffindy has joined #ruby
<latemus> apeiros: okay. i guess the error was because im doing this with it? --> method_name arg1, arg2, [/regexp/]
<latemus> passing it in to a method
<apeiros> no, the error was because #{} should contain valid ruby code, and bs[a-z]{1} isn't valid ruby code
uZiel has quit [Ping timeout: 264 seconds]
<apeiros> also {1} in a regex is pointless. /a/ == /a{1}/
<latemus> sorry-- i meant the error before i tried interpolation. one sec lemme check in irb brb
<latemus> apeiros: you're so right, woops
cabotto has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
<latemus> i think it was there because i previously had parens to group, and forgot to remove the quantifier
<apeiros> oy, moin charliesome. long time no see :)
<latemus> ima go with that story ;/
uZiel_ has joined #ruby
<charliesome> heya apeiros
cabotto has joined #ruby
csk157_1 has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> charliesome: how are things? in which part of the world are you working nowadays?
<charliesome> i'm in berlin at the moment!
<apeiros> or living, for that matter :D
<apeiros> oooh, close!
<apeiros> ping me when you visit good old switzerland, will you? :)
<charliesome> heading back home in about a week though
<charliesome> ah, i should have! i spent a few days in zürich a few weeks ago
<apeiros> :-O
<apeiros> :'(
<apeiros> well, lets hope there's a next time
Guest22516 has joined #ruby
csk157_1 has quit [Ping timeout: 248 seconds]
<latemus> yay, it was just a paren in the wrong position. thanks your your help apeiros
<apeiros> yw
matt[m]5 has joined #ruby
zautomata has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has joined #ruby
Guest89500 has joined #ruby
danielglh has quit [Remote host closed the connection]
InfinityFye has quit [Ping timeout: 260 seconds]
selim has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
selim has joined #ruby
alfiemax has joined #ruby
Guest22516 is now known as pax
Technodrome has joined #ruby
pax is now known as Guest61180
cdg has quit [Ping timeout: 252 seconds]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
<[[thufir]]> do many people use emacs? looks kinda like aptana is perhaps the only open source "ide" for ruby?
jdawgaz has joined #ruby
houhoulis has joined #ruby
sepp2k1 has joined #ruby
<dminuoso> [[thufir]]: RubyMine is probably the most full fledged Ruby IDE, though emacs/vim can get you pretty far. There's also some other modern editors with integrations in that direction like atom
<dminuoso> Never even heard of aptana
charliesome has quit [Ping timeout: 248 seconds]
brendan- has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
sepp2k2 has joined #ruby
Sightes has quit [Quit: WeeChat 1.9.1]
sepp2k has quit [Ping timeout: 260 seconds]
Sightes has joined #ruby
sepp2k1 has quit [Ping timeout: 260 seconds]
<LenPayne> Aptana is Eclipse-based. So it's a set of plugins on top of Eclipse that focus it away from Java and more into PHP/Ruby/JavaScript style practices.
Sightes has quit [Client Quit]
Jsilver has joined #ruby
Jsilver has quit [Client Quit]
shinnya has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
<atmosx> Anyone familiar with lita chatops bot?
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
ogres has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<apeiros> !fixcon jdawgaz
csk157_1 has joined #ruby
<apeiros> bad bot
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<Papierkorb> reddit is leaking again
<apeiros> !fixcon jdawgaz
<apeiros> oh, bad apeiros. had a space in front of the !
cabotto has quit []
csk157_1 has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
Sightes has joined #ruby
matt[m]5 has left #ruby ["User left"]
cschneid_ has joined #ruby
danielglh has joined #ruby
Pierreb|home has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
bauruine has joined #ruby
<dminuoso> apeiros: you just need weechat with smart filter ;p
<dminuoso> I never saw a thing.
Guest61180 is now known as pax
pax is now known as Guest14745
alfiemax has joined #ruby
hhffppff has joined #ruby
csk157_1 has joined #ruby
drbroiler has joined #ruby
csk157_1 has quit [Quit: WeeChat 1.9.1]
csk157 has joined #ruby
Sightes has quit [Quit: WeeChat 1.9.1]
orbyt_ has joined #ruby
Sightes has joined #ruby
danielglh has quit [Quit: ZNC 1.6.4+deb1 - http://znc.in]
Sightes has quit [Client Quit]
danielglh has joined #ruby
milardovich has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
charliesome has joined #ruby
sepp2k has joined #ruby
bauruine has joined #ruby
danielglh has quit [Client Quit]
danielglh has joined #ruby
sepp2k2 has quit [Ping timeout: 240 seconds]
danielglh has quit [Client Quit]
danielglh has joined #ruby
danielglh has quit [Remote host closed the connection]
danielglh has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
hhffppff has quit [Quit: Leaving]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #ruby
cdg has joined #ruby
atmosx has quit [Ping timeout: 252 seconds]
cdg has quit [Remote host closed the connection]
troys has joined #ruby
alfiemax has quit [Remote host closed the connection]
goyox86 has joined #ruby
goyox86 has quit [Client Quit]
goyox86 has joined #ruby
friday has quit [Changing host]
friday has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
Pierreb|home has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Guest14745 is now known as pax
pax is now known as Guest23747
hogetaro has joined #ruby
nicesignal has quit [Remote host closed the connection]
jottr has joined #ruby
cdg has joined #ruby
milardovich has quit [Remote host closed the connection]
nicesignal has joined #ruby
dionysus69 has quit [Quit: dionysus69]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
|ifei5good has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ryzokuken has joined #ruby
|ifei5g00d has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[[thufir]] has quit [Remote host closed the connection]
ShekharReddy has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
guacamole has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
iamarun has joined #ruby
iamarun has quit [Remote host closed the connection]
|ifei5g00d has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 248 seconds]
|ifei5good has quit [Ping timeout: 246 seconds]
neo95 has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
goyox86 has quit [Quit: goyox86]
goyox86 has joined #ruby
goyox86 has quit [Client Quit]
workmad3 has joined #ruby
ogres has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
goyox86 has joined #ruby
Technodrome has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
eroux has joined #ruby
Guest23747 is now known as pax
pax is now known as Guest9139
mjolnird has quit [Quit: Leaving]
imode has joined #ruby
troys is now known as troys_
Psybur has joined #ruby
mnemon has quit [Ping timeout: 240 seconds]
mnemon has joined #ruby
guacamole has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
Technodrome has joined #ruby
nofxx has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
alfiemax has joined #ruby
cdg has quit [Remote host closed the connection]
jxv has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
nofxx has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
raynold has joined #ruby
uZiel_ has quit [Read error: Connection reset by peer]
mson has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
bauruine has joined #ruby
uZiel_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
alfiemax has joined #ruby
shinnya has joined #ruby
Guest9139 is now known as pax
pax is now known as Guest62331
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
jottr has joined #ruby
atmosx has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
goyox86 has quit [Read error: Connection reset by peer]
goyox86 has joined #ruby
drbroiler has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
AlisaLisa has joined #ruby
Freshnuts has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
<AlisaLisa> Free sex dating - http://2018sexxx.com
<apeiros> !spam AlisaLisa
AlisaLisa was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
AlisaLisa has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
shinnya has quit [Ping timeout: 240 seconds]
jpterry has quit [Ping timeout: 240 seconds]
jpterry has joined #ruby
cschneid_ has joined #ruby
jrafanie has joined #ruby
bruno- has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
exchgr has quit [Ping timeout: 255 seconds]
exchgr has joined #ruby
michael1 has joined #ruby
Psybur has quit [Ping timeout: 252 seconds]
csk157 has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
ski4x7 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
PaulCape_ has quit [Read error: Connection reset by peer]
jrafanie_ has joined #ruby
PaulCapestany has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
jpterry has quit [Quit: ZNC Quit]
ledestin has joined #ruby
jxv has joined #ruby
jpterry has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
vipaca has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
jxv has quit [Client Quit]
jxv has joined #ruby
Emmanuel_Chanel has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
ogres has quit [Quit: Connection closed for inactivity]
guacamole has joined #ruby
|ifei5good has joined #ruby
jpterry has quit [Ping timeout: 240 seconds]
|ifei5g00d has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Guest62331 is now known as pax
troulouliou_dev has joined #ruby
pax is now known as Guest65324
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpterry has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
goyox86 has left #ruby [#ruby]
ski7777 has joined #ruby
goyox86_ has joined #ruby
hahuang65 has joined #ruby
belmoussaoui_ has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
troulouliou_dev has quit [Ping timeout: 248 seconds]
agent_white has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
uZiel_ has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
dstrunk has joined #ruby
troys_ is now known as troys
5EXAAOGWE has joined #ruby
belmoussaoui_ has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
5EXAAOGWE has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
houhoulis has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
nadir has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
ptx0 has joined #ruby
enterprisey has joined #ruby
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
csk157 has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Immune has joined #ruby
jottr has joined #ruby
Quentinius has joined #ruby
milardovich has joined #ruby
Emmanuel_Chanel has joined #ruby
Quentinius has quit [Client Quit]
jottr has quit [Ping timeout: 248 seconds]
troys has quit [Quit: Bye]
jamesaxl has quit [Read error: Connection reset by peer]
Quentinius has joined #ruby
huyderman has quit [Remote host closed the connection]
jamesaxl has joined #ruby
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
Quentinius has quit [Client Quit]
csk157 has quit [Ping timeout: 240 seconds]
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
jottr has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
skinkitten has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Ltem has quit [Quit: Leaving]
zautomata has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
guacamole has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
dn` has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
orbyt_ has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
[[thufir]] has quit [Quit: Leaving.]
[[thufir]] has joined #ruby
johnny56 has joined #ruby
dn` has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
dn` has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
gauravgoyal has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
michael1 has quit [Ping timeout: 258 seconds]
my-nick has joined #ruby
hahuang65 has joined #ruby
cdg has joined #ruby
guacamole has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
gauravgoyal has quit [Remote host closed the connection]
csk157 has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
mson has quit [Quit: Connection closed for inactivity]
<zanoni> slightly ot" but if anyone knows - if I'm using Nginx as a reverse proxy with Thin, over TCP (not sockets) , does Thin need any special configuring to know about the relationship?
ap4y has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
cdg has joined #ruby
MrBusiness3 has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
drbroiler has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
cadillac_ has joined #ruby
alfiemax has joined #ruby
dn` has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 255 seconds]
_sfiguser has joined #ruby
stan has quit [Ping timeout: 246 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 248 seconds]
<raynold> ahh it's a wonderful day
dstrunk has joined #ruby
banisterfiend has quit [Ping timeout: 255 seconds]
shinnya has joined #ruby
Felimo has joined #ruby
alfiemax_ has joined #ruby
<Felimo> lmao sup
alex`` has quit [Ping timeout: 255 seconds]
Guest65324 has quit [Remote host closed the connection]
Kestrel-029 has quit [Read error: Connection reset by peer]
mson has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
Felimo has quit []
alfiemax has joined #ruby
jrafanie has joined #ruby
thinkpad has joined #ruby
Nicmavr has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
Nicmavr is now known as Guest95018
jottr has quit [Ping timeout: 240 seconds]
k3rn31 has quit [Ping timeout: 248 seconds]
doublemalt_ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
charliesome has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
Derrimia has joined #ruby
<Derrimia> hi
charliesome has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derrimia has left #ruby [#ruby]
_sfiguser has quit [Quit: Leaving]
Sightes has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
blackmesa has joined #ruby
hahuang65 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Immune has quit [Quit: ZzzZZZzzzz]
hahuang65 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
drbroiler has quit [Quit: Ex-Chat]