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
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.
<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?
<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]
<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.