<Technodrome>
this is what happens when communities get too large
fphilipe_ has joined #ruby
<baweaver>
Most of the content tends to be between Medium and dev.to these days for articles
<adam12>
baweaver: Interesting back story. I agree one commenter, the older episodes were better. There was one guest for a while where I couldn't handle them at all. Completely stopped listening.
<baweaver>
Haven't really listened to it in years
<adam12>
baweaver: Which is ironic since HN has basically tuned me off Medium. I think you post to dev.to?
<baweaver>
Yeah, mostly
<baweaver>
Medium annoyed me
<baweaver>
Too many popovers for registration, dev.to keeps out of the way and has a simpler editor
<adam12>
baweaver: I use the Make Medium Readable Again browser extension. It's the only way. I still avoid almost every medium url now, tho I was told my a friend that the paid content is much better.
<Technodrome>
the rails world sometimes is bigger than i think it is
entel has joined #ruby
<baweaver>
I write for free on principle
<baweaver>
So I never really got behind the paywall idea
fphilipe_ has quit [Ping timeout: 240 seconds]
<baweaver>
If I ever end up publishing a book there'll be a free version somewhere online as well
<Technodrome>
I've been doing django stuff for a few years, its much more quiet over there, but also more boring
<baweaver>
I mean if you want noise
<baweaver>
Javascript is calling
Swyper has joined #ruby
<Technodrome>
baweaver alot of noise there as well? I'm out of the loop
<baweaver>
JS is a lot of rebuilding and rebranding from year to year
<baweaver>
though it seems to have settled down quite a bit lately
<baweaver>
~2005-2015 were some dark times though
<Technodrome>
i sorta program in a hole, i don't pay attention to whats going on
<Technodrome>
sometimes thats bad because I miss out on a ton of stuff, lots of gems i didn't even know existed etc
<Technodrome>
well I did a ton of Drupal stuff as well for a while, talk about noise!
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
<leftylink>
I still haven't looked very hard since "ruby lens" is a search term that gets tons of results that are not what I want, so I didn't find anyone who tried anything similar other than xf
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
BTRE has quit [Ping timeout: 265 seconds]
andikr has joined #ruby
queip has quit [Ping timeout: 265 seconds]
murarisumit has quit [Ping timeout: 245 seconds]
queip has joined #ruby
tpanarch1st has quit [Ping timeout: 240 seconds]
rheddry has quit [Ping timeout: 240 seconds]
levifig has joined #ruby
<baweaver>
If you're going to RubyConf I mention them in my talk
BTRE has joined #ruby
alfiemax has quit [Remote host closed the connection]
<TomyWork>
I'm looking for a library where I can do jsonpath or jsonpath-like expressions on either JSON strings or ruby structures derived from them. Additionally, I need to be able to compare version numbers, i.e. '19.8'<'19.9'<'19.10'<'19.10.1'
<TomyWork>
(i need to do those comparisons in the jsonpath-like expression)
<baweaver>
So that gets the version part. What about JSON path now TomyWork?
mre- has joined #ruby
queip has quit [Ping timeout: 265 seconds]
bambanx has quit [Quit: Leaving]
sarink has quit [Remote host closed the connection]
mre- has quit [Ping timeout: 265 seconds]
JayDoubleu has quit [Ping timeout: 276 seconds]
JayDoubleu has joined #ruby
phaul has quit [Quit: :wq]
BH23 has joined #ruby
queip has joined #ruby
yasumi2136 has joined #ruby
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 246 seconds]
schne1der has joined #ruby
blackmesa has joined #ruby
kotisky has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
<TomyWork>
baweaver, yeah i know how to use jsonpath and how to compare versions, but i dont know how to compare versions inside a jsonpath or jsonpath-like expression :)
<baweaver>
Was more of referring to not knowing JSON path
tsujp has joined #ruby
<TomyWork>
basically if version node #1 < version node #2 then match the parent node
kent\n has quit [Ping timeout: 245 seconds]
<TomyWork>
oh, jsonpath is like xpath, except for json instead of xml
<baweaver>
Ah
sarink has joined #ruby
<baweaver>
Hrm
<baweaver>
Just on JSON, or on Objects?
<baweaver>
I mean I guess one could just switch out handlers, so kinda moot
<TomyWork>
either will do fine
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
kent\n has joined #ruby
<baweaver>
Problem is that somehow you'd have to get it to distinguish that those are versions
<baweaver>
Gem::Version probably implements <=> so that takes care of comparators
<baweaver>
I could probably wire up something similar in a DSL, it'd mostly be path traversal with a few keywords for good measure
sarink has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
sarink has joined #ruby
<baweaver>
Heheheheh, found a gem name for it too
<baweaver>
So give me two "objects" as a sample or some data to play with if you could TomyWork
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has quit [Remote host closed the connection]
Intelo has joined #ruby
sarink has joined #ruby
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
tsujp has joined #ruby
Intelo has quit [Client Quit]
Intelo_ has joined #ruby
Intelo_ has quit [Remote host closed the connection]
Intelo has joined #ruby
Intelo has left #ruby [#ruby]
Intelo has joined #ruby
yasumi2136 has quit [Remote host closed the connection]
<baweaver>
Qo does some of that already with hash / indiscriminate matching
<baweaver>
and considering `===` works on Procs too, well there's all types of fun on that one
x86sk has joined #ruby
davor_ has joined #ruby
davor has quit [Ping timeout: 245 seconds]
davor_ is now known as davor
teclator has quit [Read error: Connection reset by peer]
teclator has joined #ruby
lxsameer has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
jottr_ has joined #ruby
xco has quit [Quit: xco]
akemacer has quit [Read error: Connection reset by peer]
akemacer has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
murarisumit has quit [Ping timeout: 264 seconds]
BTRE has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
BTRE has joined #ruby
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 265 seconds]
akemacer has quit [Remote host closed the connection]
akemacer has joined #ruby
rntsrtoh^ has quit [Read error: Connection reset by peer]
rntsrtoh^ has joined #ruby
rntsrtoh^ has quit [Max SendQ exceeded]
rntsrtoh^ has joined #ruby
rntsrtoh^ has quit [Max SendQ exceeded]
CalimeroTeknik has quit [Remote host closed the connection]
rntsrtoh^ has joined #ruby
rntsrtoh^ has quit [Max SendQ exceeded]
sarink has quit [Remote host closed the connection]
ellcs has joined #ruby
rntsrtoh^ has joined #ruby
rntsrtoh^ has quit [Max SendQ exceeded]
stan has quit [Remote host closed the connection]
rntsrtoh^ has joined #ruby
rntsrtoh^ has quit [Max SendQ exceeded]
sarink has joined #ruby
sagax has quit [Remote host closed the connection]
dasher00 has joined #ruby
cjohnson has quit [Ping timeout: 245 seconds]
shenghi has quit [Ping timeout: 245 seconds]
greypack has quit [Ping timeout: 245 seconds]
stan has joined #ruby
balo has quit [Ping timeout: 245 seconds]
lucas_ has quit [Ping timeout: 245 seconds]
jcalla has quit [Ping timeout: 245 seconds]
cjohnson has joined #ruby
murarisumit has joined #ruby
jcalla has joined #ruby
lucas has joined #ruby
balo has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CalimeroTeknik has joined #ruby
greypack has joined #ruby
sarink has quit [Ping timeout: 246 seconds]
hiroaki has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
Pip_ has joined #ruby
i9zO5AP has quit [Quit: WeeChat 2.5]
Pip_ is now known as Guest46063
Ai9zO5AP has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
Pip has quit [Ping timeout: 246 seconds]
sarink has joined #ruby
kyrylo has joined #ruby
shenghi has joined #ruby
murarisumit has quit [Read error: Connection reset by peer]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
hightower2 has quit [Ping timeout: 240 seconds]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest46063 is now known as Pip
Pip is now known as Guest3637
jenrzzz has joined #ruby
Guest3637 has quit [Quit: Leaving]
queip has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
queip has joined #ruby
yann-kaelig has joined #ruby
blackmesa has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
blackmesa has quit [Remote host closed the connection]
sarink has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
sarink has joined #ruby
hightower2 has joined #ruby
queip has quit [Quit: bye, freenode]
poontangmessiah has joined #ruby
murarisumit has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
queip has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
AJA4350 has joined #ruby
tsujp has joined #ruby
blackmesa has quit [Remote host closed the connection]
reaVer_ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
reaVer has joined #ruby
poontangmessiah_ has joined #ruby
poontangmessiah has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
poontangmessiah_ has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
sarink has quit [Ping timeout: 245 seconds]
sagax has joined #ruby
kotisky has joined #ruby
BH23 has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
murarisumit has quit [Ping timeout: 265 seconds]
schne1der has quit [Ping timeout: 268 seconds]
jottr_ has joined #ruby
queip has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
queip has joined #ruby
murarisumit has joined #ruby
schne1der has joined #ruby
BH23 has joined #ruby
murarisumit has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
andikr has quit [Ping timeout: 265 seconds]
andikr has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
blackmesa has joined #ruby
murarisumit has joined #ruby
sarink has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
murarisumit has quit [Ping timeout: 265 seconds]
x86sk has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
ramfjord has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 276 seconds]
queip has joined #ruby
Esa_ has joined #ruby
phaul has joined #ruby
jrafanie has joined #ruby
suukim has joined #ruby
jenrzzz has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
depesz has joined #ruby
<depesz>
hi. I have array like: [ '10.?', '10.10', '10.2?' ], how can I change it so that it will become [ '10.1', '10.2', '10.10', '10.21', '10.22' ] -> as in, each ? should generate 2 elements with ? substituted by either 1 or 2 ?
jottr_ has joined #ruby
lucasb has joined #ruby
<phaul>
&>> [ '10.?', '10.10', '10.2?' ].flat_map { |e| e =~ /\?/ ? [e.tr('?', '1'), e.tr('?', '2')] : e }
<rubydoc>
# => ["10.1", "10.2", "10.3", "10.4", "10.5", "10.6", "10.7", "10.8", "10.9", "10.1", "10.10", "10.21",... check link for more (https://carc.in/#/r/7mmh)
<depesz>
ok, and final question - this works, but if input has multiple ? I'd like to get a product of all combinations. for example, if we substitute ? => 1,2, and input is "10.??", I'd like to get 10.11, 10.12, 10.21, 20.22
<depesz>
sorry for causing additional problems :)
andikr has quit [Ping timeout: 250 seconds]
<phaul>
:) no problem
murarisumit has quit [Ping timeout: 265 seconds]
<phaul>
Array#product could solve this I think..
sarink has quit [Remote host closed the connection]
fphilipe_ has quit [Read error: Connection reset by peer]
sarink has joined #ruby
<phaul>
but it's getting more of a challange
blackmesa has quit [Remote host closed the connection]
andikr has joined #ruby
codefriar has joined #ruby
BH23 has quit [Ping timeout: 240 seconds]
sarink has quit [Ping timeout: 276 seconds]
sarink has joined #ruby
<depesz>
yeah, I think I'll write it as a loop.
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has joined #ruby
kyrylo has joined #ruby
murarisumit has joined #ruby
alfiemax has joined #ruby
Rapture has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpanarch1st has joined #ruby
sputnik13 has joined #ruby
jottr_ has joined #ruby
greengriminal has joined #ruby
SuperL4g is now known as SuperLag
SeepingN has joined #ruby
chalkmonster has joined #ruby
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Ping timeout: 240 seconds]
brool has joined #ruby
stryek has joined #ruby
donofrio has joined #ruby
sarink has quit [Remote host closed the connection]
<depesz>
how can I, possibly easily, create object of class that I have its name in variable? For example: c = "String"; x = <some_magic>; which makes x = String.new
greengriminal has quit [Quit: This computer has gone to sleep]
sarink has joined #ruby
davidw_ has joined #ruby
murarisumit has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
<havenwood>
depesz: c = 'String'; Module.const_get(c).new
Intelo has quit [Remote host closed the connection]
<depesz>
thanks
DaRock has quit [Ping timeout: 265 seconds]
Rapture has quit [Ping timeout: 245 seconds]
drincruz_ has joined #ruby
drincruz has quit [Read error: No route to host]
greengriminal has joined #ruby
jacksoow_ has joined #ruby
tpanarch1st_ has joined #ruby
jacksoow has quit [Ping timeout: 240 seconds]
tpanarch1st has quit [Ping timeout: 240 seconds]
greengriminal has quit [Client Quit]
schne1der has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dellavg has left #ruby ["Ex-Chat"]
sputnik13 has joined #ruby
dretnx has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
jrafanie has joined #ruby
chalkmonster has joined #ruby
sasha has joined #ruby
sasha is now known as Guest22112
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
witlesswonder_ has joined #ruby
witlesswonder has quit [Remote host closed the connection]
blackmesa has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
banisterfiend has joined #ruby
sputnik13 has joined #ruby
murarisumit has joined #ruby
Guest22112 is now known as SashaZakharchuk
murarisumit has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
SashaZakharchuk_ has joined #ruby
SashaZakharchuk has quit []
SashaZakharchuk_ has quit [Client Quit]
SashaZakharchuk has joined #ruby
kyrylo has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has joined #ruby
sputnik13 has joined #ruby
jenrzzz has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
lupine has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
lupine has joined #ruby
banisterfiend has joined #ruby
BH23 has quit [Ping timeout: 240 seconds]
murarisumit has joined #ruby
jottr_ has quit [Ping timeout: 265 seconds]
phaul has quit [Quit: :wq]
jottr_ has joined #ruby
rippa has joined #ruby
Salve has joined #ruby
jottr has joined #ruby
Salve has quit [Client Quit]
schne1der has quit [Ping timeout: 240 seconds]
jottr__ has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
Eiam has quit [Ping timeout: 264 seconds]
Eiam_ has joined #ruby
SashaZakharchuk has quit []
fphilipe_ has joined #ruby
SashaZakharchuk has joined #ruby
Seance[m] has left #ruby ["User left"]
jenrzzz has quit [Ping timeout: 245 seconds]
<Technodrome>
what is the most advanced ruby book you guys can think of? Just tons of meta programming or what not
<havenwood>
Technodrome: Not metaprogramming related, but Ruby Under a Microscope.
<Technodrome>
yeah, i read that one
<Technodrome>
just was looking for another book to pass some time, been focusing on c++ / data structure stuff
<Technodrome>
havenwood looks like i'll be going into a new rails position until recruiting picks back up a bit for me
<havenwood>
Technodrome: Nice, working on a Rails app sounds pretty nice to me about now. :)
<Technodrome>
what are you doing now? no more ruby?
<havenwood>
i'm still doing at least some Rub. :
<havenwood>
Ruby*
<havenwood>
Technodrome: Was just working with Avdi on a Dart and Python tutorial app for work.
<Technodrome>
its funny, i'm making this little app because all my old ruby stuff is like rails 3 and the employer wanted to see something new, so i made a small real estate management platform, but i keep working on it, and i put a friend of mines property in there, and he's using it, i got billing working right and everything
Ven`` has joined #ruby
Ven`` has quit [Read error: Connection reset by peer]
<Technodrome>
then again, i do plan all my design and functionality in xd ahead of time, coming together quite nice
<Technodrome>
havenwood Dart? people are still using it?
murarisumit has quit [Ping timeout: 268 seconds]
<txdv>
hello
<havenwood>
txdv: hi!
<Technodrome>
Nothing against Dart really I actually liked a few things about it, I just literally thought almost no one was using it in production much.
mre- has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dretnx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
schne1der has joined #ruby
mre- has joined #ruby
Kilobyte22 has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Technodrome>
havenwood googles version of react native?
<Technodrome>
i've never heard of this
<havenwood>
Technodrome: Dart used to be a VM embedded in Chrome and it could also compile to JavaScript for browsers that didn't have a Dart VM. Now days Google has added support for compiling to native ARM and x86.
<Technodrome>
oh wow, so it actually compiles to arm , so is there any interpreting at all going on in an app?
<havenwood>
Technodrome: It interprets in development mode for hot reloads, but when you deploy it compiles to actual native code.
<Technodrome>
react native still interprets JS right? It just calls native components
<havenwood>
Technodrome: yup
<Technodrome>
so this is better then
<havenwood>
Technodrome: They also did a huge project to implement native graphics down to the metal.
<Technodrome>
with flutter you mean?
<Technodrome>
so you're saying it could be used for game dev or 3d applications with no performance loss?
<havenwood>
Technodrome: Yeah, with Flutter I mean. Great for animations and games. Skia.
<Technodrome>
interesting, i only use ec2 on the amazon stack
<havenwood>
Technodrome: it's super easy to just run a Ruby function that does some HTTP on Lambda serverlessly
davidw_ has quit [Ping timeout: 276 seconds]
<Technodrome>
so you are essentially just paying for function execution time here with lambda?
vondruch_ has joined #ruby
<havenwood>
Technodrome: it's free to 1M requests per/mo and 400,000 GB-sec per/mo
<havenwood>
Technodrome: then you pay
<Technodrome>
interesting
<Technodrome>
i can see how this would be awesome for mobile apps
<havenwood>
$0.0000002 per request after 1M
vondruch has quit [Ping timeout: 245 seconds]
vondruch_ is now known as vondruch
etupat has quit [Remote host closed the connection]
banisterfiend has joined #ruby
<Technodrome>
amazon really wants to run the internet these days huh
<banisterfiend>
hello
<havenwood>
Technodrome: and then there's Lambda Edge to geodistribute your function so mobile works well everywhere: https://aws.amazon.com/lambda/edge
<havenwood>
banisterfiend: o/
banisterfiend has quit [Client Quit]
sarink_ has quit [Remote host closed the connection]
<Technodrome>
very interesting, thanks for showing me this havenwood
<Technodrome>
and flutter
stryek has quit [Quit: Connection closed for inactivity]
<Technodrome>
who knows, maybe react native will be behind me at some point
etupat has joined #ruby
banisterfiend has joined #ruby
DaRock has joined #ruby
gix has joined #ruby
SanguineAnomaly has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 276 seconds]
mre- has joined #ruby
etupat has quit [Remote host closed the connection]