havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
sanjayu has quit [Ping timeout: 250 seconds]
faces has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
faces has joined #ruby
zayaman has quit [Quit: leaving]
kies has joined #ruby
CloCkWeRX has left #ruby [#ruby]
rushed has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
jeff_laplante has quit [Ping timeout: 246 seconds]
jmallen has quit [Quit: jmallen]
ypl has joined #ruby
<ypl> is it necessary to know javascript to build good rails apps?
<pipework> Nope.
<ypl> pipework: Why not?
<pipework> ypl: Because you can get by without it.
<BraddPitt> Because you don't need any js to write a functioning rails ao
<BraddPitt> app
<pipework> It'll certainly help if you're more adept with JS when building rails applications, but I've written rails application that don't even serve HTML.
<ypl> BraddPitt: Not a functioning, but a good rails app.
<pipework> I've also built rails applications that only serve JS and assets.
<BraddPitt> you can just have your rails server send html.erb to the client directly
htmldrum has joined #ruby
Musashi007 has joined #ruby
<BraddPitt> or just have a rails backed JSON api
<ypl> BraddPitt: How do rails developers use javascript if they dont know it?
Kallis has joined #ruby
<BraddPitt> I reckon they don't use javascript if they don't know it
<BraddPitt> much in the same way I don't speak Japanese because I don't know that language
<BraddPitt> I don't understand what you're asking
lxsameer has quit [Quit: Leaving]
<ypl> BraddPitt: What I'm trying to say is...many rails apps that may be considered to be good apps use javascript so the rails devs must know js.
zotherstupidguy has quit [Ping timeout: 264 seconds]
<BraddPitt> yes
<BraddPitt> but you asked if it were possible to write a good rails app without javascript
zendrix has quit [Ping timeout: 265 seconds]
<BraddPitt> and the answer is yes
netmask has joined #ruby
<BraddPitt> FWIW, many rails devs DO learn a javascript MVC framework (backbone, angular, ember, etc)
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<pipework> ypl: If you want to be hirable as a full stack rails developer, you should know JS.
<ypl> BraddPitt: But in the beginning they just learn rails without any js correct?
<pipework> But you don't have to and I've worked on massive apps that power some big stuff.
<BraddPitt> sadly, pipework wis correct
<pipework> Didn't write JS.
dikaio has joined #ruby
<BraddPitt> yes ypl
<BraddPitt> Generally you learn how to make a `vanilla` rails app with JUST rails, then you learn JS/JQuery/client side MVC and use that
JDiPierro has joined #ruby
freerobby has quit [Quit: Leaving.]
<ypl> I'm actually just getting started with rails actually...
<BraddPitt> so you have your Rails app generating the JSON API and your client side javascript consuming it and rendering your views
zotherstupidguy has joined #ruby
<BraddPitt> I would advise you to continue learning rails, and once you have built a functioning rails app, then learn javascript and then a client side MVC framework
<ypl> BraddPitt: Alright, thanks!
<toretore> ypl: just continue learning rails, without using any js
<BraddPitt> no problem ypl, best of luck
rapha has quit [Quit: WeeChat 1.3]
<ypl> BraddPitt: Oh and does rails use SQL?
freerobby has joined #ruby
<BraddPitt> rails can use any database backend
<BraddPitt> mySQL, sqlite, postgres, memcached, redis, mongodb, couchdb, elasticsearch, etc etc
<BraddPitt> most common is mysql or postgres
evanjs has joined #ruby
<pipework> ypl: You can learn a lot more and even get started really quickly by visiting the website.
<ypl> BraddPitt: How is data stored and retrieved from the database? SQL or something else?
tkuchiki has joined #ruby
<BraddPitt> you can use raw SQL, but more commonly is ActiveRecord - Rails' Object Relational Mapper for SQL databases
<pipework> ypl: /j #rubyonrails
<pipework> They can help you out more there. A lot of us are in both channels.
<BraddPitt> do you sitll need to be authed to talk in there pipework
<pipework> BraddPitt: Yeah.
cjbottaro has joined #ruby
CrazyEddy has quit [Ping timeout: 252 seconds]
<pipework> You can register a nick without an email address though.
<BraddPitt> I think im registered just not authed
gwendall has joined #ruby
<ypl> thanks a lot for all the info guys. i'm out!
ypl has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 246 seconds]
Luming has quit [Remote host closed the connection]
Napear has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
rushed has quit [Quit: rushed]
bruno- has quit [Ping timeout: 240 seconds]
aerozeppelin has joined #ruby
tmillc has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<tmillc> hello, I'm doing rubykoans and am having difficulty understanding what's happening here: "one two-three".sub(/(t\w*)/) { $1[0, 1] }
jenrzzz has joined #ruby
<tmillc> I get what the regexp is matching, and I get that it's sub(pattern) { |match| block } but I don't understand what's in the block
<eam> tmillc: how much of what's in the block do you understand? Where should we start in explaining?
DocMAX has joined #ruby
<DocMAX> hi
<tmillc> eam: hmm, I sort of get that $1, $2, ... hold the .. matches? and [0,1] refer to the matches? so pretty vaguely maybe understand very little hah.
Luming has joined #ruby
<eam> yes, $1 is what the () parens captured -- the string
rushed has joined #ruby
<eam> >> "hello world"[0, 1]
<ruboto> eam # => "h" (https://eval.in/444195)
<DocMAX> if ([message] =~ /attempt/ ) <- this works
<DocMAX> but how can i add more keywords?
<DocMAX> like:
<eam> the [] method on a string indexes a substring at those character indexes -- in this case, the first character of whatever string $1 is
<DocMAX> if ([message] =~ /attempt/ OR /error/ OR /fault/ )
<eam> DocMAX: you can use | in a regex to separate patterns
<eam> >> "hello" =~ /won't match|hello/
<tmillc> eam: ok that makes some sense. And I'm seeing "hiiiii"[0,3] #=> "hii", which makes sense
<ruboto> eam # => 0 (https://eval.in/444196)
<DocMAX> ok thx
subshad has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
<tmillc> ok I think I get it now... and if there were more things to match, like in the case of gsub, the $1 would hold each match as it comes through?
fullofcaffeine has quit [Remote host closed the connection]
<tmillc> >> "one two-three".sub(/(t\w*)/) { |m| m[0, 1] }
<ruboto> tmillc # => "one t-three" (https://eval.in/444197)
<eam> tmillc: yes, the block is executed once for each time the pattern matches
<tmillc> ok I got it
danieli has joined #ruby
<tmillc> thanks a lot
<eam> no prob!
maletor has quit []
Jardayn has quit [Read error: Connection reset by peer]
cjbottaro has quit [Read error: Connection reset by peer]
drocsid has quit [Ping timeout: 240 seconds]
cjbottaro has joined #ruby
<shevy> tmillc you can also use MatchData objects and then use [] like [1] or [2] on it if you don't like those $1 or $2
<eam> but what's not to like?!
curses has joined #ruby
<tmillc> shevy: can you give me an example of that?
symm- has quit [Ping timeout: 250 seconds]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
<tmillc> I don't mind the $1 and $2 now that I see how it relates to { |m| m[] }
<shevy> >> string = 'abc'; /(.)(.)(.)/.match(string)[2]
<ruboto> shevy # => "b" (https://eval.in/444200)
<tmillc> oh I see
<shevy> I guess =~ is more common though
blackmesa has quit [Ping timeout: 264 seconds]
noethics has quit [Remote host closed the connection]
cjbottaro has quit [Ping timeout: 240 seconds]
<tmillc> I haven't really dealt with =~ I don't think
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
<heftig> if I signal a ConditionVariable three times, this will wake up three threads waiting on it?
<eam> >> m = "one two three".match(/(?<first>\w+)\s+(?<second>\w+)\s+(?<third>\w+)/); [ m[:first], m[:third] ]
<ruboto> eam # => ["one", "three"] (https://eval.in/444205)
curses has quit [Ping timeout: 240 seconds]
<eam> giving the fields names instead of using positional indexes is also a great feature
yes`r has quit [Ping timeout: 255 seconds]
samukasmk has quit [Ping timeout: 252 seconds]
bricker has quit [Quit: leaving]
<tmillc> eam: that is nice, I'll have to stare at it a bit
inanepenguin has quit [Quit: inanepenguin]
<eam> (?<name>pattern) is the essential construct
<tmillc> "match three word-stuffs of one or more length which are separated by space-stuffs of one or more length"? :)
Fire-Dragon-DoL has quit []
<tmillc> hm or can \s+, \w+ match for 0 length.. no, that's *... I think.
baweaver has joined #ruby
<eam> tmillc: yeah + is one or more, * is zero or more
<eam> you got it
samukasmk has joined #ruby
evanjs has quit [Remote host closed the connection]
netmask has quit [Remote host closed the connection]
warprobot has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
netmask has joined #ruby
dvlcloud has quit [Quit: Connection closed for inactivity]
netmask has quit [Remote host closed the connection]
netmask has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
pontiki has joined #ruby
simplyianm has quit [Ping timeout: 240 seconds]
warprobot has quit [Ping timeout: 240 seconds]
aerozeppelin has quit [Read error: Connection reset by peer]
aerozeppelin has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drocsid has joined #ruby
Lucky__ has joined #ruby
eminencehc has joined #ruby
workmad3 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
paulcsmith has joined #ruby
umgrosscol has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
samukasmk has quit [Ping timeout: 264 seconds]
arooni has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
samukasmk has joined #ruby
danielpclark has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
paulcsmith has quit [Quit: Be back later ...]
Spami has quit [Quit: This computer has gone to sleep]
rcvalle has quit [Quit: rcvalle]
eminencehc has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 265 seconds]
eminencehc has joined #ruby
allomov has joined #ruby
bruno- has joined #ruby
Rickmasta has joined #ruby
freerobby has quit [Quit: Leaving.]
arooni has joined #ruby
devoldmx has joined #ruby
SnowCrash has joined #ruby
allomov has quit [Ping timeout: 255 seconds]
icbm has joined #ruby
ruby-lang955 has joined #ruby
samukasmk has quit [Ping timeout: 264 seconds]
danielpclark has joined #ruby
subshad has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
nb_bez___ has quit [Quit: Connection closed for inactivity]
maletor has joined #ruby
maletor has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
ruby-lang955 has quit [Ping timeout: 246 seconds]
samukasmk has joined #ruby
eminencehc has joined #ruby
blackmesa has joined #ruby
danielpclark has quit [Ping timeout: 246 seconds]
danielpclark has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
aerozeppelin has quit [Read error: Connection reset by peer]
aerozeppelin has joined #ruby
eminencehc has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
mjago has joined #ruby
paulcsmith has joined #ruby
JDiPierro has quit [Remote host closed the connection]
sekrit has joined #ruby
amystephen has quit [Quit: amystephen]
aerozeppelin has quit [Ping timeout: 240 seconds]
jeff_laplante has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inteq has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 268 seconds]
cih has joined #ruby
railswebdev has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
based_pdev_ has joined #ruby
putz54 has joined #ruby
samukasmk has quit [Remote host closed the connection]
diegoviola has quit [Read error: Connection reset by peer]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
ValicekB has quit [Ping timeout: 260 seconds]
icbm has quit [Quit: Leaving]
NeverDie has joined #ruby
rushed has quit [Quit: rushed]
marens_ has quit [Remote host closed the connection]
marens has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
based_pdev has quit [Ping timeout: 250 seconds]
cih has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
<putz54> I need to rewrite an old Perl CGI::Application app in Ruby to run in CGI mode. I'm assuming Sinatra's out as it's based on routes which doesn't fit the cgi model too well. Is Rack and its middleware the only option for cgi apps? CGI::Application uses runmodes which are specified in hidden input fields.
ivanskie_ has joined #ruby
SnowCrash has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
<toretore> putz54: why does it have to run in cgi mode?
Luming has quit [Remote host closed the connection]
<putz54> toretore: Server restrictions.
chouhoulis has joined #ruby
favadi has joined #ruby
ValicekB has joined #ruby
subshad has quit [Quit: Leaving]
<toretore> putz54: cgi just runs the script and passes http env as env/stdin
Luming has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<putz54> toretore: Yes, that's why I assumed Sinatra's not suitable.
lubarch has joined #ruby
dorei has quit []
maletor has joined #ruby
<toretore> sinatra conforms to the rack spec, so you can easily write a cgi <-> rack middleware
<putz54> toretore: .... unless something like site.com/cgi/script.cgi/route can somehow be fed to Sinatra as post 'route'
maletor has quit [Client Quit]
<toretore> /route in that case will be in ENV['PATH_INFO']
danielpclark has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
<toretore> in fact, the rack spec is very similar to cgi: http://www.rubydoc.info/github/rack/rack/master/file/SPEC
<putz54> toretore: So not available as a straightforward *** post '/route' do *** ??
UtkarshRay has joined #ruby
<putz54> toretore: So I need to just use Rack and forget Sinatra?
<toretore> sinatra *is* rack
diegoviola has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
lubarch has quit [Ping timeout: 256 seconds]
<putz54> toretore: What I mean is Sinatra uses routing so not the same as vanilla CGI?
<toretore> you are not paying attention to what i'm saying
ivanskie_ has quit [Quit: Textual IRC Client: www.textualapp.com]
lubarch has joined #ruby
<putz54> toretore: I thought anything that uses routing requires a persitent process, like Rails.
<toretore> no
diegoviola has joined #ruby
<toretore> routing just parses the PATH_INFO and delegates to handlers depending on its content
<putz54> toretore: Are you saying I munge ENV and extract what I need before feeding it to Sinatra as a normal route?
<toretore> it's a fancy case statement
Napear has quit [Ping timeout: 272 seconds]
<havenwood> putz54: I'd suggest taking a look at Roda: http://roda.jeremyevans.net
bronson has quit [Ping timeout: 264 seconds]
Napear has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<putz54> toretore: OK, great.
deavid has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
<toretore> putz54: you can run any rack app (including a sinatra app) in cgi mode using Rack::Handler::CGI.run(app)
zotherstupidguy has quit [Ping timeout: 264 seconds]
<toretore> Rack::Handler::CGI in this case just takes the place of another http server/handler such as unicorn or puma
<havenwood> putz54: r.is /(.*)\.rb/ do |template| view template end
<putz54> toretore: Tried that but didn't get it working.
<putz54> toretore: Couldn't get it to execute even though permissions were correct. Anyway, that's a different kind of problem.
<havenwood> toretore: hem, strange - never considered such a thing
<havenwood> toretore: interesting to see!
<putz54> toretore: Great. Sounds like what I need. Thanx
<toretore> havenwood: makes sense too, as the rack env is pretty much the same as the cgi env
<toretore> that was probably on purpose; i never understood why it was like that until now
<putz54> toretore: I read that one earlier.
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<putz54> toretore: Is require 'rubygems' still necessary these days?
jenrzzz has joined #ruby
<havenwood> putz54: nope, that's 1.8 and earlier only and even 1.9 is past end-of-life
danielpclark has joined #ruby
<havenwood> 2.0 will be end-of-lifed in 143 days.
<havenwood> Only 83 days till 2.3. :)
devoldmx has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
mary5030 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
putz54 has quit [Quit: Bad BitchX, bad BitchX, whatcha gonna do? Whatcha gonna do when they come for you?]
<diegoviola> what will be new in 2.3?
araujo__ has quit [Ping timeout: 272 seconds]
The_Phoenix has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie_ has joined #ruby
araujo__ has joined #ruby
<havenwood> diegoviola: There's lots but if I recall correctly it gets did_you_mean for method suggestions in error output and flags for frozen String and Regexp literals.
<havenwood> diegoviola: Some nifty new methods.
<toretore> i've been waiting years for "did you mean" in ruby
<shevy> really?
<havenwood> diegoviola: If you've ever needed an Array#bsearch_index you're in luck!
[k- has quit [Ping timeout: 260 seconds]
<havenwood> shevy: Looky looky, I did a thing!: https://github.com/ruby/ruby/blob/trunk/ChangeLog#L5423-L5426
<diegoviola> havenwood: cool
curses has joined #ruby
blackmesa has joined #ruby
bigmac__ is now known as i8igmac
<havenwood> diegoviola: So you can have flags in 2.3 to get the frozen literals from 3.0. Nice speed wins now.
<diegoviola> havenwood: cool
<havenwood> And a way to see what breaks. :O
noethics has joined #ruby
<tmillc> "did you mean" sounds really neat. I haven't really looked at exceptions yet (a bit new to programming), but they seem like they're objects too?
podman has quit [Quit: Connection closed for inactivity]
<toretore> havenwood: is there anywhere i can see what's planned for 2.3?
drocsid has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
<diegoviola> is that like git's did you mean?
<diegoviola> git st -> status, etc, etc
ramfjord has joined #ruby
<tmillc> can you do anything like exception[1] # => line# of the problem ?
curses has quit [Ping timeout: 255 seconds]
<tmillc> oh I'm reading now that Exception has message, and backtrace methods, and it looks like in backtrace is where that stuff would be
Eiam_ has joined #ruby
<tmillc> neat
mary5030 has quit [Remote host closed the connection]
<Eiam_> I was looking for a project kind of like this https://github.com/atomicobject/piece_pipe, just some kind of pipeline structure for moving data through flows
mary5030 has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<Eiam_> anyone have any experience with piece_pipe or perhaps a successor to it? last updated 3 years ago =/
<havenwood> toretore: Trying to find the core dev meeting notes and failing... I've got to relocate now but I'll find em.
<toretore> not updated recently != out of date
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 240 seconds]
lubarch has quit [Quit: leaving]
<Eiam_> toretore: thats true, but it makes me more hesitant to invest in it. 3 years ago Ruby 1.9 was still a thing..
<Eiam_> and 1.8.7
<Eiam_> a lot has changed
<Eiam_> toretore: it certainly *looks* like what I was after. but perhaps other things exist under another name that are more commonly used, hence my question
eminencehc has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
<toretore> so? that doesn't mean anything
gwendall has joined #ruby
<toretore> it looks to me like an implementation of the reactive stuff, you might google that
<toretore> Eiam_: you can do a very simple version of that using fibers
netmask has quit [Remote host closed the connection]
ivanskie_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Luming has quit [Ping timeout: 244 seconds]
UtkarshRay has quit [Remote host closed the connection]
netmask has joined #ruby
workmad3 has joined #ruby
<Eiam_> but peice_pipe does seem more succinct. will have to experiment a bit then
Me_Engine has joined #ruby
<Eiam_> and look at fibers as well
David27 has quit [Remote host closed the connection]
Me_Engine has quit [Client Quit]
davedev24 has joined #ruby
gener1c has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
bazbing80 has quit [Ping timeout: 246 seconds]
Luming has joined #ruby
mjago has quit [Ping timeout: 246 seconds]
braincrash has quit [Quit: bye bye]
drocsid has joined #ruby
Luming has quit [Max SendQ exceeded]
netmask has quit [Ping timeout: 265 seconds]
Luming has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> fibers are a real pain to use
andywojo has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jeff_laplante has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gener1c has joined #ruby
braincrash has joined #ruby
ruby-lang045 has quit [Ping timeout: 246 seconds]
Me_Engine has joined #ruby
UtkarshRay has joined #ruby
Me_Engine has quit [Client Quit]
Me_Engine has joined #ruby
andywojo has joined #ruby
Me_Engine has quit [Client Quit]
tenseiten has joined #ruby
Me_Engine has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
andywojo has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 268 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 246 seconds]
cantaberry has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Me_Engine has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.1/20150929144111]]
swgillespie has joined #ruby
gix has joined #ruby
Me_Engine has joined #ruby
kyo has joined #ruby
allomov has joined #ruby
<Me_Engine> HeYo
Me_Engine has quit [Client Quit]
Me_Engine has joined #ruby
<Eiam_> yeah.. https://github.com/thbar/kiba maybe a better fit
<Eiam_> it is slightly more ETL
mjago has joined #ruby
verazabeida has joined #ruby
fullofcaffeine has joined #ruby
craysiii has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
kyo has quit [Ping timeout: 246 seconds]
allomov has quit [Ping timeout: 264 seconds]
Luming has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
matp has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
Eric- has quit [Quit: Leaving...]
Rickmasta has joined #ruby
aerozeppelin has joined #ruby
solocshaw has quit [Ping timeout: 264 seconds]
amystephen has joined #ruby
verazabeida is now known as vz
vz is now known as Guest82626
crdpink2 has quit [Ping timeout: 246 seconds]
aerozeppelin has quit [Ping timeout: 246 seconds]
Kallis has quit [Read error: Connection reset by peer]
amystephen has quit [Ping timeout: 250 seconds]
aerozeppelin has joined #ruby
aerozeppelin has quit [Read error: Connection reset by peer]
darkf has joined #ruby
ItSANgo has joined #ruby
blackmesa has joined #ruby
agent_white has joined #ruby
ItSANgo has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
ItSANgo has joined #ruby
pipework is now known as sourcerer
sourcerer is now known as pipework
jcdesimp has quit [Quit: Leaving...]
blackmesa has quit [Ping timeout: 240 seconds]
Guest82626 has quit []
Xeago has joined #ruby
shmilan has joined #ruby
Guest29226 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lubarch has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
RegulationD has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lanemeyer has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Xeago has quit [Ping timeout: 260 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
netmask has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
swgillespie has joined #ruby
crdpink has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
danieli has joined #ruby
rushed has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
tmtwd has joined #ruby
Rickmasta has joined #ruby
Me_Engine has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.1/20150929144111]]
Musashi007 has joined #ruby
UtkarshRay has joined #ruby
Me_Engine has joined #ruby
netmask has quit [Ping timeout: 264 seconds]
joufflu has joined #ruby
[k- has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
moeabdol has quit [Quit: WeeChat 1.3]
favadi has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
havenwood has joined #ruby
pontiki has joined #ruby
devoldmx has joined #ruby
bronson has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
jun has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
arup_r has joined #ruby
last_staff has joined #ruby
devbug has joined #ruby
braincra- has joined #ruby
ramfjord has joined #ruby
fullofcaffeine has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
davo_ has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jun has quit [Remote host closed the connection]
favadi has joined #ruby
moeabdol has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
diego1 has joined #ruby
jun has joined #ruby
gwendall has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
wookiehangover has joined #ruby
yfeldblu_ has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
diego1 has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
baweaver has quit [Read error: Connection reset by peer]
curses has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
mghaig has joined #ruby
baweaver has joined #ruby
fullofcaffeine has joined #ruby
workmad3 has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
<mghaig> I'm writing an implementation for a linked list, I have instance methods #append_element and #insert_element_at if the user passes #insert_element_at an index that is the the tail of the list, I want to just call the #append_element method... do I need to call that with self.append_element( new_node ) or can I skip the self?
PaulCape_ has joined #ruby
curses has quit [Ping timeout: 264 seconds]
bb010g has joined #ruby
blackmesa has joined #ruby
<[k-> you can skip it
<[k-> ?try
<ruboto> Why don't you try it and see for yourself?
PaulCapestany has quit [Ping timeout: 240 seconds]
<[k-> you can already use an array as a linked list with shift and unshift
workmad3 has quit [Ping timeout: 240 seconds]
rmn388_ has joined #ruby
<mghaig> thanks. and ya I should've just written it all out and tried it. ya I know but I'm in a data structures class and I'm doing all of my projects in ruby also for practice and such
blackmesa has quit [Ping timeout: 250 seconds]
<[k-> one of the most useful ways to learn, is to practice. To practice, means to do & try
mghaig has quit []
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has joined #ruby
mghaig has quit [Client Quit]
<Napear> true fact... I think I spend more time on hackerrank than I do with my wife
<[k-> that's why we don't know women!
htmldrum has joined #ruby
schlubbi has joined #ruby
favadi has joined #ruby
ramfjord has joined #ruby
vdamewood has quit [Quit: Life beckons.]
rippa has joined #ruby
schlubbi has quit [Remote host closed the connection]
netmask has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
<pontiki> you men folk
wookiehangover has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<Napear> what!? ... she's busy too
<Napear> :-)
<pontiki> exactly :)
mjago has quit [Ping timeout: 246 seconds]
andywojo has joined #ruby
netmask has quit [Ping timeout: 240 seconds]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
charliesome has joined #ruby
houhoulis has joined #ruby
Rollabunna has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
leafybasil has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jenrzzz has joined #ruby
andywojo has quit [Ping timeout: 246 seconds]
slackr has joined #ruby
slackr has quit [Client Quit]
dionysus69 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybas_ has joined #ruby
araujo__ has quit [Quit: Leaving]
BraddPitt has quit [Remote host closed the connection]
devbug_ has joined #ruby
favadi has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
BraddPitt has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
devbug has quit [Ping timeout: 246 seconds]
devoldmx has quit [Remote host closed the connection]
arescorpio has joined #ruby
davedev24 has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 250 seconds]
rushed has quit [Quit: rushed]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deavid has joined #ruby
ndrei has joined #ruby
leafybasil has joined #ruby
arooni has quit [Ping timeout: 246 seconds]
leafybas_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
deavid has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
araujo has quit [Client Quit]
araujo has joined #ruby
simplyianm has joined #ruby
deavid has joined #ruby
favadi has joined #ruby
htmldrum has joined #ruby
simplyianm has quit [Ping timeout: 265 seconds]
Cyther has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shadoi has quit [Quit: Leaving.]
lxsameer has joined #ruby
gguggi has joined #ruby
bubbys has quit [Ping timeout: 250 seconds]
netmask has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
bubbys has joined #ruby
gguggi has quit [Ping timeout: 240 seconds]
leafybasil has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Client Quit]
Luming has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
cih has joined #ruby
agent_white has quit [Quit: tootired]
netmask has quit [Ping timeout: 246 seconds]
drocsid has quit [Remote host closed the connection]
Oka has quit [Quit: o/]
bronson has quit [Ping timeout: 240 seconds]
niemcu has joined #ruby
havenwood has joined #ruby
workmad3 has joined #ruby
minimalism has quit [Quit: leaving]
fullofcaffeine has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
fullofcaffeine has joined #ruby
Musashi007 has quit [Client Quit]
bubbys has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
bubbys has joined #ruby
warprobot has joined #ruby
warprobot has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
deavid has quit [Ping timeout: 272 seconds]
Anti-Pizza has joined #ruby
deavid has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
allomov has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
moeabdol1 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 260 seconds]
allomov has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Miron has quit [Ping timeout: 256 seconds]
FrankD has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
curses has joined #ruby
houhoulis has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 260 seconds]
Miron has joined #ruby
tsujp has joined #ruby
curses has quit [Ping timeout: 250 seconds]
arescorpio has quit [Quit: Leaving.]
Guest29226 has quit [Ping timeout: 264 seconds]
bubbys has joined #ruby
jun has quit [Remote host closed the connection]
jun has joined #ruby
ndrei has joined #ruby
jun has quit [Remote host closed the connection]
devoldmx has joined #ruby
faces has quit [Ping timeout: 268 seconds]
faces has joined #ruby
senayar has quit [Remote host closed the connection]
rippa has joined #ruby
blackmesa has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
amoeba` is now known as amoeba_
jgt has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
Luming has quit [Ping timeout: 255 seconds]
Salehi has joined #ruby
lubarch has quit [Quit: leaving]
Luming has joined #ruby
lubarch has joined #ruby
Jackneill has joined #ruby
lubarch has quit [Client Quit]
eminencehc has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
lubarch has joined #ruby
eminencehc has joined #ruby
devbug_ has quit [Ping timeout: 244 seconds]
FrankD has joined #ruby
rushed has joined #ruby
RegulationD has joined #ruby
Soda has joined #ruby
rikai has quit [Remote host closed the connection]
rikai has joined #ruby
jgt has quit [Read error: No route to host]
darkxploit has joined #ruby
netmask has joined #ruby
jeaye has left #ruby ["WeeChat 1.1.1"]
leat has quit [Quit: leat]
Luming has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
senayar has joined #ruby
andywojo has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
jgt has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 246 seconds]
netmask has quit [Ping timeout: 264 seconds]
htmldrum has quit [Ping timeout: 255 seconds]
andywojo has quit [Ping timeout: 240 seconds]
G186 has joined #ruby
lubarch has quit [Quit: leaving]
lubarch has joined #ruby
psy_ has joined #ruby
senayar has joined #ruby
ledestin has joined #ruby
blackmesa has joined #ruby
dionysus69 has joined #ruby
ruurd has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
gizmore has quit [Ping timeout: 264 seconds]
curses has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
lubarch has quit [Ping timeout: 255 seconds]
yardenbar has quit [Quit: Leaving]
sdwrage has joined #ruby
mjago has joined #ruby
sdwrage has quit [Client Quit]
G186 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
leat has joined #ruby
blackmesa has joined #ruby
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
noethics has quit [Quit: Leaving]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
<tmillc> rubykoans is really fun
senayar has quit [Remote host closed the connection]
<tmillc> also random thought, do you think it's something inherent to the language, or accident, that python became more associated with scientific computing? Moreso than ruby I mean. They don't seem like dissimilar languages but I'm not well versed in python.
gizmore has joined #ruby
Anti-Pizza has quit [Quit: Quit]
nanoz has joined #ruby
lubarch has joined #ruby
mission712 has quit [Disconnected by services]
gizmore has quit [Client Quit]
mission712 has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
blackmesa has quit [Ping timeout: 250 seconds]
rushed has quit [Ping timeout: 252 seconds]
<tmillc> also if anyone can provide any intuition on the behavior illustrated here, I would like that https://gist.github.com/anonymous/66bb88328cad14792f9c
mission712 has quit [Disconnected by services]
psy_ has quit [Ping timeout: 250 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
symm- has quit [Quit: Leaving...]
lkba_ has joined #ruby
allomov has joined #ruby
cih has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
mission712_ has joined #ruby
htmldrum has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
livathinos has joined #ruby
lubarch has quit [Quit: leaving]
devoldmx has joined #ruby
cih has joined #ruby
workmad3 has joined #ruby
lubarch has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
cih has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
iateadonut has joined #ruby
bronson has joined #ruby
amclain__ has quit [Quit: Leaving]
netmask has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
naftilos76 has joined #ruby
michael_mbp has quit [Excess Flood]
vdamewood has joined #ruby
beast has joined #ruby
CloCkWeRX has joined #ruby
Luming has joined #ruby
netmask has quit [Ping timeout: 252 seconds]
michael_mbp has joined #ruby
lkba_ has quit [Ping timeout: 255 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
pontiki has joined #ruby
wallerdev has joined #ruby
blackmesa has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
fullofcaffeine has quit [Remote host closed the connection]
darkxploit has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
iateadonut has quit [Quit: Leaving.]
iateadonut has joined #ruby
baweaver has quit [Remote host closed the connection]
andywojo has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
ruurd has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
andywojo has quit [Ping timeout: 240 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
wookiehangover has joined #ruby
<jhass> tmillc: python is a quite explicit language and to me it feels such traits somehow get more popular in that community
<tmillc> jhass: hmm I see, yes. Easier to pass on explicit verbal/written instructions and algorithms
UtkarshRay has quit [Quit: Leaving]
Voker57 has joined #ruby
senayar has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
nofxx has quit [Ping timeout: 264 seconds]
ruby-lang415 has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
wallerdev has quit [Quit: wallerdev]
NeverDie has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
saturnia has joined #ruby
NeverDie has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
dikaio has quit [Quit: ........]
Trynemjoel has joined #ruby
chouhoulis has quit [Remote host closed the connection]
znz_jp has joined #ruby
[k- has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
s00pcan has quit [Ping timeout: 240 seconds]
niemcu has quit [Ping timeout: 246 seconds]
hanmac has quit [Quit: Leaving.]
last_staff has joined #ruby
s00pcan has joined #ruby
Cyther has joined #ruby
bifflechip has joined #ruby
Salehi has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
bifflechip has left #ruby ["WeeChat 1.3"]
bronson has joined #ruby
tkuchiki has joined #ruby
senayar has joined #ruby
allomov has joined #ruby
rmn388_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
netmask has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
bifflechip has joined #ruby
Antiarc has quit [Ping timeout: 252 seconds]
netmask has quit [Ping timeout: 265 seconds]
Antiarc has joined #ruby
mattprelude has joined #ruby
spider-mario has joined #ruby
deavid has quit [Ping timeout: 255 seconds]
FrankD has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
mattprelude has quit [Client Quit]
FrankD has joined #ruby
sankaber has joined #ruby
favadi has joined #ruby
yellowgh0st has joined #ruby
tmillc has quit [Quit: WeeChat 1.1.1]
kidoz has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
_blizzy_ has joined #ruby
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
eminencehc has joined #ruby
deavid has joined #ruby
Ilyes512 has joined #ruby
ivanf has quit [Ping timeout: 256 seconds]
Log1x has quit [Ping timeout: 256 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
ruby-lang415 has quit [Ping timeout: 246 seconds]
anekos has quit [Ping timeout: 256 seconds]
eminencehc has quit [Ping timeout: 256 seconds]
jeadre has quit [Ping timeout: 256 seconds]
max_Q has quit [Ping timeout: 256 seconds]
galeido has quit [Ping timeout: 256 seconds]
max_Q has joined #ruby
galeido has joined #ruby
ivanf has joined #ruby
rj-code has quit [Ping timeout: 256 seconds]
anekos has joined #ruby
yellowgh0st has joined #ruby
Log1x has joined #ruby
Ray` has quit [Ping timeout: 256 seconds]
Ray` has joined #ruby
rj-code has joined #ruby
Salehi has joined #ruby
lubarch has quit [Quit: leaving]
lubarch has joined #ruby
charliesome has joined #ruby
znz_jp has joined #ruby
lubarch has quit [Client Quit]
lubarch has joined #ruby
workmad3 has joined #ruby
lubarch has quit [Client Quit]
Antiarc has quit [Ping timeout: 244 seconds]
lubarch has joined #ruby
lubarch has quit [Client Quit]
lubarch has joined #ruby
chouhoulis has joined #ruby
lubarch has quit [Client Quit]
Antiarc has joined #ruby
lubarch has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
subscope has joined #ruby
lubarch has quit [Client Quit]
SenpaiSilver has joined #ruby
Log1x has quit [Ping timeout: 256 seconds]
df has quit [Ping timeout: 256 seconds]
Olipro has quit [Ping timeout: 256 seconds]
shortdudey123 has quit [Ping timeout: 256 seconds]
iceden has quit [Ping timeout: 256 seconds]
JaTochNietDan has quit [Ping timeout: 256 seconds]
iceden has joined #ruby
GarethAdams has quit [Ping timeout: 256 seconds]
Caius has quit [Ping timeout: 256 seconds]
Authenticator has quit [Ping timeout: 256 seconds]
Log1x has joined #ruby
Liothen has quit [Ping timeout: 256 seconds]
Authenticator has joined #ruby
shortdudey123 has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
df has joined #ruby
mission712_ has quit [Ping timeout: 256 seconds]
crayfishx has quit [Ping timeout: 256 seconds]
Hijiri has quit [Ping timeout: 256 seconds]
EvilJStoker has quit [Ping timeout: 256 seconds]
ElderFain has quit [Ping timeout: 256 seconds]
psy_ has joined #ruby
bascht has quit [Ping timeout: 256 seconds]
bifflechip has quit [Quit: WeeChat 1.3]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
EvilJStoker has joined #ruby
GarethAdams has joined #ruby
JaTochNietDan has joined #ruby
Liothen has joined #ruby
Olipro has joined #ruby
Caius has joined #ruby
devoldmx has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
Coldblackice_ has joined #ruby
ElderFain has joined #ruby
FrankD has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
s00pcan_ has joined #ruby
stamina has joined #ruby
s00pcan has quit [Ping timeout: 268 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
crayfishx has joined #ruby
bifflechip has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
bronson has joined #ruby
bascht has joined #ruby
senayar has joined #ruby
mission712_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 244 seconds]
nertzy2 has quit [Read error: Connection reset by peer]
nertzy2 has joined #ruby
FrankD has joined #ruby
Salehi has quit [Quit: Leaving]
SHyx0rmZ has quit [Ping timeout: 256 seconds]
senayar has quit [Ping timeout: 240 seconds]
deavid has quit [Ping timeout: 240 seconds]
netmask has joined #ruby
pontiki has joined #ruby
rdark has quit [Quit: leaving]
SCHAAP137 has joined #ruby
zotherstupidguy has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
hanmac has joined #ruby
deavid has joined #ruby
jenrzzz has joined #ruby
netmask has quit [Ping timeout: 260 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
doddok has joined #ruby
amystephen has joined #ruby
vdamewood has quit [Quit: Life beckons.]
firstdayonthejob has quit [Read error: Connection reset by peer]
Coldblackice_ has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
saturnia has quit [Remote host closed the connection]
FrankD has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Client Quit]
FrankD has joined #ruby
cirenyc has joined #ruby
ruby-lang708 has joined #ruby
<ruby-lang708> how could I confirm if mysql2 gem is successfully installed ? --I am on windows and new to ruby (Past PHP dev experince)
CloCkWeRX has left #ruby [#ruby]
<ruby-lang708> after installation it shows successfully installed gem but when pulling on browser it says gem::loadError
ndrei has quit [Ping timeout: 264 seconds]
Cyther has quit [Quit: Leaving]
<ruby-lang708> can anyone help ?
<jamo__> write a small script which requires the gem and does something trivial with it
<jamo__> or see of the gem exists on the install directory
mjago has quit [Read error: Connection reset by peer]
psy_ has quit [Remote host closed the connection]
cih has joined #ruby
mjago has joined #ruby
<jamo__> and how+what are you running on the brower - what acctually is failing
Rickmasta has joined #ruby
<ruby-lang708> Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
<ruby-lang708> I get the above error
<jamo__> so you are using rails? dev or prod?
<jamo__> did you restart the app after modifying the Gemfile?
ht__ has joined #ruby
<jamo__> and did you bundle install
<jamo__> and maybe run the app with bundle exec
<ruby-lang708> I have not done any changes to the gemfile , it already contails mysql2 and I have restarted the server sevral times
<ruby-lang708> I have set the variables to all environment
<ruby-lang708> and set the database: app (which i have created in phpmyadmin)
ItSANgo has quit [Quit: Leaving...]
<jamo__> how did you install the gem; bundle install in the directory which contains the Gemfile?
<jamo__> and how are you running the app
sanjayu has joined #ruby
<ruby-lang708> I have created the app in a directory and then I ran bundle install its returned "Your bundle is complete" and then I am using rails s command to run the app
zotherstupidguy has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
niemcu has joined #ruby
jamesaxl has joined #ruby
<ruby-lang708> providing gemfile and database yml file http://pastebin.com/W7K4yNJf
<ruboto> ruby-lang708, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e4beab6141e74e84961a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
unshadow_ has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
zotherstupidguy has joined #ruby
solocshaw has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
leitz has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
unshadow has quit [Ping timeout: 268 seconds]
Me_Engine has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.1/20150929144111]]
Me_Engine has joined #ruby
<ruby-lang708> @Jamo__ you there ?
dionysus69 has joined #ruby
karapetyan has joined #ruby
naftilos76 has quit [Ping timeout: 240 seconds]
Kendos-Kenlen_ has joined #ruby
Me_Engine has quit [Quit: Leaving]
blackmes1 has quit [Quit: WeeChat 1.3]
netmask has joined #ruby
cih has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
sanjayu has quit [Ping timeout: 272 seconds]
ruby-lang708 has quit [Ping timeout: 246 seconds]
pardusf has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
jenrzzz has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has joined #ruby
sdothum has joined #ruby
devoldmx has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
Mia has quit [Ping timeout: 255 seconds]
netmask has quit [Ping timeout: 240 seconds]
rubybeginner has joined #ruby
Me_Engine has joined #ruby
cih has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy> ruby ruby ruby
devoldmx has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
tkuchiki has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Napear has quit [Quit: leaving]
G186 has joined #ruby
unshadow has joined #ruby
Me_Engine has quit [Quit: Leaving]
Soda has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
psy_ has joined #ruby
unshadow_ has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
eggoez has joined #ruby
abra0 has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
kidoz has quit [Quit: Ухожу я от вас]
chouhoulis has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
xcesariox has joined #ruby
karapetyan has joined #ruby
wottam has joined #ruby
Me_Engine has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
G186 has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
platzhirsch has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
hanmac has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
nicolai86 has joined #ruby
DmitryBochkarev has joined #ruby
keen___________2 has quit [Read error: Connection timed out]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has joined #ruby
keen___________2 has joined #ruby
rubybeginner has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
DmitryBochkarev has quit [Client Quit]
bronson has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
senayar has joined #ruby
DmitryBochkarev has joined #ruby
solocshaw has joined #ruby
K1MOS has joined #ruby
sonOfRa has quit [Remote host closed the connection]
sonOfRa has joined #ruby
flex has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
niemcu has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
DmitryBochkarev has quit [Client Quit]
<flex> When I look at $:, the current directory is not in the load path. How then is ruby able to load files that are in the current directory?
kirun has joined #ruby
DocMAX2 has joined #ruby
DocMAX has quit [Ping timeout: 260 seconds]
<Zarthus> ruby removed '.' from the load path for 'security reasons'
cih has quit [Remote host closed the connection]
m8 has joined #ruby
<flex> Zarthus: Then how am I able to load a file using load 'file.rb'
<Zarthus> require_relative or add it to your load path
<flex> Zarthus: No...what I'm trying to say is... "load 'file.rb'" works when '.' is not in the load path. How?
pontiki has quit [Ping timeout: 264 seconds]
DmitryBochkarev has joined #ruby
<leitz> Is http://guides.rubygems.org/what-is-a-gem/ , first file tree image, the "standard" way to organize code for a project?
<Zarthus> http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-load - it expects a filename, i don't know if it looks in the load path at all, flex
<jhass> leitz: yeah
<Zarthus> jhass: works for me
<Zarthus> what is your ruby version?
<jhass> Zarthus: ruby -v?
<jhass> 2.2.3
<Zarthus> ruby 2.1.5p273 (2014-11-13) [i386-linux-gnu]
<leitz> jhass, thanks! Trying to be less of a newbie.
dorei has joined #ruby
mattprelude has joined #ruby
andywojo has joined #ruby
<Zarthus> jhass: what OS?
<flex> jhass: load 'foo.rb' will work. try it.
<jhass> Zarthus: arch
<Zarthus> oh, you're just calling `load 'foo'`?
<jhass> well yeah sure
netmask has joined #ruby
<flex> jhass: Yeah. I'm wondering how it's working if '.' is not in the load path...
shmilan has joined #ruby
<jhass> maybe rb_find_file prepends an implicit ./ if the extension is given? In any case it's undocumented behavior, don't rely on it (and don't use load in the first place unless you know exactly what you're doing)
<flex> jhass: I checked $: after loading the file. '.' doesn't get added afterwards either. Weird...
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> flex: does load "/foo/bar/baz.rb" working without "/foo/bar/" being in the load path surprise you too?
Ilyes512 has joined #ruby
andywojo has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
niemcu has joined #ruby
Azure has quit [Remote host closed the connection]
netmask has quit [Ping timeout: 240 seconds]
<flex> jhass: No since that is an absolute path...
lxsameer has quit [Quit: Leaving]
<flex> jhass: Using load allows you to load files more than once so you can edit a file and then load it again in the same session. require only loads it once. that's the main reason for using load ....
<jhass> yes, and it's error prone
<flex> jhass: True.
<jhass> anyway, what I'm saying is that load appears to treat "foo.rb" as "./foo.rb"
<flex> jhass: Also, when we require a file, does it run the file in the current script or does it copy everything from the required file into the current script?
<jhass> neither, require is just like load except with a guard that prevents loading a file twice
<jhass> local variables don't propagate from one file to another, so either picture is misleading
<jhass> Ruby just parses and executes the file
Azure has joined #ruby
_blizzy_ has joined #ruby
G has joined #ruby
evanjs has joined #ruby
<flex> jhass: So basically requiring a file just runs the file, correct?
<jhass> yes, keeping the global(!) context the same of course
codecop has joined #ruby
arup_r has quit [Quit: Leaving]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
<leitz> I'm reading the rspec book and trying to figure out the directory structure under lib. SO far it seems to have "myproject/lib/myproject/code_to_run.rb" Is there a reason for the nesting?
<jhass> leitz: the reason is that your code should be under module Myproject
<leitz> in code_to_run.rb there's a Module and Class defined.
tier has joined #ruby
* leitz goes to read
<jhass> the lib/ directory of your gem is added to the load path
<jhass> so a require "myproject/code_to_run" expands to lib/myproject/code_to_run.rb
chouhoulis has joined #ruby
tkuchiki has joined #ruby
<leitz> So the runnable code in bin/ adds lib to the LOAD_PATH, and then calls stuff?
chouhoulis has quit [Ping timeout: 244 seconds]
tier has quit [Remote host closed the connection]
K1MOS has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
FrankD has quit [Ping timeout: 240 seconds]
DmitryBochkarev has quit [Quit: Leaving]
<jhass> some do that, but if your gem is installed rubygems will do so there's no real need for it outside development
<leitz> I've been putting structure code in lib, like class definitions. Putting executable code in bin.
<jhass> and in development you can also do it manually, ruby -Ilib bin/foo or let bundler do it, bundle exec bin/foo
<leitz> The book is saying the executable code in lib/myproject/mycode.rb
<jhass> my bin/foo stuff usually ends up as require "projct/cli"; Project::Cli.new(ARGV)
mosez has joined #ruby
pontiki has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
rikkipitt has joined #ruby
<leitz> jhass, do you have some code I could look at?
<jhass> actually nothing public that has something in bin/
DocMAX2 is now known as DocMAX
<leitz> Okay. My project has a bunch of small tasks in bin. That is what I am used to.
<leitz> It could probably be better...
Kendos-Kenlen_ has quit [Quit: Konversation terminated!]
flex has left #ruby [#ruby]
DmitryBochkarev has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Zuy has joined #ruby
tno has quit [Remote host closed the connection]
lkba has joined #ruby
devbug_ has joined #ruby
cirenyc has quit [Quit: Leaving...]
bronson has joined #ruby
rikkipitt has quit [Quit: Leaving...]
devbug has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Me_Engine has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Me_Engine has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
senayar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
karapetyan has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
andywojo has joined #ruby
deavid has quit [Ping timeout: 268 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
devbug has joined #ruby
sankaber has joined #ruby
skweek has joined #ruby
sdwrage has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
deavid has joined #ruby
sdwrage has quit [Client Quit]
solocshaw has joined #ruby
shinnya has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
mary5030 has joined #ruby
dasher00 has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
sulky has joined #ruby
havenwood has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
chipotle has joined #ruby
Zuy has quit [Ping timeout: 264 seconds]
netmask has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
sgambino has joined #ruby
workmad3 has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
DEA7TH has joined #ruby
<shevy> yes!
<shevy> your project could be better
workmad3 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
netmask has quit [Ping timeout: 246 seconds]
<shevy> the beauty of bin/ files is that they can be very small, you can just delegate towards code parts residing in the lib/ hierarchy
<shevy> something like: TopNamespaceHere.run(ARGV)
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
doddok has quit [Ping timeout: 246 seconds]
<pontiki> indeed, that's typically all that are in my bin/*
<pontiki> well, exe/* now
freerobby has quit [Quit: Leaving.]
curses has quit []
tkuchiki has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doddok has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
<pontiki> makes testing so much easier
_blizzy_ has quit [Ping timeout: 246 seconds]
fastAndSlow has joined #ruby
chouhoulis has joined #ruby
sdwrage has joined #ruby
krz has joined #ruby
<jhass> I dunno what's up with that, /bin/ and /usr/bin contain script since forever
Jardayn has joined #ruby
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 240 seconds]
borodin has joined #ruby
shmilan has joined #ruby
bazbing80 has joined #ruby
doddok has quit [Ping timeout: 272 seconds]
solocshaw has quit [Ping timeout: 264 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flex has joined #ruby
shmilan has quit [Read error: Connection reset by peer]
doddok has joined #ruby
<flex> What is rake and what is it used for?
solocshaw has joined #ruby
DmitryBochkarev has quit [Ping timeout: 268 seconds]
<shevy> make for Makefile
<shevy> rake for Rakefile
<TTilus> flex: build language for ruby
<TTilus> flex: rake is designed to do similar kind of stuff than make is, syntax is ruby
ndrei has joined #ruby
leafybasil has joined #ruby
<TTilus> pontiki: for really small scale stuff something like this http://pastie.org/10458201 works just fine, no need to complicate stuff
<TTilus> the same file serves as a cli binary, loadable library and may very well also contain all the necessary documentation
<flex> So a build tool is generally used for compilation?
leafybasil has quit [Remote host closed the connection]
DLSteve has joined #ruby
<flex> whoops. wrong irc.
flex has left #ruby [#ruby]
<shevy> lol
<[k-> channel*
felixr has joined #ruby
<jhass> now I wonder what the right one would be
<shevy> webchat is weird
<TTilus> build != compile
DmitryBochkarev has joined #ruby
bronson has joined #ruby
<shevy> flex will never know that!
The_Phoenix has quit [Quit: Leaving.]
<TTilus> oh my! sackcloth and ashes!
<pontiki> TTilus: i never have anything that simple
<pontiki> why would i bother?
doddok has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
<TTilus> pontiki: it was just an example
bronson has quit [Ping timeout: 260 seconds]
<TTilus> pontiki: you know what works for you, that pattern might not
<pontiki> for anything that simple, i'm just writing a bash script
<pontiki> or perl
<TTilus> highly likely
skweek has quit [Ping timeout: 256 seconds]
<shevy> perl!
<TTilus> it is still good pattern to know, since it is fairly common and you are prolly gonna see it if you dig in to non trivial amount of open source code
<shevy> that explains the leading p in your nick
<shevy> if you'd use ruby you'd be rontiki
<pontiki> indeed, i wrote some like that myself, then found it too difficult to unit test them
G186 has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<pontiki> shevy: does that mean you're language is sea sharp?
<pontiki> your*
<TTilus> pontiki: how come too difficult to unit test?
<shevy> I am feeling hipster and will go with swift for now
<shevy> go ... swift .. man, we can soon build full sentences with the names of programming languages alone
<TTilus> pontiki: the whole point is that you can require it in your test script and only use the api
senayar has quit [Ping timeout: 260 seconds]
<pontiki> you load the entire bin file to do a unit test?
niemcu has quit [Ping timeout: 246 seconds]
<pontiki> that means you're executing the entire script each time
<TTilus> pontiki: "entire bin file" has totally two more lines of code than respective lib (if that would be split into separate file) :D
<TTilus> pontiki: no, i'm not executing
<TTilus> pontiki: read the last line
solocshaw has quit [Ping timeout: 272 seconds]
<TTilus> pontiki: that's the whole point of the pattern
<leitz> if myproject/bin/myscript.rb requires myproject/lib/mylib.rb, why does the LOAD_PATH exansion require '../../lib' and not '../lib'?
<leitz> exansion/expansion
<TTilus> pontiki: it runs CLI only if the file is executed as a script, not when it is required as a lib
<shevy> do you really need to use LOAD_PATH directly leitz?
solocshaw has joined #ruby
<pontiki> oh, right, i see
<leitz> shevy, still figuring that out. jhass and I chatted about project structure but i'm still scratching my head a bit.
<[k-> require_relative
<shevy> yeah you should not need it for the most part
codecop has quit [Ping timeout: 264 seconds]
<jhass> leitz: rough guess: you expand relative to __FILE__ instead of __dir__
<jhass> and I still recommend -Ilib or bundle exec
<TTilus> \o_ for bundle exec
dasher00 has joined #ruby
* leitz goes to do some testing.
<shevy> Travis CI requires github?
<shevy> I am looking at http://docs.travis-ci.com/user/languages/ruby/ right now
solocshaw has quit [Ping timeout: 264 seconds]
<pontiki> i believe so -- i've never looked at using anything but github
<shevy> yeah, I have to overcome my laziness one day and get everything on github
skweek has joined #ruby
dasher00 has quit [Max SendQ exceeded]
solocshaw has joined #ruby
dasher00 has joined #ruby
ddv has quit [Remote host closed the connection]
<leitz> shevy, jhass. __dir__ and require_relative don't work onRuby 1.8.7. :)
senayar has joined #ruby
<leitz> Far as I can tell, anyway.
ddv has joined #ruby
<shevy> leitz I did not say anything about __dir__ or require_relative
<shevy> I recommend oldschool - setup.rb :)
<adaedra> __dir__ is File.dirname(__FILE__), though.
<jhass> leitz: and I don't work on Ruby 1.8
<adaedra> And iirc, require_relative is default require behavior in 1.8.7
* leitz changes his request for a URL from shevy to a comment about going to read.
<jhass> adaedra: not quite, require_relative is relative to the current file, 1.8 has . (the current working directory) in the load path
DEA7TH has quit [Remote host closed the connection]
<adaedra> do I didn't recall correctly, thanks.
<adaedra> so*
<shevy> leitz setup.rb is really easy to use, and for your gem-structured projects, you only need "require" really. never have to use require_relative or have to tamper with $LOAD_PATH
wottam has joined #ruby
<pontiki> "what version of ruby are you using" is the new "a/s/l" ?
solocshaw has quit [Ping timeout: 244 seconds]
<jhass> we could just drop that question and assume a sane/supported one. Their problem for using outdated stuff, not ours
<adaedra> should be o/v/m: Os, Version, install Method.
<pontiki> ^
<shevy> Beer, Now, Drink.
freerobby has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> No.
ddv has quit [Changing host]
ddv has joined #ruby
<shevy> :(
<pontiki> saturday morning, beer o'clock is all day long?
<shevy> oh oh oh it's soon evening here
<shevy> but beer isn't great for programming anyway
<pontiki> whisky
<shevy> hehe
<pontiki> get that balmer peak on
dasher00 has quit [Read error: Connection reset by peer]
netmask has joined #ruby
arup_r has joined #ruby
solocshaw has joined #ruby
Anti-Pizza has joined #ruby
lkba has joined #ruby
zenguy_pc has quit [Ping timeout: 256 seconds]
linduxed has quit [Ping timeout: 244 seconds]
<leitz> shevy, setup.rb will take some time to figure out.
<leitz> Doesn't look bad, though.
yeticry has joined #ruby
favadi has joined #ruby
favadi has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
ddv has quit [Quit: *poof*]
netmask has quit [Ping timeout: 250 seconds]
<shevy> leitz it's really simple... keep a local copy of it somewhere
ddv has joined #ruby
<shevy> I use aliases for it, for instance "r2" combines:
htmldrum has quit [Ping timeout: 250 seconds]
<shevy> (first assuming that setup.rb is in the working directory)
<shevy> ruby setup.rb --quiet config; ruby setup.rb --quiet setup; ruby setup.rb --quiet install; rm setup.rb; rm InstalledFiles; rm .config
<shevy> half of these are probably not needed
<shevy> I was just too lazy to see what I really need
<leitz> hehe...
<shevy> the second way would be to build a .gem file. you could probably even write a dump-script that generates a .gemspec file based on the name of the working directory, if you only want to test anyway, but this is pretty much what setup.rb will do too
<leitz> I'm into the section of programming that often causes me issues. Breaking a large project into smaller, manageable bits.
<shevy> there is also probably a clean way to uninstall via setup.rb but I use setup.rb very superficially
<jhass> I don't understand what's so hard about doing ruby -Ilib bin/foo
<shevy> yeah, same here. I am porting old ruby code of my biggest project to a new infrastructure right now. it is tedious and slow...
tkuchiki has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
moeabdol1 has joined #ruby
<leitz> jhass, my scripts are executable and unclude the #!/usr/bin/env ruby line.
chouhoulis has joined #ruby
<leitz> Not sure how to use the -llib bit with that.
<shevy> unclude
senayar has quit [Ping timeout: 268 seconds]
<shevy> a nice word
dasher00 has joined #ruby
<shevy> you won't need -I anyway if you have a gem-structured directory
<[k-> echo "ruby -llib bin/foo" > foo
<[k-> ./foo
mjago has quit [Ping timeout: 240 seconds]
<jhass> foo: Permission denied
mary5030 has joined #ruby
<[k-> your face is a deniable permission
solocshaw has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 240 seconds]
* leitz 's typing gets worse as he gets tired.
_blizzy_ has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
<shevy> impending collapse!
_blizzy_ has joined #ruby
<shevy> if only we could code during our sleep
<[k-> shevy: that boy can
<[k-> he dreams code!
<[k-> remember that video
solocshaw has joined #ruby
ruurd has joined #ruby
<shevy> wat
<shevy> ah yes
<shevy> that psycho
<[k-> ruuude
<shevy> he wants to work at apple after university
User458764 has joined #ruby
maikowblue has joined #ruby
schlubbi has joined #ruby
G186 has quit [Ping timeout: 246 seconds]
linduxed has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
Norm has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
schlubbi has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
niemcu has joined #ruby
ekleog has quit [Remote host closed the connection]
devoldmx has joined #ruby
iateadonut has quit [Quit: Leaving.]
Axy is now known as Mia
bronson has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
cih has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
UtkarshRay has joined #ruby
Spami has joined #ruby
solocshaw has joined #ruby
platzhirsch has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
cih has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
ekleog has joined #ruby
asad_ has joined #ruby
<asad_> Can someone please explain this in simple words: http://ctrlv.it/id/2435/3062215145
Didac has joined #ruby
HammyJammy has quit [Read error: Connection reset by peer]
<[k-> a horrible code sharing website
<[k-> (for mobile)
ht__ has quit [Quit: Konversation terminated!]
<adaedra> asad_: when you require a file, you import what is in the file the same way as you were copying the contents into current file, but in global scope
skweek has quit [Ping timeout: 250 seconds]
<[k-> it means that requiring/loading works in one way
spider-mario has joined #ruby
<adaedra> asad_: so if you require a file that declares A when you're in B::C (i.e module B; module C; require 'a'; end; end), it will import A as ::A, not B::C::A
<[k-> the loaded file cannot access the stuff in the file that loaded it
<adaedra> Which would happen if you copy A declaration in place of the require
<[k-> but the file thst loaded it can access the stuff in the loaded file
<asad_> adaedra: What's the global scope?
<adaedra> asad_: outside of any module/class/method.
workmad3 has joined #ruby
niemcu has quit [Ping timeout: 244 seconds]
ekleog has quit [Remote host closed the connection]
<adaedra> # This is global scope
<asad_> adaedra: Why aren't variables defined in a file also loaded if all it does is copies the file into the global scope?
<adaedra> module A; "This is A scope"; end
ekleog has joined #ruby
<[k-> variables defined in global scope can only be accessed in global scope
<adaedra> because my description may simplify it a bit, let me check
sdwrage has quit [Quit: This computer has gone to sleep]
Tratos has quit [Quit: Cheers]
<adaedra> yeah, variables are local and are not transferred into global scope on require
<[k-> really?
<adaedra> seems so
JammyHammy has joined #ruby
OrbitalKitten has joined #ruby
jschmid has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
cajone has left #ruby [#ruby]
<asad_> http://ctrlv.it/id/2435/3062215145 is from The Ruby Programming Language book by Matz.
sumark has quit [Remote host closed the connection]
jgt has joined #ruby
sumark has joined #ruby
kinnetica has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
s00pcan has joined #ruby
<leitz> shevy, I'm feeling the "work on old code" drag. Sadly, it's all my code...
<shevy> it helps to follow some kind of structured layout rigorously
<leitz> In some places the same data is a string, in others an array.
<leitz> some bits are concatenated.
doddok has joined #ruby
<shevy> for instance, I tend to do all include and extend statements before "def initialize" comes, in a class
<leitz> Yeah, I need to sit down and work on the structure, and then convert the two data sources to the same format.
<shevy> aliases on the other hand I always have right after the method definition
Ilyes512 has joined #ruby
netmask has joined #ruby
<leitz> I'm more "use data the same way" right now.
<shevy> leitz String versus Arrays?
<shevy> yeah, the data shapes the class definition immensely
<shevy> ruby becomes like syntactic sugar over data
<leitz> Yeah. A character has a set of skills. In one json file that set is a string. In another it's a nested hash. Not array, sorry.
<leitz> In one the first and last names are separate, in the other the same string.
<leitz> More funny than anything.
<shevy> well
<shevy> a hash is ideally suited for that really
<shevy> { strength: 55, dexterity: 33, constitution: 12 }
<leitz> Yeah, the hash was the later code, after I had learned a bit.
<shevy> you could also keep this as a multiline string, and parse it into a hash constituent like
<shevy> 'str: 45
<shevy> dex: 22
<leitz> Your first character was better. :)
<shevy> and so forth. I use this for help options
<leitz> Well, really, it's a chance for me to figure out my data and refator the code.
<shevy> I even found this to be more readable than the = <<-EOF variant
<shevy> refather your code?
<leitz> Beats watching sports on tv.
<leitz> Yeah, put the code out for adoption.
<shevy> lol
lxsameer has joined #ruby
asad_ has left #ruby [#ruby]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
eighthbit has joined #ruby
netmask has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
moeabdol1 has joined #ruby
eighthbit has quit [Client Quit]
Total_noob has joined #ruby
asad_ has joined #ruby
<asad_> What does this mean: "Files loaded with load or require are executed in a new top-level scope that is different from the one in which load or require was invoked."
platzhirsch has joined #ruby
<jhass> asad_: mainly that you can't access local variables defined in one in the other
DLSteve has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
Anti-Pizza has quit [Quit: Quit]
moeabdol1 has quit [Ping timeout: 268 seconds]
wottam has quit [Read error: Connection reset by peer]
lubarch has joined #ruby
User458764 has joined #ruby
xcesariox has joined #ruby
andywojo_ has joined #ruby
asad_ has left #ruby [#ruby]
charliesome has joined #ruby
xcesariox has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andywojo has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
tsujp has joined #ruby
bkulbida has joined #ruby
kinnetica has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fastAndSlow has quit [Quit: leaving]
xcesariox has joined #ruby
cajone has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
ss_much has joined #ruby
karapetyan has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
DoubleMalt has joined #ruby
cih has joined #ruby
Soda has joined #ruby
cih has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
wldcordeiro has joined #ruby
netmask has joined #ruby
tmtwd has joined #ruby
cornerma1 has joined #ruby
senayar has joined #ruby
OrbitalKitten has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
CrazyEddy has quit [Remote host closed the connection]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
cajone has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
saddad has joined #ruby
bmurt has quit [Client Quit]
parduse is now known as Guest12403
ndrei has joined #ruby
Guest12403 has quit [Read error: Connection reset by peer]
pardusf has joined #ruby
stamina has quit [Ping timeout: 250 seconds]
raphagodoi has joined #ruby
raphagodoi has left #ruby [#ruby]
jeff_laplante has joined #ruby
baweaver has joined #ruby
zotherstupidguy has joined #ruby
kies^ has joined #ruby
naftilos76 has joined #ruby
Soda has quit [Remote host closed the connection]
davedev24 has quit []
darkf has quit [Quit: Leaving]
pontiki has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 250 seconds]
CrazyEddy has joined #ruby
NeverDie has joined #ruby
<shevy> so what is your take on the different hash syntax... aka { :foo => :bar } versus { foo: :bar }
hanmac has quit [Ping timeout: 240 seconds]
VeryBewitching has joined #ruby
<miah> i use { foo: bar } because i like typing less and always use symbols for keys
naftilos76 has quit [Client Quit]
<miah> but people <3 arguing endlessly about that
NeverDie has quit [Max SendQ exceeded]
t_mmyv has joined #ruby
brendan- has joined #ruby
<shevy> hehe
NeverDie has joined #ruby
brendan- has quit [Client Quit]
<shevy> reminds me of the monty python argument clinic
cajone has joined #ruby
<baweaver> I put it in a style guide and tell people to stop whining
<miah> i tried
<miah> then people keep editing they style guide rules
woodennails has joined #ruby
woodennails has quit [Client Quit]
<baweaver> So I say there has to be a vote on it and lock it otherwise
CrazyEddy has quit [Remote host closed the connection]
guacjack has joined #ruby
<miah> i still have to deal with 100 line methods
<[k-> baweaver is experienced
<miah> oh i tried the 'vote' thing. the problem is, im the only person that cares about style
<baweaver> mainly in failing Jenkins builds until they play nice
<miah> so i stopped caring about everybody elses code
<baweaver> I just get the manager to buy in
<shevy> hehe
devoldmx has joined #ruby
<miah> basically, the way i see people operate: 'get it done' > 'make it pretty and tested'
<miah> ignore the whole thing about 'tech debt' and 'now its a problem to deal with later'
<VeryBewitching> baweaver is correct, get the manager to buy in. Tell them why they should care about it and make a convincing argument.
<miah> ya, i did =)
<miah> we now run rubocop everywhere
<miah> but every team has a different style guide
<miah> and people freely update .rubocop.yml per project when rules are inconvienent
<flyinprogrammer> >but every team has a different style guide
<flyinprogrammer> :(
<miah> cant change culture
<miah> you can influence it, but only if you have the ability to influence
<VeryBewitching> Yes you can, so long as you're willing to yell loudly enough to potentially lose your job :D
<miah> i yelled loudly
<miah> now i have no friends
<miah> add in working remotely
<miah> and its a lonely working experience
<miah> so i just gave up talking about that stuff and i have fewer problems 'with people' now i guess
<VeryBewitching> I prefer working from my home office, I tend to get a lot more done that way.
simplyianm has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<[k-> or does the office get a lot more done that way? >:)
banister has joined #ruby
<miah> like i said
<miah> basically, the way i see people operate: 'get it done' > 'make it pretty and tested'
<VeryBewitching> [k-: Well, it's mostly government, so no not at all :D
devoldmx has quit [Ping timeout: 244 seconds]
<[k-> but you're VeryBewitching
Ilyes512 has joined #ruby
<VeryBewitching> I tend to be, ys.
<VeryBewitching> That doesn't make salaried government workers get anything done quickly, on time or correctly.
<miah> .gov work moves at the speed of glaciers
hanmac has joined #ruby
ndrei has joined #ruby
<VeryBewitching> The Canadian government labour pool is like watching a kindergarten class do finger painting. It's messy and never ends up looking like anything by the time they're done (if they ever finish.)
<VeryBewitching> Anyway, miah, I would suggest you find a team that you can become sympatico with. No job is worth daily frustration.
<VeryBewitching> My 0.02
<miah> ya
<miah> i havent found that
<miah> i've determined that im the problem, so i just deal with it.
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
CrazyEddy has joined #ruby
Musashi007 has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
ramfjord has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bronson has joined #ruby
doddok has quit [Quit: Leaving]
danielpclark has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
JammyHammy has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
lubarch has quit [Ping timeout: 240 seconds]
stamina has joined #ruby
David27 has joined #ruby
symm- has joined #ruby
Kendos-Kenlen has joined #ruby
ruurd has joined #ruby
mloy has joined #ruby
lenwood has joined #ruby
Hijiri has joined #ruby
lubarch has joined #ruby
DLSteve has joined #ruby
JDiPierro has joined #ruby
evanjs has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
ruurd has quit [Client Quit]
ndrei has joined #ruby
Ilyes512_ has joined #ruby
ascarter has joined #ruby
<avdi> I used to work at a gov't contractor, which is almost like working for gov't. There's a reason I left.
<avdi> Well, several dozen really, but culture was in many ways the biggest.
Ilyes512 has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
danielpclark has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
Me_Engine has quit [Ping timeout: 260 seconds]
jgt has quit [Ping timeout: 256 seconds]
felixr has quit [Ping timeout: 246 seconds]
leafybasil has joined #ruby
minimalism has joined #ruby
VeryBewitching has quit [Remote host closed the connection]
VeryBewitching has joined #ruby
kirun has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol1 has quit [Ping timeout: 268 seconds]
icbm has joined #ruby
symm- has quit [Quit: Leaving...]
<shevy> so we have:
jeff_laplante has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> "commandline"
<shevy> "CommandLine"
<shevy> "commandline2"
<BraddPitt> oof
<pwnd_nsfw> Tools to facilitate confusion of ...
<shevy> the second one is admittedly creative :)
symm- has joined #ruby
Coldblackice_ has joined #ruby
<miah> lol
finisherr has quit [Quit: finisherr]
DocMAX has quit [Ping timeout: 264 seconds]
<miah> lol. that first one is a rubyforge project too
DoYouKnow has joined #ruby
<miah> but here it is
pontiki has joined #ruby
tenderlove has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]
bjorgen has joined #ruby
<miah> there are like, 9000 command line parsing libraries for ruby.
saddad has quit [Ping timeout: 250 seconds]
elperdut_ has joined #ruby
karapetyan has joined #ruby
<bjorgen> is it recommended to use a full web server setup like nginx and puma for rails development?
juniorgoat has joined #ruby
<juniorgoat> should i join a programming bootcamp ran by scientologists? (please no trolling)
simplyianm has quit [Remote host closed the connection]
DLSteve has quit [Ping timeout: 244 seconds]
Diitto has joined #ruby
<yorickpeterse> bjorgen: No
<yorickpeterse> bjorgen: for development you can just run `rails s`
<yorickpeterse> which uses WEBRick by default
Anti-Pizza has joined #ruby
toretore has joined #ruby
<yorickpeterse> which is good enough
<yorickpeterse> juniorgoat: no
simplyianm has joined #ruby
<yorickpeterse> juniorgoat: I'd stay away from anything hosted by scientologists
<avdi> juniorgoat: no
DLSteve has joined #ruby
Anti-Pizza has left #ruby [#ruby]
<jhass> juniorgoat: and if you ignore our advice please take a hidden cam and upload everything to youtube
<yorickpeterse> then post it to /r/atheism for maximum karma
swgillespie has joined #ruby
bjorgen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<juniorgoat> jhass: the bootcamp has great reviews but i'm concerned about scientology
<miah> looks like you can take it online
swgillespie has quit [Max SendQ exceeded]
<juniorgoat> but they prefer you to take it in person
<yorickpeterse> sounds familiar
<miah> sure, but if they offer it as an option you're still free to choose it
<juniorgoat> i'd rather go in person and receive help in person, that's my preference
<miah> ok
<jhass> juniorgoat: consider reviews staged, especially if scientology is involved
swgillespie has joined #ruby
<juniorgoat> but i don't want to become a scientologist
<juniorgoat> jhass: what makes you so sure?
<yorickpeterse> juniorgoat: also how do you know it's run by scientology?
<miah> well, if you're in portland im sure there are also other options
<avdi> surely there are other choices
<juniorgoat> yorickpeterse: a little googling and facebooking reveals it's ran by scientologists
mozzarella has quit [Ping timeout: 264 seconds]
<juniorgoat> it's also greatly priced and self-paced
bjorgen has joined #ruby
<bjorgen> ok, thanks
<jhass> juniorgoat: 50% of all positive reviews being fake is a general good assumption in the internet. Add the factor of a sect and well...
<yorickpeterse> juniorgoat: ah
simplyianm has quit [Remote host closed the connection]
<yorickpeterse> maybe try code/khan academy instead?
simplyianm has joined #ruby
baweaver has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
<juniorgoat> i would like someone to help me out with my resume
fullofcaffeine has joined #ruby
<juniorgoat> i've dropped out of college and i'm looking for other options
<miah> there are other code bootcamps in portland
mozzarella has joined #ruby
<juniorgoat> the reason i like this code bootcamp is because it's self-paced and competitively priced
<miah> ya
<juniorgoat> and they guarantee you finding a job after completing the course
<miah> also, im sure there are meetups that provide similar services for free
<avdi> If someone offers you something for way less than the competition, you might reasonably question whether it's a loss-leader, and if so, for what. Especially if you already have a suspicion of what it's a loss-leader for.
<juniorgoat> everything is great about it except for the scientology part
<jhass> juniorgoat: and I mean even if it's kept ideology free, it's reason enough to boycott it
wallerdev has joined #ruby
<juniorgoat> they make you take an iq test and a personality test both of which are found in this book http://www.scribd.com/doc/91857629/Scientology-OCA-IQ-Test#scribd
<miah> looks like they have
<shevy> juniorgoat you need to test your personality before you are eligible for a job?
m8 has quit [Quit: Sto andando via]
<jhass> juniorgoat: yeah, that's a big red flag on its own
<miah> shevy: not job, code bootcamp
<jhass> "personality test" is scientologies primary recruiting/missionary tool
DocMAX has joined #ruby
<avdi> Oh my gosh, it turns out you are really depressed, and that's going to limit your career growth! We can help you with that...
bjorgen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jhass> juniorgoat: no joke, watch south park's episode on scientology, it's quite informative
<juniorgoat> i have
<jhass> then what is there to discuss
<juniorgoat> i didn't really understand it though
tmtwd has quit [Remote host closed the connection]
<jhass> no harm in watching south park episodes a couple of times
<juniorgoat> what i got from it is that they worship extraterrestrials and believe in planet x right?
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<avdi> juniorgoat: did you see the part with the "personality test"?
<jhass> what you should've gotten from it that it's just a cover story for controlling people and making money
elperdut_ has joined #ruby
<juniorgoat> avdi: it was probably in the episode but i might have zoned out and not paid attention to it
<juniorgoat> oh thanks jhass
<jhass> watch it again with full attention
michael_mbp has quit [Excess Flood]
<avdi> juniorgoat: scientology is a wealth cult that extracts 10s of thousands of dollars from their members over the course of years by selling them "training" that they "need" to have in order to fix all their personality "problems". And when people become suspicious, they are threatened with having everyone they know turn against them.
<juniorgoat> what can someone do without a college degree as a programmer?
<avdi> juniorgoat: pretty much everything someone with a degree can do
<toretore> a lot of good programmers don't have degrees
<avdi> juniorgoat: I don't have a degree. A lot of the successful programmers I know don't have one, and of the ones who do, most don't have a CS degree.
<juniorgoat> but if you don't have a degree aren't you inferior in american society?
<avdi> juniorgoat: uh... no?
<jhass> avdi: and that's formulated mildly
<jhass> it gets _a lot_ worse if your family becomes suspicious or you try to quit
<juniorgoat> i wish i didn't suffer from depression because i failed junior college
<avdi> juniorgoat: ...and of the ones I know who actually have a CS degree, they often say they didn't really need it.
<juniorgoat> and now i have no idea what i should be doing
<juniorgoat> i'm already really old and have no sense of direction
<toretore> juniorgoat: if i were to hire a programmer, their degree would have almost no significance to me
<juniorgoat> i think i would be sucked into scientology
elperdut_ has quit [Client Quit]
<juniorgoat> so the pay would be the same with or without a degree right?
noethics has joined #ruby
leafybasil has quit [Remote host closed the connection]
<avdi> juniorgoat: in any job you want to be working at, absolutely
swgillespie has left #ruby ["Textual IRC Client: www.textualapp.com"]
bronson has joined #ruby
<avdi> juniorgoat: in fact, it's less and less common for programming employers to even care about your degree. They want to see what you can do.
<juniorgoat> what's the point of a degree then and why does everyone say it's important?
michael_mbp has joined #ruby
yfeldblum has joined #ruby
<toretore> juniorgoat: if the people trying to hire you put that much weight on university degrees there's a big chance you don't want to work there
<jhass> juniorgoat: yes, please stay as far away from scientology as you can, especially with a depression, it's very dangerous. And won't be cheaper than seeing a psychologist
<juniorgoat> toretore: what's the reason for that?
jmallen has joined #ruby
<avdi> juniorgoat: FWIW, I only have a few years of junior college under my belt. No degree. A grand total of three software courses.
jmallen has quit [Client Quit]
<toretore> juniorgoat: to me, it show that they don't understand what makes someone a good programmer, and that probably means they don't understand other things as well
jessemcgilallen has joined #ruby
<juniorgoat> jhass: i'll stay away from it... do you know of any programming bootcamps that offer job assistance and have a self-paced curriculum with instructors to help you out?
dcarmich has joined #ruby
<jhass> no, not in your area anyway, I sit on the other side of the globe ;)
<avdi> juniorgoat: I used to work at a big company where they couldn't promote me unless I got a degree. It had a terrible working culture, and leaving them (after 9 years, sadly) was the best career decision I ever made.
<juniorgoat> why was it the best career decision you've ever made?
<toretore> juniorgoat: what's the reason you don't want to just learn by yourself online?
<toretore> it's what most programmers do
<juniorgoat> i want to but i'm not good at learning to code online by myself
lubarch has quit [Ping timeout: 240 seconds]
<toretore> it assumes a certain level of interest and passion of course
<juniorgoat> toretore: i've tried
<avdi> juniorgoat: because it led to me being employed at places with far healthier cultures where I actually enjoyed myself, and also to being paid way more money.
<juniorgoat> and i've been learning for more than a year already
platzhirsch has quit [Ping timeout: 250 seconds]
<juniorgoat> i haven't gotten very far
<juniorgoat> my math skills need to improve
<toretore> i have no math skills
<toretore> i do fine
<juniorgoat> do you know linear algebra?
<jhass> if you're able to at least attempt things on your own and demonstrate that you did, you just found the perfect place to ask for assistance when you get stuck ;)
<avdi> juniorgoat: you don't need math skills to code. I can tell you that from experience.
<toretore> i don't even know what that is
jeff_laplante has joined #ruby
fastAndSlow has joined #ruby
<juniorgoat> toretore: you're not trolling right?
<toretore> no
<toretore> i don't know math
<yorickpeterse> juniorgoat: you don't need advanced maths knowledge to get a programming job
bronson has quit [Ping timeout: 255 seconds]
<beast> some elite coders know math
<avdi> highest math I ever learned formally was Algebra 1, and I don't really remember most of it
<yorickpeterse> 80% of Ruby developers can't even use the modulo operator
* yorickpeterse runs
<toretore> i even ( ) my arithmetics in ruby because i don't know the precedence rules
<BraddPitt> ahahahah yorickpeterse
<BraddPitt> same toretore
<jhass> math can sometimes help to find the most efficient solution to something, but usually you have someone around who knows enough
<BraddPitt> I failed college trig twice
<avdi> all the math I actually *needed* I learned on the job
<juniorgoat> but what if i want someone to teach me while using screenhero or something like that?
<juniorgoat> can i still come here?
<toretore> sure
<yorickpeterse> juniorgoat: most of us in here are already packed schedule wise, but asking for specific bits is always fine
<juniorgoat> toretore: can you make a chess game in ruby?
<toretore> me specifically? maybe. in general? yes.
<yorickpeterse> juniorgoat: I'd look into khan academy, code academy, and http://learncodethehardway.com/, as a start
<juniorgoat> thanks
<yorickpeterse> then look for some intern position at some local company
<beast> try Codewars when you are up an running
<juniorgoat> i've tried all of them and i have no idea why i'm struggling with programming puzzles
<yorickpeterse> it takes time
<juniorgoat> did you hear about freecodecamp.com
<avdi> juniorgoat: most importantly, JOIN YOUR LOCAL COMMUNITY, if there is one. Go to Ruby meetups. Or any meetups. Do not be afraid.
karapetyan has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
<toretore> juniorgoat: if you're depressed then maybe your brain isn't working at 100% capacity, which makes stuff like this more difficult. that's how it's been for me
<jhass> juniorgoat: let's try something. Why do you want to become a programmer?
<juniorgoat> i love ruby for its simplicity but a lot of things i don't understand because i found out they made shorthads from c things
jgt has joined #ruby
<juniorgoat> jhass: i want to be able to create ideas that i have in my head
<BraddPitt> what do you mean, toretore ?
lenwood has quit [Ping timeout: 252 seconds]
<juniorgoat> i feel like the ideas i have could benefit everyone, but i need to learn to code to realize my ideas
<toretore> BraddPitt: depression/anxiety can really destroy your brain and cognitive abilities
<BraddPitt> I did not know that... interesting
<juniorgoat> toretore: i didn't know that either... i thought i was less intelligent than the rest of my peers
<jhass> juniorgoat: did you start working on any yet?
<juniorgoat> on any what?
<jhass> any of your ideas
<juniorgoat> yes i have a business plan for one of them
<juniorgoat> it's 100% complete
<yorickpeterse> juniorgoat: if it helps, even experienced devs have no idea what they're doing 80% of the time
<juniorgoat> i just need to develop it
moeabdol1 has joined #ruby
<toretore> juniorgoat: that's just my personal experience though, it's different for everyone
s00pcan has quit [Ping timeout: 246 seconds]
<juniorgoat> well i do speak several languages fluently and i have an amazing memory, i even remember stuff from when i was a toddler
<jhass> juniorgoat: so, do you actually enjoy the process of programming?
<avdi> juniorgoat: I'm going to encourage you again to get involved in your local community. Users groups are very welcoming, and you can find opportunities for all kinds of learning and collaboration there. Most importantly, though, it's *inspiring* to be around other people who are excited to write code and to share knowledge.
<juniorgoat> jhass: i hate error messages and code i write that isn't working as expected, but when everything works i have a feeling of joy(which rarely happens)
moeabdol1 has quit [Client Quit]
<jhass> that sounds good and perfectly normal then
<avdi> juniorgoat: you just described my average day of coding
<jhass> juniorgoat: http://www.thatawesomeshirt.com/images/get/1284/430x550/ people print this on shirts ;)
<toretore> juniorgoat: it's important to be curious and to want to learn and experiement for curiosity's sake alone
s00pcan has joined #ruby
hj2007 has joined #ruby
<yorickpeterse> jhass: ha
jgt has quit [Ping timeout: 240 seconds]
<jhass> juniorgoat: I think it might be worth to start adding an additional motivating factor though. One obvious one is to actually start prototyping one of your (simpler to realize) ideas
<hj2007> what is the issue in this code? https://gist.github.com/anonymous/817829b644e5e9a407ee
<hj2007> I'm getting "(ruby):19: syntax error, unexpected $end, expecting keyword_end"
<yorickpeterse> line 7
<juniorgoat> well i want to create an iphone app using swift i hear that swift is easy to learn and its syntax looks identical to javascript
int80pwn has joined #ruby
<yorickpeterse> remove the do on line 7
<yorickpeterse> and <<= redact is not valid
<yorickpeterse> use << instead
karapetyan has joined #ruby
<jhass> juniorgoat: don't even have the ideal of turning that first iteration into a usable product, but start working on something you convinced will solve somebody's (ideally yours) problem
yqt has joined #ruby
<toretore> <<= would be useful if << wasn't mutating
UtkarshRay has quit [Ping timeout: 246 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<juniorgoat> well i want to do my phone app, but first i want to develop the website and then have links to the app in the app store
jessemcgilallen has quit [Ping timeout: 240 seconds]
<yorickpeterse> wait
<yorickpeterse> wtf
<arup_r> hj2007: readacts <<= redact is the issue
<yorickpeterse> <<= is valid syntax?
<jhass> >> x = 64; x <<= 1; x
<ruboto> jhass # => 128 (https://eval.in/444394)
<yorickpeterse> >> x = []; x <<= 10
<ruboto> yorickpeterse # => [10] (https://eval.in/444395)
<yorickpeterse> what the
<hj2007> thanks yorickpeterse, toretore.
<yorickpeterse> TIL
<toretore> haha, i didn't know that.. makes sense i guess
gigetoo has quit [Quit: leaving]
<jhass> >> x = 64; x >>= 1; x
<ruboto> jhass # => 32 (https://eval.in/444396)
<juniorgoat> then i would like to create the app for android and i would like to use ruby and postgres as part of the stack that i want to use on my app
<hj2007> changed <<= to <<, I get "undefined method `<<' for nil:NilClass"
<BraddPitt> it is mispelled
gigetoo has joined #ruby
<yorickpeterse> the fuck does <<= even do
<BraddPitt> readats and redacts
<jhass> yorickpeterse: see above?
<BraddPitt> readacts*
<yorickpeterse> jhass: not entirely sure if I follow
<BraddPitt> change it to `redacts` on line 8
<jhass> yorickpeterse: Fixnum#<< doesn't mutate at all
<shevy> oh a typo
<toretore> yorickpeterse: gets translated to x = x << y i guess
<avdi> yorickpeterse: wouldn't it be leftshift and assign/rightshift and assign?
jwang has quit [Read error: Connection reset by peer]
<hj2007> BraddPitt: thanks :D
<toretore> in the case of Array#<< it's the same
<yorickpeterse> as per parser, this is the AST:
<yorickpeterse> (op-asgn (lvasgn :x) :<< (int 10))
<avdi> perfectly ordinary thing to do from a C point of view
<avdi> so long as you are dealing with integers, that is
senayar has quit [Remote host closed the connection]
Xeago has joined #ruby
symm- has quit [Quit: Leaving...]
<jhass> juniorgoat: well whatever it is, start working on it. make the most basic prototype of it you can imagine. Like make an app that has the UI you want but returns static stub answers for every button etc.
<juniorgoat> thanks :)
<juniorgoat> i'll do that
dnewkerk has joined #ruby
<toretore> juniorgoat: i'd focus on the web part first
netmask_ has joined #ruby
<yorickpeterse> hmmmmm...do I write tests in Rust (blegh), or do I finally start working on my LL(1) blag
<yorickpeterse> or do I watch videos
<juniorgoat> that's my plan toretore
<yorickpeterse> hmmm
<juniorgoat> is there a point to write tests? why not just test the code after every save?
<juniorgoat> (without writing tests)
int80pwn has left #ruby [#ruby]
<toretore> juniorgoat: you can skip writing tests in the beginning, and then you'll learn their value once you get sick of manually testing everything all the time
<yorickpeterse> good luck with that when the code is thousands of lines long
<jhass> yorickpeterse: we all know what will win^^
<yorickpeterse> jhass: videos :<
<juniorgoat> how many hours a week do you work as a developer?
Xeago has quit [Remote host closed the connection]
<yorickpeterse> 40
<yorickpeterse> well
<yorickpeterse> that's paid hours
<yorickpeterse> FOSS adds on top of that
ruurd has joined #ruby
<jhass> just wanted to call bullshit :P
<yorickpeterse> :P
<juniorgoat> ?
skweek has joined #ruby
<juniorgoat> 40 is 6 hours a day right?
<toretore> 8
<toretore> >> 8 * 5
<ruboto> toretore # => 40 (https://eval.in/444398)
<juniorgoat> oh
<jhass> just ask ruby \o/
<juniorgoat> and you say you can't do math
netmask has quit [Ping timeout: 265 seconds]
<toretore> haha
<jhass> >> 40 / 5 # rather though
<juniorgoat> i can't do math :/
<ruboto> jhass # => 8 (https://eval.in/444399)
<yorickpeterse> but yeah, I happen to work 40 hours paid, but do a lot of FOSS stuff on the side
<juniorgoat> can you do other hobbies on the side?
<yorickpeterse> "hobbies"?
<toretore> if you work for yourself you work 90 hours and get paid for 10
<yorickpeterse> :P
<juniorgoat> like playing in your band and doing show
<juniorgoat> s
<yorickpeterse> with proper scheduling sure
shinnya has quit [Ping timeout: 272 seconds]
finisherr has joined #ruby
<yorickpeterse> I don't work from 09:00 until 00:00 or something like that
<juniorgoat> i thought it would be from 9 to 5
<juniorgoat> if it's 8 hours
<yorickpeterse> depends per company
<juniorgoat> oh
<yorickpeterse> since I work from home it doesn't matter that much
<juniorgoat> what's the most important thing?
jessemcgilallen has joined #ruby
<juniorgoat> why are you working from home instead of an office?
<yorickpeterse> The company I work for is purely remote based
skweek has quit [Remote host closed the connection]
The_Phoenix has quit [Quit: Leaving.]
cirenyc has joined #ruby
<yorickpeterse> and after working in an office for 5 years I'm glad I don't have to do that
<juniorgoat> do remote companies offer health insurance and other incentives?
<yorickpeterse> Some do I suppose, differs per company and company
<juniorgoat> or do they give you extra money for health insurance?
<yorickpeterse> here in .nl it's already covered on government level
<juniorgoat> oh... interesting
<juniorgoat> nl is netherlands?
<yorickpeterse> yes
elperdut_ has joined #ruby
<yorickpeterse> oh god this video is really boring
<yorickpeterse> fk it
<juniorgoat> i shouldn't be asking this, but what should someone expect to earn in the netherlands?
<juniorgoat> maybe i'll move to europe
<leitz> guilders?
<juniorgoat> the euro is stronger than the dollar
<leitz> euros?
<yorickpeterse> as a dev? <= 50k USD
<toretore> guilders lol
<yorickpeterse> per year
<juniorgoat> how many though and what's the cost of living
<juniorgoat> thanks
<juniorgoat> that's about 40k euros
<yorickpeterse> Yes
<juniorgoat> why do developers in us make more?
lenwood has joined #ruby
<yorickpeterse> high living costs
<juniorgoat> oh
<juniorgoat> what's the living cost over there?
<yorickpeterse> e.g. here in .nl the average rent of a decent apartment is < 1k USD
delta_ has joined #ruby
<yorickpeterse> opposed to the 2-3k you'd pay in the bay area
<juniorgoat> yorickpeterse: what's decent?
<delta_> Can someone please explain the basics of how optparse works by this example: https://eval.in/444400
DLSteve has quit [Quit: Leaving]
<juniorgoat> yorickpeterse: the only decent apartment i've evern seen in the bay area was 25,000 usd per month
<yorickpeterse> e.g. my rent is about $800
<BraddPitt> oof
<BraddPitt> i envy you yorickpeterse
<yorickpeterse> 25k? what the fuck
elperdut_ has quit [Client Quit]
<juniorgoat> yes
<juniorgoat> 25k
<juniorgoat> everything else was awful
<yorickpeterse> it better come with a free Tesla
<yorickpeterse> delta_: what specifically do you want to know?
<avdi> Yay for living somewhere cheap and working remote
<juniorgoat> teslas are okay, they're great that they're electric but the interior is uncomfortable :/
<delta_> yorickpeterse: What's happening inside the block?
otherj has joined #ruby
<BraddPitt> avdi thats my dream
<BraddPitt> but my gf/friends/family are all here
<BraddPitt> really its only my gf that i care about
<yorickpeterse> delta_: OptionParser.new takes a block, which it evaluates against the instance of itself
<yorickpeterse> aka self
mondayrain has joined #ruby
otherj has quit [Client Quit]
mondayrain has quit [Read error: Connection reset by peer]
<juniorgoat> BraddPitt: are you in the us?
<yorickpeterse> so basically OptionParser.new { |opts| opts.x = y } is like `opts = OptionParser.new; opts.x = y`
<BraddPitt> im in SF, juniorgoat
<juniorgoat> nice
<juniorgoat> i was there not too long ago
<BraddPitt> I love this city
<yorickpeterse> BraddPitt: how's the cleanliness? :>
<juniorgoat> i enjoyed it but i hate how overpriced everything is
<BraddPitt> It's... lacking, yorickpeterse
<BraddPitt> to put it nicely
<yorickpeterse> haha
<BraddPitt> yeah the cost of living is insane here
<juniorgoat> sf is very clean
<BraddPitt> no it isnt
<juniorgoat> even the ghettos don't have much trash
<BraddPitt> its very, very dirty
<BraddPitt> for a US city
<juniorgoat> compared to la it's very clean
<BraddPitt> LA is just butthole
<delta_> yorickpeterse: and what's opts.banner and opts.on ?
<BraddPitt> I lived there for 2 years and came right back to SF
<juniorgoat> new york is much dirtier than la
<yorickpeterse> IIRC the bay area has like half the amount of homeless people as all of .nl
<yorickpeterse> delta_: I suggest reading the documentation of OptionParser
<yorickpeterse> &ri OptionParser
delta_ has left #ruby [#ruby]
zenguy_pc has quit [Ping timeout: 246 seconds]
<juniorgoat> BraddPitt: would it be possible to work remotely for a company and still get the 100k starting salary people ge tin the bay area?
<juniorgoat> like a company that's based in sf
<yorickpeterse> Probably not, at least not as a junior
pangur has joined #ruby
<juniorgoat> they're in the bay area
<BraddPitt> yes juniorgoat
<juniorgoat> what is the secret?
skade has joined #ruby
<BraddPitt> apply?
<yorickpeterse> cocaine
<juniorgoat> oh...
<BraddPitt> or that
<juniorgoat> lol
mlevin_ has joined #ruby
s00pcan has quit [Ping timeout: 260 seconds]
<juniorgoat> how can you tell if a company doesn't care about a college degree?
<toretore> they have a cool website with parallax and infinite scrolling
<pangur> Using Sinatra and Sequel, I am trying to search an object by its label, and when it is found, find out what its id is.
<juniorgoat> what does that have to do with anything?
ruurd has quit [Quit: ZZZzzz…]
<pangur> search for an object is what I meant to say.
<toretore> i'm joking juniorgoat
<juniorgoat> oh
<juniorgoat> but i'm being serious:/
<pangur> toretore: you were helping me last night with this.
<juniorgoat> i'm unemployed and a loser right now... i don't want to be either
hj2007 has quit [Quit: This computer has gone to sleep]
<pangur> I am still struggling with it.
s00pcan has joined #ruby
<toretore> you won't know until you ask juniorgoat
<juniorgoat> thanks
<toretore> pangur: gist your code
t_mmyv_ has joined #ruby
<avdi> juniorgoat: read their job adverts.
kirin` has joined #ruby
<juniorgoat> the job advertisement will mention a degree right?
<avdi> juniorgoat: or not.
<juniorgoat> toretore: can you complete the advanced portion of the algorithms in this course using ruby or whatever language you're comfortable is? http://freecodecamp.com/map
<pontiki> avdi: o/
<juniorgoat> okay, i will try to apply
<juniorgoat> thanks a lot for all your help everyone
<avdi> pontiki: oh slash to you as well!
<pontiki> hee
<juniorgoat> i'll stay away from that bootcamp
jessemcgilallen has quit [Read error: Connection reset by peer]
<avdi> juniorgoat: best of luck to you! And don't forget to get involved with your local community!
<toretore> juniorgoat: not all of them, at least without having to learn something new
devoldmx has joined #ruby
<toretore> juniorgoat: but you always have to learn something new in this profession
<juniorgoat> i love learning new things, ideally i want to run my own business but i don't know if i could be proficient enough to do that without knowing every aspect of my business (and having an mba)
<juniorgoat> i just don't understand why i was suicidal and failed college
kirin` has quit [Client Quit]
<BraddPitt> I was deeply depressed and dropped out of college juniorgoat
<BraddPitt> I honestly think it is normal
<juniorgoat> literally 5 years of my life are wasted
<juniorgoat> 5 years is a long time :(
<avdi> juniorgoat: FWIW, I run my own business and I don't have an MBA. It's like programming. You figure out what you need as you need to. Kinda like life in general, actually.
<yorickpeterse> depression does many funny things
<BraddPitt> indeed it does
<toretore> s/funny/shitty/
andywojo has joined #ruby
<juniorgoat> i wish time macines existed
<juniorgoat> machines*
* yorickpeterse doesn't have any formal degree either
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> besides a masters degree in cat herding
<pontiki> cat master
andywojo_ has quit [Ping timeout: 260 seconds]
<toretore> cat: master: No such file or directory
<avdi> juniorgoat: I spent 9 years at a company that discarded my work and wouldn't promote me without a piece of paper. Now I speak at conferences around the world. It's never too late. Especially in this profession.
<yorickpeterse> toretore: huehue
<BraddPitt> avdi where do you live, if you dont mind me asking?
<yorickpeterse> in your stack
<avdi> BraddPitt: Tennessee, now
k3asd` has joined #ruby
<BraddPitt> do you do ruby dev professionally?
devoldmx has quit [Ping timeout: 255 seconds]
<avdi> BraddPitt: I did for years. Now I do training professionally.
<BraddPitt> nice
danieli has joined #ruby
<pontiki> *sigh* juniorgoat, i wish i had answers for you that would help. you've probably heard all the advice.
<pontiki> juniorgoat: you're not alone, but i don't know if that even helps.
Soda has joined #ruby
<pontiki> juniorgoat: every day is a struggle; i somehow make it. in case it does in any way help, i try to make something every day.
zenguy_pc has joined #ruby
<yorickpeterse> looking at cat pictures might help
<yorickpeterse> works for me at least
troulouliou_dev has joined #ruby
<yorickpeterse> a cat picture a day keeps the bad mood away
subscope has quit [Remote host closed the connection]
<avdi> depression sucks. I basically just try my best to structure my life in a way that it's resilient in the face of weeks where I fall apart. Like, say, last week.
SenpaiSilver has quit [Quit: Leaving]
<arup_r> avdi: I like your voice while watching RubyTapas
<yorickpeterse> channel suddenly turned creepy
<avdi> arup_r: thank you!
jgt has joined #ruby
<pontiki> hahaha, that's why i signed up almost instantly
<pontiki> (i love all the advice, too)
wldcordeiro has quit [Quit: Konversation terminated!]
Ilyes512_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<avdi> yorickpeterse: I guess I'm used to it, doesn't creep me out :-)
<arup_r> Nice screencasts ... and your voice made it complete..
<pontiki> hmmm. well. hmm...
<avdi> I've heard from subscribers whose non-coding significant others want them to turn on RubyTapas so they have something to go to sleep to :-)
<yorickpeterse> avdi: also you totally missed out on my rubyrogues episode
workmad3 has joined #ruby
<yorickpeterse> "oooh you should talk about parsing" *doesn't show up* :P
<pangur> toretore: I think that I will need to sit on this for a while longer to be able to articulate what it is that I want to do.
<pangur> I will ask you again in a few days time, if that is OK ?
<avdi> yorickpeterse: I missed a LOT recently. I've been traveling, sick, and depressed either in that order or all at once. I wish I hadn't missed it, though :-/
krz has quit [Quit: WeeChat 1.2]
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<yorickpeterse> heh
<arup_r> avdi: Your introduction always .. something new.. Hey I am Avdi... ( some new things )
<toretore> pangur: sure
kirun has joined #ruby
Azure has quit [Remote host closed the connection]
snath has joined #ruby
<arup_r> I liked it........ miss you too :(
<avdi> yorickpeterse: I was really looking forward to that episode too :-(
<yorickpeterse> ah well, soon I'll have a blog post about more of that stuff
<yorickpeterse> if I can get myself to write it at least
<avdi> yay!
David27 has quit [Remote host closed the connection]
<pangur> Thanks, toretore.
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
workmad3 has quit [Ping timeout: 256 seconds]
simplyianm has quit [Remote host closed the connection]
* pangur is 62, loves learning to code.
davedev24 has joined #ruby
DocMAX2 has joined #ruby
solocshaw has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
DocMAX has quit [Ping timeout: 246 seconds]
<yorickpeterse> I think that's one of the most interesting things about programming, there's a shit ton of different people
<pangur> Happily, as nobody relies on me to do anything very useful with it, I can take as long as I like to work something out :)
aerozeppelin has joined #ruby
<pangur> Often, once I have worked out how something works, my interest in it fades somewhat.
<avdi> pangur: same here. Solved problems are so dull.
Rickmasta has joined #ruby
bronson has joined #ruby
<pangur> When you get to my age, avdi, you wish you had written down the solutions :)
jgt has quit [Ping timeout: 246 seconds]
<pangur> It is like having to read a detective story again to remember who committed the crime.
goldfish6744 has joined #ruby
simplyianm has joined #ruby
<avdi> I keep more and more notes as time goes by
<pangur> Good idea.
<avdi> every idea goes straight into evernote these days, wherever I am
goldfish6744 has left #ruby [#ruby]
goldfish6744 has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
arup_r has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
netmask has joined #ruby
pangur has quit [Quit: Leaving]
goldfish6744 has left #ruby ["Cycling Channel"]
goldfish6744 has joined #ruby
sphex has quit [Ping timeout: 268 seconds]
<jhass> I love workflowy
sphex has joined #ruby
netmask_ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
Kendos-Kenlen has quit [Read error: No route to host]
araujo has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has joined #ruby
araujo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
juniorgoat has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
hahuang61 has joined #ruby
solocshaw has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
<weaksauce> jhass is workflowy free?
pangur has joined #ruby
<jhass> limited usage, but enough for me, yeah
<jhass> that is the amount of items you can create per month is limited unless you pay
Leef_ has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<weaksauce> looks pretty slick
FernandoBasso has joined #ruby
Damn_Dirty has joined #ruby
<jhass> it works extremely well for how my thoughts are organized
Damn_Dirty has left #ruby [#ruby]
Leef_ has quit [Remote host closed the connection]
solocshaw has joined #ruby
<shevy> chaos prevails
<weaksauce> a trick I use for local notes is to have a "man" command with tab completion.
<shevy> hey... man-commands
<shevy> does ruboto object to that?
<weaksauce> works well for notes on things basically just opens up vim
<jhass> the thing that makes the difference to me is that I can always attach subitems to something without planning for that or reformatting anything
senayar has quit [Ping timeout: 256 seconds]
cschneid_ has joined #ruby
fastAndSlow has left #ruby [#ruby]
<weaksauce> if anyone is interested in it
psk17_ has joined #ruby
<weaksauce> yeah I do like that. org mode is one that is pretty nice for lists like that. seems like workflowy is slicker though
karapetyan has quit [Remote host closed the connection]
senayar has joined #ruby
<pangur> get '/district/:id' do; @district = District.where(params[:id]=>:id) will fetch the district with the correct id. However, my table has two fields(id, label). Instead of doing get '/district/:id', I want to do get /district/:label', and return the id of that instance, toretore. Does that make more sense than what I was saying last night?
karapetyan has joined #ruby
<weaksauce> pangur flip flop things around?
pwnd_nsfw has quit [Remote host closed the connection]
<toretore> pangur: yes. it should not be difficult if you understand the tools you're using
<jhass> yeah I guess it's orgmode without the keyboard or syntax overhead
<toretore> pangur: your sinatra "action" will return whatever the block returns
pwnd_nsfw has joined #ruby
joufflu has quit [Ping timeout: 246 seconds]
<pangur> If I fetch the correct district, how do I find out its id?
<toretore> that depends. what is @district?
<pangur> At the moment it is the district whose label is :label.
<toretore> no, i mean what type is it?
<pangur> I have a table districts, and a class District.
<toretore> a District? ok, so what is a District? where does it come from?
aerozeppelin has quit [Read error: Connection reset by peer]
<toretore> does it have a superclass? what library provides this functionality?
<pangur> each instance of District is a row in districts.
aerozeppelin has joined #ruby
aerozeppelin has quit [Client Quit]
bronson has joined #ruby
aerozeppelin has joined #ruby
aerozeppelin has quit [Client Quit]
beast has quit [Quit: Leaving]
aerozeppelin has joined #ruby
<toretore> i'm trying to teach you how to figure things like this out on your own, because it's something you will have to do all the time
karapetyan has quit [Ping timeout: 260 seconds]
aerozeppelin has quit [Client Quit]
<pangur> class District<Sequel::Model
skweek has joined #ruby
<pangur> So, Sequel::Model is the parent class of District
<toretore> ok, so then find the documentation for this class
aerozeppelin has joined #ruby
<toretore> it will have a method for getting the value of a field
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
symm- has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
<pangur> Most of what I am seeing is based on :id being the primary key: like artist = Artist[1] or artist = Artist.with_pk!(1)
<toretore> "id" is a field like any other
Musashi007 has quit [Quit: Musashi007]
<pangur> As there is only one record that is returned by my query, I suppose .first will be it.
mary5030 has quit [Ping timeout: 240 seconds]
<pangur> ah
jordanm has quit [Quit: Konversation terminated!]
<pangur> I see artist = Artist.first(:name => 'YJM') which might be what I am after.
DocMAX has joined #ruby
<pangur> District.first(:label => :label) maybe.
<weaksauce> pangur if it's not unique a where clause may return more than one record.
willardg has joined #ruby
<pangur> It is unique though, as I have 36 districts, each with a unique label.
DocMAX2 has quit [Ping timeout: 240 seconds]
<toretore> you can use .first in that case
<weaksauce> in general a where clause will return some form of collection of items or some representation of empty.
<toretore> the rdoc for Sequel::Model isn't terribly obvious if you don't know what to look for, but what you're looking for will be here: http://www.rubydoc.info/gems/sequel/Sequel/Model/InstanceMethods
aerozeppelin has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
bronson has quit [Remote host closed the connection]
jamesaxl has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
<pangur> I have just tried get '/district/:label' do
<pangur> @district = District.first(params[:label]=>:label) and that worked. However, I still have no idea how to obtain the id of that instance.
Musashi007 has joined #ruby
<toretore> look at the link i posted above pangur
<toretore> it's in there
<pangur> #id -> Object
<pangur> ?
<pangur> Is that the bit that I need?
<toretore> you have a field/column, "id", and you want to get its value
<pangur> yes
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
<weaksauce> do you know how to get the label of that record?
devoldmx has joined #ruby
<pangur> d = @district; puts #{d.title} #{d.forenames} #{d.surname}
<pangur> oops, sorry.
<pangur> d = @district; puts #{d.label}
shinnya has joined #ruby
<pangur> ah, thanks.
<weaksauce> have you tried d.id ?
<pangur> Have just done :)
<toretore> "label" is a field. you get its value with `d.label`. "id" is a field. you get its value with ?
<pangur> d.id
SenpaiSilver has joined #ruby
<pangur> Thanks, toretore :)
ss_much has quit [Quit: Connection closed for inactivity]
agent_white has quit [Quit: leaving]
troulouliou_dev has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 244 seconds]
netmask has quit [Remote host closed the connection]
elperdut_ has joined #ruby
ruurd has joined #ruby
netmask has joined #ruby
dikaio has joined #ruby
jeff_laplante has quit [Ping timeout: 264 seconds]
pangur has quit [Quit: Leaving]
saddad has joined #ruby
solocshaw has joined #ruby
arooni has joined #ruby
Oka has joined #ruby
netmask has quit [Remote host closed the connection]
<goldfish6744> okay, anyone has the time and patience to explain object-oriented to me, in PM? I still don't get the very basic ideas. Nope, I'm not trolling, regardless of what shevy says.
<shevy> you no longer use webchat right?
<goldfish6744> right, I was requested not to
<shevy> \o/
<shevy> one of my favourite definitions of OOP is the one Alan Kay used
jschmid has quit [Remote host closed the connection]
<shevy> this is somewhat an acceptable summary: http://c2.com/cgi/wiki?AlanKaysDefinitionOfObjectOriented not the first entry "1. EverythingIsAnObject"
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<avdi> For my money the only definition that matters is cited at the bottom of that page: "OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme LateBinding of all things."
<avdi> I actually just wrote a RubyTapas episode based on that quote (but also drawing in some of the other history around it)
solocshaw has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
<shevy> tapas... is that the mexican food?
<goldfish6744> that's very nice; but the words mean nothing in particular to me
<avdi> spanish
Ilyes512 has joined #ruby
<avdi> goldfish6744: yeah, unfortunately it's a concept which was very much coined in conversation with *previous* software paradigms, so most of the descriptions are aimed at explaining how it differs from, say, procedural programming.
unshadow has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
<goldfish6744> well, I think they call Fortran an imperative programming language
Trynemjoel has joined #ruby
<avdi> goldfish6744: what's your level of programming knowledge?
<goldfish6744> I'm reasonably good with Fortran and Basic. Never managed to understand anything which was supposed to run with a GUI.
<goldfish6744> much earlier, programmed in Clarion 3
<goldfish6744> and for half a year, in Cobol
i8igmac has quit [Ping timeout: 264 seconds]
* Total_noob looks at goldfish6744
Blaguvest has joined #ruby
<goldfish6744> oh hey!
jun has joined #ruby
hj2007 has joined #ruby
<shevy> class Cat; end <-- this makes cats
<avdi> goldfish6744: well, the central insight of OOP was to structure programs as cells or tiny computers sending messages to each other. And to construct those cells from smaller cells, and so on.
s00pcan has quit [Ping timeout: 240 seconds]
<Total_noob> shevy: I hammered him for using webchat :D
<Total_noob> It worked :P
tcrypt has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> your nicks are weird... goldfish ... total_noob ...
<Total_noob> goldfish6744: The whole point is... the objects behave like... real life objects.
<Total_noob> Yeah I know. Got any better for me, shevy? :D
Total_noob is now known as pry
<pry> Hm.
<goldfish6744> as in... a one behaves like a... no, wait, there is no real life one, it's an abstraction
<shevy> goldfish6744 you are the goldfish; class Goldfish; end; you may originate from a Fish... class Fish; end; ... you can subclass from fish: class Goldfish < Fish; end
solocshaw has quit [Ping timeout: 260 seconds]
<shevy> you live in a pond... class Pond; end
<avdi> well, they behave like real life *mental objects*. Objects aren't supposed to be models of physical things. This is a common misconception that muddies up a lot of common pedagogy around OOP.
s00pcan has joined #ruby
<shevy> now you can do useful stuff in a pond, like swim around in it; for this you need the swim method; class Goldfish; def swim; puts 'The goldfish swims around in his pond happily.'; end; end
DoYouKnow has quit [Disconnected by services]
<goldfish6744> okay. So if I say... fish + fish, then I will find for the value of pond = 2*fish
<goldfish6744> but how will the program know that that's what I'll want it to do?
<shevy> you mean the inventory of the pond?
<goldfish6744> well, something like that, yes
<pry> He shuld just read the Why's guide.
<shevy> yeah, if you put the fish inside the pond
<shevy> and you need a method that will tell you the inventory, for instance: class Pond; def inventory?; @inventory; end; end
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
RandyT_ has quit [Quit: ZNC - http://znc.in]
<banister> pry interesting, why the name 'pry' ?
RandyT has joined #ruby
<shevy> goldfish6744 have you played old-school MUDs? the non-graphical ones? some like LP-Muds are based around the object-philosophy... you usually have class Weapon, then subclass class Sword etc.., every actor (player) has an inventory with stuff inside, weapons can be wielded, armours be worn etc...
<pry> Because the almighty intepreter binding :P
<banister> pry heh cute :)
solocshaw has joined #ruby
Rickmasta has joined #ruby
* pry winks ;)
<phreakocious> a pond might have attributes/characteristics (properties) like salinity and pH and depth
Jackneill has quit [Remote host closed the connection]
<goldfish6744> shevy, nope. Had no internet back then
<pry> goldfish6744: Go play nethack
<goldfish6744> ^^ does that help?
jessemcgilallen has joined #ruby
<pry> I am you, I do not decide if it helps.
<pry> Erm.. I am not you.
nolic has quit [Ping timeout: 240 seconds]
<shevy> goldfish6744 right but you can understand what they do... it's similar to the modern GUI based ones... though the modern ones tend to suck. but they all are objects right? and 3D models may have additional surface areas, textures etc...
<goldfish6744> weeell, they are values, stored in the respective arrays or whatever else the programmer decided to use to represent them
<avdi> goldfish6744: if you are interested in both OOP and Ruby, I would highly recommend reading this book: http://www.poodr.com/
<shevy> goldfish6744 right, if you go to the nitty gritty core
<shevy> goldfish6744 but objects have behaviour too and you can model them based on that behaviour
<phreakocious> goldfish6744: but it's not necessary to refer to them in that way...
<phreakocious> using objects makes things more expressive..
<goldfish6744> well, that "behaviour" bit is perhaps one of the things I don't quite get
<goldfish6744> a value doesn't behave. It just is.
<shevy> but you do things with a value too
<shevy> I don't actually remember basic much at all... did it have functions?
s00pcan has quit [Ping timeout: 240 seconds]
<goldfish6744> that's like saying the door opened on its own when you went there and opened it. You acted on the door, but you blame the entire opening only on the door and say that it was its behavior.
<toretore> goldfish6744: an object is data that is encapsulated; it then responds to messages like "give me the first item"
gambl0re has quit [Ping timeout: 246 seconds]
<avdi> goldfish6744: I'm also available via PM to answer questions. I've spent most of my career studying OOP in various languages.
<toretore> >> array = [1,2,3]; array.first
<ruboto> toretore # => 1 (https://eval.in/444410)
<shevy> goldfish6744 but the door has two states, open and closed, and you can toggle these states, unless the door is broken
<toretore> "array" is an object; it respons to "first" and returns another object, 1
<shevy> and even if you keep things in values alone, you still need to use two different values to differ between two different states
s00pcan has joined #ruby
<goldfish6744> sure, shevy, generally logical values
gambl0re has joined #ruby
<toretore> goldfish6744: in oop, data doesn't really exist on its own
jessemcgilallen has quit [Ping timeout: 246 seconds]
<toretore> it is only accessible through an object which encapsulates it
<toretore> and then provides behavior for that data
<goldfish6744> ... you got me lost there. What does encapsulate mean?
<avdi> ideally in OOP, data doesn't exist.
solocshaw has quit [Ping timeout: 268 seconds]
<toretore> goldfish6744: it means "put/hide inside an object"
<goldfish6744> but why would I wanna do that?
<toretore> a lot of reasons that you shouldn't worry about at this point
<toretore> first you just need to understand *what*, then you can move on to *why*
<goldfish6744> so okay, instead of being able to act on things as I want, I'm trying to obsecure it from myself so that I cannot act on it as directly or easily.
<goldfish6744> then?
<shevy> yes it is one extra layer compared to your raw values
guacjack has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> so now explain why machinecode is not used by every programmer on a daily base
<goldfish6744> difficult to read
<goldfish6744> and on occasions hard to remember how a given opcode would set/clear flags
pry is now known as Total_noob
* Total_noob for the sake of being traceable even.
solocshaw has joined #ruby
<avdi> goldfish6744: I suspect, given your pre-existing knowledge, you'd find this an enlightening read. It explains where these ideas come from, and why they exist. http://worrydream.com/EarlyHistoryOfSmalltalk/
dionysus69 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<goldfish6744> okay, gonna go in there.
andywojo has quit [Ping timeout: 250 seconds]
<avdi> it's long, but very worth it.
Gnomethrower has quit [Ping timeout: 264 seconds]
<shevy> goldfish6744 and afterwards, if you have time, watch old Alan Kay lectures! like https://www.youtube.com/watch?v=oKg1hTOQXoY
jessemcgilallen has joined #ruby
niemcu has quit [Ping timeout: 268 seconds]
mbff has joined #ruby
<mbff> How does one handle not committing compiled css/js/images to a git repo, but using a git based deployment tool?
<leitz> is there a way to make a "case var when > 6:"
<leitz> SO far it chokes on the '> 6'. Ranges are good, though.
<avdi> leitz: when ->(v) {v > 6} then ...
sdwrage has joined #ruby
<shevy> wow
<shevy> let me check if that works
<avdi> I mean it's butt ugly, but procs alias #=== to #call
ngscheurich has joined #ruby
Yzguy has joined #ruby
Xeago has joined #ruby
<shevy> this works indeed
<shevy> and you are right, that is indeed ugly
<avdi> hahaha
<avdi> course there's also case; when v < 6; ...; end
bkulbida has quit [Ping timeout: 264 seconds]
<shevy> and where is the case
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
<avdi> leitz: yes, that line will not work
<shevy> well try the -> variant
<avdi> leitz: the code I typed above will work
<shevy> ah
bruno- has joined #ruby
lapide_viridi has joined #ruby
<shevy> btw leitz
<shevy> you could use "else" there
lxsameer has quit [Quit: Leaving]
<avdi> shevy: good point
<shevy> if you can ensure that decoration_roll will have higher values
bronson has joined #ruby
<shevy> which you can, before you reach the case
<leitz> Else won't work, because it picks up less than 1.
<shevy> do you act on negative values?
<shevy> because if not you could intercept it before it reaches case
swgillespie has joined #ruby
elperdut_ has joined #ruby
<avdi> leitz: another option: case 6..Float::Infinity
Xeago has quit [Ping timeout: 246 seconds]
swgillespie has left #ruby [#ruby]
<shevy> to infinity and beyond!
finisherr has quit [Quit: finisherr]
<avdi> and yes, the fact that Ruby's only Infinity is Float::Infinity is dumb and weird, but there it is.
<leitz> No action on <=0
solocshaw has quit [Ping timeout: 246 seconds]
elperdut_ has quit [Max SendQ exceeded]
mary5030 has joined #ruby
<shevy> like if you can ensure: "I have either 0, or higher than 0, but never lower than 0 in my case/when structure"
GnuYawk has quit [Ping timeout: 255 seconds]
elperdut_ has joined #ruby
elperdut_ has quit [Client Quit]
<avdi> leitz: the issue is that every when clause must have an *object* to which to send the === message in order to perform the match. 4..5 constructs a Range object. `> 5` doesn't construct any object, it's just incomplete syntax.
rewzn has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<leitz> avdi, makes sense. when decoration_roll > 5: works
<avdi> leitz: yeah but it's probably not doing what you think
<leitz> I was just thinking the > 5 was the same as the 1..3 range.
<leitz> How so?
<shevy> yeah... to Infinity :)
bronson has quit [Ping timeout: 250 seconds]
<avdi> leitz: the when clause is going to match its argument against the actual value
<avdi> leitz: so what you are saying there is:
<leitz> The decoration roll is normally ints between 2-12 inclusive.
<avdi> leitz: (decoration_roll) === (decoration_role > 5)
<avdi> leitz: so if decoration_roll is, say, 3
<avdi> leitz: you're saying (decoration_roll) === (false)
simplyianm has quit [Remote host closed the connection]
<avdi> leitz: or rather, (3) === (false)
<avdi> leitz: which compiles, and maybe even runs, but doesn't make a lot of sense
mary5030 has quit [Ping timeout: 260 seconds]
<avdi> leitz: actually I got the order of arguments backwards in all of those
<avdi> but the same point holds
solocshaw has joined #ruby
<shevy> leitz perhaps consider using more smaller methods too
<avdi> leitz: so since (true === 6) will never evaluate to true, that branch will never be taken
ariedler has joined #ruby
<manveru> sorry... what language are we discussing here?
<shevy> haha
<ariedler> hey; getting slightly confused with SSL sockets; and buffering ; how do you use the buffering mixin
elperdut_ has joined #ruby
<shevy> <avdi> leitz: when ->(v) {v > 6} then ... <--- we are no longer sure what language it is manveru :)
lapide_viridi has quit [Quit: Leaving]
<shevy> it's beginning to look like haskell
<manveru> :P
<ariedler> its a cool lambda expression that returns true/false clearly
solocshaw has quit [Ping timeout: 260 seconds]
<leitz> avdi, you're right, a 7 isn't returing the right value.
baweaver has joined #ruby
<leitz> So far I haven't figured out how to translate your line to what I was doing, since none of the other ranges use the same syntax.
sdwrage has quit [Quit: This computer has gone to sleep]
<manveru> so... what's wrong with using if in this case?
skweek has quit [Ping timeout: 250 seconds]
<manveru> hell, even 'else' would do
<avdi> leitz: you just replace your `> 5` with either ->(v) { v > 5 } or 6..Float::Infinity
mbff has quit [Quit: Leaving]
<avdi> manveru: we've already discussed why else is out
<leitz> manveru, mostly I'm learning Ruby, and trying to use the case statement.
<avdi> leitz: well, it also makes a lot of sense for what you're doing with ranges.
Soda has quit [Remote host closed the connection]
bifflechip has quit [Quit: WeeChat 1.3]
RandyT has quit [Quit: ZNC - http://znc.in]
RandyT has joined #ruby
<leitz> avdi, this may be a time for a public service announcement. I'm using Ruby 1.8.7, and "when ->(v) {v > 5}:" doesn't seem to work.
<manveru> oO
<avdi> leitz: FWIW, I'd probably use the 6..Float::Infinity version in my own code
<avdi> leitz: well no, it wouldn't
<leitz> The greater than is useful if there are modifiers that would put the roll outside the "standard" range.
<avdi> leitz: do you have an option to NOT use 1.8.7?
<baweaver> ^
<avdi> leitz: Float::Infinity won't work in 1.8.7 either
<manveru> i mean, it's not 2007 anymore
<avdi> leitz: in 1.8.7 you have to divide 0/0 to get an infinity value, IIRC
<baweaver> that, and even 1.9.x is getting end-of-life'd
<leitz> avdi, not really. I work on servers, and I'm trying to stay with what's available at work. Thus, 1.8.7.
solocshaw has joined #ruby
<avdi> leitz: see what baweaver said... a server with only 1.8.7 is a rare beast these days, I'd think.
ruurd has quit [Quit: ZZZzzz…]
<baweaver> RHEL or CentOS would
<baweaver> on older versions
<baweaver> which also need to be upgraded :P
<leitz> There's more 1.8.7 than 2.0 in production, I bet.
<manveru> even then, at least you can use rvm anywhere
<shevy> leitz you can just hard-code the maximum value possible there
<shevy> or use 1_000_000_000 :D
<avdi> leitz: FWIW, the 1.8.7 equivalent of my lambda version is proc{|v| v > 5}
ngscheurich has quit [Ping timeout: 260 seconds]
<miah> there is no reason you _have_ to use the packaged version of ruby included with redhat/centos/debian
<baweaver> 1.8.7>> puts 'test'
<baweaver> 1.8>> puts 'test'
<leitz> shevy, yeah. But I'm happy to use a Rubyism if possible.
<leitz> DOes Float require a library?
<baweaver> drat. Ox0dea would know the magic there
Yzguy has quit [Quit: Zzz...]
Azure has joined #ruby
<baweaver> probably not a good idea to have that out of date of packages on your servers
<baweaver> presents a whole new realm of security risks
<avdi> leitz: or do INFINITY=0/0 somewhere, I guess
<avdi> leitz: whoops
<avdi> leitz: INFINITY=1.0/0.0
<avdi> leitz: then you should be able to do 6..INFINITY
<avdi> but make sure you also do ANDBEYOND = INFINITY + 1
<miah> baweaver: ya, it depends on if you lean heavily on 'redhat supports us' when dealing with auditors etc.
<baweaver> !mute fried_chicken
<leitz> Hmm...at that point compaing vs <=0 and using else becomes cleaner.
<baweaver> yeah, fair....
<baweaver> (some racist joined other channels, pre-empting it)
<miah> +1
skweek has joined #ruby
sdwrage has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
spider-mario has quit [Remote host closed the connection]
<baweaver> heh, can't even install 1.8.7 on my mac, it throws a fit.
<leitz> Or just use a largish number in the range.
<avdi> buzz = 0.upto(INFINITY && BEYOND)
<miah> baweaver: i think thats because of gcc/llvm
<baweaver> probably
<baweaver> I didn't read into it too much.
C0L0R has joined #ruby
solocshaw has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
<baweaver> Proc.new { |x| x > 5 }
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> avdi: BEYOND = -INFINITY
<avdi> baweaver: did I miss something? Does proc{|x| x > 5} not work?
bifflechip has joined #ruby
<baweaver> that's what I was finding, still searching for the other syntax.
<baweaver> pretty sure that works too, but didn't find it in a fast browse
FernandoBasso has quit [Quit: WeeChat 1.3]
Musashi007 has joined #ruby
<avdi> baweaver: we had to make do with a lot of proc{} in the bad old pre 1.9 days ;-)
Musashi007 has quit [Client Quit]
<baweaver> yeah, I jumped the train at 1.9.3
<avdi> also for some reason we were barefoot
<baweaver> HR takes issue with that here.
ramfjord has joined #ruby
<avdi> I seem to be perpetually stuck with a part of my head that thinks "oh, 1.8, that's the new shit"
Rickmasta has joined #ruby
<miah> even mruby is 1.9 compat =)
<avdi> but I can't actually remember what changed between 1.6 and 1.8 anymore
Xeago has joined #ruby
<baweaver> I know reduce still uses some 1.8.x syntax.
<miah> i only had to deal with 1.8.7 for a short time, and i was mostly using it with chef/rails.
<baweaver> REE was it?
<miah> lol ya
<miah> we used REE for a moment with rails
<baweaver> So I did use 1.8.7 then :D
bifflechip has quit [Quit: WeeChat 1.3]
_djbkd has joined #ruby
kirun has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
bifflechip has joined #ruby
<leitz> Well, now othe rmath is off. Or I'm just getting bleary eyed.
cschneid_ has quit [Remote host closed the connection]
_djbkd has joined #ruby
bb010g has joined #ruby
vgty has joined #ruby
jenrzzz has joined #ruby
<leitz> Ah, found it, I thnk.
solocshaw has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 265 seconds]
<shevy> one day you will join us in the ruby 2.x era
devoldmx has quit [Remote host closed the connection]
ruurd has joined #ruby
juniorgoat has joined #ruby
<juniorgoat> is there a difference between virtual os x and actual os x running on a macbook?
<baweaver> one's virtual
<juniorgoat> but besides that fact
netmask has joined #ruby
<juniorgoat> is it all the same?
<avdi> what's virtual os x?
<juniorgoat> can i work with others in my virtual os x yosemite the same as other developers using macs?
<baweaver> you might find some small discrepancies but I rarely have issues with virtualization
<baweaver> though this quickly ventures into illegal
<juniorgoat> just because it's against tos doesn't mean it's not right to do
<baweaver> as OSX does not provide images
<avdi> I didn't realize anyone was doing this. Last time I looked into it (years ago) it was darn near impossible.
<baweaver> That's kinda what a TOS is, and I would highly not suggest asking about illegal virtualization
<baweaver> instead, consider debian
<juniorgoat> well i have to use it because everyone else is using os x and i spent 2k on my windows laptop
<avdi> juniorgoat: no you don't
solocshaw has joined #ruby
<juniorgoat> i can't afford another laptop, not yet at least
<adaedra> juniorgoat: the only limitiation is if you're working in an environment doing iOS or Swift/Obj-C OS X dev.
<adaedra> Otherwise, another system may behave just as well
<baweaver> either way, we're not here to help you with illegal activities
jun has quit [Remote host closed the connection]
<baweaver> besides, this is the #ruby channel
<avdi> juniorgoat: if you're starting out learning Ruby you can do that just fine on Windows. That's where I learned. Beyond that, I've been doing Ruby dev on linux for quite a while, and I know plenty others who do
decoponio has quit [Read error: Connection reset by peer]
<baweaver> chances are that your prod env is linux
<avdi> yep
<baweaver> so it's almost better to develop in as close to your prod env as possible
<baweaver> which is why Vagrant is so popular for some things.
Ilyes512_ has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<avdi> anecdotally, these days I'm seeing more devs going OS X -> Linux than vice versa. Not in droves, but it seems to be happening.
fullofcaffeine has quit [Remote host closed the connection]
decoponio has joined #ruby
tmillc has joined #ruby
<baweaver> avdi: for my case at least I'll likely stick with Mac
<baweaver> Designer as well, so Photoshop
<adaedra> I switch between mac and linux
<avdi> yeah, I think the vast majority are sticking with what they like
<adaedra> depending on the moment and the tasks
Ilyes512 has quit [Ping timeout: 246 seconds]
<adaedra> That's what you should be doing. Stick with what you like.
<avdi> it's just that years ago, I noted that there were some linux users moving to mac, and now if there's any movement at all it seems more often the other direction.
<juniorgoat> i'm doing ruby and rails development as well as app development which requires xcodd
<juniorgoat> xcode
<adaedra> Well, you're out of luck for xCode
<adaedra> Xcode*
<avdi> juniorgoat: from your comments earlier it sounded like you're just getting started. That's an awful lot to take on at once.
wldcordeiro has quit [Quit: Konversation terminated!]
senayar has quit [Remote host closed the connection]
<juniorgoat> i am just getting started
<juniorgoat> here's a screenshot
<juniorgoat> :(
<juniorgoat> os x just installed and i'
<adaedra> Ruby on Rails development is okay under Windows and great under Linux, you don't *require* an OS X
<avdi> well, my advice would be as a beginner, first make an effort to learn *one* language reasonably well
<baweaver> ^
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
<juniorgoat> i'm having problems already http://imgur.com/PpN2sEm
<baweaver> and also don't discuss things you know are illegal on IRC
<avdi> and if you pick Ruby, you can do that right on your windows box. No mac or linux required.
<juniorgoat> what is reasonably well?
<avdi> juniorgoat: don't overcomplicate your life with stuff like dodgy virtualized environments.
<juniorgoat> what if it's the only thing you have going for you at the moment?
<avdi> juniorgoat: I've helped a LOT of beginners, and I've seen too many fall into the trap of thinking they need to learn/do ALL THE THINGS at once
<juniorgoat> i just need to learn how to develop apps and websites
<avdi> juniorgoat: pick one
<baweaver> no
<baweaver> that and will screw you
ZucchiniZe has quit [Ping timeout: 240 seconds]
<juniorgoat> aren
eminencehc has joined #ruby
<juniorgoat> aren't web apps just like phone apps but hosted on a server?
<avdi> juniorgoat: no. not even a little bit.
<juniorgoat> oh :(
<juniorgoat> what's the main difference then?
<juniorgoat> besides hardware restrictions that both have to heed ot
<juniorgoat> to*
<avdi> juniorgoat: with where you're at, a discussion of the many differences wouldn't really matter or make a difference
zrl has quit [Ping timeout: 268 seconds]
<juniorgoat> so why not learn both?
<adaedra> Well, there's one way to find out, juniorgoat, to learn. But go it step by step, i.e. begin by looking at web development, then, once you're comfortable with it, move to something else.
<baweaver> learn one thing well
<baweaver> or learn multiple badly
<baweaver> that's why
<juniorgoat> okay thanks
<juniorgoat> later everyone
juniorgoat has quit [Quit: Page closed]
ZucchiniZe has joined #ruby
niko has quit [Ping timeout: 624 seconds]
leafybasil has joined #ruby
<C0L0R> Hi everyone, could someone tell me how to access the data inside this json object? I tried to access it like a hash but that did not work. Here is the variable dump: http://pastie.org/private/h6zuwimzzmpydfbaf6td5a
<baweaver> C0L0R: it's not good to cross post from rails
jessemcgilallen has quit [Read error: Connection reset by peer]
bronson has joined #ruby
<tmillc> I really like the rubykoans approach to programming tutorials. editing a lesson and having irb/pry open to fiddle with similar topics until they're really settled, is a wonderful way to learn.
<C0L0R> Okay, I'm sorry
zrl has joined #ruby
<baweaver> Did you not get an answer there?
Xeago has joined #ruby
<C0L0R> I did not
jenrzzz has quit [Ping timeout: 240 seconds]
<baweaver> give me a sec to hop over, I was paying more attention to this channel
[k- has quit [Ping timeout: 268 seconds]
lipoqil has joined #ruby
<C0L0R> Thank you baweaver!
<avdi> I like to tenderize my JSON with a crab mallet first, makes it easier to get at the good bits
tylersmith has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
<baweaver> avdi: new gem name?
<avdi> baweaver: haha, you can have it :-)
tenderlove has quit [Ping timeout: 255 seconds]
<baweaver> I have enough gems so far :P
bronson has quit [Ping timeout: 272 seconds]
<avdi> "reference to that one thing Avdi said in IRC" would be a new low for gem name obscurity
<baweaver> I think we could go lower with inspired by puns from tenderlove on Twitter
<baweaver> aw, he left just before that :(
last_staff has quit [Quit: last_staff]
* baweaver likes the puns though
<baweaver> then again mine are far worse
<baweaver> right shevy?
dionysus69 has quit [Quit: dionysus69]
finisherr has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elperdut_ has joined #ruby
JammyHammy has joined #ruby
vdamewood has joined #ruby
JammyHammy has quit [Read error: Connection reset by peer]
goldfish6744 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- s0 d4Mn l33t |t'z 5c4rY!]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
<shevy> I can't think for dam right now
<baweaver> (context: baweaver -> beaver)
willardg has joined #ruby
netmask has quit [Remote host closed the connection]
<shevy> my late father always made jokes that nobody else found amusing but he giggled about his own jokes like crazy, and then others would find this funny because a happy mood is kinda infectious
<baweaver> though it's actually B.A. Weaver
elperdut_ has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 264 seconds]
_djbkd has quit [Quit: My people need me...]
leafybasil has quit [Remote host closed the connection]
mary5030 has joined #ruby
urrr has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
DoYouKnow has joined #ruby
tenderlove has joined #ruby
mary5030 has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has joined #ruby
mary5030 has joined #ruby
Mia has joined #ruby
jun has joined #ruby
Marsupermammal has joined #ruby
davo has joined #ruby
urrr has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 260 seconds]
joufflu has joined #ruby
jun has quit [Read error: Connection reset by peer]
jun has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
zack6849 has quit [Remote host closed the connection]
goldfish2310 has joined #ruby
Xeago has joined #ruby
craysiii has joined #ruby
urrr has joined #ruby
<shevy> yep
<shevy> beaver
devoldmx has joined #ruby
<shevy> plus your alt is lemur so you have a thing going for animals regardless
cih has joined #ruby
devoldmx has quit [Remote host closed the connection]
bkulbida has joined #ruby
zack6849 has joined #ruby
zack6849 has joined #ruby
tmillc has quit [Quit: WeeChat 1.1.1]
hectortrope has quit [Remote host closed the connection]
QORRiE has joined #ruby
QORRiE has joined #ruby
dnewkerk_ has joined #ruby
dnewkerk has quit [Ping timeout: 256 seconds]
dnewkerk_ is now known as dnewkerk
Axy has joined #ruby
bruno- has joined #ruby
snath has quit [Ping timeout: 265 seconds]
khoan has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
Musashi007 has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
n008f4g_ has quit [Ping timeout: 255 seconds]
lenwood has quit [Ping timeout: 252 seconds]
firstdayonthejob has quit [Ping timeout: 268 seconds]
htmldrum has joined #ruby
danieli has quit [Quit: *does an epic backflip into nowhere*]
andywojo has joined #ruby
workmad3 has joined #ruby
sanjayu has joined #ruby
fullofcaffeine has joined #ruby
johnzorn has quit [Ping timeout: 264 seconds]
andywojo has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
johnzorn has joined #ruby
Musashi007 has quit [Quit: Musashi007]
workmad3 has quit [Ping timeout: 264 seconds]
<dorei> is there a less crappy alternative to activeresource ?
AlexRussia has quit [Ping timeout: 246 seconds]
hj2007 has joined #ruby
<toretore> plain http
chipotle has quit [Quit: cheerio]
urrr has quit [Quit: Leaving]
vgty has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
valkyrka has joined #ruby
Blaguvest has quit [Ping timeout: 256 seconds]
dopie has quit [Read error: Connection reset by peer]
bronson has joined #ruby
dopie has joined #ruby
benlieb has joined #ruby
mistym has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
adaedra has quit [Ping timeout: 256 seconds]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
adaedra has joined #ruby
<Radar> ^
bronson has quit [Ping timeout: 252 seconds]
ruurd has joined #ruby
goldfish2310 has quit [Remote host closed the connection]
danieli has joined #ruby
Diitto has quit [Quit: ZNC 1.6.1 - http://znc.in]
Diitto has joined #ruby
zenguy_pc has quit [Read error: No route to host]
snath has joined #ruby
snath has left #ruby [#ruby]
Diitto has quit [Client Quit]
Diitto has joined #ruby
Diitto is now known as Guest63911
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zuy has joined #ruby
I has joined #ruby
despai has joined #ruby
Guest63911 has quit [Changing host]
Guest63911 has joined #ruby
I is now known as Guest4640
Guest63911 is now known as Diitto
despai has quit [Client Quit]
ZucchiniZe has quit [Quit: Updating details, brb]
ZucchiniZe has joined #ruby
Guest4640 has quit [Client Quit]
despai has joined #ruby
valkyrka has quit [Ping timeout: 260 seconds]
dfockler has joined #ruby
JDiPierro has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zenguy_pc has joined #ruby
vdamewood has quit [Quit: Life beckons.]
JDiPierro has quit [Remote host closed the connection]
Ox0dea has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
<Ox0dea> 18>> puts 'No dots.' # baweaver
<ruboto> Ox0dea # => No dots. ...check link for more (https://eval.in/444438)
<Ox0dea> And no 0.49 support. :(
Zuy has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 240 seconds]
DoYouKnow has quit [Quit: Lost terminal]
bazbing80 has quit [Ping timeout: 246 seconds]
OrbitalKitten has quit [Read error: Connection reset by peer]
lipoqil has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 256 seconds]
Axy has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
Axy has joined #ruby
avdi has quit [Ping timeout: 240 seconds]
lipoqil has joined #ruby
avdi has joined #ruby
rfv has joined #ruby
QORRiE has quit [Remote host closed the connection]
leitz has quit [Quit: Nappy time]
<baweaver> ah, that'd do it
mary5030 has joined #ruby
skweek has quit [Quit: Leaving]
<Ox0dea> How to tell DelegateClass not to delegate certain methods?
devoldmx has joined #ruby
jun has quit [Remote host closed the connection]
<Ox0dea> I suppose I could just define #inspect for my thing, but it's confusing that it becomes the delegated class's by default.
Eiam_ has joined #ruby
<Ox0dea> On a related note, I found a segfault on trunk: https://eval.in/444440
* Ox0dea has a sick fascination with tracking down NULL dereferences.
<Ox0dea> #__send__ is apparently duper-special, so this'll be good: https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L2164
mary5030 has quit [Ping timeout: 255 seconds]
sp__ is now known as sp_
jun has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
Marsupermammal has quit [Ping timeout: 240 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<sp_> 23:48 * Ox0dea has a sick fascination with tracking down NULL dereferences.
<sp_> mmap_min_addr must have been a party.
hectortrope has joined #ruby