<tejasmanohar>
right as i was using it... i don't think it was related, i didn't run anything bad, just a PHP function returning 0 and nothing else lol
<Ox0dea>
tejasmanohar: Sure, I was just pointing out that there's a nicer URL.
tmtwd_ has quit [Quit: Leaving]
tmtwd has quit [Remote host closed the connection]
<tejasmanohar>
Ox0dea: oh ok :P
<tejasmanohar>
well shit man O.o
<tejasmanohar>
hackathon project rekt
<Ox0dea>
Why not operate your own sandbox?
yfeldblu_ has joined #ruby
Klumben has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 246 seconds]
ohaibbq has quit [Read error: Connection reset by peer]
johnhamelink has quit [Ping timeout: 246 seconds]
johnhamelink has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Klumben has joined #ruby
Shidash has joined #ruby
<tejasmanohar>
Ox0dea: now i know _why_ i should! :P
<shevy>
_why had one
<shevy>
where is ze code to it
jgt has joined #ruby
based_ has joined #ruby
michaeldeol has joined #ruby
dfinninger has joined #ruby
Musashi007 has joined #ruby
codecop has quit [Quit: Išeinu]
<tejasmanohar>
shevy: ?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
esauOp_ has quit [Remote host closed the connection]
<gizmore>
that´s weird
<gizmore>
module Ricer
<gizmore>
class Thread < Thread
<gizmore>
superclass mismatch for class Thread
<gizmore>
in the lower line
ohaibbq has joined #ruby
<tejasmanohar>
eval.in + eval.so are by the same people right?
bazbing80 has joined #ruby
<tejasmanohar>
apeiros:
<gizmore>
i think class Ricer::Thread < Thread might fix it?
jgt has quit [Ping timeout: 260 seconds]
<gizmore>
or maybe i need Thread < System::Thread ?
nini1294 has joined #ruby
<shevy>
tejasmanohar the code to it, since someone else suggested it
<shevy>
gizmore I found usually that it helps to be more specific; sometimes you may have to use leading ::
<shevy>
like I have one module RBT
wildlander has quit [Quit: Saliendo]
nini1294 has left #ruby [#ruby]
<gizmore>
shevy: so ::Thread will mean the real Thread class from the "kernel"?
<tejasmanohar>
oh
<tejasmanohar>
yeah i don't see the code to it online
<shevy>
inside of that, I have a module called Shared. When I define a class, like: module RBT; class Bla; then I can do either include Shared, or include RBT::Shared <-- I have been doing the extra :: work lately
<gizmore>
shevy: like class Foo::Thread < ::Thread ?
moeabdol has joined #ruby
<shevy>
gizmore if in doubt yeah although I never had to do ::Thread; I know that I had to use :: for ruby-gnome code, in the module Gtk
<gizmore>
shevy: i am inheriting the real ruby thread class
<shevy>
like, include Gtk::Colours versus ::Gtk::Colours
roshanavand has quit [Quit: Leaving]
<shevy>
ok, class Foo must exist in your example yes?
<shevy>
there be no boundaries between classes and prototypes any longer \o/
rcs has joined #ruby
<[k->
that's more terse than Ruby!
<[k->
(and Haskell)
pranny has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 268 seconds]
Rakunh0 has joined #ruby
pranny has joined #ruby
zenspider has quit [Quit: bye]
leat has quit [Ping timeout: 250 seconds]
phatypus has joined #ruby
weemsledeux has joined #ruby
pranny has quit [Read error: Connection reset by peer]
bronson has joined #ruby
pranny has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emba has joined #ruby
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 255 seconds]
moahny has quit [Quit: moahny]
duncannz has quit [Remote host closed the connection]
emba has quit [Ping timeout: 265 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
tkuchiki has joined #ruby
<TravisTheNavi>
Quick question. Let's say I'm creating a program to read user input and capitalize it. I would first ask what city they were from. However, what if the user input was "san diego"? If I used the .upcase! method, only San would be capitalized.
<TravisTheNavi>
How could I ensure that if there is a space located in the user's input, the following character is also capitalized?
<[k->
.split.map(&:upcase).join(' ')
phatypus has quit [Quit: .>]
Ox0dea has joined #ruby
ponga has quit []
tejasmanohar has joined #ruby
<Ox0dea>
That should be :capitalize, not :upcase.
DoctorMo_ has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
juanpablo____ has quit [Ping timeout: 260 seconds]
failshell has quit [Ping timeout: 260 seconds]
etqqkoiflwhb has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
tkuchiki has joined #ruby
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
ekleog has quit [Remote host closed the connection]
ekleog has joined #ruby
ghr has joined #ruby
<[k->
anyone uses brackets from brackets.io?
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
seefood has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
<seefood>
Morning! I have an issue with an erubis template (run from puppet). I get a value into a variable, but I can't seem to compare it as an integer to test a threshold. @varname.int_i doesn't do it. what am I doing wrong?
<seefood>
I mean @varname.to_i
apt-get has quit [Ping timeout: 250 seconds]
<jhass>
what's the error you get?
<shevy>
if both are integers then it would work
youngbaks has joined #ruby
<seefood>
no error, that's the problem. it's not syntactically wrong, since I got it to run inside the puppet context.
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
grotewold has joined #ruby
<platzhirsch>
[k- you look like the rest of your name got lost
solocshaw has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
roxtrongo has joined #ruby
bronson has joined #ruby
<[k->
this is in fact my full nick
mhenrixon is now known as mhenrixon_afk
khebbie has quit [Ping timeout: 244 seconds]
MrFjords has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
pandaant has joined #ruby
mhenrixon_afk is now known as mhenrixon
kirun has joined #ruby
jdawgaz has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
_ht has joined #ruby
MrFjords has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo_ has quit [Ping timeout: 246 seconds]
<shevy>
what does that nick mean
rbennacer has quit [Remote host closed the connection]
<[k->
yea, platzhirsch, what does your nick mean
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch>
I forgot
<Ox0dea>
Wat.
<jhass>
[k-: platzhirsch is a real german word, use your dictionary
<platzhirsch>
The platzhirsch is the alpha stag in a group of deers, if that makes sense
rbennacer has joined #ruby
dmolina has quit [Quit: Leaving.]
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has joined #ruby
<[k->
im not german, how would i know if that is german?!
<[k->
Ox0dea: tell me if i would now
<jhass>
google?
<platzhirsch>
Yes, use your dictionary *slaps book into [k-'s face*
<Ox0dea>
[k-: "platz" sounds pretty German, to be fair.
<[k->
that doesnt even seem like a legit word!
<platzhirsch>
No smalltalk!
<[k->
DeBot !hangman german in ot!
<platzhirsch>
Well anyway, now you know :)
<[k->
until it gets collected by my aggressive memory collector
<Ox0dea>
[k-: You own a Pensieve?
tkuchiki has joined #ruby
MrFjords has joined #ruby
ndrei has joined #ruby
MrFjords has quit [Client Quit]
<[k->
nope
MrFjords has joined #ruby
MrFjords has quit [Client Quit]
youngbaks has joined #ruby
blackmes1 has joined #ruby
<shevy>
[k- platzhirsch is kinda like the dominant animal in a group (of deer); it's the big boss that kicks out his rivals with ease, the one who commands the others
tkuchiki has quit [Ping timeout: 246 seconds]
<platzhirsch>
last time you explained that nick you also said something along the lines of spraying urine in the rival's faces
<shevy>
yeah you have to invest time to make things work
<shevy>
I am scared of having to do massive changes once strings be frozen by default
naftilos76 has joined #ruby
<[k->
arent you doing massive changes now
<platzhirsch>
yeah, we are just too few people, small office 6 people, 5 year old production system, high user base and we're just working on the next product to be pushed out, so I will probably not go with that argument very far
Azure has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
<[k->
luckily you arent using scala, where everything breaks after every release
jenrzzz has quit [Ping timeout: 240 seconds]
<platzhirsch>
We're just revamping the Java backend, that's why I've taken quick course of action and updated it from Java 7, Ant, Eclipse to Java 8, Gradle, Intellj :D
xblade has quit [Remote host closed the connection]
<platzhirsch>
oh yeah, we all had high hopes of Scala
solocshaw has joined #ruby
<platzhirsch>
Clojure seems to have made it though
<[k->
clojurereeee
<[k->
try Frege
<platzhirsch>
but yeah, with Java 8, I don't feel very desperate for that stuff
perturbation has joined #ruby
jenrzzz has joined #ruby
<[k->
shevy: ^ :(
leafybasil has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
s00pcan has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
Hrorek has joined #ruby
<arup_r>
any body will teach me here the cofeescript ?
AlexAltea has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 265 seconds]
grotewold has quit [Client Quit]
failshell has quit [Ping timeout: 246 seconds]
<platzhirsch>
I don't think CoffeeScript is used anymore in Rails
<platzhirsch>
oh apparently, it does
bruno- has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
rbennacer has joined #ruby
krz has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
dmolina has joined #ruby
grotewold has joined #ruby
AlexAltea has joined #ruby
UtkarshRay has quit [Quit: Leaving]
grotewold has quit [Client Quit]
workmad3 has quit [Ping timeout: 265 seconds]
ordepdev has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
dmolina has quit [Quit: Leaving.]
clarkenciel has joined #ruby
ndrei has joined #ruby
codecop_ has quit [Quit: Išeinu]
phutchins has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rakunh0 has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 244 seconds]
ordepdev has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
jdawgaz has joined #ruby
darkf has quit [Quit: Leaving]
symm- has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
_blizzy_ has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
qwertme has joined #ruby
qwertme has quit [Client Quit]
based_ has joined #ruby
moahny has joined #ruby
ndrei has joined #ruby
apt-get has quit [Read error: No route to host]
tkuchiki has joined #ruby
apt-get has joined #ruby
youngbaks has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
fantazo has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
roxtrongo has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
xblade has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
dmolina has joined #ruby
dmolina has quit [Client Quit]
toretore has joined #ruby
AlphaAtom has joined #ruby
phutchins has joined #ruby
dasher00 has quit [Quit: Leaving]
xblade has quit [Ping timeout: 250 seconds]
dasher00 has joined #ruby
<nofxx>
platzhirsch, sure it is, otherwise you'll have to write....grrr... javascript
dasher00 is now known as subcon
futilegames has joined #ruby
acosonic_ has joined #ruby
MyMind has quit [Ping timeout: 265 seconds]
<acosonic_>
hi, how can I findout which wrapper if installed via rvm is used?
subcon is now known as dasher00
fantazo has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
dasher00 has quit [Quit: Leaving]
dasher00 has joined #ruby
roshanavand has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MyMind has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
dasher00 has quit [Client Quit]
<jhass>
acosonic_: in what context?
dasher00 has joined #ruby
<acosonic_>
I’ve foundout...
Exuma has joined #ruby
fgo_ has joined #ruby
<acosonic_>
~/.rvm/wrappers/default/ruby ...
<acosonic_>
manually
<acosonic_>
but is there some tool which can tell me that?
<jhass>
I'm still not sure what you mean with "is used"
<jhass>
where?
<jhass>
when doing what?
Legitkrillin has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MyMind has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
mhenrixon is now known as mhenrixon_afk
grotewold has joined #ruby
FernandoBasso has joined #ruby
dasher00 has quit [Client Quit]
s00pcan has quit [Ping timeout: 246 seconds]
dasher00 has joined #ruby
fgo_ has quit [Ping timeout: 244 seconds]
ShalokShalom has joined #ruby
s00pcan has joined #ruby
<havenwood>
acosonic_: gem wrappers
Exuma has quit []
jenrzzz has quit [Ping timeout: 265 seconds]
PaulCapestany has quit [Quit: .]
jenrzzz has joined #ruby
<acosonic_>
lmc
<acosonic_>
havenwood: thnx it works
PaulCapestany has joined #ruby
fedexo has joined #ruby
dfinninger has joined #ruby
Rurik has quit [Ping timeout: 264 seconds]
s00pcan has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
dasher00 has quit [Quit: Leaving]
dasher00 has joined #ruby
Rurik has joined #ruby
<cscheib>
I'm blanking... what's the name of the method that you can use to return every possible slice of n characters from a string? i.e.in a scenario where n = 3, it returns index 0-2, then index 1-3, index 2-4, etc...
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
<jhass>
.chars.each_cons(3)
s00pcan has joined #ruby
Rakunh0 has joined #ruby
<baweaver>
permutation on chars
<baweaver>
ah
<baweaver>
each_cons, yeah
<cscheib>
awesome, that's it, thanks!
* baweaver
needs to grab coffee
* adaedra
drowns baweaver in coffee
<baweaver>
bliss
mhenrixon_afk is now known as mhenrixon
dasher00 has quit [Client Quit]
dasher00 has joined #ruby
ndrei has joined #ruby
<cscheib>
I knew it was probably in enumerable, but it wasn't popping out at me on the doc
kith has joined #ruby
northfurr has quit [Quit: northfurr]
futilegames has quit [Quit: futilegames]
juanpablo____ has joined #ruby
<nofxx>
cscheib, enumerable is by far the obj with more methods in ruby. (am I wrong?) there's always a helper there for that crazy job
<nofxx>
ok.. array
dseitz has quit [Quit: updating client]
dseitz has joined #ruby
<cscheib>
yea, enumerable's come in quite handy... just so many methods in there (and similar methods) that it can sometimes be hard to find the right one, if you haven't memorized em yet
roxtrongo has joined #ruby
ordepdev has joined #ruby
fantazo has joined #ruby
platzhirsch has left #ruby [#ruby]
juanpablo____ has quit [Ping timeout: 250 seconds]
Jackneill has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
oo_ has quit [Ping timeout: 255 seconds]
doublemalt__ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
Kallis has joined #ruby
apt-get has quit [Ping timeout: 246 seconds]
Rakunh0 has joined #ruby
majjoha has joined #ruby
eightfold has joined #ruby
xblade has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<platzhirsch>
So I went for a run and have thought about what I hate on Ruby
dfinninger has quit [Remote host closed the connection]
<platzhirsch>
and I came to the conclusion, nothing
<jhass>
how about that it makes you hate all other languages?
arup_r has quit [Quit: Leaving]
xblade has joined #ruby
bigredboots has joined #ruby
majjoha has quit [Ping timeout: 255 seconds]
xblade has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch>
well, I do need a statically-typed language as well to balance my inner self
<jhass>
checked crystal yet?
<platzhirsch>
I am coding drug-free, thanks
<platzhirsch>
interesting
<platzhirsch>
a language with the same syntax, so I don't need to learn anything
<jhass>
well, similar
<jhass>
or even familiar
<everlost>
too much assembler
<everlost>
pls less assembler :s
<everlost>
and less crypto
<jhass>
everlost: uh, context?
<everlost>
challenges
fgo_ has joined #ruby
<everlost>
either reverse or crypto
<platzhirsch>
I must admit, Go has a very confusing syntax, sometimes it feels like they just switched order of words and declaration, just to be different
<everlost>
or reverse crypto
<platzhirsch>
such hipsters
<everlost>
also more points for prog
<jhass>
we had a nice comparison how 50loc Go was like 10loc in Crystal :P
<everlost>
seriously 100 points for people raping stego with 1 command line
<platzhirsch>
haha I bet it is
<everlost>
and 100 points for 200 lines of code
<everlost>
reward devs!
<everlost>
devs are the greatest!
<jhass>
everlost: watch your language
max_Q has quit [Remote host closed the connection]
adam| is now known as adam12
<platzhirsch>
But you know that's the thing with statically typed things. It needs to feel mighty, and it only feelds mighty if I wield code with a magnitude of 10 higher than dynamically typed languages to feel the strength. AFter all, you eat with your eyes first!
<everlost>
jhass: watch your problems
<platzhirsch>
oh oh
ruurd has quit [Quit: ZZZzzz…]
<jhass>
!kick everlost sober up
everlost was kicked from #ruby by ruboto [sober up]
ndrei has quit [Ping timeout: 240 seconds]
everlost has joined #ruby
<everlost>
oups
<everlost>
wrong chan
<everlost>
sorry about that shit talk
<jhass>
yw
<everlost>
good evening kind sirs
everlost has left #ruby [#ruby]
bigredboots has quit [Ping timeout: 265 seconds]
TomyLobo has quit [Ping timeout: 240 seconds]
<platzhirsch>
Anyway, I am looking forward to the day Ruby removes the GIL, I think it's very ambitious that they plan to do that
fgo_ has quit [Ping timeout: 250 seconds]
bigredboots has joined #ruby
esauOp has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
<jhass>
I'm looking forward to the day somebody turns https://github.com/manastech/crystal_ruby into something real world usable and then I no longer care about the GIL since I'll just port everything that's too slow to crystal :P
Exuma has quit []
<adam12>
:)
doublemalt__ has quit [Remote host closed the connection]
apt-get has joined #ruby
<dseitz>
What are the merits of Crystal beyond "It looks and acts like Ruby"?
<adaedra>
Compiled
<adam12>
It's _familiar_ as well, especially if you are a Ruby dev. I feel right at home with it.
<adam12>
I guess that's similar to "acts like Ruby" - but familiarity goes a long way, imho.
Ketchy has joined #ruby
michaeldeol has joined #ruby
esauOp has quit [Ping timeout: 244 seconds]
<jhass>
a Go like concurrency model
aaeron has quit [Quit: Leaving.]
aaeron has joined #ruby
michaeldeol has quit [Client Quit]
Anthony__ has joined #ruby
_blizzy_ has quit [Disconnected by services]
Anthony__ is now known as _blizzy_
ShalokShalom has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
naftilos76 has quit [Remote host closed the connection]
max_Q has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
fostertheweb has joined #ruby
ndrei has joined #ruby
michael_mbp has quit [Excess Flood]
acke has quit [Remote host closed the connection]
Rickmasta has joined #ruby
michael_mbp has joined #ruby
northfurr has quit [Quit: northfurr]
bruno- has joined #ruby
govt has joined #ruby
govt has joined #ruby
acke has joined #ruby
<platzhirsch>
But what about JRuby, it's fast, it's strong, it's the JVM! *prown*
<jhass>
it's fast. If you can wait 5 minutes for it to boot :P
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<govt>
as opposed to MRI rails crashing dozens of times per day
<dseitz>
JRuby+Truffle will be fast, at some costs.
<yorickpeterse>
Ah yeah, lets rewrite our Ruby apps in some other language
<yorickpeterse>
surely that will only bring benefits
<govt>
Jruby is just ruby
<chrisseaton>
dseitz: what do you think those costs will be? (there are costs, just wondering what people think they are)
<platzhirsch>
don't be so sarcastic, that makes me cry
bruno- has quit [Ping timeout: 264 seconds]
pyon has quit [Quit: fix config]
ordepdev has joined #ruby
yardenbar has quit [Quit: Leaving]
<govt>
yorick does a lot of shit talking for someone whose most significant contribution to the ecosystem is an xml parser
<govt>
just something ive noticed
acke has quit [Remote host closed the connection]
<yorickpeterse>
excuse me?
<platzhirsch>
I am just jelly of his GitHub repo stars
<yorickpeterse>
govt: if we're going down that route, what exactly has been your contribution?
<govt>
not being a rubyist who runs his mouth, i havent contributed any foss code
<yorickpeterse>
exactly
<yorickpeterse>
So either put up, or shut up
<yorickpeterse>
Don't go around saying shit like that when you're a nobody yourself
<govt>
like i said, im not running my mouth in chat
<yorickpeterse>
Neither am I
<yorickpeterse>
You also might want to look at the stuff I have worked on, or work on
<yorickpeterse>
Instead of making yourself look like a fool
<platzhirsch>
hey, hey.. language
<govt>
a nobody, lol! i get paid to write code, just like you. i dont feel the need to write open source gems b/c anytime I look in #ruby this is what i find
<yorickpeterse>
govt: you're welcome to leave
bigredbo_ has joined #ruby
<govt>
id rather you
<yorickpeterse>
You won't be missed
<govt>
same
<platzhirsch>
so much love
<yorickpeterse>
Reminds me of small children
<yorickpeterse>
"no you!"
<yorickpeterse>
"you're a dumbass yourself!"
<govt>
hey check out my xml parser
<govt>
notice me
<havenwood>
Please be nice.
<govt>
gf
<platzhirsch>
I guess we can agree, that both of you haven't really made it to the top of the ladder, but that doesn't mean you guys have a great a character
<yorickpeterse>
govt: that really hurt my feelings
<havenwood>
And don't touch anything.
govt has left #ruby [#ruby]
ruurd has joined #ruby
<yorickpeterse>
platzhirsch: I care little for fame
govt has joined #ruby
<yorickpeterse>
arguebly the programming industry is not a good one to become famous
<platzhirsch>
Good, than give me all your GitHub stars
<yorickpeterse>
Better to start in some new Hollywood movie
<govt>
yorick do you express your feelings with angle brackets?
<yorickpeterse>
govt: enjoy the /ignore, I have better things to do than waste my time argueing with a 12 year old
<dseitz>
chrisseaton: actually... time moves quicker than I thought :) Truffle is integrated into JRuby now
<govt>
id recommend <suicidal> for you
<jhass>
!kick govt take it to PM, this is offtopic
govt was kicked from #ruby by ruboto [take it to PM, this is offtopic]
<jhass>
yorickpeterse: just add them to ignore please
<yorickpeterse>
I did
pyon has joined #ruby
<platzhirsch>
jesus, I can't remember #ruby being such a rowdy place
<yorickpeterse>
platzhirsch: welcome to Sunday evening :P
<havenwood>
Well, that escalated to wildly-inappropriate quickly.
bigredboots has quit [Ping timeout: 246 seconds]
<dseitz>
So other than that, I think just the fact that it is not completely stable would be the only risk
<jhass>
govt's just looking for trouble, ignore and move on
<platzhirsch>
You always want to score more attention, no?
<yorickpeterse>
platzhirsch: pardon?
northfurr has joined #ruby
<platzhirsch>
That wasn't directed at you yorickpeterse
<platzhirsch>
That was directed to everyone who trolls :D
<yorickpeterse>
right
<yorickpeterse>
but I'm like, 80% troll
<platzhirsch>
everything is fine
* platzhirsch
strokes yorickpeterse
<craysiii>
i came in here at the wrong time it seems.
<jhass>
troll's gone, yw
last_staff has joined #ruby
<adaedra>
wow
<adaedra>
I let all of you alone for some time and you bring in the trolls
ordepdev has quit [Remote host closed the connection]
govt has joined #ruby
clarkenciel has quit [Ping timeout: 246 seconds]
<govt>
jhass, jhass, jhass
rbennacer has joined #ruby
<govt>
what a fine line you walk
<jhass>
!mute govt
<havenwood>
!ban NICK !T 1d "abusive trolling"
<ruboto>
havenwood, could not find a matching user for "NICK"
<Nilium>
Thank you.
<dseitz>
I got a second to look at Crystal. Very nice. I've been using a lot of Rust late (and I mostly work in C/C++). Crystal is something I'll enjoy using.
<adaedra>
haha havenwood
<havenwood>
adaedra: ;)
<platzhirsch>
dseitz: Rust! How does the no null-thingie work for you?
<havenwood>
adaedra: Time for more coffee!
<adaedra>
indeed!
<Nilium>
If it's anything like Scala, not having null is actually not that big of a deal.
<adaedra>
☕️
<dseitz>
It's a tough language to get used to :)
* havenwood
thanks adaedra
<dseitz>
So many concepts
<adaedra>
Rust?
<Nilium>
I keep meaning to learn it, but right now I mostly approach languages with how practical they'd be for what I'm doing at work
firstdayonthejob has quit [Read error: Connection reset by peer]
<dseitz>
And unlike other languages where you can get some code to compile and find out later it doesn't work, Rust won't let you compile if the compiler knows your code sucks really bad lol
<platzhirsch>
I think it's great that people are open to other topics like different languages in #ruby, there are so many channels in freenode, where they will gag you and hit your kidney when you introduce the wrong topic.
<Nilium>
So, Go was first, Erlang or Elixir are probably next, Rust maybe for building libraries for use in other languages
<adaedra>
?ot platzhirsch
<ruboto>
platzhirsch, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<adaedra>
:p
<platzhirsch>
*cry*
chuy has quit [Ping timeout: 246 seconds]
<platzhirsch>
no meta discussions, silly!
* Nilium
duct tapes platzhirsch to a door
<adaedra>
#ruby-offtopic is actually a nice place too :)
<adaedra>
One of us! One of us!
<Nilium>
I have too many channels, I don't want more
rbennacer has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
<Nilium>
I could remove c++-social, I guess, but it's comforting having it open
<platzhirsch>
C++ has a social channel? haha
<jhass>
!ban govt !P troll
govt was kicked from #ruby by ChanServ [Banned: troll]
<jhass>
!unmute govt
<Nilium>
platzhirsch: They do, and if you get off-topic in ##C++, they will scream at you
<adaedra>
std::social<std::communication::irc>
<platzhirsch>
I am always afraid around C/C++ people, they are the most violent
<adaedra>
it's becuase you don't have -fnice
<Nilium>
I'm a C and C++ person, but that's mostly because they're the industry standard for game dev.
<dseitz>
Nilium: Rust is great if you need the performance of C & C++, but are sick of solving problems of C in C :)
<Nilium>
Pretty much.
<Nilium>
They're also the reason I use Go at work
Silox| has quit [Quit: Connection closed for inactivity]
<dseitz>
I've seen very little tradeoffs; and where concurrency is a concern, Rust is able to reason about and help you write working code that is safe.
<Nilium>
'Cause I like C, I just don't want to use it for writing server programs, and Go fits that niche really well.
dgutierrez1287 has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<adaedra>
I've started learning rust, but it's hard for now. It may get better with practice.
tenderlove has quit [Ping timeout: 264 seconds]
<adaedra>
:o
<adaedra>
we have tenderlove in here?
pandaant has joined #ruby
<dseitz>
But I don't want to turn this into #rust :P Feel free to ask any question. The community is filled with people that love to help and don't bully our beginners with RTFMs and alikes
<dseitz>
We'll help :)
bruno- has joined #ruby
<adaedra>
Oh, I'm already in #rust
<Nilium>
I used to hang out in a rust channel, but that was pre-1.x and the language was a much larger pain in the neck then. Unfortunately, this also means the tiny little bits I knew about it are also completely unusable now.
sgambino has joined #ruby
<adaedra>
dseitz: over rust problems, I also don't have anything I could do in Rust to train :T
acosonic_ has quit [Quit: acosonic_]
ruurd has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
maceto has joined #ruby
zenspider has quit [Quit: bye]
VeryBewitching has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
bruno- has joined #ruby
vmatiyko has joined #ruby
<platzhirsch>
Nilium: What do you do with Go at work?
dotix has joined #ruby
<Nilium>
Backend server stuff, processing data sent to us. Mostly the really high-volume stuff, since otherwise the majority of our backend code is in PHP for reasons unknown to me.
<dseitz>
adaedra: Well that's always the hard part. Finding something that interests you to work on. I'm using it where I used to use C++ in mobile applications.
<Nilium>
So basically I write programs to read stuff off of queues and process it faster than anything can put it in.
acke has joined #ruby
bigredbo_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
max_Q has quit [Quit: leaving]
stamina has quit [Quit: WeeChat 1.3]
<platzhirsch>
would like to apply it for our stuff, but I am just learning and no one else knows the language
last_staff has quit [Quit: (Z,Z)]
<Nilium>
The majority of the latest system we built is almost entirely in Go, so our internal web API server things, the processing, delivery to third parties, etc. is almost entirely Go.
<platzhirsch>
I have written out Slack Bot in Go though, plays sounds over the pi on our speakers
<platzhirsch>
wow
<Nilium>
There's really only two exceptions, one where it was written in Go and the person who wrote it thought the problem was Go so he rewrote it in Java and had the same problem, the latter being the hooks into the older systems which had to be written in PHP
northfurr has quit [Quit: northfurr]
<Nilium>
By the time the one thing got rewritten in Java, I said screw it, just maintain that for now and we'll replace it later, so technically the Go implementation is still sitting around in VCS, it's just slightly outdated.
<Nilium>
The main problem is that when we go to replace it, I need to sit down and have a talk with the rest of the team that's using Go about all the weird stuff they've been doing in it.
<Nilium>
'Cause they really, really like pointers.. and I don't know why.
ruurd has joined #ruby
<platzhirsch>
oh oh
fgo_ has joined #ruby
<platzhirsch>
sounds like.. a lot of fun.. and discussions.. about,.. well :D
<Nilium>
I'm not really sure how they got it into their heads that they need pointers to everything in Go, but that's on the list of things I need to tell them not to do.
NeverDie has joined #ruby
<Nilium>
Also, the mainly-PHP guy who wrote the internal API server thought that global variables were per-HTTP-request or something, so there was an enormous, scary data race in there
ruurd has quit [Read error: Connection reset by peer]
dotix has quit [Quit: Leaving]
<Nilium>
i.e., he had a global response variable and he was just modifying it from every HTTP request, so two or more in-flight requests would overwrite one another, signal they were incorrectly complete, etc.
emba has joined #ruby
<platzhirsch>
oh my
armyriad has joined #ruby
<Nilium>
So, I rewrote most of that..
emba has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
<platzhirsch>
and ordered three copies of Efficient Go
juanpablo____ has joined #ruby
<platzhirsch>
Effective
<Nilium>
Never read it. I just tell people to do the tour, read Effective Go, and read the language spec.
emba has joined #ruby
<platzhirsch>
seems sufficient if you are proficient with general programming concepts
<Nilium>
At any rate, that's what happens when you learn a language on the fly, so it just happens.
NeverDie has joined #ruby
<platzhirsch>
trail and error
<Nilium>
I've been trying to slowly put together a bunch of documents about Go stuff at work just so I've got something to point at
ruurd has joined #ruby
<Nilium>
Right now it mostly consists of installing Go, "please don't use go run in production ever," and "don't use interface{} unless there's a really good reason"
fgo_ has quit [Ping timeout: 250 seconds]
moahny has quit [Ping timeout: 264 seconds]
<Nilium>
Rust might be a good idea if I want to get stricter about stuff like that.
codecop has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo____ has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
<VeryBewitching>
Question regarding passing self to a block and not being able to call a protected method: https://gist.github.com/bewitchingme/28b891f0c20ad6f7bbc0 Once this class is initialized, it's important that values cannot be redefined after initialization, how can I work this so add is not a public method on an instance of this class?
jenrzzz has quit [Ping timeout: 246 seconds]
<VeryBewitching>
In the block, I want to do self.add :accessor, value
acke_ has joined #ruby
<mblagden>
so you want it to be public to external code contained in a block, but not public to other external code?
<VeryBewitching>
I would have assumed that when call is sent to the block that it is executed in the scope that it was called.
<VeryBewitching>
mblagden: Yes, once it's initialized the values should be immutable.
helpa-bot has joined #ruby
<Nilium>
Couldn't you just freeze the class and then check frozen in your methods?
ordepdev has joined #ruby
<Nilium>
i.e., after block.call, freeze the object.
tonios57_ has joined #ruby
jenrzzz has joined #ruby
helpa has quit [Remote host closed the connection]
<VeryBewitching>
Nilium: Yes, I can certainly find ways to accomplish it, but I guess I'm looking for clarification on scope with a block that is passed in; I would have assumed that the block shared the scope where it was called.
helpa-bot has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 250 seconds]
acke has quit [Ping timeout: 250 seconds]
<VeryBewitching>
I guess I'm looking for a bit of clarification on that.
helpa has joined #ruby
<mblagden>
Blocks run in their lexical context, not the callers
<Nilium>
Alternatively, have a separate builder object that's mutable and then use the result of the mutable object to create the immutable object, but at that point you're getting silly and the easier thing to do is either freeze it or just don't modify the object after init.
<VeryBewitching>
mblagden: Oh, that clears that up then. Thanks :D
<toretore>
VeryBewitching: use instance_eval on the block
tonios57 has quit [Ping timeout: 256 seconds]
ranchodev has quit [Ping timeout: 256 seconds]
<toretore>
or pass a configuration object to the block which is then used to configure the instance inside initialize
<VeryBewitching>
toretore: Nope, that still raises an exception
<VeryBewitching>
instance_eval block.call self ?
<Nilium>
Could also just make add return a new instance.