havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.3, 3.0.5, 2.7.7, 3.2.0-rc1: 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/
Inoperable has joined #ruby
Inoperable has quit [Quit: All your buffer are belong to us!]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
otisolsen70 has quit [Quit: Leaving]
markong has quit [Ping timeout: 256 seconds]
osXnut has quit [Quit: leaving]
caedmon has joined #ruby
eddof13 has joined #ruby
Michaela has quit [Ping timeout: 255 seconds]
Michaela has joined #ruby
caedmon has quit [Ping timeout: 268 seconds]
FullMetalStacker has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
c10l has quit [Read error: Connection reset by peer]
c10l has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ruby
Michaela has quit [Ping timeout: 255 seconds]
aeris has quit [Ping timeout: 255 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
aeris has joined #ruby
Michaela has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
Vonter has joined #ruby
caedmon has joined #ruby
crax23 has joined #ruby
Y05hito__ has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
cartdrige has quit [Ping timeout: 264 seconds]
crax23 has quit [Ping timeout: 268 seconds]
matju has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 256 seconds]
matju has quit [Quit: Leaving]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 256 seconds]
Y05hito__ has quit [Ping timeout: 246 seconds]
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
aeris has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
moldorcoder7_ has quit [Read error: Connection reset by peer]
moldorcoder7 has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
Michaela has quit [Ping timeout: 255 seconds]
Michaela has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
stirl has joined #ruby
Linux_Kerio has joined #ruby
reset has joined #ruby
summerisle is now known as eof
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
aeris has quit [Ping timeout: 255 seconds]
Pixi has joined #ruby
aeris has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp has joined #ruby
stirl has quit [Ping timeout: 256 seconds]
FullMetalStacker has joined #ruby
<FullMetalStacker> (havenwood that was)
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
stirl has joined #ruby
stirl has quit [Remote host closed the connection]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
_ht has joined #ruby
ur5us has quit [Quit: Leaving]
gr33n7001 has joined #ruby
gr33n7007h is now known as Guest6359
gr33n7001 is now known as gr33n7007h
Guest6359 has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
Guest6359 has joined #ruby
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
aeris has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
Rounin has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
EHS77 has joined #ruby
EHS77 has quit [Client Quit]
dionysus69 has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
cartdrige has joined #ruby
moldorcoder7 has quit [Ping timeout: 268 seconds]
markong has joined #ruby
gonix has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 265 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
gonix has quit [Ping timeout: 265 seconds]
markong has quit [Ping timeout: 265 seconds]
Michaela has quit [Ping timeout: 255 seconds]
Michaela has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 246 seconds]
Michaela has quit [Remote host closed the connection]
Aminda has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
Linux_Kerio has joined #ruby
crankharder has joined #ruby
Y05hito__ has quit [Remote host closed the connection]
cartdrige has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
crankharder has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
aeris has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 252 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
aeris has quit [Ping timeout: 255 seconds]
Aminda has quit [Ping timeout: 255 seconds]
<FullMetalStacker> those of you who also do Python might have heard of Al Sweigart's awesome books on Python, that are all very hands on, and practice by doing small projects. This is my preferred style of learning, by doing. Here is an example of one of his great books that use that approach: https://inventwithpython.com/invent4thed/ Does anyone know of any book or online resource that follows this hands on method but for Ruby?
<FullMetalStacker> Some book that can be recommended I mean
<aesthetikx> old but maybe https://nostarch.com/wcruby.htm
aeris has joined #ruby
<aesthetikx> other than that, this is a good way to familiarize yourself with the lang https://github.com/edgecase/ruby_koans
cartdrige has quit [Ping timeout: 256 seconds]
markong has joined #ruby
aeris has quit [Remote host closed the connection]
Aminda has joined #ruby
aeris has joined #ruby
<FullMetalStacker> I had heard of the koans but found the website to be offline. Thanks for the github link, will take it from there!
<aesthetikx> yeah stick with it, its worth it and fun
<FullMetalStacker> The book I had seen it but being from 2008 and having mixed reviews held me back so far
<aesthetikx> fair
yxhuvud has quit [Read error: Connection reset by peer]
<FullMetalStacker> i cant really understand why on earth most learning materials for ruby are so old and only very view new resources get created. Yes, I get it, the big boom times of Ruby are gone, but, heck, it still is an TOP 5-10 language when it comes to the various use indexes.. Not on position 1000 or something
<FullMetalStacker> top 5-15
crankharder has joined #ruby
<caleb> it really is a shame
<caleb> everyone I know who's writing Ruby started 10-25 years ago
<FullMetalStacker> running out of fresh blood
<FullMetalStacker> but still.. there are so many much smaller micro niche open source projects that have great documentation, great up to date learning resources, etc. and their userbase is a fraction of that of ruby. so i wonder, how come that the ruby community is not more productive in those areas
yxhuvud has joined #ruby
<FullMetalStacker> with so many senior ruby devs out there, i wonder how no one came up with e.g. setting up a fresh and modern open source learning resources platform for ruby yet
crankharder has quit [Ping timeout: 256 seconds]
gr33n7007h has quit [Read error: Connection reset by peer]
<Rounin> Hm... From what some professional Ruby developers told me, a lot of them switched to things like JavaScript
<Rounin> Though noone had any complaints about Ruby... It was probably due to market forces.
<Rounin> Where I live, everything is Java + JavaScript + perhaps some C# and ASP.Net
<Rounin> Corporations want employees to be replaceable I suppose
<FullMetalStacker> yeah, i know the trends are against ruby the last 5-10 years but still it remains a very common language. that is what surprises me. ruby is galaxies far from being some micro niche geek thing that only 42 people on the planet use
<FullMetalStacker> but obviously it is the fresh blood problem. those who use it don't need any books anymore. and the freshmen seem to be too few to make a book an lucrative business. yet what i don't get is that the community itself is not taking care of this by providing fresh and welcoming material
<Rounin> Yeah, that's a good point... It would take some bandwidth I suppose, but surely someone has the infrastructure
<FullMetalStacker> the approach of having a foundation that backs the project as rails has it now is the way to go i believe. it can then collect donations in money and contributions and build great things. so many companies and freelancers depend on ruby and on its future. if everyone would just donate 1$ and 1h of work ruby would have the best learning resources repository of all
<caleb> several dozen unicorns of the past VC boom decade were built on ruby/rails. Gusto, Stripe, Clearbit, Shopify, GitHub, AirBnB, Square just to name a few
<Rounin> True that... Everyone who's ever used Ruby should donate $1 to me first, and I'l set up the site after I retire, haha
<caleb> if you're an experienced ruby eng there's really no reason to change language career paths. Any good ruby eng can easily command $150k+ salary.
<Rounin> Not bad at all...!
<caleb> a figure in the ruby community recently put this together https://www.rubylearning.dev/
<Rounin> Hm... I'm going to bookmark that one... Looks like it could have something for the intermediate level and beyond as well
cartdrige has joined #ruby
c10l2 has joined #ruby
c10l has quit [Ping timeout: 260 seconds]
c10l2 is now known as c10l
tirnanog has quit [Quit: = ""]
ssh0732 has quit [Ping timeout: 255 seconds]
<FullMetalStacker> @caleb aweseome! thank you!
ssh0732 has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 256 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 268 seconds]
ssh07325 has joined #ruby
ssh0732 has quit [Ping timeout: 255 seconds]
ssh07325 is now known as ssh0732
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
ssh0732 has quit [Remote host closed the connection]
ssh0732 has joined #ruby
A_Dragon is now known as Festive_Dragon
Sheilong has joined #ruby
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
markong has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
sachot has joined #ruby
teclator has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
r3m has quit [Quit: WeeChat 3.8-dev]
r3m has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Quit: WeeChat 3.7.1]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
perrierj1 has joined #ruby
sachot has left #ruby [#ruby]
<isene> ox1eef_: Could you take a look at my xrpn gem (it's pushed but not working) - I need to read in all the files in xrpn/cmd and xrpn/lib, but apparently `require 'xrpn' does not read in these files?
cartdrige has quit [Quit: Leaving]
moldorcoder7 has joined #ruby
pvalenta has quit [Quit: ZNC - https://znc.in]
pvalenta has joined #ruby
perrierj1 has quit [Quit: WeeChat 3.7.1]
<ox1eef_> isene: I will try take a look in a couple of hours.
<adam12> isene: You need to namespace your lib.
<adam12> Then make lib/xrpn.rb that does a require for each file you want to load.
<adam12> since you're not using .rb extensions, you can't use require. Likely need load, which is less than spectactular.
Linux_Kerio has quit [Ping timeout: 256 seconds]
<ox1eef_> It looks like 'load' is being used, but the project layout is not standard and the repository is missing a gemspec. You should add one to the repository so that others can easily build the gem. I'd second what adam12 said in regards to file extensions, even if you will use load, it makes life more complicated to not have a .rb extension on the Ruby files. Most if not all editors won't pick them up as
<ox1eef_> Ruby. All of that makes it harder for others to debug your project, and contribute to it as well.
Guest2529 has joined #ruby
Guest2529 has quit [Client Quit]
<ox1eef_> Another issue you are going to face is that RubyGems does not patch Kernel#load, so you can't use it with paths relative to your RubyGem. You're going to want to implement XRPN.require yourself, and within that method: def require(path); load File.join(__dir__, "#{path}.rb"); end
<ox1eef_> The assumption is that you define XRPN.require in lib/xprn.rb, and that "path" will be relative to the "lib/" directory.
_ht has quit [Quit: _ht]
reset has quit [Quit: reset]
pandabot has quit [Quit: use it or lose it, maybe]
pandabot has joined #ruby
perrierjouet has joined #ruby
cartdrige has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.7.1]
<isene> adam12: names namespace my lib? How?
gcd has quit [Remote host closed the connection]
arahael has quit [Ping timeout: 256 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
eddof13 has joined #ruby
ur5us has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<FullMetalStacker> @all what is your take on the best path from noob to becoming a ruby remote freelancer. questions i have are e.g.
<FullMetalStacker> 1) what skill level would be the bare minimum? and what skill set? ruby alone enough? or rails?
<FullMetalStacker> 4) what platforms would you recommend for getting freelance ruby / rails gigs, if any?
<FullMetalStacker> 3) do you see opportunities to become a part time ruby freelancer who is part of another team?
<FullMetalStacker> 2) which are the best target groups for freelance ruby gigs?
eddof13 has joined #ruby
<ox1eef_> FullMetalStacker: For 4) .. weworkremotely.com, hired.com
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
sagax has quit [Remote host closed the connection]
<sixpiece> hi adam12 it didn't solve the issue either way though
perrierjouet has joined #ruby
perrierjouet has quit [Client Quit]
markong has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
pandabot has quit [Quit: provision]
pandabot has joined #ruby
perrierjouet1 has joined #ruby
perrierjouet1 has quit [Client Quit]
szkl has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
crax23 has joined #ruby
kaivai has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
<adam12> isene: When people install your gem, Ruby will make your `lib` folder available on $LOAD_PATH. Etiquette dictates that you only put your namespace file inside `lib`, and then the rest of your files in `lib/your_gem_name`, to prevent dirtying the `require` functionality.
<adam12> Tho that said, since none of your files in `lib` have a .rb extension, they'd likely be ignored.
perrierjouet has joined #ruby
<adam12> Just switching to require won't solve everything, because you have some unorthodox uses of `load` where the methods defined in the file are likely loaded in `main`. Normally they'd be inside your module namespace and then called somehow (included, constructed, whatever).
<adam12> At best, I'd use the gem data hook I mentioned a few days ago for you. Stick everything in data/, then load it from there. It's likely the path of least resistance for you at this point, without re-architecting everything.
<adam12> Putting your gemspec in the repo will help as well.
pounce has joined #ruby
meimei has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby