<WQX>
I think I understand more or less what my problem is, but I'm still not sure how to fix it
donofrio has quit [Remote host closed the connection]
<WQX>
how am I going to transform my arrays into matrix and combine them so that I get the correct result?
<leftylink>
I don't understand why a matrix is necessary. the original code without the `, i` worked without a matrix.
<leftylink>
you now understand that simpson_adaptief returns an array on line 34. you now understand that line 32 concatenates two arrays. from what you wrote in the code in line 40, it is evident that you know how to deal an array returned by simpson_adaptief. it would be wise to use that knowledge to deal with the problem on line 32.
Rudd0 has quit [Ping timeout: 258 seconds]
<WQX>
ok, I have a matrix, where the first column has 966 numbers, where I believe that the sum of these numbers is the erf (x) and the second column where all the numbers are equal to 10, is that it?
duderonomy has joined #ruby
<leftylink>
you have an array. no columns involved. but your statements about the numbers contained in that array are true
<WQX>
how do i get access to these numbers?
<leftylink>
also you'll see that not all the numbers are 10, but I suppose that's not important for now
TCZ has quit [Quit: Leaving]
<leftylink>
from the way you wrote `int, count = simpson_adaptief(a, b, 0)` I see it is evident you already know how to get access to these numbers.
<WQX>
adding the numbers of the matrix I get "4802.711155633651"
<leftylink>
it would be wise to use that knowledge to deal with line 32.
jenrzzz has joined #ruby
<leftylink>
you could deal with the array after it's been returned from `simpson_adaptief(a, b, 0)` on line 40, but isn't that weird? isn't it weird to have simpson_adaptief not return the result you're looking for, but instead return an array that you have to deal with to them get the result? wouldn't it be more understandable if simpson_adaptief(a, b, 0) would just return the desired result in the first place?
<leftylink>
so that is why I suggest taking the idea of `int, count = simpson_adaptief(a, b, 0)` from line 40 and applying this idea to line 32.
<leftylink>
a reminder that if this is done, it has not changed the fact that array + array still concatenates the arrays. assigning the first two elements of that result array to `int2` and `i` implies the code is intending to not using the information of the remaining elements.
<leftylink>
whether that is appropriate for the code in question depends on the purpose of the code
wwalker has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
<leftylink>
we already know the purpose of the code, so that purpose tells us whether that is appropriate.
<WQX>
is a friend I'm sorry for taking your time but I give up, thank you so much for your help, but I have no idea how to solve this problem
<WQX>
thank you very much for your help rubydoc
<WQX>
thank you very much for your help leftylink
<wwalker>
I've installed ruby with github.com/asdf-vm/asdf , mainly because rvm wasn't working. I have completely removed rvm from the entire system. Ruby is installed at /home/wwalker/.asdf/installs/ruby/2.7.1 but when I run "gem install yarn" it creates a new ~/.rvm/gems and installs gems in there. Why???
<wwalker>
There is no system ruby installed ('rpm -qa | grep ruby' outputs nothing). There is no rvm installed. The only thing I find is that `rake` has a task called ubuntu-rvm, but I'm not calling that task, nor am I on Ubuntu
LtHummus has joined #ruby
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
cnsvc has joined #ruby
elxbarbosa has quit [Remote host closed the connection]
dfucci has joined #ruby
jenrzzz has joined #ruby
wallace_mu has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
<shoshin>
wwalker: possible your shell env still has rvm stuff in it? Did you log out or start a new session?
ChmEarl has quit [Quit: Leaving]
powerhouse has quit [Quit: Leaving]
powerhouse has joined #ruby
<shoshin>
wwalker: I remember rvm being very persistent when I moved to asdf. There were several config files I had to manually remove rvm code from
jenrzzz has quit [Ping timeout: 260 seconds]
<WQX>
hello again, i was searching here on the internet and made a new modification in the code, apparently it worked, does anyone know how to explain what I did and why it worked?
<WQX>
it's giving error "undefined local variable or method `count' for main:Object", line 47
jenrzzz has quit [Ping timeout: 260 seconds]
<leftylink>
oh, that is actually interesting since I got a different number for the number of calls. but I have not determined whether my number is correct or incorrect. more study is needed.
<leftylink>
actually I cannot see a problem with the code that produced 965, nor a problem with my code that produced a different result, so this is a mystery indeed
<leftylink>
ah, I see now. I forgot to count non-leaves.
dvinciguerra has joined #ruby
<leftylink>
so I was incorrect, and there is no need to further discuss that other result
<shoshin>
WQX: sorry line 47 needs to have @count
<WQX>
but within the simpson_adaptief function (a, b) I have two recursive calls, which will call two more and so on, forming a tree, I think the external counter would not count the total number of calls in a tree, the number of calls that I got was 4802
adu has joined #ruby
<leftylink>
but the @count is incremented every time the function is called - how would that not count the number of calls? only if the function exits before gettging to line 29, but there is nothing that can cause it to do so
<leftylink>
perhaps we should run some experiments. a simpler recursive function whose expected number of calls is known to use beforehand.
<shoshin>
yeah i wanted to pull it out of the function itself so i didn't have to track so much math. my assumption is every time simpson_adaptief is called, no matter how deep in a tree, we increment by one
<WQX>
so what is the meaning of number 4802 that i found?
donofrio has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shoshin>
well, i tried running it and puts'ing i each iteration
<shoshin>
i noticed that i never went above 10
<shoshin>
actually 9
<shoshin>
so i think it got to depth 9 before coming back up, and summed all of the i's passed in to the function
<shoshin>
if you think about it, first time through 1 gets passed to both recursive calls, then each one will increment i to 2 and pass that to both calls
Rudd0 has joined #ruby
<shoshin>
and so on
<leftylink>
we wil use a simple function: `def halve_and_count(n); return n if n <= 1; half = n / 2; halve_and_count(half) + halve_and_count(n - half) end`
<WQX>
in this case, would that number (4802) be wrong?
<leftylink>
4802 would be wrong, since it's basically doing `each_leaf.sum { |leaf| leaf.depth }`
<leftylink>
but again, now we see for sure it is `each_leaf.sum { |leaf| leaf.depth }`
chouhoulis has quit [Ping timeout: 260 seconds]
<leftylink>
since there are four leaves all at depth 3
<leftylink>
so 4 * 3 = 12
<leftylink>
of course, there are many applications where that number *is* useflu
<shoshin>
you could do it by passing the count in, but you'd need to extract it from the algorithm summing logic, and probably pass i + 1 to the first call and i + 2 to the second, not increment it alone each loop
<WQX>
so the right number is 665?
<leftylink>
I don't think 665 is right. but I could be proven wrong with code that says why it's 665
<shoshin>
it was 965
<shoshin>
which corresponds pretty closely to the discussion far above, with an array of length 966
<shoshin>
not sure why off by one
<WQX>
shoshin: why did you use @count = 0 on line 42?
<leftylink>
because each leaf contributes 2 elements, and there are 483 leaves.
<shoshin>
start the counter at zero, since it increments by 1 before doing anything
<WQX>
shoshin: it was 965, but is that the exact amount?
<shoshin>
the @count creates an instance variable that is available and mutatable inside of the function
<WQX>
in this case, would that number (4802) be wrong?
<shoshin>
WQX: i'm fairly certain 965 is the number of times the function is called, 4802 seems to be the sum of the depth of each leaf of the tree?
<WQX>
shoshin: 4802 seems to be the sum of the depth of each leaf of the tree? apparently yes
<leftylink>
as can bee seen with the halve_and_count example above
howdoi has quit [Quit: Connection closed for inactivity]
<WQX>
actually I still don't quite understand the meaning of that number
<WQX>
leftylink: as can bee seen with the halve_and_count example above -> I think I understand
<leftylink>
try calling halve_and_count with various values for n and see what happens then.
cuerbot has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
<WQX>
could you indicate me some study material, so that i can use ruby for numerical analysis? and deepen my knowledge in ruby too, because it is very basic
dfucci has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
Rudd0^ has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
<WQX>
I would like to thank you shoshin, leftylink and rubydoc, you helped a lot, and forgive the difficulty of understanding some things is that I don't speak English very well either, but thanks so much for the help
scrote has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
WQX has left #ruby [#ruby]
elcontrastador has joined #ruby
burgestrand has joined #ruby
adu has quit [Quit: adu]
burgestrand has quit [Ping timeout: 240 seconds]
Tempesta has quit [Quit: See ya!]
mozzarella has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
finn[m] has quit [Changing host]
finn[m] has joined #ruby
finn[m] has quit [Changing host]
finn[m] has joined #ruby
alfiemax has quit [Remote host closed the connection]
thisirs has joined #ruby
thisirs has quit [Remote host closed the connection]
teclator has joined #ruby
adu has joined #ruby
dvinciguerra has quit [Quit: Connection closed for inactivity]
dfucci has joined #ruby
cd has quit [Quit: cd]
dfucci has quit [Ping timeout: 260 seconds]
adu has quit [Quit: adu]
mnathani has quit []
dfucci has joined #ruby
phage has joined #ruby
burgestrand has joined #ruby
alfiemax has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has joined #ruby
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phage has joined #ruby
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phage has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imode has quit [Ping timeout: 246 seconds]
akem_ has quit [Remote host closed the connection]
Itsame1 has joined #ruby
Itsame1 has quit [Client Quit]
chouhoulis has joined #ruby
schne1der has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
brendan- has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
<rapha>
hi all
brendan- has quit [Ping timeout: 258 seconds]
<rapha>
soo, after "gem uninstall <gem>" and then "bundle install" (which reinstall <gem>) and then running a Rakefile that has "require <gem>", I'm getting "LoadError: cannot load such file -- <gem>". What the heck? (FWIW, it's not one from rubygems.org, but from a Git repository)... how do you figure out what's going on here?
cnsvc has quit [Ping timeout: 240 seconds]
aesthe has joined #ruby
<rapha>
nevermind, found out about Bundler.require(:default) :)
ur5us has joined #ruby
fercell has quit [Quit: WeeChat 2.9]
fercell has joined #ruby
dvinciguerra has joined #ruby
splud has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
napcae has quit [Quit: %bye%]
cliluw has joined #ruby
napcae has joined #ruby
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fly has joined #ruby
phage has joined #ruby
<fly>
https://dpaste.org/43DD so, I'm naively thinking this would output just "chat" but it outputs "chat" twice
probonic1 is now known as probonic
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<burgestrand>
fly ^ you can give String#[] a try in case you only want the matched string, e.g. `x[/^\w+/]` — that'd give you just "chat" as a result
<jhass>
fly: swap puts with just p to better understand what's happening
alexherbo26 has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
burgestrand has quit [Quit: burgestrand]
akem has quit [Ping timeout: 240 seconds]
aesthe has quit [Quit: Leaving]
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has joined #ruby
phage has joined #ruby
infinityfye has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
TCZ has joined #ruby
rippa has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
burgestrand has joined #ruby
jenrzzz has joined #ruby
fercell has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
infinityfye has quit [Ping timeout: 258 seconds]
infinityfye has joined #ruby
Mia has quit [Read error: Connection reset by peer]
infinityfye has quit [Ping timeout: 256 seconds]
infinityfye has joined #ruby
akem has joined #ruby
jenrzzz has joined #ruby
prp-e has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<prp-e>
Hello guys. I have a question about "optparse". I'm working on a CLI tool and it needs to be something like "cli-tool --a param --b param1 --c param2" and I used optparse, it only takes one flag. How can I handle multiple flags using optparse?
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
weego has joined #ruby
drincruz has joined #ruby
akem has quit [Ping timeout: 256 seconds]
prestorium has joined #ruby
jenrzzz has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<prp-e>
Thanks leftylink, It covers what I'm looking for!
cow[moo] has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
TCZ has quit [Quit: Leaving]
rubydoc_ has joined #ruby
rubydoc has quit [Ping timeout: 258 seconds]
phaul has quit [Ping timeout: 272 seconds]
Swyper has quit [Remote host closed the connection]
phaul has joined #ruby
Swyper has joined #ruby
troulouliou_div2 has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
zyextant has joined #ruby
infoyk has joined #ruby
jenrzzz has joined #ruby
troulouliou_div2 has quit [Ping timeout: 265 seconds]
drincruz has joined #ruby
troulouliou_div2 has joined #ruby
GarethAdams has joined #ruby
infinityfye has quit [Ping timeout: 260 seconds]
infinityfye has joined #ruby
GarethAdams has quit [Client Quit]
somedude has joined #ruby
<somedude>
how to array.push(variable) with variable copy instead of reference?
<somedude>
help
somedude has quit [Remote host closed the connection]
<leftylink>
... seriously? I don't even gt 3 fing minutes to type my response?
<leftylink>
okay, that person must not have wanted help very much, so it's logical to not worry about it
TCZ has joined #ruby
fly has left #ruby [#ruby]
<nakilon>
you could type ".dup" in 3 seconds
Swyper has quit []
drincruz has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
drincruz has joined #ruby
Tempesta has joined #ruby
wallace_mu has joined #ruby
weego has quit [Ping timeout: 240 seconds]
weego has joined #ruby
supercoven has joined #ruby
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phage has joined #ruby
Tempesta has quit [Quit: See ya!]
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
dvinciguerra has quit [Quit: Connection closed for inactivity]
leitz has joined #ruby
phage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meinside has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
banisterfiend has joined #ruby
akem has joined #ruby
TCZ has quit [Quit: Leaving]
schne1der has quit [Ping timeout: 256 seconds]
Tempesta has joined #ruby
zyextant has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
infoyk has left #ruby ["WeeChat 2.9"]
BH23 has quit [Remote host closed the connection]
BH23 has joined #ruby
alfiemax has joined #ruby
burgestrand has quit [Quit: burgestrand]
impermanence has joined #ruby
imode has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Rudd0^ has quit [Ping timeout: 246 seconds]
cthulchu_ has joined #ruby
elcontrastador has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
<leitz>
Theoretical question: Person A has more non-work code contributions, Person B has more familiarity with the language(s) your team uses. All else being equal, who would you recommend?
nofxx_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
Fort has joined #ruby
<havenwood>
leitz: Recommend for what?
<havenwood>
leitz: Ah, for a coding job?
<jhass>
on those metrics alone, none
<jhass>
and in general those metrics would be quite far down on my list of things
<leitz>
havenwood, yes, sorry. It's been in my head for a bit and I forgot to explain it well.
<leitz>
jhass, understood. I had a great interview a few weeks ago and it played to my strengths; a Linux guy becoming a programmer guy. Not getting the job, and the not-really-interested interactions from some of the key interviewers beat the crap out of my ego.
<leitz>
I much prefer Ruby, but Python is more used in my domain. My current work (Perl) may end in a few months and I need to figure out how to convince the next hiring team that I'm worth hiring.
nofxx_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
<apotheon>
leitz: the person with more non-work code contributions, all else being equal
nofxx has joined #ruby
<apotheon>
. . . but that's not much to go on
<apotheon>
leitz: Most hiring managers would definitely lean toward "more familiarity with the language(s) [their] team uses", though.
<leitz>
apotheon, that's the path I've been on, and would like to continue. I just don't know if it's the right path. In the "all else being equal" side of things I work on whatever skills seem commonly needed.
<apotheon>
leitz: In fact, most of them would probably choose more *work* experience, specifically, with the particular languages and toolsets the team uses, *and* would prioritize that over other factors that are actually more important.
<leitz>
apotheon, that's part of my worry. Perl is a pretty strong language, and if I really enjoyed it I could probably make a career of it.
<apotheon>
Specific tool familiarity is, in most of corporate America at least, necessary just to get in the door at all -- so your ability to work with a team, to reason well about code structure, and so on, are very much secondary.
TCZ has quit [Quit: Leaving]
<leitz>
apotheon, when I move to a new team I use the team's choice of tools for personal projects so I can learn faster and ramp up quicker. I did that with Perl, but then found myself coding less and less.
<apotheon>
People who like Ruby per se are probably more likely to hire someone who likes Ruby and has off-work code contributions, but people who just use Rails might specifically want people who have a lot of Rails experience.
<apotheon>
The professional culture around Rails is more "typical", I think, in that way.
<apotheon>
There was a time when I loved Perl, but now . . . it doesn't thrill me at all.
<leitz>
With Ruby I know enough to start learning things I don't yet know well, like Design Patterns, multiple database connectivity, etc.
<apotheon>
That time was fifteen years ago.
<leitz>
For me it was about twenty-ish years ago.
<apotheon>
I was writing some Perl twentyish years ago.
<apotheon>
. . . but until fifteen years ago I still really enjoyed it.
<w10x12>
stupid question: what kinds of ruby jobs exist outside of Rails?
<leitz>
My current plan is to use Ruby and a few tools to build a small personal project, and use that as a part of my resume.
<apotheon>
stupid answer: very few, in my observation
weego has quit [Ping timeout: 260 seconds]
<w10x12>
that was my assumption
Rudd0 has joined #ruby
<apotheon>
I think there are some jobs that *also use Ruby without Rails*, but not so many that are *just non-Rails Ruby jobs*, if you know what I mean.
<leitz>
w10x12, if you go to Dice.com and put in "ruby and not rails" you'll get a few. Mostly DevOps stuff that uses Chef or Puppet. Or that use Ruby as one of the languages they hope you know, even though they use something else.
<apotheon>
It's sad. I'd probably love a non-Rails Ruby job.
weego has joined #ruby
<apotheon>
Then again, many Rubyists probably would, so I'd have a lot of competition.
<apotheon>
Oh, yeah, I forgot about Chef and Puppet, but I wouldn't even really consider that a Ruby job, exactly.
<apotheon>
It's just a "DevOps job" that brushes up against Ruby a little.
<leitz>
apotheon, Jay McGavren wrote both the Head First Ruby and Head First Go books. I asked him about rapid prototyping, and he said nothing beat Ruby for that.
<apotheon>
If something *does* beat Ruby for that, it's probably something for which there are no readily accessible job postings.
<leitz>
I wonder if a market niche could be filled by doing rapid prototyping of a design, and then giving the customer lessons learned for their formal specification efforts. Many domain issues are not found until you're actually into the code.
<apotheon>
leitz: A project architecture consultancy seems like that market niche.
<apotheon>
The client wouldn't have any reason to even know what you're using as your prototype language unless you want them to know, probably.
alexherbo26 has quit [Ping timeout: 256 seconds]
<apotheon>
The fact that issues are often found while coding is one of the insights that lends a lot of value to agile software development.
<apotheon>
(design issues, that is)
<apotheon>
Using Ruby would be a competitive advantage for an architecture consultancy like that, as a rapid prototyping language.
<apotheon>
The same might be true of Common Lisp for some broad domains.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apotheon>
A different competitive advantage might apply to use of something like Haskell.
<apotheon>
Depending on the use case, all of those could be used the way you describe for consulting on project architecture specs for big Java projects.
<apotheon>
Ruby might be the closest fit for the majority of big Java projects, though.
<apotheon>
Actually, that might also be a fantastic prototyping use case for Smalltalk.
troulouliou_div2 has quit [Quit: Leaving]
BSaboia has joined #ruby
<leitz>
Cool. Now I just need to figure out my learning path and ways to convince people to hire me. :)
<leitz>
Or accept that the market has spoken and roll with it.
<apotheon>
My working life has been weird.
<apotheon>
Jobs fall in my lap, or I don't get them. That's it, other than the kinds of jobs they'll give to basically anyone (e.g. fast food when I was a teenager).
Rudd0^ has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
voker57 has quit [Quit: No Ping reply in 180 seconds.]
Querens_ has quit [Quit: No Ping reply in 180 seconds.]
Querens has joined #ruby
voker57 has joined #ruby
banisterfiend has joined #ruby
ChmEarl has joined #ruby
<leitz>
I think larger corporations might be more open to "something like what we use", so Ruby and Perl would work even if they used Python.
<leitz>
I saw one job spec that required a language certification. Didn't matter which one, just that the applicant had one.
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prestorium has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
eddof13 has joined #ruby
alfiemax_ has joined #ruby
<havenwood>
leitz: I see most interviews in a language of your choosing. The assumption is you can learn whatever language the team is using for a project if you can code fluently in any other language.
<havenwood>
leitz: There are some jobs where a particular stack is a requirement, no doubt. In general, I'd advise showing you can code and not worrying as much in what language.
alfiemax has quit [Ping timeout: 256 seconds]
<leitz>
havenwood, thanks. That's encouraging, and muchly needed at the moment.
TomyWork has quit [Quit: Leaving]
dfucci has quit [Ping timeout: 240 seconds]
splud has joined #ruby
Mia has quit [Read error: Connection reset by peer]
BSaboia has quit [Quit: This computer has gone to sleep]
kaivai has joined #ruby
cnsvc has joined #ruby
banisterfiend has joined #ruby
<apotheon>
leitz: Yeah, *interviews* tend to be more friendly to "whatever language you want" than resume requirements.
<leitz>
apotheon, so I just need to convince them about how awesome I am in the interview. :) I don't mind (re-) learning other languages, and have worked at being able to do the basics.
banisterfiend has quit [Ping timeout: 240 seconds]
prp-e has quit [Quit: Leaving]
ramfjord has joined #ruby
burgestrand has joined #ruby
cyrus_mc_ has joined #ruby
cyrus_mc_ has left #ruby [#ruby]
WQX has quit [Ping timeout: 246 seconds]
WQX has joined #ruby
Sauvin has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
MrCrackPot has quit [Max SendQ exceeded]
MrCrackPot has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
<nakilon>
I remember how in a "larger corporation" I was starting the codebase from zero, because I was the only team member at that time but whatever I was making I was forced to rewrite it then from Ruby to Python
<apotheon>
Why?
<nakilon>
because larger corporations are slower adapting to newer technologies
<apotheon>
Maybe they're slower because they're so busy rewriting everything.
<baweaver>
Eh - They're both the same age.
<baweaver>
You sure the company didn't have existing Python code?
<apotheon>
. . . for no good reason.
<apotheon>
I assumed nakilon meant "new to the corporation".
<nakilon>
now 7 years later I look at it -- the software and browser engine related testing -- it's all about Ruby, Capybara, etc. today -- maybe they are even already migrating to Ruby but it was so important for them to force me waste my time
<baweaver>
Not 100% sure you're in the right there
<apotheon>
Bureaucracies annoy the crap out of me.
<baweaver>
If Python is already a primary language there Ruby makes no sense to onboard
<baweaver>
but if neither are present and it's a true greenfield that changes the equation
<nakilon>
baweaver there was no existing Python code -- no one was testing desktop applications at that time in the company
<nakilon>
even the only dependency ("LDTP", made by some Indian from VMware) was language agnostic
prestorium has joined #ruby
<nakilon>
also in "larger corporations" it's about about someone's "career progression" so decisions sometimes are being taken not based on technologies but on personal ambitions, like for example, in that case my boss was an ex manual tester and could differ Ruby from Python only by file extension
powerhouse has quit [Ping timeout: 240 seconds]
<nakilon>
it was almost anecdotal, when he was doing 2-3 interviews per week and could not find anyone for a whole year, because "wtf, I asked this guy to write tests and he wrote some nonsense, there is no even a single 'assert' in his code... btw, wtf is 'should'? damn Rubyists are so lame"
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax_ has quit [Remote host closed the connection]
<nakilon>
so he immediately rejected Rubyists while Pythonists could not pass standard programming questions on later interview stages; just an example how not technologies or even technology-specific specialists existence was leading the project but only beliefs of a guy who even can't code ..D
MrCrackPot has quit [Quit: Leaving]
<apotheon>
Hopefully those Rubyists got jobs working for better bosses than that guy.
powerhouse has joined #ruby
supercoven has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
georgie has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 256 seconds]
<wwalker>
shoshin: Thank you. You are probably right. It may have been in my shell. I did all kinds of 'locate' and 'grep -ril', but didn't think to clear my running shell environemnt :head-desk:
ramfjord has joined #ruby
kristian_on_linu has joined #ruby
duderono_ has quit [Ping timeout: 256 seconds]
zen4 has joined #ruby
<zen4>
Hello!
<havenwood>
zen4: Hi!
<zen4>
I have a small prob
<havenwood>
zen4: Pray tell?
<zen4>
with ruby interpreter
prestorium has quit [Quit: prestorium]
<zen4>
My ruby interpreter became corrupt...., and the ruby folder in the start menu is also deleted. How to access he irb ?
burgestrand has quit [Quit: burgestrand]
<havenwood>
zen4: What happens if you type `irb` in your terminal?
ur5us has joined #ruby
<havenwood>
zen4: Show an error you're getting?
zen4 has quit [Ping timeout: 245 seconds]
schne1der has joined #ruby
<havenwood>
Seems they left. I wonder what installation gives an irb link in Windows Start menu?
<havenwood>
Hem.
ramfjord has quit [Ping timeout: 272 seconds]
impermanence has quit [Ping timeout: 246 seconds]
ur5us has quit [Quit: Leaving]
duderonomy has joined #ruby
ur5us has joined #ruby
georgie has quit [Remote host closed the connection]
<gitter1234>
Hi! How do I deal with genders in Devise? My user model has `gender:integer` and `seeking_gender:integer` as well as `enum gender: [male, :female]`. But when signing up, I get `* Gender can't be blank` and `* Seeking gender can't be blank`, despite not having these in `validates_presence_of`. Anybody know why?