adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
ccdev has joined #ruby
ccdev has quit [Client Quit]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
hightower2 has quit [Ping timeout: 256 seconds]
cryptkeeper has quit [Quit: Connection closed for inactivity]
grokify has quit [Remote host closed the connection]
caedmon has quit [Ping timeout: 260 seconds]
tirnanog has quit [Quit: = ""]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
cryptkeeper has joined #ruby
grokify has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
donofrio has joined #ruby
lucerne has quit [Read error: Connection reset by peer]
grokify has quit [Ping timeout: 260 seconds]
donofrio_ has quit [Ping timeout: 256 seconds]
hightower2 has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
joast has joined #ruby
FrankD has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
FullMetalStacker has joined #ruby
grokify has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
FullMetalStacker has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
duderonomy has joined #ruby
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
grokify has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
Guest39 has joined #ruby
<Guest39> Seeking wisdom on Ruby on Rails vs Django For web deb =D
<bougyman> Don't use them
<bougyman> create lightweight apis and offload most of the logic onto the client.
<bougyman> neither rails nor django is "lightweight". There's roda, sinatra, rack, others for making lightweight apis in ruby. Similar exist for python (offtopic for this channel)
<leftylin1> pandabot: tell Guest39 ruby vs python
grokify has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
<Guest39> hmm
<Guest39> well by desire to to make website creation as easy as possible
grokify has quit [Ping timeout: 260 seconds]
FetidToot has quit [Ping timeout: 260 seconds]
FetidToot has joined #ruby
<sam113101> Guest39: if you have to pick between rails and django pick rails, otherwise you're gonna have to use python
<sam113101> :arms:
<sam113101> well shit
<sam113101> my substitution plugin isn't loaded
sam113101 has quit [Remote host closed the connection]
sam113101 has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
grokify has joined #ruby
Milos has quit [Quit: ZNC 1.8.2 - https://znc.in]
Milos has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
hd1 has joined #ruby
<hd1> what permissions are needed to create tables under a schema for an unprivileged user?
hd1 has left #ruby [#ruby]
Guest3973 has joined #ruby
hd1 has joined #ruby
Guest39 has quit [Ping timeout: 260 seconds]
hd1 has quit [Remote host closed the connection]
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
cartdrige has joined #ruby
Laplace has joined #ruby
Guest3973 has quit [Quit: Client closed]
brokentooth has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 256 seconds]
lutrinus has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 260 seconds]
aeris has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
lutrinus has quit [Quit: lutrinus]
aeris has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
fcser has quit [Excess Flood]
brokentooth has quit [Remote host closed the connection]
fcser has joined #ruby
crax23 has joined #ruby
cout has quit [Ping timeout: 246 seconds]
cartdrige has quit [Ping timeout: 260 seconds]
walez has joined #ruby
cout has joined #ruby
moldorcoder7 has joined #ruby
cout has quit [Ping timeout: 268 seconds]
peirik__ has joined #ruby
cout has joined #ruby
ur5us has joined #ruby
cryptkeeper has quit [Quit: Connection closed for inactivity]
D_A_N_ has quit [Remote host closed the connection]
D_A_N_ has joined #ruby
D_A_N___ has joined #ruby
D_A_N___ has quit [Client Quit]
D_A_N_ has quit [Client Quit]
deepy has joined #ruby
<deepy> How do sidekiq queues without weights work? strict order?
dionysus69 has joined #ruby
<deepy> also, what happens if I got some queues with weights and others without?
D_A_N_ has joined #ruby
cxl has quit [Quit: bye]
peirik__ has quit [Ping timeout: 256 seconds]
D_A_N_ has quit [Quit: leaving]
peirik__ has joined #ruby
walez has quit [Quit: Leaving]
cxl has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
bastelfreak has quit [Read error: Software caused connection abort]
bastelfreak has joined #ruby
Laplace has quit [Quit: Connection closed for inactivity]
dza has quit [Remote host closed the connection]
peirik__ has quit [Ping timeout: 246 seconds]
peirik__ has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
FetidToot6 has joined #ruby
brw2 has joined #ruby
brw has quit [Read error: Connection reset by peer]
brw2 is now known as brw
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot6 is now known as FetidToot
desnudopenguino has quit [Ping timeout: 260 seconds]
ua_ has quit [Ping timeout: 268 seconds]
sol has quit [Read error: Software caused connection abort]
sol has joined #ruby
rvalue has joined #ruby
ua_ has joined #ruby
peirik__ has quit [Quit: WeeChat 3.6]
alexherbo2 has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
dza has joined #ruby
Hobbyboy has quit [Read error: Software caused connection abort]
Hobbyboy has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Laplace has joined #ruby
eldritch has quit [Read error: Software caused connection abort]
pjlsergeant has quit [Read error: Software caused connection abort]
pjlsergeant has joined #ruby
hightower2 has joined #ruby
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
ox1eef_ has joined #ruby
ox1eef_ has quit [Quit: WeeChat 3.7]
ox1eef_ has joined #ruby
rvalue has joined #ruby
Linux_Kerio has joined #ruby
cxl has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
some14u has joined #ruby
markong has joined #ruby
jiggawatt has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
moldorcoder7_ has joined #ruby
moldorcoder7 has quit [Ping timeout: 260 seconds]
cxl has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
gr33n7001 has joined #ruby
gr33n7007h has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
gr33n7001 is now known as gr33n7007h
Guest8222 has joined #ruby
<gr33n7007h> MINASWAN
alexherbo2 has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
FullMetalStacker has joined #ruby
<FullMetalStacker> Does anyone know if Rails has ever considered adding Crystal compatibility, i.e. Crystal on Rails?
<gr33n7007h> FullMetalStacker: https://github.com/thomasnal/crystal-on-rails looks like someone has xD
<FullMetalStacker> @gr33n7007h Yeah, thank you for that link, I am aware of that project. But what I wanted to say is if the Rails project itself has considered to support Crystal, not if someone has forked or cloned Rails to a separate fork/project
<gr33n7007h> FullMetalStacker: i highly doubt that will happen
<FullMetalStacker> why?
<FullMetalStacker> It would really make sense for Rails in terms of gaining former glory
<gr33n7007h> it's a completely different language for one.
D_A_N has joined #ruby
<gr33n7007h> the blood, sweat,tears and agony thats gone into making rails 7 would just not be justified imho.
Nasenspray has joined #ruby
<FullMetalStacker> well, yes, a different language. but "completely different"? is is almost identical sytax. i would not go so far to say that crystal is "compiled ruby" as some do, but for sure the similarities are such that any rubyist can adapt in zero time. Making Rails supporting both, scripted ruby and compiled Crystal, would give Rails an tremendous competitive advantage, overtaking in speed many of the main competitors such as node/
<FullMetalStacker> express.js. And instead of reinventing the wheel and creating new web frameworks for Crystal from scratch (such as Amber Framework or Lucky Framework) someone could have the entire power of long-term project Rails with the C-like runtime speed of Crystal, if computation speed is what he needs for his project. Instead of abandoning Rails and going for Elixir/Phoenix or other faster technologies.
grokify has joined #ruby
<ox1eef_> the syntax is similar, sure but there's a ton of differences that would lead to a Rails that isn't Rails as we know it.
<gr33n7007h> FullMetalStacker: i get your point, i just don't see it happening tbh.
<FullMetalStacker> @ox1eef_ can you give examples?
grokify has quit [Remote host closed the connection]
<gr33n7007h> >> :test
<ruby[bot]> gr33n7007h: # => (https://carc.in/#/r/e4gn)
<gr33n7007h> >> :test
<ruby[bot]> gr33n7007h: # => :test (https://carc.in/#/r/e4go)
grokify has joined #ruby
<gr33n7007h> so it does work sometimes xD
<gr33n7007h> >> Time.now
<ruby[bot]> gr33n7007h: # => 2022-11-23 13:57:24.918171884 +0000 (https://carc.in/#/r/e4gp)
<gr33n7007h> germany 1-0 up against japan half-time xD
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
Laplace has quit [Quit: Connection closed for inactivity]
<FullMetalStacker> oh so the football world cup already started?
<FullMetalStacker> mainstream_media_distraction > dev.null
some14u has quit [Ping timeout: 260 seconds]
some14u has joined #ruby
<ox1eef_> FullMetalStacker: Rails is a Ruby framework, and Crystal - although inspired by Ruby, is not Ruby. It is its own language with its own ideas. What works best for Crystal will not be Rails. it will be what is born in the Crystal ecosystem by people familiar with Crystal. It is not trying to fit a square into a circle. It doesn't work.
<ox1eef_> And yep - world cup started 2 days ago.
<FullMetalStacker> can someone help me please with this:
<FullMetalStacker> friends = ["Ryan", "Jimmy", "123", "4", "Cool Man"]
<FullMetalStacker> 5
<FullMetalStacker> 4
<FullMetalStacker> friends.map { |f| puts f.length }
<FullMetalStacker> 3
some14u has quit [Client Quit]
<FullMetalStacker> 1
<FullMetalStacker> 8
<FullMetalStacker> but when I do:
<FullMetalStacker> friends.map { |f| friends.delete(f) unless f.length == 4 }
<FullMetalStacker> I get:
<FullMetalStacker> pry(main)> friends
<FullMetalStacker> => ["Ryan", "123", "Cool Man"]
<FullMetalStacker> why are "123" and "Cool Man" not eliminated?
caedmon has joined #ruby
<ox1eef_> friends.select { f.length != 4 }
btedo has joined #ruby
<ox1eef_> friends.select { |f| f.length != 4 } *
<ox1eef_> as a general rule, don't mutate what you're iterating over.
<wnd> related, you may have misunderstood what #map does
<FullMetalStacker> ox1eef: Thanks for the solution and the hint what is the cause!
<FullMetalStacker> wnd: Can you elaborate and make me understand my misunderstanding?
<ox1eef_> if only "Ryan" should be left, then you actually want: friends.select { |f| f.length == 4 }
<FullMetalStacker> yes, i adapted that, thanks!
<ox1eef_> map is not used as a filter (like reject, or select) - it is used to transform the elements of an array into something else... for example, [1,2,3].map(&:to_s) will give you an array of strings instead of an array of integers.
<FullMetalStacker> ok got it thank you!
<ox1eef_> np
grokify has quit [Remote host closed the connection]
btedo has quit [Remote host closed the connection]
btedo has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
btedo has quit [Ping timeout: 268 seconds]
leftylin1 is now known as leftylink
desnudopenguino has joined #ruby
alexherbo2 has joined #ruby
otisolsen70 has quit [Quit: Leaving]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
btedo has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
btedo has quit [Ping timeout: 260 seconds]
otisolsen70 has joined #ruby
grokify has quit [Remote host closed the connection]
Petruchio has quit [Remote host closed the connection]
caedmon has quit [Ping timeout: 256 seconds]
cartdrige has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
caedmon has joined #ruby
szkl has joined #ruby
TomyWork has joined #ruby
btedo has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
alexherbo2 has joined #ruby
btedo has quit [Ping timeout: 268 seconds]
caedmon has quit [Quit: caedmon]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
caedmon has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 268 seconds]
stirl has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
stirl has quit [Remote host closed the connection]
stirl has joined #ruby
___nick___ has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
crax23 has joined #ruby
grokify has joined #ruby
cartdrige has quit [Ping timeout: 268 seconds]
grokify has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
dionysus69 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
_ht has joined #ruby
Aminda has quit [Remote host closed the connection]
grokify has quit [Remote host closed the connection]
Aminda has joined #ruby
markong has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
desnudopenguino has joined #ruby
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
hrberg has joined #ruby
___nick___ has joined #ruby
reset has quit [Read error: Connection reset by peer]
stirl has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
_aeris_ is now known as aeris
Sankalp has quit [Ping timeout: 268 seconds]
crax23 has quit [Quit: Leaving]
Sankalp has joined #ruby
ur5us has joined #ruby
grokify has quit [Remote host closed the connection]
FullMetalStacker has quit [Remote host closed the connection]
cartdrige has joined #ruby
dionysus69 has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
cryptkeeper has joined #ruby
TomyWork has quit [Remote host closed the connection]
duderonomy has joined #ruby
crax23 has joined #ruby
grokify has joined #ruby
cartdrige has quit [Ping timeout: 248 seconds]
Y05hito__ has joined #ruby
grokify has quit [Ping timeout: 255 seconds]
crax23 has quit [Ping timeout: 255 seconds]
cartdrige has joined #ruby
A_Dragon has quit [Quit: ZNC - https://znc.in]
A_Dragon has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 255 seconds]
crax23 has quit [Remote host closed the connection]
cartdrige has quit [Ping timeout: 252 seconds]
siomn has joined #ruby
siomn has left #ruby [#ruby]
___nick___ has quit [Ping timeout: 260 seconds]
_ht has quit [Quit: _ht]
hightower2 has quit [Ping timeout: 260 seconds]
rx has joined #ruby
reset has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
grokify has joined #ruby
some14u has joined #ruby
hightower2 has joined #ruby
aighearach_ has joined #ruby
aighearach has quit [Ping timeout: 268 seconds]
aighearach_ has quit [Remote host closed the connection]
aighearach_ has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 260 seconds]
Nasenspray has quit [Remote host closed the connection]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
duderonomy has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
some14u has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tirnanog has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
idkwtf has joined #ruby
hightower2 has quit [Remote host closed the connection]
markong has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
some14u has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
otisolsen70 has quit [Quit: Leaving]
some14u has joined #ruby
odd131 has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
znpy has joined #ruby
<znpy> hi all! quick question: i need to start working on a codebase at work that's on ruby 2.7.x, is Programming Ruby at https://ruby-doc.com/docs/ProgrammingRuby/ still good as an introductory book about ruby ?
<znpy> i have prior programming experience but the book says it's about version 1.6 from ~2000
<znpy> 22 years is a bit much
<znpy> otherwise, what material would you recommend ?
some14u has quit [Ping timeout: 260 seconds]
<weaksauc_> huh
<weaksauc_> that's supposed to be an excerpt from the pickaxe book
<weaksauc_> I thought they were using something more recent than that
<znpy> weaksauc_: it's the full book it seems ?
<znpy> weaksauc_: «The seminal work on Ruby in English, this first edition of the Pragmatic Programmers’ book is available for free online.»
<weaksauc_> there were a lot of changes from 1.8 to 1.9
<weaksauc_> quite a few breaking changes
<znpy> sure
<weaksauc_> well grounded rubist is good
<weaksauc_> i really liked eloquent ruby but it's out of print
<znpy> is it just me or there is no proper tutorial about current ruby on the website ?
<znpy> the ruby programming wikibook is from 2012
<weaksauc_> yeah
<weaksauc_> ruby koans are good practical things
<weaksauc_> why's guide is pretty good too
<weaksauc_> not too much has changed though in the basics of ruby
<weaksauc_> that's probably the most up to date book for free
<znpy> weaksauc_: except it seems to be asking $29.99 ?
<weaksauc_> you can read it for free sans the videos
<znpy> my bad, you're right weaksauc_
<weaksauc_> there's also project odin but some of the readings are not free however it does go through a lot of things for free
<weaksauc_> worth checking out the ruby section of that for free
<znpy> still weird that there's no recent "official" tutorial on the main site
<znpy> something similar to https://docs.python.org/3/tutorial/index.html conceptually
<znpy> anyway, thanks weaksauc_ :)
idkwtf has quit [Ping timeout: 248 seconds]