willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
djbkd has quit [Remote host closed the connection]
arescorpio has joined #ruby
hpoydar has joined #ruby
<jhass>
woop: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<shevy>
how are the attr_reader() methods created, are they a part of the Kernel module?
<shevy>
I am contemplating trying to create a similar (new) method
<shevy>
not sure where to add it
krisquigley has joined #ruby
bigkevmcd has quit [Ping timeout: 248 seconds]
<woop>
sorry about that
Jadam has joined #ruby
hmsimha has joined #ruby
<woop>
so there isn't a way you're aware of to just tell rspec to ignore the database for a spec?
hpoydar has quit [Ping timeout: 256 seconds]
<woop>
waited at least long enough to realize nobody was going to answer in #RoR
bigkevmcd has joined #ruby
<jhass>
I'm not aware of any and I wouldn't bother and just setup the db
<woop>
there's a stupid number of external databases that the app depends on that I'd like to just drop altogether
foureight84 has joined #ruby
<jhass>
well, actually long enough is 3-6 hours in IRC time, granted #RubyOnRails is an active channel, so maybe 1-2
<woop>
eh...
<woop>
my experience in there is that it's not really that useful for tech stuff... just social chats
<woop>
maybe I just need to be less of an asshole
* woop
shrugs
<jhass>
in inactive channels I have seen response times of up to 24 hours
<woop>
true, but that's an active one where I've actually never had an actual answer
<woop>
just a few interesting chats
<jhass>
15 minutes is nothing
krisquigley has quit [Ping timeout: 256 seconds]
<woop>
true
<woop>
hell
<jhass>
anyway
<woop>
I'm still lurking the devise channel waiting for responses
<woop>
and the rspec channel
<jhass>
db connection happens on initialization, so this has actually nothing to do with rspec I'd say
<woop>
I'm just commenting out the models' dependencies on those databases that are making rspec choke
reinaldob has joined #ruby
<woop>
and looking for someone to kick the people responsible in the shins
<jhass>
shevy: Module i think?
dfinninger has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeramy_s has joined #ruby
foureight84 has quit [Ping timeout: 250 seconds]
_maes_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
nakano has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 245 seconds]
nakano has joined #ruby
jamto11 has joined #ruby
nakano has quit [Remote host closed the connection]
nakano has joined #ruby
<shevy>
hmm
ebbflowgo has quit [Read error: Connection reset by peer]
Renich has joined #ruby
ebbflowgo has joined #ruby
jerematic has quit [Remote host closed the connection]
<shevy>
ack
<shevy>
Module is a class?!
<shevy>
I don't think I have ever done Module.new so far ...
arup_r_ has quit [Remote host closed the connection]
agrinb_ has joined #ruby
arup_r_ has joined #ruby
arup_r_ has quit [Client Quit]
Elite6809 has joined #ruby
arup_r_ has joined #ruby
arup_r_ has quit [Client Quit]
arup_r has quit [Ping timeout: 272 seconds]
Aswebb_ has quit [Ping timeout: 248 seconds]
agrinb has quit [Ping timeout: 256 seconds]
mengu has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
riotjones has joined #ruby
lessless has joined #ruby
agrinb_ has quit [Ping timeout: 256 seconds]
hectortrope has joined #ruby
oo_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
sandelius has joined #ruby
Guest6521 has quit [Ping timeout: 276 seconds]
Casey has joined #ruby
<Casey>
Do you guys think ruby on rails is good for long term devleoping
DeathCode has joined #ruby
DeathCode is now known as Deathcode
<Deathcode>
hey guys. can i ask a small offtopic question?
Casey has quit [Client Quit]
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
quimrstorres has quit []
wicope has joined #ruby
oo_ has joined #ruby
bal has joined #ruby
duncannz has joined #ruby
<apeiros>
Deathcode: isn't that what you're doing non-stop anyway?
<Deathcode>
wtfff
<Deathcode>
dude do u hate me?
<apeiros>
I don't hate you, but I do find you rather annoying.
<Deathcode>
okay. rude.
<apeiros>
you asked
<Deathcode>
ye
<Deathcode>
still rude
ahmetkapikiran has quit [Quit: ahmetkapikiran]
grug has joined #ruby
<apeiros>
no
<Deathcode>
ye well kinda
<Deathcode>
i mean annoying is kind of an insult
<apeiros>
not even kinda.
<Deathcode>
is it a huge insult?
<apeiros>
dude, your concept of insult is quite strange
<Deathcode>
what do u mean?
<Deathcode>
and how do you even know if i'm a dude lol
Rollabunna has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
<apeiros>
look, if you don't like the answer, don't ask.
<Deathcode>
what answer? the annoying one?
<Deathcode>
ye its ok lol i get that a lot irl too
<hectortrope>
Fist they laugh then they reaise then they are inspired
<hectortrope>
first*
<apeiros>
maybe take a hint Deathcode
<Deathcode>
what hint?
<Deathcode>
hectortrope:what you talking about
Rollabunna has joined #ruby
<hectortrope>
Deathcode: read clearly
<Deathcode>
ye cause your spelling was perfect
<Deathcode>
why dont u write clearly
<apeiros>
anyway, off-topic again already. I'm not going to continue this.
<Deathcode>
but u started it tho
<Deathcode>
u could had just said no
<Deathcode>
lol
<hectortrope>
first they laugh at noobs then they realise noobs are not noobs anymore then they are inspired of them for their achievements :-)
<Deathcode>
who? me?
<apeiros>
Deathcode: if you have a ruby related question, ask it. else go into a chit-chat channel.
<Deathcode>
I'm not laughing at any noobs. I am the noobs
gluten_hell__ has joined #ruby
<Deathcode>
noob*
<hectortrope>
I am head of all noobs here.
<hectortrope>
All Noobs can complaint to me :-)
<Deathcode>
hectortrope:i'm such a noob, i can't even be the head of all noobs, because i'm too noob to even be that
<Deathcode>
honestly, you guys just hate me cause i'm good at java
<adaedra>
« <Deathcode> why dont u write clearly » – the irony
<hectortrope>
Deathcode: go to java channel
<adaedra>
I think most of us here don’t give a f*ck about your java skills, actually
<Deathcode>
adaedra:well at least you can understand. that sentence had a lot of bad grammar and spelling on there
<hectortrope>
Deathcode: /JOIN # java
<Deathcode>
hectortrope:yeah they are too boring. plus i'm learning ruby now
<Deathcode>
so i come to this channel for help
<adaedra>
Which is ok
<adaedra>
But don’t come with your questionning about Java here
<hectortrope>
Deathcode: Java = so many Jobs ruby = only few jobs
<Deathcode>
no i wasnt talking about java when i said off topic question
<Deathcode>
i promise that wasnt my intention
<Deathcode>
hectortrope ...?
<jhass>
Deathcode: stop the meta-bullshit
milesmatthias has joined #ruby
<jhass>
ask your question or shut up
<Deathcode>
well damn...
<adaedra>
If you had a question about something that fits ruby, do ask, stop arguing because you can’t take criticism from someone
<Deathcode>
so much drama
<Deathcode>
what criticism
<Deathcode>
i was agreeing lmao
<Deathcode>
go read up
<Deathcode>
what?
<Deathcode>
anyway my question was
<Deathcode>
i want to use ruby to parse a webpage to get music data from there like music album name, artist etc
<Deathcode>
can ruby be used to parse html?
<adaedra>
yes, you have libraries for that
Aswebb_ has quit [Remote host closed the connection]
<adaedra>
nokogiri is the most known
<Deathcode>
like something that will look at the html and return the music artist name and stuff off of the html and put it as a string and give it to me
<adaedra>
it will parse the html
<sandelius>
Deathcode Nokiri allows you to "query" the document
<jhass>
Deathcode: research nokogiri, css, xpath
<adaedra>
you’ll have to navigate through the DOM
<grug>
hectortrope: he's banned from ##Java :P
<Deathcode>
ah i see
<jhass>
Deathcode: all terms that will give you tons of resources on google
Rollabunna has quit [Remote host closed the connection]
<Deathcode>
yeah im trying to implement a music database type thing on ruby
<Deathcode>
for a practice and also to give to my friend
Rollabunna has joined #ruby
<Deathcode>
is there a super accurate music database that you guys know of? (that was my offtopic question)
RegulationD has joined #ruby
<Deathcode>
that will put the artist name and music title separately, cause i looked everywhere
parduse has joined #ruby
<Deathcode>
and like, i want the html parsing to parse at one line specifically for every search
<Deathcode>
is there a line locator thing on html parsing?
milesmatthias has quit [Ping timeout: 252 seconds]
<adaedra>
You know, if you want a music database, you may want to look for one that has a separate API
<adaedra>
so you don’t have to parse HTML at all
<adaedra>
and don’t risk breaking site rules
<Deathcode>
ahhh
<Deathcode>
good advice. i like that :)
<Deathcode>
thank u
hmsimha has quit [Ping timeout: 252 seconds]
<adaedra>
I’m adaedra, not u
<apeiros>
grug: I wonder, do we have more patience than ##java or did they just join there earlier…
<adaedra>
apeiros: we’re nicer. :)
<Deathcode>
oh god. the self-flattery
<Deathcode>
but ye u guys are nicer
<Deathcode>
lol
<Deathcode>
i'd be lying if i said otherwise
patrick99e99 has quit [Ping timeout: 250 seconds]
<jhass>
Deathcode: if you want to extend your time here though, maybe consider if the message you just wrote is really necessary before pressing enter, each time
n008f4g_ has joined #ruby
<Deathcode>
ah ok
<ponga>
i unpacked ruby-2.2.1.tar and looked into \bin , which one is ruby.exec ?
patrick99e99 has joined #ruby
Pupeno has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
<apeiros>
ponga: the source does not contain an executable. you compile it from the source.
<ponga>
apeiros: thanks so that's how it worked
Pupeno_ has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
<adaedra>
ponga: windows?
duncannz has quit [Ping timeout: 246 seconds]
<ponga>
i need to package ruby too
<jhass>
package it for what?
<ponga>
adaedra: yeah im trying to zip my ruby code, ruby source, and a .bat file to run the code from ruby
Pupeno_ has joined #ruby
<ponga>
jhass: its a small helping script for Classic RPG session among koreans
_1_chopi has joined #ruby
<ponga>
and im looking for a way to have it run on windows
<apeiros>
_1_chopi: hello and welcome to the ruby programming language channel
<adaedra>
ponga: ruby does have installers on windows
<jhass>
_1_chopi: !whatschat
<helpa>
_1_chopi: Please remove this app, it's crap
<ponga>
adaedra: i know but im trying to have it in single folder without forcing all my friend to install ruby
duncannz has joined #ruby
<adaedra>
ponga: if you’re good with batch, you can achieve something
<adaedra>
iirc, there are zip versions of windows’ ruby
<nyuszika7h>
if I remove the module and put the class directly in the file, it works
ramfjord has quit [Ping timeout: 245 seconds]
<nyuszika7h>
then I can access "Cow" from the REPL
<nyuszika7h>
oh, never mind.
<nyuszika7h>
it's Moo::Cow
<nyuszika7h>
it has been a while since I played with Ruby :P
Aswebb_ has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
Stalkr has joined #ruby
<apeiros>
was just about to say :) glad you figured yourself nyuszika7h
ahmetkapikiran has joined #ruby
Aswebb_ has joined #ruby
hpoydar has quit [Ping timeout: 264 seconds]
sevvie has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
bruno- has joined #ruby
krisquigley has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
sevvie has quit [Ping timeout: 244 seconds]
Aswebb_ has joined #ruby
tkuchiki has joined #ruby
vtunka has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
basiclaser has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
tkuchik__ has quit [Ping timeout: 248 seconds]
yxhuvud has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
<hectortrope>
Hi guys I have a doubt does ruby the hardway book by zed shaw realkly good??
yxhuvud has joined #ruby
<Elite6809>
what?
<jhass>
hectortrope: the style is fine if you can cope for it, the ruby is largely unidiomatic though, IMO
<jhass>
at least by todays standards
<hectortrope>
U mean u ike that ook or no?? Atleast for learning dsl
<hectortrope>
domain specific language of ruby that book enough?
<jhass>
that question doesn't make too much sense
<jhass>
stat by learning what a DSL is
<hectortrope>
U answer something with sense plz
<jhass>
apeiros: mh, u is not free as a nick either I guess, sad
<hectortrope>
ruby and dsl ruby so different?
<apeiros>
jhass: too bad
<jhass>
hectortrope: again, that question contains assertions that are wrong
<yh>
Elite6809: it came across silly as hell but I'm quite sure you understood. Postel's Law
<jhass>
learn what a DSL is and what the two major types of DSLs are
Zai00 has quit [Quit: Zai00]
timonv has quit [Ping timeout: 252 seconds]
<apeiros>
yh: postel's law is IMO one of the biggest mistake one can make in API design
timonv has joined #ruby
yxhuvvd has joined #ruby
einarj has joined #ruby
<yh>
apeiros: go on..
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvvd has quit [Read error: Connection reset by peer]
<apeiros>
a) the complexity of your API increases geometrically, b) the expectation on what your API will accept go up, making changes much more difficult
<apeiros>
and in human interaction, if you don't feed back how input is understood, it'll lead to frustration, à la "what? why does it do that? that's not what I meant".
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
agrinb has joined #ruby
<hectortrope>
ok jhass
<yh>
apeiros: good case
einarj has quit [Ping timeout: 256 seconds]
Jadam has joined #ruby
codecop has quit [Remote host closed the connection]
lolmaus has joined #ruby
jimms has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<shevy>
apeiros: nyuszika7h "figured himself", or did he "figure it out himself"? :-)
twistedpixels has quit [Ping timeout: 252 seconds]
<apeiros>
shevy: themselves?
doodlehaus has joined #ruby
<shevy>
hehe
piotrj has quit [Remote host closed the connection]
Jadam has quit [Ping timeout: 248 seconds]
<shevy>
how things get a different meaning when words are omitted!
piotrj has joined #ruby
cpt_yossarian has joined #ruby
zoras has quit []
ackpacket has joined #ruby
<ackpacket>
Maybe I'm trying to be too clever but.. I'm trying to add a value to a text field ONLY if an object exists. Is this proper: =text_field_tag "description", @course.description if @course
<ackpacket>
Problem is, it seems like the if statement is elliminating the entire line if there's no @course
twistedpixels has joined #ruby
arup_r has joined #ruby
dotemacs_ has joined #ruby
<jhass>
ackpacket: Activesupport has a handy try method
<jhass>
ackpacket: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<wasamasa>
jhass: compared to what?
<jhass>
wasamasa: what shevy uses
<shevy>
hey!
<wasamasa>
I cannot fathom what shevy could possibly use that its utf-8 support is inferiour compared to ST3
<shevy>
bluefish 1.x!
<jhass>
^
<wasamasa>
lol
<adaedra>
bsd 4.2’s vi
<wasamasa>
it's been years since I touched that thing
a5i has quit [Quit: Connection closed for inactivity]
<wasamasa>
like, ten years?
<shevy>
yeah
jimms_ has joined #ruby
jimms has quit [Ping timeout: 244 seconds]
<shevy>
the ironic part is that the bluefish 2.x branch is inferior to 1.x :\
<wasamasa>
back when knoppix was all the rage
<shevy>
knoppix was cool, I think it popularized the idea of linux live-cd/live-dvd in the german-speaking area of the world
<shevy>
then there also was kanotix!
senayar has joined #ruby
milesmatthias has joined #ruby
<shevy>
which gave rise to sidux...
Aswebb_ has joined #ruby
<shevy>
I'll have to abandon bluefish one day
Takle has quit [Remote host closed the connection]
RegulationD has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 265 seconds]
reinaldob has quit [Remote host closed the connection]
kedare has quit [Quit: WeeChat 1.0.1]
dolf has joined #ruby
<shevy>
jhass you use UTF-8 consistently for your source code files?
<jhass>
of course
<jhass>
and I don't stop there
<apeiros>
utf-8 all the things!
<shevy>
what does that mean
<shevy>
what else could be UTF-8
<jhass>
this message for example
<shevy>
oh I see
<jhass>
all my website output
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<jhass>
all my regular non-source code docs
senayar has quit [Remote host closed the connection]
Aswebb_ has quit [Client Quit]
Roa_ has quit [Ping timeout: 264 seconds]
<jhass>
besides "western point of view on CJK" and "yes, that one byte makes a difference", there's no reason to use another encoding for anything
RegulationD has quit [Ping timeout: 250 seconds]
red_horned_rihno has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
MatthewsFace has joined #ruby
sevenseacat has joined #ruby
netroby has joined #ruby
MatthewsFace has quit [Ping timeout: 256 seconds]
hpoydar has joined #ruby
vtunka has quit [Ping timeout: 248 seconds]
monzie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
charliesome has joined #ruby
sgambino has joined #ruby
bMalum has joined #ruby
jayeshsolanki has joined #ruby
<hectortrope>
Python vs ruby I find ruby very easy what u guys say?
ahmetkapikiran has joined #ruby
<adaedra>
u
jayeshsolanki has quit [Max SendQ exceeded]
<ytti>
i wonder what are the expected results for this query :)
hpoydar has quit [Ping timeout: 272 seconds]
<hectortrope>
what u adaedra
red_horned_rihno has joined #ruby
jayeshsolanki has joined #ruby
<ytti>
confirmation bias would be quite strong here
ralku has joined #ruby
<ytti>
from my POV, with pypi/rpython, you get significant performance benefit over ruby. And for some scientfic/engineering domains, python has stronger ecosystem
einarj has quit [Remote host closed the connection]
jayeshsolanki has quit [Max SendQ exceeded]
<ytti>
from fun of writing code POV, I think ruby takes the cake, but I readily admit I'm biased
jayeshsolanki has joined #ruby
<yh>
ytti: ask PHP vs Ruby in ##php - I think that outcome would pretty much meet the gold standard of scientific proof of confirmation bias ;-)
<ytti>
hah
Sawbones has joined #ruby
agrinb has joined #ruby
<shevy>
hectortrope ruby is rather complex, especially if you compare the code written by different people
<shevy>
one might use "def foo(bar)", the other guy "def foo bar"
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<yh>
I generally try to avoid metaprogramming as much as possible, except for small bits
<shevy>
one might use -> and another guy might use lambda
<hectortrope>
shevy u mean ruby complex than python??
<yh>
hectortrope's world is apparently very simple
jimms_ has quit [Remote host closed the connection]
<adaedra>
shevy: def foo bar is frowned upon
<shevy>
hectortrope yeah
<shevy>
adaedra havenwood does it :-)
<adaedra>
yuck
stevechiagozie has joined #ruby
<shevy>
he is the top ruby coder of #ruby! except that he is not connected right now
senayar has quit [Remote host closed the connection]
n80 has joined #ruby
<shevy>
hectortrope it follows from easily being able to do more than one thing. for instance, omit parens. use of alias. @ivars vs. @class vars vs. CONSTANTS to store data
<shevy>
with the name constant being the funniest name
Sawbones has quit [Ping timeout: 244 seconds]
<shevy>
for something that can change willy nilly
agrinb has quit [Ping timeout: 256 seconds]
<hectortrope>
shevy We can't do everything with python but can do anything with ruby??? When comes to system applications lie metasploit was written on ruby and no such software on python?
<shevy>
I am quite sure you can do everything in python too
<adaedra>
you can do same things in python and ruby
<shevy>
I don't know what metasploit is good for but I am sure you can easily duplicate its functionality in python
<shevy>
you linked to an overview, not to a particular benchmark
sgambino has quit [Remote host closed the connection]
Jadam has quit [Ping timeout: 250 seconds]
<djellemah_>
netroby: ruby has stong encapsulation, so everything's a method call. And where a method lives can change at runtime. So there are many optimisations that a JIT can't do.
<jhass>
and how does it apply to your actual application
<djellemah_>
*strong
djellemah_ has quit [Quit: Leaving]
djellemah_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<hectortrope>
netroby: compard topython ruby is fast but compared to c and c++ it's damn slow :-(
brb3 has joined #ruby
michael_mbp has quit [Ping timeout: 252 seconds]
<netroby>
@djellemah_ thanks, so can we make ruby faster?
jconnolly has joined #ruby
<jhass>
netroby: where's your actual bottleneck?
n008f4g_ has quit [Quit: leaving]
<jhass>
what's your real world usecase that Ruby is too slow for?
yfeldbl__ has quit [Ping timeout: 265 seconds]
<netroby>
webapps.
<adaedra>
ok
<netroby>
Parallel request , then ruby slow and slow
<jhass>
how did you benchmark that?
<ytti>
14:50 < adaedra> shevy: def foo bar is frowned upon
<chrisseaton>
djellemah_: I'd disagree with that - what optimisations do you think a JIT cannot apply to Ruby? You can still inline Ruby methods, even if they can be monkey patched
<ytti>
i rock seattle hard
<ytti>
() only when parser needs them
<ytti>
() is for classicists
* ytti
hides
<shevy>
:)
<jhass>
ytti: ^5
<djellemah_>
chrisseaton: headius wrote an interesting article a year or three back about object 'shape'
<shevy>
jhass are you a def-paren man or are you def-parenless?
<jhass>
I'm def parenless in my own projects
michael_mbp has joined #ruby
josephleon has joined #ruby
<ytti>
only exception where is use () when parser does not need it, is regexp
<ytti>
because one of my vim modules coplains about it :)
piotrj has quit [Remote host closed the connection]
basiclaser has quit [Quit: Connection closed for inactivity]
tagrudev has quit [Remote host closed the connection]
piotrj has joined #ruby
agrinb has joined #ruby
arup_r has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
sevvie has joined #ruby
_maes_ has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
hpoydar has joined #ruby
zz_AlphaTech is now known as AlphaTech
wet88 has joined #ruby
slackbotgz has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
sevvie has quit [Ping timeout: 245 seconds]
KidCartouche has quit [Quit: Leaving]
musashi1 has quit [Ping timeout: 245 seconds]
hpoydar has quit [Ping timeout: 248 seconds]
imranr has quit [Remote host closed the connection]
imranr has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
agrinb has joined #ruby
imranr has quit [Remote host closed the connection]
imranr has joined #ruby
imranr has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
freerobby has joined #ruby
imranr has joined #ruby
banister has joined #ruby
banister is now known as banisterfiend
Notte_ has quit []
imranr has quit [Read error: Connection reset by peer]
anil_ has joined #ruby
ascarter has joined #ruby
hectortrope has joined #ruby
<anil_>
hi I completed 10 chapters in learn ruby the hard way so Can I think I knew few basics of ruby atleast?
<hectortrope>
nope
<hectortrope>
It's not very good book
<adaedra>
anil_: now do some projects in ruby
<adaedra>
it’s by using it that you’ll know if you are good
<hectortrope>
he completed only 10 chapters of zed shawbook
<anil_>
hectortrope: yes
<anil_>
only 10
<anil_>
adaedra: where can i find projecyts?
<adaedra>
I don’t know this book and it’s not the subject
<adaedra>
anil_: be crative
JDiPierro has joined #ruby
rdark has joined #ruby
<hectortrope>
anil_ finish the book man :-(
<adaedra>
creative
leafybasil has joined #ruby
<anil_>
hector
<anil_>
adaedar ??
<hectortrope>
what?/
Kricir has joined #ruby
Jadam has joined #ruby
<hectortrope>
anil_ why u want to learn ruby??
<ralku>
I think the book's quite okay... but start doing some stuff with ruby. It'll come naturally. That's the great thing about ruby!
<anil_>
to learn ruby on rails
<anil_>
ralku: any idea?
<anil_>
regarding any project
bMalum has quit [Quit: bMalum]
<adaedra>
hectortrope: why not? don’t stop him
<hectortrope>
anil_: start with chef if interested in infrastructure management
RegulationD has joined #ruby
<hectortrope>
or ruby on rails
<adaedra>
anil_: find a subject, anything
<ralku>
anil_ just have a look at some Github projects! There are a lot around! Try to understand what they're doing. You'll have to look up a lot of stuff, but in the end it'll be like reading natural writing. It's the best thing bout ruby for me.
<anil_>
what is chef?
<hectortrope>
anil_ When i asked first time they askmed me to google hahaha so i want to say same I am rude
<ralku>
hectortrope come on...
<anil_>
i dont want to learn that chef
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
sevenseacat has left #ruby [#ruby]
anil_ has quit [Quit: Page closed]
<ralku>
anil_ Well like I said! Have a look at some simple Ruby on Rails projects on Github! There are a lot around! You'll find interesting stuff :) That's how I did it...
<ahmetkapikiran>
anil_: First learn Ruby. See later game mechanism…
rbennacer has quit [Ping timeout: 256 seconds]
hpoydar has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<adaedra>
meta-question: do you know where I can get help about SQL?
mostlybadfly has quit [Quit: Connection closed for inactivity]
Channel6 has joined #ruby
<hectortrope>
adaedra: may be 3mysql
<jhass>
/alis * -topic *sql*
rbennacer has joined #ruby
<hectortrope>
#mysql or #postgresql
sevvie has joined #ruby
<adaedra>
jhass: yeah, didn’t want to crawl though list of all topics :/
<adaedra>
thanks for the input
Wamboo has joined #ruby
<jhass>
heh, it's only like 40 :P
<Wamboo>
What do you Rubyists think about Crystal?
sigurding has joined #ruby
<apeiros>
I think crystal goes to FAQ soon…
<jhass>
there's actually a #sql apparently
<jhass>
apeiros: :D
sigurding has joined #ruby
pandaant has quit [Remote host closed the connection]
<Nilium>
jhass: This is where people go to argue over mysql vs postgres
<apeiros>
Nilium: that's where opinions go die?
<jhass>
Nilium: *shrug* never been there
<adaedra>
ahah
<apeiros>
+to
* Nilium
shrugs since he's never been there.
riotjones has joined #ruby
<Nilium>
I just assume that any general SQL discussion devolves into DBMS favoritism
brainslug has joined #ruby
<Nilium>
btw postgres is better
<adaedra>
no mssql
<hectortrope>
Nilium: but most use mysql
<adaedra>
/s
psy_ has joined #ruby
Wamboo has quit [Client Quit]
<apeiros>
they are all wrong!
<jhass>
now Wambo is gone over all that pesky SQL talk :(
<Nilium>
hectortrope: How many that use MySQL are using existing software that was built by someone inexperienced who picked wordpress or something else?
psy_ has quit [Max SendQ exceeded]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<hectortrope>
rails vs django rails win mysql vs postgress msql win because of most number of users :-)
<jhass>
#ruby-de is about Ruby and Go, can't we make this about Ruby and Crystal? :P
psy_ has joined #ruby
<apeiros>
and if you insist on using mysql, at least use maria
<Nilium>
Or Percona.
<apeiros>
mysql is in the clutches of evil oracle
<adaedra>
No, use /dev/null DB
<wasamasa>
apeiros: well, even with mariadb I wouldn't want to use it
<hectortrope>
Nilium: i don't kow but check the statistics :0
<jhass>
adaedra: yeah, mknod makes it easy to scale
<apeiros>
wasamasa: sure. me neither. just saying. I prefer pg by a long shot.
iamjarvo has joined #ruby
<adaedra>
statistics means nothing about how good is software
iamjarvo has quit [Max SendQ exceeded]
<adaedra>
stastictics would probably make choice of java or php
* adaedra
shrugs
<Nilium>
hectortrope: The whole appeal to numbers thing makes zero sense
<wasamasa>
the video I've linked demonstrates how sucky the mysql type system is
iamjarvo has joined #ruby
<Nilium>
If half the population stares into the sun and goes blind for it, is staring into the sun and going blind a good thing?
<wasamasa>
which is a pretty important thing to get right for a database if you plan on relying on the data you've shoved into it
<hectortrope>
Nilium: I believe better the quality most the quantity
<hectortrope>
However i like postgress
<hectortrope>
coz heroku uses it
<Nilium>
I believe that people choose what they remember, and most people learn about MySQL before anything else, which would help to explain why it's now in place without considering other options
QuintinAdam has joined #ruby
<hectortrope>
Nilium: today internet changed people they try all
<Nilium>
It's not that MySQL is technically better in certain cases, it's that they already know the name and it's the thing they pick as a result.
<hectortrope>
they choose best
aswen has quit [Ping timeout: 248 seconds]
<Nilium>
I think you're way too optimistic about that.
Lucky__ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<hectortrope>
Ok Guys goota go bye
Jiyuhen has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 248 seconds]
stevechiagozie has joined #ruby
mostlybadfly has joined #ruby
tkuchiki has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
tkuchiki has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
<adaedra>
:)
Jiyuhen has joined #ruby
djellemah_ has quit [Quit: Leaving]
lessless has joined #ruby
quimrstorres has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
djellemah_ has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
rdark has quit [Quit: leaving]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
djellemah_ is now known as djellemah
browndawg has quit [Max SendQ exceeded]
<jhass>
jeez, that guy
<jhass>
I'm not sure how he ever got hired...
jlast has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
josephleon has quit [Quit: Leaving...]
browndawg has joined #ruby
<wasamasa>
"Trust me, I'm an engineer!"
beneggett has joined #ruby
<apeiros>
jhass: I'm not sure about which of all those today you are speaking…
momomomomo has joined #ruby
sigurding has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Ping timeout: 250 seconds]
<jhass>
well, anil_ I still give the benefit of doubt realizing that their imaginations are still off
<jhass>
hectortrope is actually employed as devops or something
<adaedra>
The IT has many jobs to give
<wasamasa>
language barrier is also a thing
<adaedra>
true
browndawg has quit [Ping timeout: 256 seconds]
<apeiros>
jhass: IME devops are often not strong programmers. doesn't follow from that, that they're bad at devops, though.
bigkevmcd has joined #ruby
palms has joined #ruby
<jhass>
he's unable to infer from an existing chef cookbook what it's doing...
lanemeyer has quit [Ping timeout: 252 seconds]
<jhass>
and doesn't want to ask in #chef about it because his colleagues could see it
<jhass>
so he asked here
<apeiros>
oh well, yeah
<wasamasa>
lol
<wasamasa>
reminds me that I should write a script to check for colleagues on my freenode channels
<apeiros>
but you don't want to know how often I meet that kind of mindset in my professional environment (luckily not at my employer - but at "partner" companies we work with…)
bal has quit [Quit: bal]
evanjs has quit [Remote host closed the connection]
browndawg has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<apeiros>
it's one lesson I had to learn as a professional - most people utterly suck at admitting even such small things as ignorance. they prefer to tell plain bullshit. sometimes they'll carry on even when pointed out.
yeticry has quit [Ping timeout: 256 seconds]
edwinvdgraaf has joined #ruby
<jhass>
well, I asked him straight if he lied during his interview and then why he gets assigned tasks outside his job description if he didn't
<jhass>
didn't have much of a straight answer to that
yeticry has joined #ruby
<adaedra>
ah, knowing when you are wrong and being able to admit it
<adaedra>
very hard.
<apeiros>
and that's the lesson I learned when interviewing job applicants - our world is choke full of pretenders and wannabes.
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
must be job interviews prefering people who sell themselves well
<apeiros>
sometimes I wasn't even sure whether they've been delusional or just lying with a straight face.
evanjs has joined #ruby
bim has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
<apeiros>
wasamasa: I'll consult you next time we put up a job ad :)
<jhass>
anyway, so maybe that's make it clearer why I have less patience with him than with anil_
<adaedra>
I’m totally unable to sell myself well :(
<wasamasa>
apeiros: nah, consult tptacek instead
piotrj has joined #ruby
<apeiros>
no idea who that is :-/
<wasamasa>
apeiros: he's one of the few who did more than just going all "WOE IS ME" over the state of affairs
<apeiros>
wasamasa: the interview was not our issue. our issue was getting the right people to show up for an interview.
jlast has quit [Remote host closed the connection]
<apeiros>
I think the interview itself did an excellent job at removing (to us) useless people.
piotrj_ has joined #ruby
<apeiros>
the one question which did the most for us was "show us some work (any language) which you're proud of". and we let them explain us what they did, why they're proud of it, what they learned.
<wasamasa>
apeiros: hmm, reminds of how my company preselected people for the job interview
jayeshsolanki has joined #ruby
<wasamasa>
apeiros: they asked them to solve a simple, one-hour task at home and send them their solution in their prefered language
<wasamasa>
apeiros: that was surprisingly effective
bMalum has joined #ruby
<wasamasa>
though, it was pretty sad to see how many people didn't send in any code, copy-pasted it, sent broken code or code doing something totally different
piotrj has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
bim has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
beneggett has joined #ruby
dfinninger has joined #ruby
piotrj_ has quit [Ping timeout: 248 seconds]
brb3 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
the interviews then filtered out the ones that didn't feel like they'd fit
<wasamasa>
and that was it basically
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<apeiros>
hm, maybe I'll push for adding such a pre-screening too. it's cheaper to read a bit of code than having an interview.
<apeiros>
also less taxing
workmad3 has joined #ruby
Lucky__ has joined #ruby
mkode has joined #ruby
<wasamasa>
tptacek advises making the job attractive, helping the candidates beforehand if necessary and letting them perform work samples
maximski has joined #ruby
willharrison has joined #ruby
charliesome has quit [Quit: zzz]
govg has joined #ruby
adriancb_ has joined #ruby
aganov has quit [Remote host closed the connection]
<wasamasa>
if I were still interested in itsec and not averse to migrating to the USA, I'd love working at their place
<wasamasa>
but I'm not
skyjumper has left #ruby [#ruby]
<adaedra>
ew USA
<sevenseacat>
shun <_<
<wasamasa>
for the record, he's the guy behind the matasano crypto challenges
<kaleido>
nothing wrong with the US, you just have to live in the right parts
tercenya_ has joined #ruby
<jhass>
dunno, I wouldn't want to take anything electronical across the borders for starters
teddyp1cker has quit [Remote host closed the connection]
<apeiros>
kaleido: if you have to live in the right part (and be the right kind of people), then something is wrong with the country.
Megtastique has quit [Ping timeout: 250 seconds]
dmitrykorotkov has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 252 seconds]
<apeiros>
and personally, US of A is even off my list of countries for holidays.
<adaedra>
^
vtunka has quit [Quit: Leaving]
<adaedra>
Canada, on the other hand…
gsd has joined #ruby
vlad_starkov has joined #ruby
Megtastique has joined #ruby
edwinvdg_ has joined #ruby
tercenya has quit [Ping timeout: 255 seconds]
<programmerq>
a place as large as the US is bound to get concentrations of unfriendly folks.
nateberkopec has joined #ruby
<kaleido>
no doubt
<kaleido>
its not like europe where driving for 5 hours puts you in 4 different countries
<programmerq>
though, I wouldn't mind living in the Netherlands for a while.
<kaleido>
and its not like europe doesnt have unsavory places
<kaleido>
like france or the UK, for example
<apeiros>
I think it's somewhat delusional to think it's just some places which happen to have a concentration of unfriendlies.
<apeiros>
and nobody said europe was problem free.
<programmerq>
or new zealand
<adaedra>
kaleido: eh ! :(
<kaleido>
;)
edwinvdgraaf has quit [Ping timeout: 272 seconds]
<kaleido>
US is like any other place in the world. it just depends what youre looking for. you wouldnt go to amsterdam and be offended by the prostitution, you know?
brainslug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
no, actually, I’m thinking about quitting this country
teddyp1cker has joined #ruby
serivichi has joined #ruby
<kaleido>
and you wouldnt go to NYC and e upset when the Avengers destroy half the city fighting off an alien invasion
<kaleido>
just sayin
evanjs has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
Cache_Money has joined #ruby
evanjs has joined #ruby
<jhass>
I do have the impression that the denial of problems is higher because "we're the best county in the world!" in the average population
Megtastique has quit [Ping timeout: 264 seconds]
<adaedra>
ugh.
edwinvdgraaf has joined #ruby
<apeiros>
kaleido: dunno, I'd be offended by racism in every place.
Jiyuhen has quit [Ping timeout: 252 seconds]
evanjs_ has joined #ruby
evanjs has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
<apeiros>
by cops shooting unarmed people, children even. or ever taken a look at incarceration rates? I have a hard time to believe that american population is so much more criminal than other countries'
<apeiros>
but we're veering towards #politics
<adaedra>
it’s funny, because we’re going to these kind of things in France too
<kaleido>
except the cops are running from kids with guns in france
Filete has joined #ruby
freerobby has quit [Quit: Leaving.]
<adaedra>
depends where
dEPy has quit [Quit: (null)]
Morkel has joined #ruby
<adaedra>
(going in meeting, see ya)
Megtastique has joined #ruby
alex88 has quit []
rippa has joined #ruby
stef204 has quit [Ping timeout: 246 seconds]
tercenya_ has quit [Ping timeout: 256 seconds]
josephleon has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
adriancb_ has quit [Remote host closed the connection]
Kricir_ has quit []
_hollywood has quit [Quit: Leaving]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
Megtastique has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
dstarh has joined #ruby
senayar has quit [Remote host closed the connection]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
delinquentme has joined #ruby
Megtastique has joined #ruby
momomomomo has quit [Quit: momomomomo]
hanmac has quit [Ping timeout: 265 seconds]
sandelius has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
bluOxigen has joined #ruby
senayar has joined #ruby
cfengineers has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
RegulationD has joined #ruby
Hobogrammer has joined #ruby
adriancb has joined #ruby
lanemeyer has joined #ruby
platosha has joined #ruby
Prysm has joined #ruby
senayar has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Crazy_Atheist has joined #ruby
senayar has joined #ruby
Crazy_Atheist is now known as Guest85551
Takle has quit [Ping timeout: 256 seconds]
Hijiri has quit [Ping timeout: 265 seconds]
lessless has quit [Read error: No route to host]
ZeeNoodleyGamer has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 255 seconds]
ahmetkapikiran has joined #ruby
Rodya_ has quit [Remote host closed the connection]
hanmac has joined #ruby
josephleon has quit [Quit: Leaving...]
Rodya_ has joined #ruby
Megtasti_ has joined #ruby
ahmetkapikiran has quit [Client Quit]
GaryOak_ has joined #ruby
The_Phoenix has joined #ruby
djbkd has joined #ruby
krisquigley has joined #ruby
Megtastique has quit [Ping timeout: 248 seconds]
bim has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
_blizzy_ has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
maximski has quit []
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willharrison has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
sigurding has quit [Quit: sigurding]
bMalum has quit [Quit: bMalum]
mistermocha has joined #ruby
bonhoeffer has joined #ruby
senayar has quit []
tercenya has joined #ruby
Prysm has quit []
bonhoeffer has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
<willharrison>
is there a way to get around having to create an instance then access n?
<willharrison>
maybe KaraInt("5") ?
<willharrison>
that isn't a bad idea
ascarter has joined #ruby
<jhass>
the convention for both, new and a method named after a class is to return an instance of that class though
<jhass>
so both would be unexpected
<willharrison>
ah, ok
pagios has joined #ruby
<jhass>
def self.convert(n); new(n).n; end; could be a compromise, though even there I'd say it's more expected to return a KaraInt
opes_ has joined #ruby
Advocation has joined #ruby
<pagios>
has anyone tried using the amazong ruby gem?
<djellemah>
willharrison: also, self.n= already calls valid?, so you don't need to do that first in initialize
ghr has quit [Ping timeout: 264 seconds]
<willharrison>
jhass actually I don't need to do that, nvm
AlphaTech is now known as zz_AlphaTech
sigurding has quit [Read error: Connection reset by peer]
<willharrison>
djellemah good catch, thanks
sigurding has joined #ruby
<pagios>
i would like to know the methods that are exposed in ruby gem like here: http://docs.aws.amazon.com/sdkforruby/api/index.html how do we know that an s3.list_objects exist? where is thgat documentated i cant read it in the api
jamto11 has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
tubuliferous has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<pagios>
jhass: can you help?
sevvie has joined #ruby
piotrj has joined #ruby
<jhass>
a general way i rubydoc.info/gems/<name>
teddyp1cker has joined #ruby
charliesome has quit [Quit: zzz]
<jhass>
or loading it into pry and using ls, ? and $
<djellemah>
willharrison: it looks to me that you're not clear on what you want to do with KaraInt. Maybe if you thought about it from that point of view, the internals would be clearer? eg...
<pagios>
jhass: like they are using s3 = Aws::S3::Client.new i want to use SNS what would be the format for example
<willharrison>
djellemah what do you mean?
<djellemah>
What code would you use to call it: maybe 'KaraInt.new("5").valid?'
<willharrison>
KaraInt is just an object that can take very large numbers and add and subtract them
<djellemah>
willharrison: Oh, right.
<willharrison>
just KaraInt.new("5")
<jhass>
pagios: seriously, try harder
<jhass>
the class has an example
<pagios>
ok i saw it
milesmatthias has joined #ruby
<pagios>
from the drop down menu
<djellemah>
willharrison: something like a = KaraInt.new('4543204387205743259423'); b = KaraInt.new('4543204387205743259423'); a + b
attamusc has quit [Remote host closed the connection]
mengu has joined #ruby
davispuh has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
gsd has joined #ruby
tier has quit [Remote host closed the connection]
gsd has quit [Max SendQ exceeded]
tier has joined #ruby
gsd has joined #ruby
mrbond has joined #ruby
davispuh has joined #ruby
Zai00 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<milesmatthias>
I released a ruby gem recently and am open to feedback / PRs if anyone is interested. It's a client for the SynapsePay.com API -- https://github.com/milesmatthias/synapse_client rubygems.org/gems/synapse_client
djbkd has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
DexterLB has joined #ruby
pietr0 has quit [Quit: pietr0]
Guest85551 is now known as ZeeNoodleyGamer
ZeeNoodleyGamer has quit [Changing host]
ZeeNoodleyGamer has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 245 seconds]
<Senjai>
Good day ruby
teddyp1cker has quit [Remote host closed the connection]
JoshGlzBrk has quit [Read error: Connection reset by peer]
ghr has quit [Read error: No route to host]
JoshGlzBrk has joined #ruby
<jhass>
I'd favor ternary for setting base_api_url
ghr has joined #ruby
<Sou|cutter>
milesmatthias: I prefer having configuration specific to an instance of a client rather than global.
duncannz has joined #ruby
<milesmatthias>
Sou|cutter: I've seen that method too. I attempted to mirror my gem after Stripe's and that's how they do it.
Prysm has quit [Quit: Leaving]
<milesmatthias>
jhass: thanks :)
_hollywood has quit [Ping timeout: 246 seconds]
Prysm has joined #ruby
bruno-_ has joined #ruby
willharrison has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
Takle has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
Takle has joined #ruby
msnyon has joined #ruby
GnuYawk has quit [Ping timeout: 250 seconds]
musashi1 has joined #ruby
checkit has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
<atmosx>
hello
iliketurtles has joined #ruby
pothibo has quit [Client Quit]
beneggett has joined #ruby
Takle has quit [Remote host closed the connection]
msnyon_ has joined #ruby
mrbond has quit [Quit: mrbond]
msnyon has quit [Ping timeout: 247 seconds]
Limix has quit [Quit: Limix]
ebbflowgo has joined #ruby
teddyp1cker has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
towski_ has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
beneggett has joined #ruby
Azure has joined #ruby
sgambino has joined #ruby
checkit has quit [Quit: (null)]
jlast has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
greenbagels has quit [Read error: Connection reset by peer]
horsecowdog has quit [Remote host closed the connection]
_hollywood has joined #ruby
brainslug has joined #ruby
<jhass>
milesmatthias: got distracted with something, "#{string} interpolation" instead of string + "concatenation" seems to be a general pattern ;)
robustus has quit [Ping timeout: 264 seconds]
<jhass>
I'd take the assignments out of the condition in line 50
<milesmatthias>
jhass: I suppose I like the error better if something goes wrong with string interpolation -- `undefined method to_s` as opposed to `undefined method +`
<pawprint>
i want to create a template file, and a file that has values for the fields in the templates, and create a new file from the template with the values from that file
<pagios>
seems i n eed to get a sort of uuid for the application
freerobby has joined #ruby
<momomomomo>
pagios: seems more like an amazon specific question, check out #aws
<jhass>
momomomomo: I avoid if x.nil? unless false is a valid value I need to differentiate, else I just use if x
<jhass>
or unless x
<pawprint>
momomomomo: thanks.. but i was hoping for something with a bit more hand-holding and a longer example showing how to do all the things needed to do what i described above
Pupeno has joined #ruby
Pupeno has joined #ruby
<momomomomo>
jhass: what?
wallerdev has joined #ruby
<jhass>
momomomomo: meh, tab completion fail, same nick length and start letter :P Sorry
Pupeno has quit [Remote host closed the connection]
altamic has joined #ruby
Parker0 has joined #ruby
freerobby has quit [Quit: Leaving.]
djbkd has joined #ruby
<jhass>
milesmatthias: I'd consider a HIWA style hash if you want access by symbol, that is normalizing to string keys, not symbol keys
sigurding has joined #ruby
<wasamasa>
HIWA?
<jhass>
AS:HWIA I mean
<apeiros>
HWIA probably?
<wasamasa>
HWIA?
<jhass>
especially if you intend the gem to be used with Ruby < 2.2
<jhass>
HashWithIndifferentAccess
<wasamasa>
hot water intelligence agency?
<apeiros>
holy wishes in advance
<GaryOak_>
If you have a class without state should it just be a module, or is there a good reason for it to be a class?
teddyp1cker has joined #ruby
<shadoi1>
GaryOak_: if it may ever become stateful, or if it's part of some inheritance tree you want to maintain
<Sou|cutter>
I recently encountered a module-based system that would have benefitted greatly from inheritance :(
<jhass>
milesmatthias: so to summarize, turning one class into a module and maybe reconsidering how you allow symbol key access are the only design points I'd have, else are just style nitpicks and only a few minor of those :)
MatthewsFace has joined #ruby
sigurding_ has joined #ruby
sigurding has quit [Ping timeout: 264 seconds]
sigurding_ is now known as sigurding
maximski has joined #ruby
wet88 has quit [Remote host closed the connection]
_hollywood has quit [Quit: Leaving]
<GaryOak_>
I'm just trying to make a sane way of making a library of resque jobs
senayar has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
I personally would love to see a new option parser in ruby that could replace both OptionParser and GetOptLong and becomes the new standard, as flexible and as documented as possible
joshbamboo1 has quit [Read error: Connection reset by peer]
<shevy>
I admire the way how GaryOak_ took the rspec with his iron fists, analyzed it mercilessly by shaking it up wildly and then recommending minitest!
pandaant has joined #ruby
<tearan>
GaryOak_ I know that... I'm looking for something that will pass to troubleshoot why the matcher is broken
pwattste has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jeramy_s has quit [Quit: Peace out!]
<GaryOak_>
vim vs emacs, white and gold vs blue and black, minitest vs rspec, these wars will continue as long as humans exist
RegulationD has joined #ruby
AlphaTech has quit [Ping timeout: 256 seconds]
<tearan>
I prefer minitest too... but everything is set up for rspec....
<shevy>
GaryOak_ hehe
<shevy>
vim versus emacs is the best battle
<shevy>
there are always two losers here!
<wasamasa>
s/best/most boring/
Limix has quit [Quit: Limix]
mistermocha has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
tgunr has quit [Read error: Connection reset by peer]
AlphaTech has joined #ruby
<GaryOak_>
hahaha
mwmnj has joined #ruby
jlast has joined #ruby
<GaryOak_>
tearan: does the opposite work? like expect(false).to_not be_truthy?
<tearan>
it's the be_truthy its complaining about
* agent_white
stirs vim inside his coffee
altamic has quit [Quit: altamic]
<GaryOak_>
expect(false).to be_falsey?
RegulationD has quit [Ping timeout: 256 seconds]
krisquigley has joined #ruby
<agent_white>
!!expect(false)
tgunr has joined #ruby
<agent_white>
Nah don't do that. I'm just typing things. :P
ebbflowgo has joined #ruby
ebbflowgo has quit [Remote host closed the connection]
AlphaTech has quit [Excess Flood]
<GaryOak_>
I've been learning vim lately
<GaryOak_>
It's definitely nice to know for linux admin stuff
mengu has quit [Remote host closed the connection]
imran_ra_ has quit [Remote host closed the connection]
<shevy>
so you are an emacster
<shevy>
we can't be friends anymore
<GaryOak_>
sublimer
<shevy>
it's the same situation with the enemy people on #ruby-lang
imran_ra_ has joined #ruby
<shevy>
oh so like jhass
<shevy>
then you have redeemed yourself just now
Advocation has quit [Quit: Advocation]
<shevy>
I'd love if it were possible to combine cool features from different editors freely
<shevy>
like a LEGO editor - build it yourself, without programming!
<GaryOak_>
atom ;)
<agent_white>
GaryOak_: Aye :) I think everyone should be comfy with emacs or vim just because it's nice to be comfy when ssh'ed in somewhere.
AlphaTech has joined #ruby
<GaryOak_>
not quite legos
jlast has quit [Ping timeout: 272 seconds]
<GaryOak_>
agent_white: definitely
adriancb has quit [Remote host closed the connection]
<GaryOak_>
you can use nano though too, but that's weak
Filete has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
silkfox has quit [Ping timeout: 250 seconds]
kenndel has joined #ruby
imran_ra_ has quit [Ping timeout: 264 seconds]
kenndel has quit [Remote host closed the connection]
piotrj has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
car has joined #ruby
hs366 has quit [Quit: Leaving]
jamto11 has quit [Remote host closed the connection]
A205B064 has joined #ruby
<GaryOak_>
there's also a vim mode in sublime text, but it's not really the same
<tearan>
there is?
<GaryOak_>
yep
<GaryOak_>
it's called the Vintage package
zz_twistedpixels is now known as twistedpixels
<shevy>
nano does not have many features but it's ok for very small things, less confusing for a newcomer than vi/vim
<GaryOak_>
yeah
cstrahan_ is now known as cstrahan
<shevy>
if we could have a mix between nano and vim ... nanom!
piotrj has quit [Read error: No route to host]
piotrj has joined #ruby
DerisiveLogic has quit [Ping timeout: 245 seconds]
<milesmatthias>
jhass: thanks a ton for the tips!
tier has quit [Remote host closed the connection]
<apeiros>
jhass on a roll again?
dfinninger has joined #ruby
<jhass>
huh?
nfk has quit [Quit: yawn]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
mago0 has quit [Quit: WeeChat 1.0.1]
riotjones has joined #ruby
marr has joined #ruby
icebourg has quit []
robustus has quit [Ping timeout: 255 seconds]
qualityaddict has joined #ruby
robustus|Off has joined #ruby
Channel6 has joined #ruby
robustus|Off is now known as robustus
riotjones has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf1 has quit [Quit: WeeChat 1.1.1]
lxsameer has quit [Quit: Leaving]
x1337807x has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
teddyp1cker has quit [Remote host closed the connection]
aclearman037 has joined #ruby
jamto11 has joined #ruby
x1337807_ has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
<GaryOak_>
testing is awful!
<GaryOak_>
I don't trust it!
<shevy>
yeah but
<shevy>
without tests, can you trust your code?
<shevy>
especially when you reshuffle things and perhaps add subtle breaks!
<GaryOak_>
can you trust your tests?
<shevy>
I don't trust anyone or anything
<GaryOak_>
#jasonbourne
<shevy>
especially not that guy, he is so untrustworthy
JDiPierro has quit [Remote host closed the connection]
<FernandoBasso>
Thanks for the tips folks.
adriancb has joined #ruby
<GaryOak_>
That's what we are here for
delianides has joined #ruby
<FernandoBasso>
Can I write web apps in ruby without a framework?
<GaryOak_>
yes
<GaryOak_>
quickly/easily/error-free probably not
ackpacket has joined #ruby
<ackpacket>
I'm trying to temporarily override the method in an object... what's the best way to do this?
<FernandoBasso>
I've been stuck with PHP as my main web/server lang because I can just use it, without having to learn frameworks. I'd like to be able to do that in ruby too.
<ackpacket>
do I have to do a def my_obj.fn_i_want ?
adriancb has quit [Remote host closed the connection]
ascarter has joined #ruby
<ackpacket>
Crossposting in rails as well, fyi.
sgambino has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<FernandoBasso>
apeiros: yeah, but I guess you understand what I mean, like, how to handle sessions, for instance. I'll end up having to create my on framework for that, it seems.
alex1404 has quit [Ping timeout: 265 seconds]
<apeiros>
FernandoBasso: that's essentially what you do with php too. or you stick to quite basic functionality.
<GaryOak_>
apeiros: that looks pretty nice, compared to building a whole sinatra app
<FernandoBasso>
yep, you are right.
foureight84 has quit [Quit: Be back later ...]
<apeiros>
also without a framework, you'll all too often use horrible patterns
<apeiros>
like db queries mid-page
<apeiros>
always awesome when something fails and you have a partially rendered website riddled with error messages
<GaryOak_>
or putting your logic in your templates
quimrstorres has quit [Ping timeout: 255 seconds]
<GaryOak_>
or having 1000 line templates
adriancb has joined #ruby
<apeiros>
or loading a huge include on every page
jlast has joined #ruby
ZeeNoodleyGamer has quit [Read error: Connection reset by peer]