<phaul>
hm. it doesn't look nice, with all those messages sent to args, but I'm not sure how to improve on it
cc__ has quit [Ping timeout: 252 seconds]
<phaul>
maybe message could be transformed into something that just responds with exactly the format you want? then it would be message.formated
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
<phaul>
ofc then there is extra class, and message would be looking just as bad. alhtough there you might be able to isolate the separate steps into private instance methods
<phaul>
oh, that and the combination of e makes up the new class.. I'm not sure if this is actually better
orbyt_ has joined #ruby
gavlee has joined #ruby
<phaul>
you can do something more compact like message = nil if message.empty?; [message, e.message, e.backtrace].compact.join($/) more or less
<phaul>
you can use the splat here too, *e.backtrace to make it one array
<havenwood>
astronautical: Then you can use chruby. :)
<astronautical>
Thank you so much!
cc_ has quit [Remote host closed the connection]
<astronautical>
Oh since you're here, havenwood, got any suggestions for a good book on Ruby. I am gonna learn Rails next, just so you know. I am thinking to pick up POODR but I wanted a second opinion.
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
<leitz>
I have only used rspec and unittest, and rspec seems better for interacting with external things like DB queries. Of course, that may just be my lack of knowledge.
alexherbo2 has joined #ruby
postmodern has quit [Quit: Leaving]
<rg_3[m]>
sounds about right, testing is usually easier in rspec
jmcgnh has quit [Read error: Connection reset by peer]
jcalla has joined #ruby
<liKe2k1>
Now I'm a little bit confused. I completly disable the http boot feature (using old tftp style) but the error occurs too... wth!
chalkmonster has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
jmcgnh has joined #ruby
<liKe2k1>
After serval restarts of the foreman-proxy service it works now... hmm
mossplix has quit [Ping timeout: 272 seconds]
mossplix has joined #ruby
<adam12>
leitz: RSpec includes more out of the box. For a technical choice, I'd say that installing rspec is simpler than installing minitest, minitest-sprint, minitest-runners, minitest-hooks, minitest-focus, minitest-metadata, mocha.
<rg_3[m]>
i can't stand minitest tbh
<rg_3[m]>
using it made me hate it lol
alfiemax has joined #ruby
fig-le-deunch has joined #ruby
alfiemax has quit [Remote host closed the connection]
drincruz has joined #ruby
<leitz>
adam12, I was thinking about unittest, which seems to be installed by default. But, as an apprentice coder, I'd like to get *good* at one testing tool first, and RSpec seems to be a good choice.
<adam12>
leitz: Definitely spend the money on the RSpec book from PragProg.
<rg_3[m]>
isn't unit test Minitest powered nowadays?
<adam12>
leitz: You might find RSpec a little easier to get going with? Only because it ships with the runner, can run by line number, and displays failing tests.
<leitz>
adam12, I'd rather not do that, again. Already have it. Love it, too! It showed me stuff that helped my Sinatra-fu as well.
impermanence has joined #ruby
ttoocs has quit [Ping timeout: 272 seconds]
john2496 has joined #ruby
sdu has quit [Remote host closed the connection]
sdu has joined #ruby
HiChina has joined #ruby
<HiChina>
大家好
<HiChina>
我想问一下,有没有比较好的学习ruby的途径
markopasha has quit [Ping timeout: 265 seconds]
vdl has joined #ruby
DaRock has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Quit: dionysus69]
chalkmonster has quit [Quit: WeeChat 2.7.1]
sdu has quit [Remote host closed the connection]
HiChina has left #ruby [#ruby]
cnsvc_ has quit [Ping timeout: 240 seconds]
mossplix has quit [Remote host closed the connection]
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
hramrach has quit [Ping timeout: 240 seconds]
MrCrackPot has quit [Remote host closed the connection]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
cthulchu_ has joined #ruby
mossplix has joined #ruby
tau has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
citizentwo has joined #ruby
alfiemax has joined #ruby
StoneCypherWork has joined #ruby
mossplix has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
gix has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
cnsvc_ has joined #ruby
mossplix has joined #ruby
mossplix has quit [Ping timeout: 260 seconds]
codefriar has joined #ruby
<smoochsmooch>
leitz: I don't understand your hate towards Rails to be honest :)
fig-le-deunch has quit [Quit: Konversation terminated!]
<smoochsmooch>
It's the same as Sinatra except millions of more use it. If you want to strip it down to Sinatra-level, I don't see what's stopping you.
<tau>
i wish i knew rails.
<tau>
i postponed getting good with ruby for years.
<tau>
i kept using python all time. python jobs suck.
<tau>
people who deal with python are mostly scammers it seems.
<tau>
that may be due to the fact it is probably the most used language around also it is relatively easy to learn.
<tau>
so a lot of low morals ppl get into it.
StoneCypherWork has quit [Ping timeout: 255 seconds]
<tau>
something that annoys me in ruby it is the indenting and the end things. it makes code look messed up but ruby is itself a really powerful language.
<tau>
thats like me. ugly but powerful :P
<smoochsmooch>
leitz: Did you really register rubymentoring.org and .net? And under an anonymous name?
alfiemax_ has quit [Remote host closed the connection]
<smoochsmooch>
leitz: You better pay me 50% of your income from those sites for giving you the idea.
citizentwo has quit [Remote host closed the connection]
lineus has joined #ruby
clemens3 has quit [Ping timeout: 255 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Eiam has joined #ruby
prestorium has quit [Ping timeout: 258 seconds]
citizentwo has joined #ruby
LinuxKnight has quit [Ping timeout: 258 seconds]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
siery has quit [Ping timeout: 258 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
schne1der has joined #ruby
StoneCypherWork has quit [Ping timeout: 260 seconds]
apotheos is now known as apotheon
cisco has quit [Ping timeout: 240 seconds]
splud_wurk has joined #ruby
impermanence has quit [Ping timeout: 255 seconds]
<leitz>
smoochsmooch/ratah, sorry. No sense of humor today.
StoneCypherWork has joined #ruby
dhollinger has joined #ruby
<smoochsmooch>
leitz: Still odd that you registered the .org and .net right after I took the .com, and then immediately proceeding to disrespect Rails over PM.
<smoochsmooch>
Might be easy to create a basic market place, but to create a Ruby brand that'll resonate decades from now is a whole 'nother ball game. Especially one that doesn't make use of the traditional, over-used cut gem idea.
<smoochsmooch>
Ref. Adam Sandler's new award-winning movie Uncut Gems
StoneCypherWork has quit [Ping timeout: 255 seconds]
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
xxdxxd has joined #ruby
pupsikov has joined #ruby
ellcs has joined #ruby
coffeex3 has quit [Ping timeout: 260 seconds]
s2013 has quit [Ping timeout: 260 seconds]
StoneCypherWork has joined #ruby
cd has joined #ruby
ecrist has joined #ruby
<ecrist>
Hi folks. Maybe this has been asked already, but I'll be damned if I can find it. macOS Mojave (and others) include Ruby Gems as part of the base OS, on a SIP-protected path. Does anyone know know what Apple update upgrades them to to 3.1.2 from 2.5.2.3? Somewhere along the line, one of the 15 Macs I manage was updated, but the rest have not been. It's driving me crazy.
<leitz>
smoochsmooch/ratah, not sure what your concern is. In our PM, you were looking for a revenue stream. I'm not. You were looking for a larger system than I am. Our visions seem vastly different, and that's okay.
<leitz>
As far as sharing money, I don't plan on making any. I've done community websites before, so the idea isn't really new, nor is it something to get worked up about.
<smoochsmooch>
leitz: Don't get me wrong, I couldn't care less about revenue. My only vision was to create a place for mentors and mentees.
<smoochsmooch>
Your vision, however, seemed to just be copying mine. While at the same time disrespecting what many of us here stand for.
<leitz>
Well, how about this. I'll sell you the domains for exactly what I paid for them, and they'll be all yours. My vision is based of PHPMentoring, where I was a participant. And, of course, mentoring I've given and received over the years.
<smoochsmooch>
I don't want any beef with you. My only point was that Rails is a perfectly able Ruby web framework. And if you want to copy my ideas, you have a lot of work to do.
ellcs has quit [Ping timeout: 240 seconds]
<leitz>
Rails is an able web framework. No argument. Your ideas are yours, no argument there, either. The ideas you expressed to me, and my ideas, are vastly different. No real overlap.
cliluw has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
ellcs has joined #ruby
TzilTzal has quit [Quit: Leaving.]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
code_zombie has joined #ruby
xxdxxd has quit [Quit: xxdxxd]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
StoneCypherWork has quit [Ping timeout: 272 seconds]
cliluw has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
StoneCypherWork has joined #ruby
jenrzzz has joined #ruby
akemhp has quit [Remote host closed the connection]
akemhp has joined #ruby
Ai9zO5AP has joined #ruby
mossplix has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
StoneCypherWork has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
Inside has joined #ruby
<Inside>
Hey folks!
<adam12>
Inside: heyo!
<Inside>
Are there any concerns with upgrading from say.. ruby 2.4 to ruby 2.5?
<adam12>
Inside: Not normally. Biggest one right now is Ruby 2.7 has many _deprecation_ warnings.
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
<Inside>
ok, should I just jump to 2.6?
<adam12>
Inside: Sure. That's why you have good test coverage ;)
<Inside>
heh
Ai9zO5AP has quit [Ping timeout: 258 seconds]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
<adam12>
Inside: Ruby 3 will have some breaking changes around keyword args so 2.7 is prepping for that. I don't remember having any issues moving along 2.4, 2.5, etc.
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
<Inside>
This is the first time in a while that I've stumbled across a feature from a "future" version :p
<Inside>
That I wanted to have - so that's why I haven't been keeping current, heh.
<adam12>
Inside: Hah! Well it's a good idea to keep up with current releases, but definitely look at the backports gem.
<apotheon>
functions knowing what to do with your data
<apotheon>
operator overloading
noboruma has joined #ruby
citizentwo has quit [Remote host closed the connection]
<leitz>
apotheon, sorry. I'm such a newbie that I don't understand. We can already overload operators, right?
nowhere_man has joined #ruby
citizentwo has joined #ruby
troulouliou_dev has joined #ruby
<apotheon>
leitz: Ruby already had a type system, too.
<apotheon>
I'm not sure what's different about a type system in Ruby 3. I haven't really looked into it.
<apotheon>
Anyway, I was just answering the general question, not the Ruby-specific question.
citizentwo has quit [Remote host closed the connection]
<leitz>
Ah, thanks! I'm happy to stumble around with Ruby as is. Pretty fun to just get things done.
<apotheon>
I don't mean that operator overloading is *possible* because of a type system, but rather that operator overloading can be (more deterministically) used for benefits involving different datums with a solid type system.
<apotheon>
I like Ruby quite a lot.
<apotheon>
Maybe the biggest benefit of adding some kind of static-ish type system would be getting more developers to not reject Ruby on specious, prejudicial grounds.
<apotheon>
a technical solution to a social problem
<apotheon>
I should probably read something about Ruby 3 plans, so I have some clue what I'm saying.
<leitz>
Yeah, I get that as an idea. On the other hand, I think Ruby people are able to get things done pretty quickly. That's my future state, anyway.
<leitz>
If I can do a proof of concept in Ruby, then if computational performance or other factors necessitate a different language, we're already forward a bit and are finding the problems we wouldn't have known about otherwise.
troulouliou_dev has quit [Remote host closed the connection]
SeepingN has joined #ruby
<leitz>
Plus, it helped with my last job interview as well, even though they don't have any Ruby. :)
<apotheon>
cool
<apotheon>
I often get things done pretty quickly in Ruby.
<apotheon>
I often start with sh for very small things, then turn them into Ruby projects. For webdev, it's pretty much all Ruby all the time if there isn't some outside force pushing me to use something else.
citizentwo has joined #ruby
comet23 has joined #ruby
<comet23>
are there any ruby programming certifications
<leitz>
comet23, it depends. It will push you to understand Ruby, whether or not you can actually code in it. Some jobs require certification in some language, so it would answer that.
<leitz>
On the other hand, writing good code and participating in projects lets you build a "code resume" that potential employers can view. That may speak more for your CV than a certification, it depends on the company.
<leitz>
comet23, personally, I'm building my code resume. I'd like to do Ruby certification, but more as a self test. I'm not there yet.
<rubydoc>
# => {:T_NONE=>1803, :T_OBJECT=>0, :T_CLASS=>0, :T_MODULE=>0, :T_FLOAT=>0, :T_STRING=>0, :T_REGEXP=>0,... check link for more (https://carc.in/#/r/8m9d)
<al2o3-cr>
leitz: it means 8 objects are awaiting finalisation.
markopasha has joined #ruby
tau has quit [Read error: Connection reset by peer]
cnsvc_ has quit [Ping timeout: 240 seconds]
noboruma has quit [Ping timeout: 258 seconds]
al2o3-cr has quit [Quit: WeeChat 2.7.1]
royal_screwup21 has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
al2o3-cr has joined #ruby
troulouliou_dev has joined #ruby
noboruma has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
Macrobiotic has joined #ruby
noboruma has quit [Ping timeout: 255 seconds]
cliluw has quit [Ping timeout: 272 seconds]
cliluw has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
john2496 has quit [Remote host closed the connection]
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
<phaul>
&?botsnack
<rubydoc>
nomnomnomnom
<phaul>
so &ops, and &fact works, but fact raises a question. Do we want two set of deviating factoids with the two bots? Prly not. So for now rubydoc just shadows ruby[bot] with the facts seeded from the website