jready has quit [Remote host closed the connection]
gizmore has joined #ruby
alfiemax has joined #ruby
gizmore|2 has quit [Ping timeout: 265 seconds]
za1b1tsu has joined #ruby
weaksauce has quit [Ping timeout: 265 seconds]
jready has joined #ruby
peterR`` has quit []
wget has joined #ruby
wget has joined #ruby
wget has quit [Changing host]
alfiemax has quit [Ping timeout: 268 seconds]
za1b1tsu has quit [Ping timeout: 256 seconds]
wget has quit [Ping timeout: 265 seconds]
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
vutral|kali has quit [Quit: Lost terminal]
Asher has quit [Read error: Connection reset by peer]
jready has quit [Remote host closed the connection]
Asher has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
alfiemax has joined #ruby
carbivore has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 265 seconds]
emilford has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
emilford has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
wget has joined #ruby
wget has joined #ruby
wget has quit [Changing host]
Andrevan has quit [Quit: WeeChat 2.1]
emilford has quit [Ping timeout: 260 seconds]
wget has quit [Ping timeout: 265 seconds]
emilford has joined #ruby
mzo has quit [Ping timeout: 265 seconds]
cyberg has quit [Quit: Leaving]
darkhanb has joined #ruby
emilford has quit [Remote host closed the connection]
emilford has joined #ruby
rkazak has joined #ruby
emilford has quit [Ping timeout: 268 seconds]
emilford has joined #ruby
wget has joined #ruby
wget has joined #ruby
wget has quit [Changing host]
alfiemax has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
emilford has joined #ruby
emerson has joined #ruby
wget has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
OMGBloopMonster has left #ruby ["WeeChat 2.1"]
BloopMonsterOMG has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
carbivore has joined #ruby
wget has joined #ruby
emilford has joined #ruby
cadillac__ has joined #ruby
cadillac_ has quit [Ping timeout: 276 seconds]
cadillac__ is now known as cadillac_
vikaton has quit [Quit: Connection closed for inactivity]
Vingador_ has joined #ruby
wget has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
Vingador__ has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
Vingador has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
BloopMonsterOMG has quit [Quit: WeeChat 2.1]
Vingador_ has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 265 seconds]
wget has joined #ruby
karapetyan has joined #ruby
Andrevan has joined #ruby
ta_ has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
wget has quit [Ping timeout: 265 seconds]
karapetyan has quit [Ping timeout: 248 seconds]
emilford has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
emilford has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
braincrash has quit [Quit: bye bye]
emilford has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
edwardly has quit [Ping timeout: 265 seconds]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
eelster has joined #ruby
AJA4350 has quit [Quit: AJA4350]
ta_ has quit [Ping timeout: 265 seconds]
houhoulis has joined #ruby
carbivore has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wget has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
wget has quit [Ping timeout: 265 seconds]
SegFaultAX has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 2.1]
emilford has quit [Ping timeout: 265 seconds]
emilford has joined #ruby
alfiemax has joined #ruby
G_ has quit [Ping timeout: 245 seconds]
Liothen has quit [Ping timeout: 260 seconds]
<derp10327>
Tried my hand at writing my own Domain Specific Language today
<derp10327>
did not go well, nearly a complete waste of time
G has joined #ruby
<derp10327>
On another note, I am pretty irritated with people saying that Node is the top language to learn simply because "there are so many modules added per day" if you take a look at NPM in descending alphabetical order, most of the modules do nothing
ur5us has joined #ruby
Liothen has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
SegFaultAX has joined #ruby
gix has joined #ruby
<Guest9089>
Wait, you mean I don't need a third party module and all of its dependencies just to leftpad a number?
ur5us has quit [Ping timeout: 265 seconds]
Guest9089 is now known as Cyrus
gix- has quit [Ping timeout: 268 seconds]
emilford has quit [Ping timeout: 265 seconds]
jamesaxl has quit [Quit: WeeChat 2.1]
tdy has joined #ruby
emilford has joined #ruby
Yzguy has joined #ruby
face has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
zautomata1 has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
wget has joined #ruby
emilford has joined #ruby
zautomata has quit [Ping timeout: 268 seconds]
wget has quit [Ping timeout: 265 seconds]
emilford has quit [Ping timeout: 248 seconds]
emilford has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
dinfuehr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edwardly has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
TinkerT has quit [Read error: Connection reset by peer]
edwardly has joined #ruby
TinkerT has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
<baweaver>
derp10327: then don't listen to them
<baweaver>
People pick a language, and then go to great lengths to justify it
<baweaver>
Some are even foolish enough to assume that means all other languages are bad, or "not as good"
ogres has quit [Quit: Connection closed for inactivity]
Vingador has joined #ruby
alfiemax has joined #ruby
Vingador__ has quit [Ping timeout: 248 seconds]
jready has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Yzguy has quit [Quit: Zzz...]
orbyt_ has joined #ruby
rkazak has quit [Read error: Connection reset by peer]
orbyt_ has quit [Ping timeout: 240 seconds]
wget has joined #ruby
jready is now known as residentbiscuit
dendazen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wget has quit [Ping timeout: 265 seconds]
mn3m has quit [Quit: mn3m]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
<derp10327>
ecactly
wget has joined #ruby
wget has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
residentbiscuit has quit [Quit: letting the sweet embrace of sleep take over like a warm swim through a death]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
houhoulis has quit [Remote host closed the connection]
shinnya has joined #ruby
alfiemax_ has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
Vingador_ has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
wget has joined #ruby
wget has quit [Ping timeout: 265 seconds]
dar123 has joined #ruby
halt- has quit [K-Lined]
quobo has quit [Quit: Connection closed for inactivity]
podlech has joined #ruby
podlech has quit [Client Quit]
thinkpad has quit [Quit: lawl]
thinkpad has joined #ruby
howdoi has joined #ruby
wget has joined #ruby
armyriad has quit [Quit: Leaving]
wget has quit [Ping timeout: 265 seconds]
suukim has joined #ruby
Vingador has joined #ruby
Vingador_ has quit [Ping timeout: 245 seconds]
Vingador__ has joined #ruby
reber has joined #ruby
Vingador has quit [Ping timeout: 248 seconds]
_whitelogger has joined #ruby
drumitar has joined #ruby
ellcs has joined #ruby
zautomata1 has quit [Quit: WeeChat 1.9.1]
alfiemax_ has quit [Remote host closed the connection]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<agent_white>
Languages are different, not bad... though there's Java... ;P
schleppel has joined #ruby
alfiemax has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
wget has joined #ruby
wget has quit [Ping timeout: 245 seconds]
ren0v0 has quit [Quit: cya!]
Vingador has joined #ruby
Vingador__ has quit [Ping timeout: 256 seconds]
dhollin3 has joined #ruby
wget has joined #ruby
dhollinger has quit [Ping timeout: 248 seconds]
wget has quit [Ping timeout: 265 seconds]
Vingador has quit [Remote host closed the connection]
AJA4350 has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
apparition has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
ciscam has quit [Ping timeout: 265 seconds]
ciscam has joined #ruby
desperek has joined #ruby
kapil___ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
wget has joined #ruby
wget has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
plexigras has joined #ruby
zenspider has quit [Read error: No route to host]
zenspider has joined #ruby
wget has joined #ruby
_whitelogger has joined #ruby
halt has joined #ruby
halt is now known as Guest75272
ta_ has joined #ruby
pabs has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
amar has quit [Read error: Connection reset by peer]
amar_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
ellcs has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
Mia has joined #ruby
ldepandis has joined #ruby
thinkpad has quit [Max SendQ exceeded]
thinkpad has joined #ruby
thinkpad has quit [Quit: lawl]
thinkpad has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
thinkpad has quit [Client Quit]
biberu has quit []
alex`` has joined #ruby
Tempesta_ has joined #ruby
thinkpad has joined #ruby
stansmith has joined #ruby
Tempesta has quit [Ping timeout: 240 seconds]
chmurifree has joined #ruby
pabs has quit [Ping timeout: 265 seconds]
stansmith has quit [Client Quit]
pabs has joined #ruby
amelliaa has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgimian has joined #ruby
<fgimian>
Hey guys, I'm attempting to replace some code that uses URI.encode (which I know is now deprecated). The problem is that I am trying to encode a file:// path based on a directory name. e.g. "/Users/fots/Downloads/Audio Software/myapp v1.0.0.zip"
<fgimian>
So far, I've come up with this -> path.split('/').map { |i| ERB::Util.url_encode(i) }.join('/')
<fgimian>
is there any other better way to do this that I'm missing?
<fgimian>
in Python I can simply use urllib.parse.quote(path) and that works more similarly to URI.encode in Ruby, but I couldn't see any other way to do this in Ruby land
ecksian has quit [Quit: Connection closed for inactivity]
parzydeuko has joined #ruby
wget has quit [Ping timeout: 265 seconds]
wget has joined #ruby
jamesaxl has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
thebetrayer has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
<derp10327>
meh I lie java agent_white, granted it was my first language I really learned
jrafanie has joined #ruby
<derp10327>
fgimian, define "better" and I'm sure someone on here (who surely knows ruby more than I do lol) will be able to help you more directly
<fgimian>
@derp10327 well, perhaps a more elegant approach that doesn't involve splitting on '/'. I did in fact just discover that the addressable gem provides a safe Addressable::URI.encode function which I've decided to go with.
<derp10327>
Ahh, see I was assuming you meant performance-wise
<fgimian>
nah, but good thinking; fortunately in this scenario, I'm just focused silencing rubycop
<fgimian>
hehehe
<fgimian>
:)
<derp10327>
I'm sure there are more eloquent ways, I've seen some crazy Ruby solutions since I started the other day :P
emilford has quit [Ping timeout: 265 seconds]
emilford has joined #ruby
tomphp has joined #ruby
<fgimian>
hehehe @derp10327, yeah, Ruby has heaps of tricks up its sleeve
<fgimian>
I'm a Python guy, but I'm using Ruby in certain places, and also learning a new language called Crystal which is very similar to Ruby
<fgimian>
all beautiful languages :)
<derp10327>
I always figured Ruby couldn't be "powerful" simply because of the fact it lacks so many things I'm used to seeing as core features in programming languages I enjoy (basic example: requiring the type of object used to be declared for each variable)
<fgimian>
ah, if you like static typing then you *should* check out Crystal hehe
<fgimian>
but interpreted languages can do just fine without static typing, moving back to a statically typed language is actually pretty tough
<derp10327>
I've been wanting to! I just can't bear to use any IDE that isn't JetBrains so I need to figure out the right plugins and filewatchers lol
heftig has quit [Quit: heftig]
<fgimian>
oh haha, well there is indeed an IDE for Ruby BY JetBrains
<fgimian>
there's also one for Python called PyCharm
<agent_white>
Could also use a text-editor so you're not reliant on IDE clicky-buttons
<fgimian>
I do tend to agree, I'm more than happy with Sublime Text personally. But VS Code is also wonderful and free.
<fgimian>
but it's the end result that matters the most, if you like using an IDE and it makes your code better, then why not! :)
<agent_white>
Yep exactly. I just never could get into IDE's personally.
<fgimian>
I'm with ya, I've tried but no go for me either.
ta_ has joined #ruby
<fgimian>
I think the JetBrains ones could be ones that I can adapt to, I spent ages customising PyCharm and got pretty close to an ideal environment.
emilford has quit [Ping timeout: 256 seconds]
<fgimian>
But at the end of the day, Sublime Text = <3
<fgimian>
biggest gripe with the JetBrains IDEs is that they barely respect OS conventions in the way they work; keyboard shortcuts and even editing behaviour
<fgimian>
with several plugins and lots of key mapping, you can improve this a lot, but still ... I think it's silly
emilford has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
dendazen has joined #ruby
fgimian has quit [Ping timeout: 265 seconds]
emilford has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
emilford has joined #ruby
Puffball has joined #ruby
cyberg has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
foxxx0 has quit [Quit: foxxx0]
tomphp has joined #ruby
tomphp has left #ruby [#ruby]
foxxx0 has joined #ruby
nixpulvis has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 240 seconds]
<nixpulvis>
FactoryBot... really -.-
<nixpulvis>
2016 really messed with people's heads.
<apeiros>
nixpulvis: seriously? if you just came in here to whine about people trying to make things more welcoming to women, you can leave again right away
<nixpulvis>
pretty much
<apeiros>
do I have to show you the door then or do can you manage to leave on your own?
<nixpulvis>
I mean, I'm rehashing some old shit, but I'd hardly call it a strick against "welcoming(ness) for women".
<nixpulvis>
strike*
<nixpulvis>
but, go ahead... prove my point. Ban me.
<apeiros>
!ban ok, good bye. your misogynistic bullshittery is not needed here
<ruby[bot]>
apeiros: Could not process command, usage: !ban nick [channel] [duration] [reason][ "|" secret_reason]
<apeiros>
!ban nixpulvis ok, good bye. your misogynistic bullshittery is not needed here
nixpulvis was kicked from #ruby by ruby[bot] [ok, good bye. your misogynistic bullshittery is not needed here]
<apeiros>
I have zero patience with such nonsense.
<reaVer>
making things more welcome to women?
<reaVer>
your head is definitely screwed on the wrong end of your body
<apeiros>
!ban reaVer good bye to you too then
reaVer was kicked from #ruby by ruby[bot] [good bye to you too then]
<apeiros>
was to be expected that they came in a pack.
ta_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 265 seconds]
CcjDoK has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
PhiSyX has joined #ruby
CcjDoK has quit [Client Quit]
<mozzarella>
I don't understand the issue
<mozzarella>
what is this about?
<apeiros>
if you really care, I'll explain over in #ruby-offtopic.
alfiemax has joined #ruby
dendazen has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
dinfuehr has joined #ruby
thebetrayer has quit [Ping timeout: 265 seconds]
<Zarthus>
I'm so disappointed "GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS" in the readme of ractory_bot didn't do whatever my expectations were.
<agent_white>
Did you make sure to create the giant robots first?
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 265 seconds]
<agent_white>
If you don't give them color coded vests, gleaming pendants (ones that don't pinch when you put them on of course) and comfy boxing gloves how do you expect them to battle?
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pabs has quit [Ping timeout: 245 seconds]
<foobarbaz>
I once fell in love with a language called Ruby. It was for a couple of foxes, and the unlimited power of the `class`. Nobody else can do what Ruby can do, I'd proclaim. The best gift of all, confidence to persue a deeper understanding. Why then after all this time must I still feel like a n00b.
<andrewray>
I don't understand how this works: [1,2,3].select().next.next since [1,2,3].select().next.class.name is Fixnum
<dminuoso>
> [1.2.3].select.class
<dminuoso>
>> [1.2.3].select.class
<andrewray>
I understand it's an enumerator, but .next is a fixnum
<ruby[bot]>
dminuoso: # => /tmp/execpad-bbf5315cd72b/source-bbf5315cd72b:2: unexpected fraction part after numeric literal ...check link for more (https://eval.in/1014435)
<andrewray>
i'm learning all about the horrible ins and outs of ruby's core today, it's frustrating
<dminuoso>
Good luck.
<dminuoso>
andrewray: Some hugs parts of it disgusted me.
<andrewray>
is there an equivalent "good parts of javascript" book for ruby? i'm reading "eloquent ruby" but it seems to tell you to use the bad parts as first class
guille-moe has quit [Ping timeout: 256 seconds]
<apeiros>
dminuoso: I guess we need to build a bot fleet then which takes turn in responding to requests ;-)
<dminuoso>
andrewray: haha. "good parts of javascript"
roshanavand has joined #ruby
<dminuoso>
it was a very thin book indeed
emilford has quit [Ping timeout: 256 seconds]
<dminuoso>
andrewray: There's very little literature relating Ruby to its strengths in comparison to other languages.
<apeiros>
the foreword was about "with" 😂
emilford has joined #ruby
<andrewray>
dminuoso: i don't mean in comparison to other languages, i mean that acknowledges the bad parts of ruby and helps point out what to avoid and what to embrace
alfiemax has quit [Remote host closed the connection]
BloopMonsterOMG has joined #ruby
<dminuoso>
andrewray: Just as a challenge: Try to define what `next` does in Ruby. =P
roshanavand has quit [Client Quit]
<dminuoso>
It's something you see popping up in Ruby 101 books in the first 20-100 pages usually. But it turns out it's really hard to actually explain what it does.
<dminuoso>
What it means
<andrewray>
to clarify my search for a book separating the good and bad parts of ruby isn't related to my question about next
guille-moe has joined #ruby
<dminuoso>
andrewray: Very well. I know of no such book.