adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
MaXxer01 has joined #ruby
MaXxer0 has quit [Ping timeout: 240 seconds]
Nik- has quit [Ping timeout: 256 seconds]
fikran has quit [Ping timeout: 252 seconds]
fikran has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
ua_ has quit [Ping timeout: 256 seconds]
ua_ has joined #ruby
MaXxer0 has joined #ruby
MaXxer01 has quit [Ping timeout: 272 seconds]
Rounin has quit [Ping timeout: 250 seconds]
ua_ has quit [Ping timeout: 258 seconds]
ua_ has joined #ruby
crankharder has joined #ruby
fikran has quit [Ping timeout: 265 seconds]
fikran has joined #ruby
jetchisel has quit [Ping timeout: 272 seconds]
crankharder has quit [Quit: leaving]
jetchisel has joined #ruby
crankharder has joined #ruby
fikran has quit [Changing host]
fikran has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
lad has quit [Ping timeout: 272 seconds]
Oxfuxxx_ has joined #ruby
Oxfuxxx has quit [Ping timeout: 240 seconds]
Oxfuxxx_ has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
Oxfuxxx has joined #ruby
wei1 has quit [Ping timeout: 272 seconds]
mrkz_c has quit [Quit: Connection closed for inactivity]
perrierjouet has joined #ruby
Garb0 has joined #ruby
<Garb0> Su
<Garb0> p
<Garb0> how would escape the # in `=~/[$%^&*()-+!@#]/)`
Garb00 has joined #ruby
Garb0 has quit [Ping timeout: 258 seconds]
wei1 has joined #ruby
fikran has quit [Ping timeout: 272 seconds]
fikran has joined #ruby
wei1 has quit [Ping timeout: 272 seconds]
wei1 has joined #ruby
wei1 has quit [Ping timeout: 250 seconds]
<nakilon> Garb00 doesn't \ work?
<Garb00> nakilon: Nope, i had to do some magic heredoc screwery to get it to work
<Garb00> thanks fellas
<leftylink> oh... I wasn't aware it needed escaping
<leftylink> I will have to study more
<Garb00> it just could be that hackerrank's editor is on some BS
<nakilon> unfortunately the hackerrank is very abandoned thing
<nakilon> it was ok many years ago but today they don't even moderate it -- comment threads are full of porn spam
<nakilon> maybe one should jus stop caring about virtual achievements based on random artificial "number of one-liners implemented from our special list"
<Garb00> some jack\\\ employers still still swear by it.
<nakilon> and practice coding on some ACM-like websites instead, like it was and is still pretty much working
<Garb00> what we should do is value portfolios above all else
<nakilon> we should just hire adequate HRs who would be able to evaluate each candidate properly instead of just spamming emails based on one word match, etc.
<Garb00> i'd rather get killed by someone who can write fast and secure webapps than some idiot who masturbates to O(peepee) all day
<nakilon> lmao
<Garb00> nakilon: Lol, HRs don't even do their jobs anymore, it's all about the ATS now
<nakilon> forget what I said about portfolio
<nakilon> I mean about ACM
<nakilon> do portfolio
<Garb00> the ATS of doom, your fate is in the hands of a crappy PDF parser written in the 90s that will recycle your CV
<Garb00> and if you make it, your fate is still in the hand of a 20 year old HR intern who uses Emojis in formal Emails.
<Garb00> it do be like that sometimes.
lunarkitty has joined #ruby
fikran has quit [Ping timeout: 272 seconds]
fikran has joined #ruby
lad has joined #ruby
mrkz_c has joined #ruby
_ht has joined #ruby
jetchisel has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
nmollerup has quit [Remote host closed the connection]
Rounin has joined #ruby
jetchisel has quit [Ping timeout: 258 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
fikran has quit [Ping timeout: 250 seconds]
gr33n7007h has quit [Ping timeout: 272 seconds]
fikran has joined #ruby
gr33n7007h has joined #ruby
Milos has quit [Quit: ZNC 1.8.2 - https://znc.in]
Milos has joined #ruby
reset has quit [Quit: reset]
lad has quit [Ping timeout: 272 seconds]
<nakilon> >> s = Set.new ; a = [[1]] ; s.add a ; a[0][0] = 2 ; [s, a, s.include?(a)]
<nakilon> &>> s = Set.new ; a = [[1]] ; s.add a ; a[0][0] = 2 ; [s, a, s.include?(a)]
<nakilon> anyway; => [#<Set: {[[2]]}>, [[2]], false]
<nakilon> anyone to explain?
<leftylink> pandabot: ri Hash#rehash
<leftylink> if you do the same with a hash, it's necessary to #rehash. too bad you can't do the same with a set (there's no Set#reset)
<nakilon> undefined method `rehash' for #<Set
<leftylink> however... I have a weird idea
<leftylink> pandabot: rb s = Set.new ; a = [[1]] ; s.add a ; a[0][0] = 2; s.instance_variable_get(:@hash).rehash; s.include?(a)
<pandabot> stderr: -e:2:in `<main>': uninitialized constant Set (NameError) - exit 1 - https://carc.in/#/r/boiu
<leftylink> pandabot: rb require 'set'; s = Set.new ; a = [[1]] ; s.add a ; a[0][0] = 2; s.instance_variable_get(:@hash).rehash; s.include?(a)
<pandabot> true - https://carc.in/#/r/boiv
<leftylink> perfect.
<nakilon> wtf
<nakilon> is there a Hash inside Set?
<leftylink> how else might one implement it, thinking face emoji
<nakilon> by copypasting C of course
<leftylink> pandabot: learn thinkingfaceemoji 🤔
<pandabot> Learned new fact thinkingfaceemoji; 214 facts total
<nakilon> pandabot: learn Set is a Hash
<nakilon> but isn't .rehash slow? it's like pushing all the things again, right?
<leftylink> I imagine so
<leftylink> wait
<leftylink> there IS a Set#reset
<leftylink> pandabot: rb require 'set'; s = Set.new ; a = [[1]] ; s.add a ; a[0][0] = 2; s.reset; s.include?(a)
<pandabot> true - https://carc.in/#/r/boiw
<leftylink> of course, I imagine it must do the reset for each element in it
<leftylink> it doesn't know which ones have changed or not
<leftylink> since when has reset existed??? I thought it didn't
<leftylink> exists in 2.4.0 and not in 2.3.0 so I guess that's answer
<leftylink> in contrast, Hash#rehash has existed since at least 1.8.6
<leftylink> in either case, I thought it was pretty punny since both rehash and reset are words of their own as well
fikran has quit [Ping timeout: 272 seconds]
fikran has joined #ruby
gggp__ has joined #ruby
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 272 seconds]
gggp_ has quit [Read error: Connection reset by peer]
gggp_ has joined #ruby
dyCrazyEd has joined #ruby
gggp_ has quit [Ping timeout: 272 seconds]
drincruz_ has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
fikran has quit [Ping timeout: 272 seconds]
fikran has joined #ruby
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
goepsilongo has joined #ruby
fikran has quit [Ping timeout: 258 seconds]
fikran has joined #ruby
cognemo has joined #ruby
lad has joined #ruby
fikran has quit [Ping timeout: 265 seconds]
fikran has joined #ruby
reset has joined #ruby
finsternis has quit [Read error: Connection reset by peer]
pwnd_sfw6 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw6 is now known as pwnd_sfw
goepsilongo has quit [Remote host closed the connection]
goepsilongo has joined #ruby
MaXxer0 has quit [Remote host closed the connection]
Oxfuxxx has quit [Ping timeout: 272 seconds]
Oxfuxxx has joined #ruby
finsternis has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2]
neshpion has joined #ruby
perrierjouet has joined #ruby
fikran has quit [Ping timeout: 272 seconds]
fikran has joined #ruby
Oxfuxxx_ has joined #ruby
Oxfuxxx has quit [Ping timeout: 272 seconds]
_ht has quit [Remote host closed the connection]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx_ has quit [Ping timeout: 258 seconds]
wei1 has joined #ruby
Oxfuxxx has joined #ruby
fikran has quit [Changing host]
fikran has joined #ruby
fikran has left #ruby [#ruby]
Melantha has quit [Quit: WeeChat 3.2]
lucf117 has joined #ruby
wei1 has quit [Ping timeout: 258 seconds]
wei1 has joined #ruby
wei1 has quit [Ping timeout: 256 seconds]
Garb00 has quit [Quit: Garb00]
vaillancourtmax has joined #ruby
qk1z has joined #ruby
ur5us has joined #ruby
wei1 has joined #ruby
vaillancourtmax has quit [Ping timeout: 272 seconds]
Rounin has quit [Ping timeout: 252 seconds]
xall has joined #ruby