<Arcaire>
they were originally under edgecase, then got moved to neo, and now they're back under edgecase
<Arcaire>
the neo github account got recreated on May 22 or so, which is why it's all rm'd now
<Arcaire>
cc imperator
<hxegon>
ty Arcaire
beilabs has quit [Remote host closed the connection]
<imperator>
thx Arcaire
Dios has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tie>
New to the whole IRC thing, so I dont know much about the community or the format but is this a good place for quick answers to simple Ruby questions?
phutchins has quit [Ping timeout: 252 seconds]
<Arcaire>
yes
ryez has joined #ruby
benlieb has joined #ruby
<tie>
Wewt ^.^ I've got my final project on Ruby due the first and I've never used it before.
idefine has joined #ruby
<Nilium>
Sounds like fun.
chipotle has quit [Quit: cheerio]
<tie>
Except the workload it is
ensyde has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Quit: Sleeping...]
PaulCapestany has joined #ruby
ryan_notabot has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
braincrash has quit [Quit: bye bye]
hxegon is now known as hxegon_afk
tristanp has quit [Ping timeout: 272 seconds]
PaulCape_ has quit [Ping timeout: 252 seconds]
Dios has joined #ruby
ryez has quit [Ping timeout: 250 seconds]
arescorpio has joined #ruby
certainty has joined #ruby
|meta has quit [Quit: Connection closed for inactivity]
<Radar>
Hours of operation for the #ruby IRC channel over the past 4 years.'
certainty has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
<Radar>
X is time, Y is messages
<Radar>
Time is in UTC.
<Radar>
tie: that should answer your question.
tristanp_ has quit [Ping timeout: 244 seconds]
ryez has joined #ruby
tercenya has joined #ruby
PaulCape_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
gmas has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
<tie>
Damn dude, nice. That really helps me out. It sucks I came on here at the worst possible time though.
<tie>
How did you extract that information?
aadam21 has quit [Ping timeout: 244 seconds]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
tercenya_ has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
<Radar>
tie: I log this channel and #rubyonrails with my helpa bot.
mistermocha has joined #ruby
<Radar>
I ran an SQL query to extract the data and then graphed it using plot.ly
arescorpio has quit [Quit: Leaving.]
hahuang65 has quit [Ping timeout: 272 seconds]
<tie>
Well thats pretty cool. I'm only in my second year so I havent expanded my horizons very much but I'm impressed you were able to get that information so quickly.
nando293921 has quit [Ping timeout: 264 seconds]
Coldblackice has joined #ruby
blandflakes has joined #ruby
aadam21 has joined #ruby
elifoster has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
<Radar>
Lots and lots and lots of practicing (and some googling for the right SQL to use for PostgreSQL)
Ishido has joined #ruby
blandflakes has quit [Client Quit]
Orico has joined #ruby
whathappens has joined #ruby
hahuang65 has joined #ruby
<tie>
May I ask what you do for a living?
<tie>
I'm just curious about my future possibilities.
neanderslob has quit [Ping timeout: 244 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
aadam21 has quit [Ping timeout: 240 seconds]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
kareeole_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
statelesscode has quit [Ping timeout: 276 seconds]
<Radar>
A shorter version: I work at Marketplacer and build sites like bikeexchange.com.au and on the side I write a lot of books / guides for Ruby and Rails.
tristanp_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
<tie>
Well that answer was just too easy for you. Youve already typed it up!
tristanp has quit [Ping timeout: 272 seconds]
<Radar>
Yup :)
whathappens has quit [Remote host closed the connection]
idefine has joined #ruby
whathappens has joined #ruby
<tie>
Are you self taught or did you take courses?
bronson has joined #ruby
noisykeyboard has quit [Quit: Leaving]
elaptics`away is now known as elaptics
<Radar>
neither, really. I tried teaching myself but I got a lot of help from this channel and #rubyonrails when I was first starting out
whathappens has quit [Ping timeout: 250 seconds]
<tie>
I still consider that self taught. You didnt live in a dorm for four years writing a half dozen programs a week.
<tie>
Crying yourself asleep at night...
<tie>
Failing to eat for days...
<tie>
Gradually indebting yourself to oblivion...
PaulCapestany has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<Radar>
[15:42:22] <tie>Crying yourself asleep at night... <- yes
<Radar>
[15:42:33] <tie>Failing to eat for days... <- no. That's just stupidity.
<Radar>
[15:43:04] <tie>Gradually indebting yourself to oblivion... <- See above.
<tie>
Aww... Okay, thanks friend
<Radar>
"“One cannot think well, love well, sleep well, if one has not dined well.”"
sauvin has joined #ruby
<tie>
Ahhhh okay
PaulCape_ has quit [Ping timeout: 252 seconds]
<tie>
Yeah, I pretty much live off of Thai and Mac and Cheese
<tie>
Luckily the ADHD medication I'm on eliminates my appitite so failing to eat doesnt effect me very much. But It's not by choice. I'm programming or doing classwork 18 hours a day. I dont really get a chance to eat.
idefine has quit [Ping timeout: 276 seconds]
Guest38693 has joined #ruby
aadam21 has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aadam21 has joined #ruby
RobertBirnie has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
LoneHerm_ has joined #ruby
tristanp has joined #ruby
Orico` has joined #ruby
tristanp_ has quit [Ping timeout: 244 seconds]
Guest38693 has quit [Ping timeout: 250 seconds]
aadam21 has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
Orico has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
sneakerhax has joined #ruby
tildes_ has quit [Ping timeout: 244 seconds]
<alfiemax>
Hey y'all..
<alfiemax>
i'm using nokogiri to scrape a webpage and get the images present in the page. My code seems to work and fetch the images, but not all of it. I think nokogiri isn't reading the entire webpage.
TvL2386 has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 272 seconds]
aadam21 has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
karmatr0n has joined #ruby
TomyWork has joined #ruby
trista___ has joined #ruby
_aeris_ has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 260 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
aadam21 has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
ljames has joined #ruby
anisha has joined #ruby
Dimik has quit [Ping timeout: 272 seconds]
trista___ has quit [Ping timeout: 272 seconds]
aadam21 has quit [Ping timeout: 240 seconds]
<Radar>
or the pry gem
aadam21 has joined #ruby
fenre has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fenre has joined #ruby
vjacob has joined #ruby
ishe has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
vjacob has quit [Max SendQ exceeded]
ishe_ua` has joined #ruby
vjacob has joined #ruby
aadam21 has quit [Ping timeout: 240 seconds]
hightower2 has joined #ruby
ishe_ua` has quit [Client Quit]
blandflakes has joined #ruby
ta_ has joined #ruby
soud has joined #ruby
agit0 has joined #ruby
blandflakes has quit [Client Quit]
ishe_ua` has joined #ruby
ishe_ua` has quit [Client Quit]
garri2 has joined #ruby
garri2 has quit [Client Quit]
ors has joined #ruby
ors is now known as Guest98353
Guest98353 has quit [Client Quit]
aadam21 has joined #ruby
ishe_ua has joined #ruby
ur5us has joined #ruby
SilverKey has joined #ruby
ishe_ua has quit [Client Quit]
beilabs has joined #ruby
tie has quit [Ping timeout: 250 seconds]
ishe_ua has joined #ruby
PaulCapestany has joined #ruby
dopie has quit [Quit: Leaving]
xall has quit [Ping timeout: 240 seconds]
aadam21 has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
beilabs_ has quit [Ping timeout: 260 seconds]
beilabs_ has joined #ruby
dgncn has quit [Remote host closed the connection]
johnbat26 has joined #ruby
beilabs has quit [Ping timeout: 272 seconds]
jancel has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
bronson has joined #ruby
mark_66 has joined #ruby
tristanp_ has joined #ruby
jancel has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 244 seconds]
raeoks has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Hobbyboy has joined #ruby
tristanp has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
Sembei has quit [Ping timeout: 244 seconds]
Hyuk has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
Sembei has joined #ruby
ur5us has quit [Remote host closed the connection]
DTZUZU has joined #ruby
madgen has joined #ruby
aadam21 has joined #ruby
Guest38693 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
iWantCod has joined #ruby
<iWantCod>
hello?
<iWantCod>
help me
_aeris_ has joined #ruby
djbkd has quit [Remote host closed the connection]
johnchalekson has joined #ruby
<iWantCod>
{ cout << "help "<< endl;
<iWantCod>
fuck
iWantCod has left #ruby [#ruby]
mistermocha has joined #ruby
PaulCape_ has joined #ruby
aadam21 has quit [Ping timeout: 260 seconds]
<vjacob>
is there a beginner channel?
SilverKey has quit [Quit: Halted.]
Devalo has joined #ruby
alfiemax has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
bruce_lee has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
aadam21 has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
pld has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
<jhass>
vjacob: we happily take beginner questions, but if the audience is too big for you there's also ##new2ruby
<Zarthus>
vjacob: /msg alis list ruby -min 10 seems to suggest at best a ##new2ruby channel, but this channel generally helps anyone so long as the question is answerable.
aadam21 has quit [Ping timeout: 240 seconds]
Ch4rAss has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby
mikecmpbll has joined #ruby
vjacob has quit [Quit: Leaving]
DoubleMalt has joined #ruby
vjacob has joined #ruby
aadam21 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
tristanp has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
aadam21 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 240 seconds]
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
Amnez777 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
weckl has joined #ruby
aadam21 has joined #ruby
trista___ has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
certainty has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
giz|work has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
aadam21 has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<shevy>
is there a way to do partial subclassing? like if I want to subclass .tr() and .tr() from string, for a string-like object, but without wanting to subclass from class String
<shevy>
hanmac you have way too much time available :P
<fu2ristiq>
should I do
nadir has quit [Quit: Connection closed for inactivity]
<fu2ristiq>
should I do "require 'test/unit' or "require 'minitest/autoload' these days?
User458764 has joined #ruby
tristanp_ has joined #ruby
<shevy>
fu2ristiq you mean whether you should use one or the other?
tristanp has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
<fu2ristiq>
shevy exactly
coffeecupp has quit [Quit: Lost terminal]
<hanmac>
shevy: about tr from String, imo you should never subclass one of the core classes like String, you better use a Delegator object for such thing
<shevy>
hanmac aha, delegator. let me look up how to use that
<shevy>
fu2ristiq minitest probably
aadam21 has quit [Ping timeout: 240 seconds]
<fu2ristiq>
shevy thank you
rbennacer has quit [Ping timeout: 244 seconds]
aadam21 has joined #ruby
fu2ristiq has quit [Quit: Page closed]
gnufied has joined #ruby
aadam21 has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
duckpuppy has joined #ruby
Guest38693 has quit [Ping timeout: 272 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
triangles has joined #ruby
triangles2 has quit [Ping timeout: 240 seconds]
aadam21 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
miqlas-H has joined #ruby
<miqlas-H>
Hi Guys!
<miqlas-H>
I'm working on the ruby port for Haiku.
<miqlas-H>
Can you tell me, how do you guys accomplished the colorized configure script output? I pretty like it.
<miqlas-H>
It seems, there is a colorizing function in the configure script. Can i use it in other programs too? The autoconf man page doesn't say anything about it, and google search was also helpless.
<miqlas-H>
BTW, i got the latest ruby to compile yesterday.
rbennacer has quit [Ping timeout: 258 seconds]
<shevy>
yay, go Haiku!
anisha has joined #ruby
<shevy>
I think the colourized output is fairly new-ish... 2-3 years or so? nobu probably may have added it
aadam21 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
pld has joined #ruby
skade has quit [Ping timeout: 244 seconds]
triangles2 has joined #ruby
skade has joined #ruby
triangles has quit [Ping timeout: 240 seconds]
<miqlas-H>
shevy: but can we generate the configure script with enabled colorized output somehow from configure.in with autoreconf? Or is it require manual labour?
rbennacer has joined #ruby
Ropeney has quit [Quit: Leaving]
<miqlas-H>
shevy: please, don't have big expectations yet, i got plenty problems at packaging properly ruby for Haiku..
skade has quit [Read error: Connection reset by peer]
<miqlas-H>
So it isn't in the repo yet, i need to work further.
<miqlas-H>
As in Haiku almost everything packaged, and just extracted virtually, the good old folders became read-only, so i need to define, where should ruby put the user-addons.
<shevy>
dunno where the colourization is, shell scripts scare me
<miqlas-H>
shevy: no problem. I just really hope it will be the default in the following years. It makes the porting works really easier.
<jhass>
miqlas-H: many distro's deploy a /etc/gemrc that sets --user-install these days
<miqlas-H>
I mean i hope it will become standard at other projets too
mdw has quit [Quit: Sleeping Zzzzz]
c355e3b has joined #ruby
<shevy>
I remember some years ago when i tried out haiku (but via qemu), I wanted to have ruby on it
<shevy>
I can live without linux but not without ruby!
<miqlas-H>
jhass: i know about that, and it works with the actual ruby version on Haiku (ruby 2.2.2 i think), but it creates a .gem folder in the user home folder.
<miqlas-H>
It shouldn't do that.
<shevy>
aha
skade has quit [Read error: Connection reset by peer]
<jhass>
uhm yes it should
<miqlas-H>
there should be no dot folders in the user home.
<shevy>
rubygem likes the .gem directory
<jhass>
so where do you want them?
skade has joined #ruby
<shevy>
I have a file called "credentials" and a directory called "specs/" in my .gem dir
<miqlas-H>
there is a folder for that: /boot/home/config/non-packaged/data
<miqlas-H>
or /home/config/settings/ruby
aadam21 has quit [Ping timeout: 240 seconds]
<miqlas-H>
they are read-write folders
<miqlas-H>
Sorry, we cannot package all the gems, they are changing too oftly
<shevy>
that is good!
startupality has joined #ruby
Ropeney has joined #ruby
<miqlas-H>
But btw i got jekyll work on Haiku some time ago. I need it for my webpage.
<miqlas-H>
i had a big headache because ffi, it have C supporting code, and i don'treally remember, how i made it work. I sent already a patch for ffi, but it isn't enough yet to get it work.
<jhass>
*options to set/expand GEM_HOME/GEM_PATH ß
<miqlas-H>
And i forgot, how i made it work :(
<miqlas-H>
Dopt do serious programming in pubs....
<miqlas-H>
*Don't
<miqlas-H>
jhass: I know about that, and about .gemrc
<miqlas-H>
But the .gemrc also cannot be in /home
ocbtec has joined #ruby
<miqlas-H>
there shouldn't be an dot files and folders in home.
<jhass>
but in /etc/gemrc
<jhass>
anyway
<jhass>
just ship a profile.d that exports GEM_HOME
<miqlas-H>
we haven't got /etc
johnchalekson has joined #ruby
johnchalekson has quit [Read error: Connection reset by peer]
<miqlas-H>
I tried to port some deep-learning softwares to haiku, but almost all of them require fortran compiler, and we doesn't have any yet.
<shevy>
it's a linux world!
<miqlas-H>
(it isn't ruby relevant thing)
skade has quit [Ping timeout: 240 seconds]
raeoks has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
<miqlas-H>
shevy: i know, and there should be an symbolic link for /etc, but we doesn't have any, i suppose. So we need to hack all the sources, where it is hardcoded.
johnchalekson has joined #ruby
tolland has joined #ruby
skade has joined #ruby
<miqlas-H>
i tried to enable fortran in gcc, but you just doesn't want to get gcc compile in a bar.... it takes just too much time.
grina has joined #ruby
<tolland>
im parsing an XML doc with nokogiri, but its only returning 4 elements, (there are many), any suggestions on whether there is a limit parameter I am missing?
rbennacer has quit [Ping timeout: 276 seconds]
hk238 has joined #ruby
rodfersou has joined #ruby
<ytti>
tolland, stab in the dark, try #remove_namespaces!
<miqlas-H>
Guys, i'm trying to get as many useful programs to compile on Haiku as much as i can get. But i'm out of ideas. Can you give me any tips for cli or qt based programs what you like to see on Haiku?
tristanp has joined #ruby
gart has joined #ruby
grina has quit [Client Quit]
stardiviner has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
tristanp_ has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby
<shevy>
ruby-qt!
<shevy>
:D
<jhass>
tolland: if that doesn't help you gotta share your code & XML
<miqlas-H>
for that i should get ruby to compile properly first
<miqlas-H>
any other wish?
tristanp_ has joined #ruby
skade has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
goeast has quit [Ping timeout: 250 seconds]
<jhass>
tmux?
tristanp has quit [Ping timeout: 260 seconds]
madgen has joined #ruby
gart has quit [Quit: Page closed]
<miqlas-H>
got fish shell to compile on Haiku, but it crashes as i try to start it.... ehhh....
rbennacer has quit [Ping timeout: 240 seconds]
goeast has joined #ruby
<miqlas-H>
jhass: i think somebody worked on that, but out Terminal isn't enough advanced for that.
stardiviner has joined #ruby
<miqlas-H>
our
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miqlas-H>
and tmux requires libevent, what isn't updated for Haiku yet (we have a port actually)
<jhass>
tolland: parse it as HTML and it'll work
jeanlinux has quit [Remote host closed the connection]
charliesome has joined #ruby
<shevy>
miqlas-H bash as my main shell; kde konsole as my main terminal; evince usually for .pdf files; libreoffice for documents... ruby for programming... lighttpd for webserver... xchat for IRC (still!)... firefox as browser... bluefish as editor (haha) ... mplayer for video and audio files... ffmpeg for modifying the latter two format types... I may probably miss some. Do these work on haiku?
pld has quit [Ping timeout: 244 seconds]
<tolland>
jhass: its odd that its finding 4 elements
gnufied has quit [Quit: Leaving]
johnmilton has joined #ruby
<jhass>
tolland: it's luck that it parses at all
ebbflowgo has quit [Quit: ebbflowgo]
<jhass>
(as XML)
<miqlas-H>
BTW, i just become lead engineer :) I got minions, they doing what i say, it is pretty good.
<shevy>
miqlas-H where is the temporary files directory on haiku by the way?
mdw has joined #ruby
<miqlas-H>
tmp do you mean?
<shevy>
on linux I guess it is /tmp/
<miqlas-H>
We got /boot/system/cache/tmp and it have a symlink to /tmp
<shevy>
aha ok
<miqlas-H>
so it will work as in linux
vjacob has joined #ruby
<jhass>
since we got some ontopic traffic
<jhass>
?ot
<ruby[bot]>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
rbennacer has quit [Ping timeout: 264 seconds]
<miqlas-H>
jhass: do you mean me? :)
<jhass>
yes
<miqlas-H>
I'm sitting in a bar, i had 4 beers, so i just cannot be ontopic.
<miqlas-H>
But i pretty liek the jekyll. With it i can sleep a bit better, and i don't need to think about hackers and so on.
<miqlas-H>
and static html's are etter cacheable.
<miqlas-H>
so i like ruby, but i never did any actual developement in ruby yet.
neanderslob has quit [Remote host closed the connection]
jaruga____ has joined #ruby
jaruga___ has quit [Ping timeout: 244 seconds]
<miqlas-H>
I really want to port rail for Haiku, but it had plenty problems with ruby 2.2.2, so i thought maybe it would be easier with recent ruby, that's why i'm working on ruby now
ryan_notabot has joined #ruby
<apeiros>
miqlas-H: "i just cannot be ontopic" - just don't complain you hadn't been warned.
karmatr0n has joined #ruby
<miqlas-H>
apeiros: i tried to be ontopic, you see?
hutch34_ has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby
rbennacer has joined #ruby
futilegames has quit [Quit: futilegames]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trista___ has quit [Read error: Connection reset by peer]
goeast has quit [Read error: Connection reset by peer]
tristanp_ has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
johnchalekson has quit [Client Quit]
goeast has joined #ruby
johnchalekson has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
jmignault has joined #ruby
Ropeney has joined #ruby
johnchalekson has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
giz|work has quit [Ping timeout: 250 seconds]
deuterium has joined #ruby
goeast has quit [Ping timeout: 264 seconds]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
rbennacer has joined #ruby
tjad has quit [Remote host closed the connection]
johnchalekson has joined #ruby
nankyokusei has quit [Remote host closed the connection]
goeast has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ryan_notabot has quit [Ping timeout: 246 seconds]
ebbflowgo has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ryan_notabot has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Ropeney has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
Guest38693 has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby
rbennacer has joined #ruby
madgen has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
vjacob has quit [Quit: Leaving]
hanmac has joined #ruby
roger_rabbit has quit [Ping timeout: 244 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
tristanp has quit [Ping timeout: 272 seconds]
Devalo has joined #ruby
raeoks has quit [Remote host closed the connection]
VeryBewitching has joined #ruby
pld has joined #ruby
rbennacer has joined #ruby
tristanp has joined #ruby
blandflakes has joined #ruby
GBrawl has quit [Quit: (null)]
tristanp_ has quit [Ping timeout: 272 seconds]
Alazoral has joined #ruby
blandflakes has quit [Client Quit]
Devalo has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
aadam21 has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
mdw has quit [Quit: Sleeping Zzzzz]
tildes has quit [Remote host closed the connection]
tildes has joined #ruby
deadnull_ has joined #ruby
m_antis has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
nadir has joined #ruby
p0p0pr37 has joined #ruby
LinuxHippie has quit [Remote host closed the connection]
sdothum has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
troulouliou_div2 has joined #ruby
moeabdol has joined #ruby
skade has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
skade has quit [Client Quit]
nettoweb has quit [Ping timeout: 250 seconds]
hightower2 has joined #ruby
uncertainty has joined #ruby
hightower2 has quit [Remote host closed the connection]
certainty has quit [Read error: Connection reset by peer]
skade has joined #ruby
nettoweb has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
rbennacer has joined #ruby
tristanp_ has joined #ruby
johnchalekson has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
skade has quit [Ping timeout: 244 seconds]
rbennace_ has joined #ruby
skade has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Ping timeout: 272 seconds]
skade has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 276 seconds]
skade has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
fmcgeough has joined #ruby
dionysus69 has joined #ruby
beilabs has quit [Remote host closed the connection]
skade has quit [Excess Flood]
tristanp has joined #ruby
skade has joined #ruby
rbennace_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
dn5 has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 252 seconds]
skalfyfan has joined #ruby
phutchins has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
rbennacer has joined #ruby
desmondhume has joined #ruby
senayar has joined #ruby
uncertainty has quit [Ping timeout: 272 seconds]
skade has quit [Ping timeout: 276 seconds]
tristanp_ has joined #ruby
moeabdol has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
jrafanie has joined #ruby
ramortegui has joined #ruby
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
ta_ has quit [Remote host closed the connection]
Dysp has joined #ruby
hightower2 has joined #ruby
roamingdog has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
<Dysp>
Hi people. I've made my first script! And it works. Yaaay. However, I would like if someone would do me the honors of evaluating what I've written, so I can learn about producing better code. I mean; what am I doing in a bad way here? Is it built correctly? Am I using class the way I should? So on and so on.
<goeast>
I have 2 class. 1 is creating the artist and the other 1 is storing the artist into the library.
<goeast>
I have 2 problems : 1) I am not able to store my artist in the library. The code is not working. 2) I would like it to respect the artist = Hash.new { |h,k| h[k]=[]} because 1 artist can have many songs.
troulouliou_div2 has quit [Ping timeout: 276 seconds]
<goeast>
thanks !
<goeast>
(line 26)
troulouliou_div2 has joined #ruby
mdw has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
mistermocha has quit [Ping timeout: 244 seconds]
p0p0pr37_ has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
<jhass>
your indentation is pretty inconsistent :)
<jhass>
also if you name your gistfile something.rb you get syntax highlighting
glcx has joined #ruby
jnoob22 has quit [Quit: Leaving]
<shevy>
goeast you should include the module where the code will be used, in your class
tristanp has quit [Ping timeout: 272 seconds]
<jhass>
goeast: anyway, I expect you're getting some error message, shall we interpret them together?
<goeast>
Yes please thank you very much
<shevy>
I don't really know why you use the modules though
p0p0pr37 has quit [Ping timeout: 240 seconds]
<jhass>
edit your gist, add a file with them
p0p0pr37_ is now known as p0p0pr37
moeabdol has joined #ruby
<goeast>
Sorry Jhass Its one of the first time I am using gist. I "edit" and "add"a file. But I don't see what is expected :/
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
<jhass>
you get a second textarea, paste your error message and hit save
<jhass>
indentation still isn't at two spaces, def's are still not indented towards their class, indentation where there's no nested logical block
<jhass>
camelCase method names, private isn't used as recommended
creat has quit [Ping timeout: 250 seconds]
<jhass>
explicit return keywords where not necessary
<Dysp>
It is two spaces, I just think Gist changes it
<jhass>
it's tabs, you just set your editor to display them as two spaces
<Dysp>
Probably.
creat has joined #ruby
skalfyfan has joined #ruby
<jhass>
please convert to spaces
ryan_notabot has quit [Ping timeout: 276 seconds]
ryan_notabot has joined #ruby
aegis3121 has joined #ruby
<jhass>
goeast: okay great, next error is in the same line.
<jhass>
"undefined method `>>' for {}:Hash" anything you can make out of this?
karmatr0n has joined #ruby
shadeslayer has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
<goeast>
Yes I get that I can't use >> for a Hash so instead I think I should use something like hash [key ]= value
<alfiemax>
Hi
<jhass>
Dysp: calling instance_variable_get on self with a symbol literal is pointless, just use the variable directly
<tildes>
Dysp: you don't need to use instance_variable_get inside the same class
<goeast>
but this is exactly where I am lost since its already created one time :/
<jhass>
goeast: spacing is off, but yes
<apeiros>
tildes: s/class/object/
<jhass>
goeast: are you sure you need a hash? do you know the difference between hash and array?
<tildes>
Dysp: and if you ever feel like using it outside the class, use an attribute accessor rather
<tildes>
apeiros: yes, and?
<alfiemax>
i'm trying to fetch all images loaded in a page, and by just using nokogiri i'm only able to get the html part, so i can only get images with `img` tags
<Dysp>
Ehm.
<goeast>
Yes I know the difference and I need a hash in this format artist = Hash.new { |h,k| h[k]=[]} or maybe I am mystaking. I want to add many songs to one artist
<tildes>
Dysp: also if you're interested in improving style, try rubocop :)
<Dysp>
I will
<jhass>
goeast: okay so artist shall become your key
<alfiemax>
is there any other tool in ruby with which i can get image's rendered via css? using background/background-image properties?
miqlas-H has quit [Ping timeout: 252 seconds]
<apeiros>
tildes: there's no "and". it's "inside the same object", not "inside the same class"
jenrzzz has joined #ruby
xue has quit [Remote host closed the connection]
<jhass>
goeast: how about renaming add to add_artist and creating an empty array for them in the library?
<Dysp>
My plan was to put the bad body into a database when calculated. Then call the methods defined when I want to access stuff in the object.
creat has quit [Ping timeout: 252 seconds]
<Dysp>
But maybe I should take the whole load/calculate part out of the class.
<tildes>
apeiros: on a quick read it looks like it's all in the same class
smathy has joined #ruby
TvL2386 has joined #ruby
CausaMortis has joined #ruby
<jhass>
Dysp: can't comment on structure yet, too noisy ;)
hightower2 has quit [Ping timeout: 260 seconds]
<jhass>
Dysp: all those abbreviated names don't help either, please spell them out
<tildes>
Dysp: with a language like ruby, fixing indentations is a must, cannot stress this strongly enough
weemsledeux has joined #ruby
<apeiros>
tildes: yes, instance methods defined in the same class will be executed in the context of the same object. but you still can only access the same object's ivars without ivar_get.
<jhass>
Dysp: and while fixing names, avoid generics like "array, hash", describe your data
<apeiros>
seemingly small but important difference
User458764 has joined #ruby
<Dysp>
jhass: Which abbreviated names? Like RFD and nm? Why would I write "rateOfForceDevelopmentInNewtonMeter"? ^_^
<goeast>
Jhass : I updated the gist and corrected the mystake >> into <<
<tildes>
just proves I can't really read it properly
tk__ has joined #ruby
<goeast>
Jhass : Thank you very much ! It seems it is working but how can I make sure that the format artist = Hash.new { |h,k| h[k]=[]}
<Dysp>
jhass: But when I later want to call that variable inside the object, do you really suggest writing such long names?
<Dysp>
from the object*
<jhass>
goeast: I don't think you need that autovivifying hash with the structure you're going at ;)
braincrash has joined #ruby
<jhass>
Dysp: yes.
<jhass>
absolutely
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tildes>
Dysp: it really is a best practice from all programming, except for some cases, such as embedded software, where you cannot afford the extra characters from hardware perspective
<jhass>
get an editor which can autocomplete if you really can't be arsed
<tildes>
^in, not from
MyMind has joined #ruby
creat has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
giz|work has joined #ruby
<Dysp>
It's not about whether I want to or not.. But generally we don't refer to those long names when we speak about it at the lab.
glcx has quit [Ping timeout: 258 seconds]
<shevy>
the unspoken things!
<tildes>
Dysp: if it's domain terminology, then abbreviation might make sense
pandaant has joined #ruby
tristanp_ has quit [Ping timeout: 272 seconds]
<jhass>
"array, hash" isn't
<Dysp>
It is indeed. No one who doesn't know what this is about would ever see the code.
<tildes>
nope, never :D
<jhass>
so why would you show us?
<jhass>
;)
Sembei has quit [Ping timeout: 244 seconds]
<goeast>
Jhass : ahah I know. Actually it is much more for a training purpose. What is interesting for me is to learn how to play with a Hash
<jhass>
we have no clue, so if you later want feedback on the structural/logical level we need to understand what your code is doing
skalfyfan has quit [Read error: Connection reset by peer]
deadnull_ has quit [Remote host closed the connection]
<Dysp>
Because I am not asking you about the specific data handling the script does, just about whether or not I am doing stuff stupidly. Like the array/hash thingy
<jhass>
abbreviations such as nms and n make that extremely hard
<Dysp>
That is true indeed.
pld has quit [Ping timeout: 240 seconds]
hightower2 has joined #ruby
<Dysp>
newton meter pr second
<Dysp>
and newton.
<Dysp>
^^
<jhass>
I won't memorize that for you
Snowy has quit [Remote host closed the connection]
<Dysp>
But I do get your point.
<Dysp>
You should have seen the first version of the script. Just one long set of code. No functions defined or anything.
<jhass>
there's always a greater evil
<jhass>
doesn't make the current one less relevant
SilverKey has joined #ruby
jero_ has quit [Quit: Leaving]
tristanp has joined #ruby
<Dysp>
True story; but slamming me with formatting issues doesn't really help my understanding on how coding works. Of course I will remember your arguments for later on, but what I was more interested in was the structure, tbh.
<jhass>
since I see no real progress towards your style issues, please in fact do pipe it through rubocop and come back if you fixed all the issues
<jhass>
we can't even recognize your logical/structural issues when we can't understand your thinking through all the formatting issues
last_staff has quit [Quit: last_staff]
<tildes>
Dysp: when I started out with ruby I thought all this formatting and style stuff was a pain...
<shevy>
Dysp it often is what people notice first :)
<tildes>
but the thing is, because ruby is so dynamic, it is even more important here than with statically typed languages, where you can press the "make nice button" on your IDE and make at least the indentations right
JesseH has quit [Quit: Leaving]
<shevy>
the good old "better" button - when you press it, everything becomes better!
<Dysp>
I know it's necessary and I will try my best to follow. But expecting me to provide a perfectly formatted and stylized script on my first try, seems a bit arrogant to me. I am still struggling with understand classes, functions and methods.
<tildes>
and in any case, good style just helps people understand your code faster
<tildes>
and better chance at understanding it correctly
<jhass>
Dysp: not perfectly, it's just very very far off tbh
<apeiros>
Dysp: if it was your first try, that'd hold
uncertainty has joined #ruby
<tildes>
Dysp: is it your first time writing code?
<Dysp>
Yes.
<Dysp>
Never ever done anything else.
<tildes>
Dysp: congratulations for making it work (assuming it works)
<Dysp>
It does! :D
<tildes>
and if it doesn't, congrats for improving the structure
<tildes>
Dysp: yay
<apeiros>
channel logs say you started at least 2 months ago…
<Dysp>
Probably not hard to make it break, but I will get there.
jmignault has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
<Dysp>
Yeah, apeiros, that is true. Remember I am a full time research assistant too. I only work on these things in my spare time or when there is a slow day in the lab.
<apeiros>
then say that, instead of the provably incorrect "first time" claim.
<Dysp>
It is my first ever script.
<Dysp>
So what is incorrect about it?
<tildes>
apeiros: come on, two months occasional fiddling counts as first time
blaxter has quit [Read error: Connection reset by peer]
aadam21 has joined #ruby
system64 has joined #ruby
aadam21 has quit [Remote host closed the connection]
uncertainty has quit [Ping timeout: 244 seconds]
aadam21 has joined #ruby
harushimo has joined #ruby
<shevy>
Dysp what kind of lab? chemistry stuff?
<Dysp>
Some of it is, yeah.
<Dysp>
But it's mainly an exercise lab where we test relevant things.
<Dysp>
But we do analyze a lot of our blood samples ourselves.
scepticulous has joined #ruby
<shevy>
yay analytics
<Dysp>
I don't, though. I'm just a med student helping for a year.
namxam has joined #ruby
<tildes>
yay relevant things
idefine has joined #ruby
<Dysp>
I mainly do the tests and draw blood and assist the actual doctor when performing biopsies and such
pawnbox has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
AnoHito has joined #ruby
<wrkrcoop>
what is it called when a variable = another variable and its value changes when the variable it is set to changes vs when a variable just takes the value of another variable
pietr0 has joined #ruby
CausaMortis has quit [Ping timeout: 252 seconds]
<shevy>
that sentence is pretty epic :)
<wrkrcoop>
haha
<wrkrcoop>
yeah
idefine has joined #ruby
goeast has quit [Ping timeout: 244 seconds]
<wrkrcoop>
not sure how to put it
goeast has joined #ruby
<joenuts_>
the second variable ( the one that points to the first ) would be referred to as a pointer or a reference variable maybe?
sneakerhax has quit [Ping timeout: 272 seconds]
<wrkrcoop>
joenuts_: second variable being the one on line 3?
<wrkrcoop>
or line 4?
<wrkrcoop>
line 3 right?
SilverKey has quit [Quit: Halted.]
gizmore has joined #ruby
<joenuts_>
i would say line 3 is a pointer ( or reference ) variable, and line 4 is ... just another variable that (at the point in time) has the same value as another variable
idefine has quit [Remote host closed the connection]
senayar_ has quit []
conta has quit [Ping timeout: 240 seconds]
aegis3121 has quit [Ping timeout: 276 seconds]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Ping timeout: 260 seconds]
codecop has quit [Remote host closed the connection]
<Sou|cutter>
or a mutable object?
zenguy_pc has joined #ruby
einarj has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
jancel has quit [Remote host closed the connection]
idefine has joined #ruby
einarj has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.5]
<von-strauss>
hi
mtkd has quit [Ping timeout: 264 seconds]
Cohedrin has joined #ruby
agit0 has joined #ruby
craigp_ has quit [Ping timeout: 272 seconds]
einarj_ has joined #ruby
morenoh149 has joined #ruby
jmignault has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
whathapp_ has quit [Remote host closed the connection]
mleung has joined #ruby
idefine has quit [Remote host closed the connection]
whathappens has joined #ruby
benlieb has joined #ruby
dhollinger has joined #ruby
jancel has joined #ruby
mtkd has joined #ruby
elementaru has joined #ruby
jancel has quit [Remote host closed the connection]
Madplatypus has joined #ruby
chipotle has joined #ruby
terminalrecluse has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
Dimik has joined #ruby
jack has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jack is now known as Guest31201
<Guest31201>
Hi
Guest31201 has quit [Client Quit]
djbkd has joined #ruby
yfeldblum has joined #ruby
rbennacer has quit [Remote host closed the connection]
smathy has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
idefine has joined #ruby
mdw has joined #ruby
Guest38693 has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
smathy has quit [Client Quit]
panpainter has joined #ruby
Coldblackice has joined #ruby
Krands has joined #ruby
last_staff has joined #ruby
tristanp has joined #ruby
jrafanie_ has quit [Read error: Connection reset by peer]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theunraveler has joined #ruby
arlek has quit [Ping timeout: 250 seconds]
trista___ has joined #ruby
smathy has joined #ruby
<jhass>
wrkrcoop: there's no difference between line 3 and 4 in your example
idefine has quit [Remote host closed the connection]
robh71 has joined #ruby
idefine has joined #ruby
<joenuts_>
I believe wrkrcoop is trying to describe a scenario where two defined variables point to the same memory location ( dont know if ruby has such a construct though )
tristanp has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
<joenuts_>
such that changes to the first variable impact the second variable
idefine has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
noark9 has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
<wrkrcoop>
jhass: yeah what joenuts said
<von-strauss>
junkin joughnuts
LastWhisper____ has joined #ruby
sepp2k has quit [Quit: Leaving.]
<jhass>
wrkrcoop: joenuts_ ruby is entirely pass by reference, copies have to happen explicitly
idefine has joined #ruby
<wrkrcoop>
jhass: but lets say a = ‘hello'
<wrkrcoop>
oh nvm ill use irb
jenrzzz has joined #ruby
<wrkrcoop>
yeah if a = ‘hell'
<wrkrcoop>
b = a
<wrkrcoop>
a = ‘barf'
brianpWins has quit [Ping timeout: 240 seconds]
<wrkrcoop>
b #=> hell
isxek has joined #ruby
<ohcibi>
thats reassigning
<jhass>
yes
<jhass>
a holds a reference to 'hell'
<jhass>
b holds a reference to 'hell'
<wrkrcoop>
so b isn’t looking at a’s address
<jhass>
a holds a reference to 'barf'
<wrkrcoop>
so b refers to a and creates its own memory address to store that reference which is ‘hell'
tristanp_ has joined #ruby
<joenuts_>
https://carc.in/#/r/zz7 shows maybe assignment to new variables being done as copies?
<jhass>
yes, there's no pointer indirection or anything
mdw has quit [Quit: Sleeping Zzzzz]
<jhass>
assignment copies the reference
tristanp has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
idefine has quit [Remote host closed the connection]
rbennacer has joined #ruby
<joenuts_>
meh, to me if you're coping the value ( whether by reference or not ), the new variable is still a *copy* and not a pointer
<ohcibi>
no its not... if its an array and you add an object both references will show the same added object
Krands has quit [Quit: Leaving]
<joenuts_>
so *some* variable declarations are done by reference, and some are done by copying the value, that's easy enough to understand
jenrzzz has quit [Ping timeout: 264 seconds]
finisherr has joined #ruby
<ohcibi>
its always a reference.. some types are immutable, so you can't do the same as with the array
djbkd has quit [Quit: My people need me...]
evidex has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
`slikts has joined #ruby
<joenuts_>
ah, so if i understand what you're saying, is that a = 1, b = a, at that point, b is a reference to a, but once a changes, a points to something new, b points to the old value of a ?
<ohcibi>
exactly
<ohcibi>
because of the nature of an integer
sneakerhax has joined #ruby
<`slikts>
does ruby have a keyed collection type that supports any type of key, not just strings/numbers?
rbr has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
s00pcan has quit [Quit: leaving]
<ohcibi>
`slikts: i just tried to use an object as key with [] and it worked.. it might not work with an object declaration
tristanp_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
tristanp has joined #ruby
idefine has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
djcp has joined #ruby
benlieb has joined #ruby
seanzie has quit [Ping timeout: 276 seconds]
benlieb has quit [Client Quit]
hahuang65 has joined #ruby
skade has joined #ruby
idefine has quit [Remote host closed the connection]
benlieb has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
einarj has quit [Remote host closed the connection]
mjuszczak has joined #ruby
idefine has joined #ruby
benlieb has quit [Client Quit]
tomchapin has joined #ruby
nofacade has joined #ruby
idefine has quit [Remote host closed the connection]
LinuxHippie has joined #ruby
Guest38693 has quit [Ping timeout: 264 seconds]
<neha->
hey, so i'm using a gem, and certain functions are defined in a Module. Now i want to just require one other file and extend that default module namespace (without having to do require file and then include SomeModule::Helper for example) how can i do this?
johnny56 has joined #ruby
postmodern has joined #ruby
chipotle has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
weckl has quit [Quit: Leaving]
tristanp has quit [Read error: Connection reset by peer]
goeast has quit [Read error: Connection reset by peer]
dar123 has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
<shevy>
neha- you have to require the code anyway right? once you have it required, you can modify everything at "run"time
Skelz0r has quit [Ping timeout: 240 seconds]
sneakerhax has quit [Ping timeout: 240 seconds]
johnny56_ has quit [Ping timeout: 264 seconds]
<shevy>
module Foo; def self.bar; puts 'hi from bar'; end; end <--- last definition always "wins"
giz|work has joined #ruby
mjuszczak has quit []
kgrz has joined #ruby
skolman has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 246 seconds]
skolman_ has joined #ruby
idefine has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ips|malc has joined #ruby
<neha->
well in my monkey-patched module (if thats the right term), i'm using the same namespace as what shoudl be already available in my file. IN this specific case, FactoryGirl::Syntax::Methods is already available. So i just want to add another method to this namespace by just requiring one support file
d0lph1n98 has joined #ruby
craigp_ has joined #ruby
ips|malc has quit [Client Quit]
<shevy>
yes, have that file that you require, modify on FactoryGirl::Syntax::Methods
dar123_ has joined #ruby
diegoaguilar has joined #ruby
<shevy>
if the latter is a module, module FactoryGirl::Syntax::Methods; def bla; end; end
giz|work has quit [Client Quit]
dar123 is now known as Guest88191
chipotle has joined #ruby
<neha->
yeah, but then if i just include that file (support/helpers/factory_girl.rb), i can't access the new helper methods
d0lph1n98 has quit [Client Quit]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<neha->
sorry i meant "require the file"
dar123_ has quit [Client Quit]
Guest88191 has quit [Ping timeout: 252 seconds]
dar123_ has joined #ruby
mjuszczak has joined #ruby
<neha->
oh wait
<shevy>
I don't understasnd it
<shevy>
if I could just type too ;)
rcvalle has joined #ruby
dar123_ has quit [Read error: Connection reset by peer]
Regulati_ has quit [Remote host closed the connection]
<shevy>
hmm
<von-strauss>
I like just playing around with stuff in general
<von-strauss>
anything
<shevy>
these seem fairly rare in the ruby land
c355e3b has quit [Quit: Connection closed for inactivity]
dar123_ has quit [Read error: Network is unreachable]
Gasher has joined #ruby
<von-strauss>
i know ruby is used mostly for making toyish stuff but that's cool too
dar123_ has joined #ruby
Snowy has joined #ruby
<von-strauss>
ultimately i want to be a rails dev so i want to build up some kind of github portfolio, also im a huge believer in the free software movement so also that
jancel has joined #ruby
<shevy>
now you are trolling
<von-strauss>
sorry
roamingdog has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
<shevy>
essentially you have all the old use cases for perl available
<`slikts>
aegis3121, according to semver too, since major changes can be made without breaking backwards compatibility
Snowy has quit [Read error: Connection reset by peer]
<`slikts>
see: js
<`slikts>
the new versions make major changes but add on top of the language
Snowy has joined #ruby
ta_ has joined #ruby
skade has quit [Client Quit]
startupality has quit [Quit: startupality]
<headius>
namxam: still around?
<headius>
saw you rmessage in #jruby just now
<aegis3121>
If that's how they choose to follow that, then that's their choice. I'm not sure that's the strictest way of following semver in my opinion.
idefine has quit [Remote host closed the connection]
<smathy>
shevy, it's not really a great comparison between a gem in ruby and a distribution in Perl (the ~30k number), because a distribution in Perl often contains multiple modules. There are over 100k individual modules on CPAN, bundled into 30k distributions. Ruby doesn't really have a separate notion of distributions, just gems that have other gems as dependencies (like Rails).
<`slikts>
aegis3121, major changes = major version bump
jmignault has quit [Ping timeout: 240 seconds]
<`slikts>
not that js uses semver
nofacade has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Quit: Outta here...]
jenrzzz has joined #ruby
RegulationD has quit [Remote host closed the connection]
<aegis3121>
Reading it strictly, it doesn't say that. "Major Version MUST be incremented if any backwards incompatible changes are introduced to the public API. It MAY include minor and patch level changes. Patch and minor version MUST be reset to 0 when major version is incremented." It says nothing about major improvements. It doesn't NECESSITATE a major version bump, though may precipitate it.
Snowy_ has joined #ruby
<aegis3121>
Again, it's just a choice of the organizers/contributors/community that this is how they choose to interpret it.
<`slikts>
it's a moot point anyway, since ruby is 2.2
<hxegon>
von-strauss: - the learning ruby part, because I've already done that. But learning web + database stuff is useful pretty much anywhere, so it's a nice skill to have
<hxegon>
I'm doing rails/other web stuff
<von-strauss>
ah im still learning ruby on codecademy
<von-strauss>
then rails, then some free work, then some job hopefully
tristanp has quit [Ping timeout: 272 seconds]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon>
trying to get to the point where I am making enough money to be a bit more secure financially before I start transitioning
<von-strauss>
the thing is it's hard for me to learn ml
<von-strauss>
i'm remarkably weak on probability and stat
<havenwood>
von-strauss: Ruby is good. Hanami is a nice Rack framework. My personal favorite is Roda.
darkman738 has joined #ruby
<darkman738>
hi all
<havenwood>
darkman738: hi
<darkman738>
was hoping someone could give me some direction
<darkman738>
I'm trying to run a postgres query on a remote host
<darkman738>
in a script
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darkman738>
I've found a few posts on doing similar things but I think my ignorance of ruby and postgres is kicking me here
Snowy has quit [Remote host closed the connection]
patrick_star_2 has joined #ruby
deuterium has joined #ruby
<von-strauss>
roda.
<havenwood>
darkman738: ssh onto the remote host?
<darkman738>
I've got an ssh gateway set, and from the mysql examples I've seen I need to specify a local port and I suspect this is where I'm running into an issue
<tie>
You have any experiance with HexChat? It any good?
notjhass has joined #ruby
<jhass>
tie: click the three bars on the top left, then Options
notjhass has quit [Client Quit]
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 258 seconds]
minimalism has joined #ruby
<tie>
Looks like my window scaled badly and I didnt see that. Thank you.
GodFather__ has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby
ur5us has joined #ruby
<tie>
My other question is, when i hear a notification from the chat and your name turns orange. Is that a private message or simply you linking my name?
<zzxc>
tie: Its not bad, but this also probably isn't the best place to discuss this. Generally channels have a specific purpose to limit the scope to that topic, but there are plenty there the opposite in true. For example #physics is solely about physics, #not-physics is conversations among the #physics community not related to physics.
<zzxc>
Ruby people tend to be pretty chill.
<tie>
Sorry about the unrelated questions. I just had a couple to get myself set up and then i'll be moving to Ruby once my C++ project is finished.
<zzxc>
tie: Thats not an private message, its a mention. Since your name was mentioned its probably that should alert you
<tie>
zzxc: okay, so I just mentioned you? Others can see as well?
<xybre>
We can all see mentions in the channel.
elementaru has quit [Remote host closed the connection]
<zzxc>
Yep.
nettoweb has joined #ruby
`slikts has left #ruby ["Leaving"]
<tie>
Great, thank you :) thats all I needed to know for IRCs right now.
kgrz has quit [Ping timeout: 240 seconds]
<zzxc>
=]
<tie>
I'm in my second year of a software engineering degree and my final project requires me to write a program in a language I havent learned before.
dopamean_ has joined #ruby
<tie>
I chose ruby. And my thought is that I will create an S-DES algorithm.
tacit7 has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.3]
<zzxc>
tie: S-DES as in Simplified DES?
allcentury has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
<zzxc>
or Session Description Protocol Security Descriptions (cause that woudld be fun but might be a little bit more work)
chipotle has quit [Quit: cheerio]
tie_ has joined #ruby
tie has quit [Ping timeout: 250 seconds]
<tie_>
Sorry, DC'ed. Did I miss any messages after sending my last one?
<tie_>
Ohh, thats useful. Thanks. I'm learning all sorts of non Ruby things here.
mjuszcza_ has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<tie_>
zzxc: Simplified-DES. Its the most complicated encryption I know so far. I've only take a single term in crypto
<tie_>
I figure it would be a good way to show the different features of Ruby.
darkman738 has quit [Ping timeout: 250 seconds]
mjuszczak has quit [Read error: Connection reset by peer]
craigp_ has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
wrkrcoop has joined #ruby
<zzxc>
Ok cool. DES is cool. ECC and DH are awesome pretty awesome and not to difficult.
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sesquipedalian is now known as du7tball
jenrzzz has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
<tie_>
I figure I could learn DES but I need to present my project on tuesday and I still have another program in C++ to complete.
idefine has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
du7tball is now known as sesquipedalian
arlek has quit [Ping timeout: 250 seconds]
<zzxc>
tie_: Ah got you. Soooo what are you looking for then? Meterial to get started or suggestions?
Amnez777 has joined #ruby
Dreamer3 has joined #ruby
<tie_>
Well right now i'm programming Dijkstra's Shortest Path in C++ since thats due in 10 1/2 hours. But ill be working on ruby this weekend. Right now I figured I could introduce myself to the community and figure out how everything went so I could get the ball rolling.
dhk has joined #ruby
<tie_>
zzxc: Eventually though, I'll probably ask things like how to do a bitwise op or function calls. Simple things.
<xybre>
Ruby is a high-level language, it can do all that stuff but it'll be eeenteresting :D
<baweaver>
Might be better to flip through a ruby book first
<baweaver>
Eloquent Ruby tends to be good
<tie_>
And thats one of the main reasons I chose this language. Because itll take more to to those things.
<tie_>
Please tell me Ruby at least has something similar to array[4] = 'C';
<tie_>
If I have time to find a book I definitely will.
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mwlang has joined #ruby
<zzxc>
Yeha ruby does, as well as hashes(dictionary or hashmaps).
<norc>
akkad, trading one bytecode for another (be it ruby bytecode, java bytecode, llvm bytecode) does not solve the problem that you need a compiler running your bytecode.
diegoaguilar has joined #ruby
craigp_ has joined #ruby
<chrisseaton>
The way I describe it is that LLVM can make your Ruby method calls fast, but even if your method calls took zero time your Ruby would still be slow as it would be nothing but slow core library methods
<wrkrcoop>
can u create too many threads in ruby?
ebbflowgo has quit [Read error: Connection reset by peer]
<norc>
wrkrcoop, Im not sure what the fuzz about llvm is anyway. In the end it is very similar to GCCs RTL.
<norc>
errr chrisseaton.
karmatr0n has joined #ruby
ebbflowgo has joined #ruby
<chrisseaton>
It's useful if you already have a low level IR you just want to pass to LLVM, but unless it's a static language, that's a very small part of the problem
tie has joined #ruby
mleung has quit [Quit: mleung]
mleung has joined #ruby
<chrisseaton>
When it was applied for JS in FTL they had to build a full compiler on top of it, and now they've binned it entirely
kgrz has joined #ruby
ldnunes has quit [Quit: Leaving]
swills has quit [Ping timeout: 244 seconds]
yos7ph has joined #ruby
<xybre>
LLVM does do a lot of things for you, like the optimizers which are language independent which is great. Rust uses it to pretty decent effect.
tristanp_ has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
theunraveler has quit []
idefine has joined #ruby
rbennacer has quit [Remote host closed the connection]
ocbtec has quit [Quit: leaving]
tildes_ has quit [Ping timeout: 250 seconds]
<chrisseaton>
Right, but Ruby code is almost entirely method calls hidden behind very dynamic dispatch - LLVM can't see through that without manual help (which is very hard) so it can't apply those excellent optimisations in most cases
ta_ has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
<chrisseaton>
I'm writing a lecture about exactly this topic and will have a blog post about it next week
ebbflowgo has joined #ruby
dgncn has quit [Quit: ^^]
tristanp has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
kgrz has quit [Ping timeout: 244 seconds]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
SilverKey has quit [Quit: Halted.]
<xybre>
Rust is a very different language from Ruby, it'd probably require a hell of a lot of smoke and mirrors to turn Ruby into marginally efficient native code.
VeryBewitching has quit [Quit: Konversation terminated!]
<von-strauss>
keep trucking along
dgncn has joined #ruby
CausaMortis has quit [Ping timeout: 250 seconds]
seth has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
idefine has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
robh71 has joined #ruby
ur5us has quit [Remote host closed the connection]
bobbycvi_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
bobbycvi_ has quit [Client Quit]
tristanp has joined #ruby
bobbycvi has joined #ruby
bobbycvi has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 272 seconds]
aadam21 has quit []
FooMunki has quit [Quit: FooMunki]
namxam has quit [Remote host closed the connection]
rbr has quit [Ping timeout: 244 seconds]
idefine has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
idefine has joined #ruby
pawnbox has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
idefine has quit [Remote host closed the connection]
mjuszczak has joined #ruby
jancel has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
negev has joined #ruby
jackjackdripper has joined #ruby
Es0teric has joined #ruby
choke has joined #ruby
yos7ph has quit [Quit: Leaving]
<negev>
hi, if i have an IO stream and the remote machine sends me an arbitrary chunk of data but doesn't disconnect, how can i determine that i've received all of it? do i have to just use a timeout?
diosmiux has joined #ruby
<von-strauss>
How does ruby handle simultaneous I O Streams
<von-strauss>
I build some irc client in python, but I can't get the output loop and input loop to run together
johnmilton has quit [Remote host closed the connection]
<shevy>
for my pseudo IRC client I use this line: select( [$stdin], nil, nil, 1.1 )
jancel has joined #ruby
idefine has joined #ruby
<negev>
shevy: why 1.1?
namxam has joined #ruby
tvw has quit []
wilbert has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
ricer2 has joined #ruby
ur5us has joined #ruby
bobbycvi has joined #ruby
gizmore has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
moei has joined #ruby
<shevy>
hmm not sure
bluOxigen has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
<von-strauss>
how hard is rails
<von-strauss>
I thought PHP was easy
ramortegui has quit [Quit: Ex-Chat]
rbr has joined #ruby
tristanp_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 244 seconds]
jancel has quit [Remote host closed the connection]
mjuszczak has quit []
roamingdog has quit [Remote host closed the connection]
cwenner has quit [Ping timeout: 240 seconds]
smathy has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
diosmiux has left #ruby [#ruby]
SilverKey has quit [Quit: Halted.]
djbkd has joined #ruby
rodfersou has quit [Quit: leaving]
roamingdog has joined #ruby
tomchapin has joined #ruby
charliesome has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<akkad>
von-strauss: Functional PHP is
jancel has joined #ruby
SilverKey has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
Dios has quit [Ping timeout: 252 seconds]
sneakerhax has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
n_blownapart has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
<shevy>
php is easy!
smathy has joined #ruby
<von-strauss>
it is yea
tristanp_ has joined #ruby
smathy has quit [Client Quit]
tristanp has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
kgrz has joined #ruby
duncannz has joined #ruby
rbr has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
elifoster has joined #ruby
Gasher has quit [Quit: Leaving]
kgrz has quit [Ping timeout: 240 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tie has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
whathappens has quit [Quit: Leaving...]
Es0teric has quit [Quit: Computer has gone to sleep.]
negev has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
xlegoman has joined #ruby
pawnbox has quit [Remote host closed the connection]
smathy has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wrkrcoop>
how do i check in rspec to see if a class exists?
smathy has quit [Client Quit]
<wrkrcoop>
i’m testing a class like User, and i want my first test to be User is a class
<wrkrcoop>
or something like that …
pawnbox has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
<aegis3121>
Seems like an unhelpful test. But, presumably, you could do User.is_a? Class
<aegis3121>
or, in Rspec, expect(User).to be_a Class
<wrkrcoop>
aegis3121: hmmm yeah unnecessary but im thinking i should test everything ...?
<wrkrcoop>
even if its dumb
gizless has joined #ruby
negev has joined #ruby
<aegis3121>
There's a line between testing the language and testing your behavior. The assumption could easily be that User being a Class is...implicitly testing by basically any of the behavior it has working correctly.
dsea has quit [Read error: Connection reset by peer]
madgen has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
<wrkrcoop>
aegis3121: yeah i know …
papercode has joined #ruby
<wrkrcoop>
idk : \
<wrkrcoop>
figure if im doing tdd that would be the first thing i test
namxam has quit []
<von-strauss>
30% ruby on codecademy
<von-strauss>
so ahppy
idefine has quit [Remote host closed the connection]
<von-strauss>
filled with the spirit of creation
<aegis3121>
The idea of BDD is that the behavior is there, which works nicely with duck typing. So long as your THING behaves like you want, is it really THAT concerning what it is?
maletor1 has joined #ruby
gizmore has quit [Ping timeout: 250 seconds]
deuterium has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
tristanp_ has quit [Read error: Connection reset by peer]
maletor1 has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
idefine has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
MrBusiness2 has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
<jnoob22>
as far as style goes, does Ruby use c-like variable names like say temp_str as opposed to Java-ish tempStr ?
<von-strauss>
former
mercerist has quit [Read error: Connection reset by peer]
<von-strauss>
camel case is bad
<jnoob22>
agreed. just curious how you guys did it.
alfiemax has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
<von-strauss>
how long have you done ruby
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
roamingdog has quit [Remote host closed the connection]
|meta has quit [Quit: Connection closed for inactivity]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
<jnoob22>
hmm... probably the last 2 weeks or so. that's about it von-strauss
johnchalekson has joined #ruby
<von-strauss>
how about programming
<jnoob22>
von-strauss, i come from more of a Java/C/Python experience
<von-strauss>
oh cool
<von-strauss>
how long have you done that]
<jnoob22>
hmm probably about 15 years or so.
<von-strauss>
nice
<von-strauss>
so you have a few years under your belt
<von-strauss>
more than a few
<jnoob22>
i really like ruby. love how it's easy as heck to figure out.
<von-strauss>
yeah me too
<jnoob22>
yeah have been doing it for a while.
jefeson has joined #ruby
<von-strauss>
im trying to drop out of uni and be a software dev
<jnoob22>
computer science major?
<von-strauss>
it seems like ruby can be learned easily enough
<von-strauss>
no math
<iamdevnul>
it can but having a degree helps open doors for you
<jnoob22>
ah ok... hmm I would say generally stay in school but I realize everyone's situations are very different.
kirun has quit [Quit: Client exiting]
<von-strauss>
it costs a lot of money...and it's really stressful
<iamdevnul>
lol
<jnoob22>
heh working in software is pretty darned stressful though too ;-)
<iamdevnul>
well you make money at work..but the stress is going to be worse, i guarantee it
<von-strauss>
ive switched majors so many times i just need to get a job now
der-landgraf has quit [Ping timeout: 240 seconds]
<jnoob22>
i work more on the support side of it though.... luckily i dont have to work on call often.
<jnoob22>
von-strauss, well hopefully you're in a big city where jobs are plentiful.
<von-strauss>
im in southampton now but i have american citizenship
<von-strauss>
my brother is in new york and my other family is a stone throws away from london
<von-strauss>
stones throw lol
<jnoob22>
ok.... i was just working in Maidenhead for about 6 weeks last Nov,Dec. Seemed to be tons of jobs in Reading/Maidenhead areas
poguez_ has joined #ruby
<von-strauss>
ruby jobs? :p
<von-strauss>
i rly like math and i want to get into ml later but i should probably just break into the industry first
<jnoob22>
heh probably not as such. But, do you know Java pretty well? or C or JS?
<von-strauss>
nah
<von-strauss>
ive done procedural programming with C before but not much beyond that. pointers really confused me
<jnoob22>
those will get you some jobs... you may have to get to the more trendier places here in the states to find a decent ROR job or the like.
<jnoob22>
heh pointers confuse everyone man ;)
<von-strauss>
yeah i can go there
<von-strauss>
haha
<von-strauss>
well i like seattle
<von-strauss>
colorado looks nice too
<jnoob22>
or there ;)
shanemikel has joined #ruby
ico has joined #ruby
<jnoob22>
I live in Colorado Springs ... Denver has lots of jobs like that but you better know your stuff.
<shanemikel>
what does rails do for client-side code?
<von-strauss>
the pressure's on :P
<jnoob22>
you got me... I've only done the ROR tutorial a couple of times.
danostrowski has joined #ruby
<von-strauss>
my *summer* goal is to master ruby and ROR so i can start looking for an internship this fall
danostrowski is now known as ohboy
diegoaguilar has quit [Remote host closed the connection]
<jnoob22>
hmm very high goal mate.
<von-strauss>
then maybe i can take a leave of absence from uni
SilverKey has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<von-strauss>
jnoob22, it's doable i think
<von-strauss>
ruby is easy enough so far
mikecmpbll has joined #ruby
<von-strauss>
getting an internship might be the hardest part
<jnoob22>
von-strauss, if you do nothing but code... maybe eat a sandwich and then just code... the problem though with solo learning is that you don't usually get to learn how things are done.
<von-strauss>
i'm using codecademy
<von-strauss>
and some wikibooks for reference
<von-strauss>
youre right
<von-strauss>
i'm terribly unfamiliar with the dev process
morenoh149 has quit [Ping timeout: 258 seconds]
<von-strauss>
i understand revision control is used
<von-strauss>
like git and that....not much else i know about it
<jnoob22>
sure you can pick up syntax and such but it's always best to find someone who knows it well and do an "internship" with them. I wonder if Ruby has a mentorship thing... I know PHP used to. I learned a lot of stuff from that.
ta_ has quit [Ping timeout: 264 seconds]
<von-strauss>
the community has been welcoming enough thusfar, asking around will probably yield answers
<shanemikel>
von-strauss: that's the sort of thing you can't be expected to know, as everybody has their own way of doing it
idefine has joined #ruby
<jnoob22>
shanemikel, true... hard to know what's local and what's universal
<jnoob22>
probably more stuff is local though.
firstdayonthejob has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
<von-strauss>
i need to throw up a github profile
<von-strauss>
start making some pull requests
idefine has quit [Read error: Connection reset by peer]
jancel has quit [Remote host closed the connection]
<von-strauss>
i code with == in general
<jnoob22>
im trying to write this script very basic-like ... probably == is easier to read for a non-rubyist
<shanemikel>
having just a tiny bit of experience with a single VCS is enough.. git is your best bet.. just learn enough to clone repos, and commit local changes. usually you only have to deal with one branch, and in many cases merging just has to be done by hand, and as a junior or intern, you won't be entrusted with that responsibility most likely
<von-strauss>
i think the important thing is consistency
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<jnoob22>
yeah git is easiest. I would bet you any place that is mostly using Ruby/JS/Python is using git and not svn.
<jnoob22>
when I went for Redhat interview a few months ago, they only asked about git.
<shanemikel>
It may not be the easiest, but it's very popular
wingedsnake has quit [Quit: WeeChat 0.4.2]
banister has joined #ruby
<jnoob22>
shanemikel, in your opinion which is easier than git, do you think?
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
no version control system!
<shanemikel>
I don't have experience, but people claim mercurial to be simpler than git
<jnoob22>
heh shevy
<jnoob22>
hmm i have never played with mercurial.
<von-strauss>
shevy, copypasting into a mediawiki site
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
yay
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 240 seconds]
<von-strauss>
i want to do something with bitcoin/the blockchain
JesseH has quit [Remote host closed the connection]
<von-strauss>
blockchain looks very cool
robh71 has joined #ruby
<shanemikel>
the hardest thing to learn seems to be how to pull new changes to your local working copy, and mix your own commits with them.. it looks to me like everybody uses rebase for that (NOT git pull)
johnmilton has joined #ruby
<shanemikel>
because otherwise the history gets screwy
ReK2 has joined #ruby
weemsledeux has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<shanemikel>
and project owners are more interested in the timing of when they decided to accept your changes, not when you made them
pawnbox has quit [Ping timeout: 244 seconds]
tildes_ has joined #ruby
nankyokusei has joined #ruby
Guest32976 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
tristanp_ has joined #ruby
<shanemikel>
so nobody can tell me what Rails means for the client-side?
<shanemikel>
if anything
johnmilton has quit [Ping timeout: 260 seconds]
<jnoob22>
when you say client-side... do you mean client-side from the browser side for instance?
<jnoob22>
or something else?
tristanp has quit [Ping timeout: 240 seconds]
<jnoob22>
for me... (just me), it's an odd question
<von-strauss>
i don't think rails means anything from the browser side...
ddv has joined #ruby
ReK2 has quit [Remote host closed the connection]
jancel has joined #ruby
n_blownapart has quit []
agent_white has quit [Quit: headinhome]
<jnoob22>
yeah there are some ajax modules and such that I've heard of but that's about it. (I'm making an educated guess here).
ur5us has quit [Remote host closed the connection]
<jnoob22>
maybe you mean something else shanemikel
nankyokusei has quit [Ping timeout: 250 seconds]
<von-strauss>
i think the answer he's looking for is nothing :P
<jnoob22>
:-)
<shanemikel>
okay so it is really a server-side scripting framework. it doesn't do anything fancy like generate JS from ruby code
<jnoob22>
no, not out of the box.
<von-strauss>
clientside stuff is creepy
<jnoob22>
maybe you're looking for jquery, shanemikel ?
<shanemikel>
lol, no
<jnoob22>
or some kind of hybrid (though more client, imo) ... angularjs
CloCkWeRX has joined #ruby
Yiota has joined #ruby
tristanp has joined #ruby
<shanemikel>
I'm looking for a universe where Javascript is a dirty word
hahuang65 has joined #ruby
<jnoob22>
i would think you could mix angular and ror ... ive done it for django.
<von-strauss>
shanemikel, and flash
<jnoob22>
lol javascript is no longer a dirty word man :-)
<baweaver>
Web Assembly
<jnoob22>
hasn't been since around 2006 or so. ;)
<baweaver>
once that's out it's a non-issue.
<baweaver>
In the mean time you have things like Coffeescript, Livescript, ScalaJS, ES6, and Opal
tristanp_ has quit [Ping timeout: 240 seconds]
<baweaver>
among several others
jhack has quit [Quit: jhack]
<shanemikel>
coffeescript is a joke. llvm -> javascript is the future
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
<shanemikel>
the coffeescript devs didn't even bother to specify the syntax
mikecmpbll has joined #ruby
bruce_lee has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shanemikel>
it's pretty, but totally unreliable crap
sneakerhax has quit [Ping timeout: 244 seconds]
tristanp has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
Yiota has quit [Ping timeout: 244 seconds]
<jhass>
if you want a framework that blurs the line between backend and fronted, have a look at volt
ecksit has joined #ruby
ReK2 has joined #ruby
<shanemikel>
I don't mean to come off aggressive.. TBH I was toying with coffee about a year ago, and was even quite charmed by it, but I've developed some serious expectations recently
negev has quit [Ping timeout: 276 seconds]
Ishido has quit [Remote host closed the connection]
pawnbox has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
rcvalle has quit [Quit: rcvalle]
<ramfjord>
>> a = {a: 1}.freeze ; b = a.clone ; b[:a] = 'hello'
<ruby[bot]>
ramfjord: # => can't modify frozen Hash (RuntimeError) ...check link for more (https://eval.in/578473)
<ruby[bot]>
jhass: # => undefined method `unfreeze' for {}:Hash ...check link for more (https://eval.in/578474)
framling has quit [Ping timeout: 240 seconds]
<ramfjord>
ahh, I need to use dup instead of clone
<jhass>
a = {a: 1}.freeze; b = a.dup; b[:a] = 'hello'
<jhass>
yup
ico has quit [Remote host closed the connection]
ur5us has joined #ruby
ddv has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
kgrz has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 250 seconds]
magikid1 has joined #ruby
LastWhisper____ has joined #ruby
magikid has joined #ruby
idefine has joined #ruby
CloCkWeRX has joined #ruby
elifoster has quit [Ping timeout: 258 seconds]
choke has joined #ruby
magikid2 has joined #ruby
cbyrda has joined #ruby
magikid1 has quit [Ping timeout: 276 seconds]
magikid has quit [Ping timeout: 250 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
magikid has joined #ruby
ReK2 has quit [Remote host closed the connection]
FroMaster has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
magikid1 has joined #ruby
idefine has quit [Ping timeout: 264 seconds]
chipotle has quit [Ping timeout: 276 seconds]
magikid2 has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 246 seconds]
magikid has quit [Disconnected by services]
magikid1 is now known as magikid
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
jancel has quit [Remote host closed the connection]
jefeson has quit [Ping timeout: 240 seconds]
<al2o3-cr>
boo
heinrich5991 has quit [Ping timeout: 260 seconds]
jaequery has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest73139
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanfra has quit [Read error: Connection reset by peer]
Azure has joined #ruby
cbyrda has quit [Quit: Gone]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juanfra has joined #ruby
aegis3121 has joined #ruby
ta_ has joined #ruby
jaequery has joined #ruby
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
heinrich5991 has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
madgen has quit [Ping timeout: 250 seconds]
mleung has quit [Quit: mleung]
benlieb has joined #ruby
ecksit has quit [Ping timeout: 276 seconds]
kies has joined #ruby
dimasg has joined #ruby
haylon has joined #ruby
spider-mario has quit [Remote host closed the connection]
Diogo has joined #ruby
<haylon>
Hey everyone, I think I'm running into an issue using yardoc correctly. I cloned down the hashicorp vault-ruby repository to attempt to build the documentation for it, but when I run the yardoc command, it says that it can't resolve link to Net::HTTP from text. What am I doing wrong? It seems like its just a regular require call for net/http
<jhass>
does it actually abort with that or is it just a warning?