havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
jrabe has quit [Quit: Disconnected]
jrabe has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has quit [Quit: heftig]
bonhoeffer has joined #ruby
Caerus has quit [Quit: Leaving]
heftig has joined #ruby
orbyt_ has joined #ruby
lxsameer has joined #ruby
venmx has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
venmx has quit [Ping timeout: 264 seconds]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
vonfry has joined #ruby
jrafanie has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
zlogan2003 has quit [Read error: Connection reset by peer]
Caerus has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
bonhoeffer has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
lxsameer has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
zachk has quit [Quit: Leaving]
SunnyLumenz has joined #ruby
willthechill has joined #ruby
SunnyLumens has quit [Ping timeout: 248 seconds]
heftig has left #ruby [#ruby]
subroot has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
subr has joined #ruby
jhack has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
subroot has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
jrafanie has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
samosaphile has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
MzrE has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
jhack has quit [Quit: jhack]
lxsameer has joined #ruby
yokel has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MagePsycho has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has joined #ruby
ogres has joined #ruby
GodFather has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 264 seconds]
_aeris_ has quit [Ping timeout: 250 seconds]
_aeris_ has joined #ruby
almdrx has quit [Quit: ZZZzzz…]
vonfry_ has joined #ruby
MagePsycho has joined #ruby
vonfry has quit [Remote host closed the connection]
GodFather has joined #ruby
almdrx has joined #ruby
Vingador has joined #ruby
hfp_work has quit [Quit: bye]
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
vipaca has joined #ruby
vipaca is now known as Guest18940
GodFather has quit [Remote host closed the connection]
vonfry_ has quit [Remote host closed the connection]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
subr has quit [Quit: Leaving]
subroot has joined #ruby
hfp_work has joined #ruby
Guest18940 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has quit [Ping timeout: 240 seconds]
Puffball has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
vipaca_ has joined #ruby
GodFather has joined #ruby
ciscam has joined #ruby
lxsameer has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
GodFather has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
GodFather has joined #ruby
hfp_work has quit [Quit: bye]
GodFather has quit [Remote host closed the connection]
hfp_work has joined #ruby
vipaca_ has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
lxsameer has joined #ruby
braincrash has quit [Quit: bye bye]
lxsameer has quit [Ping timeout: 244 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
subroot has quit [Quit: Leaving]
alex``` has quit [Quit: WeeChat 2.1]
bonhoeffer has joined #ruby
akaiiro has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
almdrx has quit [Quit: ZZZzzz…]
DTZUZO has joined #ruby
almdrx has joined #ruby
apparition has joined #ruby
akaiiro has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
jtdowney has joined #ruby
vipaca has joined #ruby
vipaca is now known as Guest3740
Vingador has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
ur5us has joined #ruby
graphene has joined #ruby
MzrE has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 240 seconds]
gix has joined #ruby
Guest3740 has quit [Quit: Textual IRC Client: www.textualapp.com]
gix- has quit [Ping timeout: 240 seconds]
lytol has joined #ruby
Caerus has quit [Ping timeout: 256 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
redlegion has quit [Excess Flood]
redlegion has joined #ruby
lytol_ has joined #ruby
lytol_ has quit [Remote host closed the connection]
lytol has quit [Ping timeout: 240 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
m27frogy has quit [Ping timeout: 260 seconds]
tdy1 has joined #ruby
lxsameer has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
Guest5141 has joined #ruby
Guest5141 has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
RougeR has quit [Ping timeout: 268 seconds]
akaiiro has joined #ruby
xall has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
lxsameer has quit [Ping timeout: 260 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
nima_m has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
lxsameer has joined #ruby
almdrx has quit [Quit: ZZZzzz…]
za1b1tsu_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
almdrx has joined #ruby
Caerus has joined #ruby
Es0teric has joined #ruby
lxsameer has joined #ruby
ur5us has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
FernandoBasso has joined #ruby
almdrx has quit [Quit: ZZZzzz…]
shinnya has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
darkhanb has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
xall_ has quit [Quit: xall_]
almdrx has joined #ruby
MagePsycho has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.1]
ciscam has quit [Ping timeout: 268 seconds]
ciscam has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 256 seconds]
faces has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
schleppel has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
akaiiro has quit [Remote host closed the connection]
konsolebox has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
nima_m has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Ping timeout: 240 seconds]
za1b1tsu_ has quit [Ping timeout: 256 seconds]
Puffball has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
lystra has quit [Quit: Leaving]
almdrx has quit [Quit: ZZZzzz…]
jmcgnh has quit [Quit: ZNC 1.6.5 - http://znc.in]
\void has quit [Quit: So long, and thanks for all the fish.]
Caerus has quit [Quit: zZzZzz]
jmcgnh has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nima_m has joined #ruby
za1b1tsu_ has joined #ruby
za1b1tsu_ has quit [Ping timeout: 260 seconds]
ThePortWhisperer has joined #ruby
ThePortWhisperer has left #ruby ["Leaving"]
eadthem has joined #ruby
UniverseFactory has joined #ruby
UniverseFactory has left #ruby ["Leaving..."]
nima_m has quit [Quit: nima_m]
<eadthem> im having an issue running a part of a ruby program. the offending line req.match?(spec, allow_prerelease) causes this error `block in find_all': undefined method `match?'
<eadthem> im interested in knowing a bit of background on .match? and maybe if this is something version related
za1b1tsu_ has joined #ruby
<eadthem> my ruby verison is 2.1.9
lxsameer has joined #ruby
<eadthem> a manual explaining req.match would help. ive not had any luck finding that much
mikecmpbll has joined #ruby
biberu has joined #ruby
dellavg has joined #ruby
za1b1tsu_ has quit [Ping timeout: 264 seconds]
<baweaver> eadthem: What does that error say?
<baweaver> undefined method `match?`
<eadthem> ya
<baweaver> Though you need to show more of your code if you want an answer, as there's too much context missing.
<baweaver> I'd think that req is some form of request, but no clue past that.
<eadthem> k so req is not a part of a library or function its a object
<eadthem> very new to ruby.
<baweaver> where are you calling that code?
<baweaver> What does req look like?
<baweaver> That, and Ruby 2.1.x is super old.
<eadthem> ok moving down the call stack it says /usr/lib64/ruby/2.1.0/rubygems/resolver/composed_set.rb:38:in `block in find_all'
<eadthem> well maybe thats wehre i need to start then i wasnt sure how old it was. its the stock version for opensuse
<baweaver> I doubt it's the version
<baweaver> At least for now
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<baweaver> Throw the code up there that's erroring
<baweaver> as well as the stack trace
<eadthem> and the issue is trying to install a plugin in vagrant, but sense ive not done ruby figured id get more context in to the error.
<baweaver> We have even less context than you do, remember
<eadthem> im follwing the code a bit more now.
<eadthem> ya i know, i was more curious about the one line but this is helpful the code is vagrant, i shuld of said that from the start
clemens3 has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<eadthem> is there a easy way in ruby to dump a object to console? like var_dump() in php? for debugging
<eadthem> or exploring.
<eadthem> thanks
shinnya has joined #ruby
ur5us has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
graphene has quit [Remote host closed the connection]
lxsameer has joined #ruby
zenspider has quit [Ping timeout: 256 seconds]
graphene has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
zenspider has joined #ruby
za1b1tsu_ has joined #ruby
karapetyan has joined #ruby
lomex has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
PaulePanter has quit [Remote host closed the connection]
le94 has joined #ruby
PaulePanter has joined #ruby
le94 has quit [Quit: WeeChat 2.2]
le94 has joined #ruby
karapetyan has quit [Remote host closed the connection]
le94 is now known as le98
karapetyan has joined #ruby
PaulePanter has quit [Ping timeout: 240 seconds]
le98 has quit [Client Quit]
alehander42 has joined #ruby
alehander42 is now known as le98
le98 has quit [Client Quit]
mikecmpbll has quit [Quit: inabit. zz.]
alehander42 has joined #ruby
amar has joined #ruby
suukim has joined #ruby
alehander42 has quit [Client Quit]
alehander42 has joined #ruby
<alehander42> can you help me with metaclasses
<alehander42> are they like pythons?
conta has joined #ruby
eadthem has quit [Remote host closed the connection]
_whitelogger has joined #ruby
<baweaver> alehander42: Metaclass?
lxsameer has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
snickers has joined #ruby
jmcgnh has joined #ruby
amar has quit [Ping timeout: 240 seconds]
amar has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
snickers has quit [Client Quit]
lxsameer has joined #ruby
graphene has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
graphene has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar_ has joined #ruby
dellavg has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
apeiros has joined #ruby
<alehander42> yeah, like metaprogramming
amar has quit [Ping timeout: 248 seconds]
<baweaver> In general it's overkill
Puffball has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
alfiemax has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
lomex has joined #ruby
lxsameer has joined #ruby
venmx has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n13z has joined #ruby
lomex has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
PaulePanter has joined #ruby
za1b1tsu_ has quit [Ping timeout: 256 seconds]
beefjoe has joined #ruby
r3m has quit [Quit: ZNC - http://znc.in]
conta has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
conta has joined #ruby
r3m has joined #ruby
alfiemax has joined #ruby
zapata has quit [Quit: WeeChat 2.1]
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Remote host closed the connection]
zapata has joined #ruby
snickers has joined #ruby
Puffball has quit [Remote host closed the connection]
lxsameer has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 276 seconds]
venmx has quit [Ping timeout: 244 seconds]
alfiemax_ has joined #ruby
guardian has quit [Remote host closed the connection]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
snickers has joined #ruby
beefjoe has quit [Remote host closed the connection]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tty has joined #ruby
Puffball has joined #ruby
leitz has joined #ruby
<leitz> What's the usual way to parse user input to make sure there's no commands or other hanky-panky? The string requested will become a filename.
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
<elomatreb> The only *proper* way to do this is using a tool that doesn't allow this to happen, i.e. avoid shelling out with string interpolation
guardian has joined #ruby
lxsameer has joined #ruby
<leitz> Is there an existing library that converts entities, ro just write my own? In this case, things like semi-commas, colons, etc, should not be in the string.
maiz has joined #ruby
<Alec> What do you mean?
<Alec> leitz: NEVER RUN USER INPUT
<leitz> Actually, it might be easier to just convert spaces to underscores and then only allow those and alphanumeric.
<elomatreb> If you just want to substitute characters something simple like String#tr is worth a look
<leitz> Alec, I'm asking the user for a string that will become a filename. Trying to avoid stuff like "/etc/passwd". :)
<leitz> elomatreb, thanks! Going to look now.
<Alec> Why is it ran as root?
<elomatreb> A blacklist of "dangerous" files will not work out in the long run, your OS protects the files
<lupine> if you ensure it's not interpolated, the main thing you have to watch out for is path traversal
<leitz> Why do users do whatever they do? My assumption is that they will behave, but it would be nice to at least put a little protection in.
conta has quit [Quit: conta]
noobineer has joined #ruby
<leitz> I had a PHP form one time. The goal was to help non-computer people enter data. After repeated requests they still put odd characters in some strings. Couldn't get English speaking people to follow plain English.
<elomatreb> I'm not quite sure what the problem you're worried about is btw. Are you creating files?
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
SunnyLumenz has quit [Quit: Leaving]
lomex has joined #ruby
<Alec> leitz: don't neglect malicious users
<Alec> leitz: also utf8 are valid file names
<Alec> You just cant use /
<elomatreb> And 0-bytes. And a bunch more depending on filesystem and/or platform (e.g. NTFS has an infinite number of illegal filenames)
<Alec> That and nullbytes are the only restriction IIRC [there's a length
<leitz> I think the two gems I pushed up to RubyGems this weekend are the wrost ever. However, it pushes me to improve them. ;)
<elomatreb> Or rather, NTFS as used by Windows
<Alec> elomatreb: I did think it went without saying, but I realised 680 people - we're going to have a few auties so ^
<leitz> auties?
<elomatreb> Uh could you not throw slurs around like that please?
alehander42 has quit [Quit: WeeChat 2.2]
<Alec> I don't see it as a slur
<Alec> It's a good thing, I don't think leitz knew it implicitly.
lxsameer has quit [Ping timeout: 264 seconds]
<Alec> I just wanted the credit :P
* leitz still waiting for a translation...
lxsameer has joined #ruby
<elomatreb> leitz: Looking at your code, the worst that could happen is the user accidentally overwriting a file, but only if they have write access in the first place
<elomatreb> Usually in a case like this the best way to proceed is to print a warning and ask for confirmation, but you can't e.g. end up borking /etc/passwd because a regular user can't do that anyway
<leitz> elomatreb, agreed. The future state I'm worried about is my Ruby skill. I'm putting together a web based game and tool, and that means the webserver has the ability to over-write its own files. I'm trying to learn to prevent that early. :)
noobineer has quit [Ping timeout: 240 seconds]
<elomatreb> Depending on the data you're storing you're often much better off with a database instead of files, also solves this problem
<leitz> A bit verbose, but this seems to work. https://gist.github.com/LeamHall/bb6ddb7474bcbee0f18fc08b76edf405
<leitz> And yes, elomatreb the database will come. Not that skilled yet though, so things are stored in files.
<elomatreb> But if you do need to store files the usual approach is to both sandbox your application as much as possible, and/or to store files in an "abstract" manner that doesn't directly translate to real-fs paths
feelx has joined #ruby
<elomatreb> You also need to reject/remove slashes, otherwise you still end up accidentally references directories. E.g. your example will try to reference a directory called "Now_isnt_a_good_time_to_write_"
catbusters has joined #ruby
<leitz> Agreed. I've done some of that, but not as well as I like. '
<leitz> That gsub produces: Now_isnts_a_good_time_to_write_etcpasswd_or_sshid_rsa
lxsameer has quit [Ping timeout: 260 seconds]
za1b1tsu_ has joined #ruby
<leitz> I realize it's a bit heavy-handed, but if the user doesn't want to play with good form...
lxsameer has joined #ruby
<elomatreb> Oh I missed the gsub, lol. That should cover most cases, but you could still end up with weird directories (e.g. `...` is a perfectly valid name, but looks really awkward and hides in ls output)
<leitz> Think it would work if the gsub output is only a file name?
<leitz> "..." characters are removed as well.
le98 has joined #ruby
<elomatreb> Uh, yeah. Sorry, I've been up all night
<elomatreb> The more you escape/remove though, the more you need to worry about collisions
<leitz> Ha! You should see my typing when I've been up too long or start before the coffee kicks in...
<leitz> The game has an explicit data_dir and the files are written there.
TinkerT has quit [Read error: Connection reset by peer]
za1b1tsu_ has quit [Ping timeout: 240 seconds]
<le98> do you use more oop or fp with ruby :O
TinkerT has joined #ruby
<elomatreb> Ruby is object-oriented in all aspects, but you see a lot of patterns that are often described as functional
lxsameer has quit [Ping timeout: 240 seconds]
<le98> but do you think i can largely work with def-s without classes
<le98> basically simulating a common fp
<leitz> le98, you can do a lot of stuff with Ruby. That's part of the joy. I am working on my OOP skills but can still get stuff done with Ruby. I'd suggest you take a few ideas and try to code them in Ruby, without OOP. See if it works for you.
<le98> good idea !
<le98> thanks!!
<leitz> Happy to help!
<elomatreb> You technically can for sure, but defs outside of classes are no less object-oriented than with classes. They define methods on the implicit "main" object
<le98> i know that this is how it works, but if i don't use this property
<le98> it's mostly an interesting design choice
<le98> do people use this fact in a way?
<elomatreb> Your code will quickly become really spaghetti-y probably, but there's nothing stopping your from trying
<elomatreb> Not really no.
<le98> but what is different about e.g. functional languages
<le98> where you have data structures
<le98> and you have functions on them
<le98> and you still have good separation
Guest97406 has quit [Read error: Connection reset by peer]
<elomatreb> 1. Any data structure is also a class, including the primitives like string and integers 2. Major difference to functional languages is that nothing prevents you from causing side effects
Nicmavr has joined #ruby
Nicmavr is now known as Guest76411
desperek has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
<le98> ok, i can use classes for data and try to make most functions pure
<le98> i know its not the ruby way just wondering if ppl do it
c0ncealed2 has joined #ruby
<elomatreb> Certainly, but don't be surprised when people mix and match approaches
karapetyan has quit [Remote host closed the connection]
<leitz> le98, one of the things I had to learn was to quit worrying so much about what other people think or do. There are some concrete rules like "don't turst user input" and there are a lot of opinions about what you can/should/ought to do with a language.
<leitz> I've had to accept that what I want to do, and how I do it, needs to fit me. It needs to be "good code" in the sense of tests, docs, stability, etc. But it does not have to be "Pure RUby Essence" or how others code.
<leitz> It needs to meet my needs and make me happy.
* leitz is still learning that lesson...
<Alec> It depends who they are really
<Alec> Not so much here (although it has other issues) but some channels are FILLED with students
<Alec> Now I was a student once, but I kinda knew that I was also a noob and inexperienced, on Freenode they don't have... like a sense of inexperience.
<Alec> It sounds weird but "it's not arrogance if you're right" - you've just gotta earn your stripes.
<leitz> Alex, agreed. #ruby drove me away from Ruby more than once.
<Alec> Was it a certain operator/
<leitz> Even with the really smart folks here.
<Alec> Anyway there's this thing I call "the hello world gulf" - and it's VERY real, it's the massive gap between real software and noob software, like noob software tends to be single file, very bad at taking input, fragile, ect ect, and it's a difficult thing to cross.
<leitz> The most wearing time was being told to upgrade after I explained that I couldn't. Led to a blog post. http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html
<Alec> I actually collect sample projects now which are very simple but "real" programs, for students to cut their teeth on. Sadly I've all but cut my lecturing commitments as the atmosphere at my uni was getting really toxic.
mim7 has joined #ruby
<Alec> And I'm not like a nazi and that's why it was getting toxic :P
AJA4350 has joined #ruby
<leitz> Alec: On that "gulf" EXACTLY!!!!! I've been trying to find ways to bridge that gulf.
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
<Alec> Make stuff.
<leitz> I did some C mentoring for a bit, for others. Trying to find a way to bring it to Ruby with me as Mentee... https://github.com/LeamHall/90DW_mentoring
<Alec> You mentored ...
fering has joined #ruby
<Alec> I've really got to work sorry
<Alec> I really enjoyed bitching about noobs with you guys :P
desperek has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
fering has left #ruby [#ruby]
<le98> :D
<le98> yeah i know but still people with more xp than me can help
lxsameer has joined #ruby
kliq has joined #ruby
mim7 has quit [Remote host closed the connection]
za1b1tsu_ has joined #ruby
<leitz> Alec, enjoy work!
lxsameer has quit [Ping timeout: 240 seconds]
aninaki has joined #ruby
lxsameer has joined #ruby
aninaki has quit [Quit: leaving]
za1b1tsu_ has quit [Ping timeout: 260 seconds]
aninaki has joined #ruby
bonhoeffer has joined #ruby
<leitz> If anyone wants to lead a Mentoring effort, here's one languages path. https://php-mentoring.org/
lxsameer has quit [Ping timeout: 260 seconds]
Some-body_ has joined #ruby
DarthGandalf has quit [Ping timeout: 240 seconds]
Some-body_ is now known as DarthGandalf
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lomex has joined #ruby
lomex has quit [Client Quit]
hphat^ has joined #ruby
<Alec> leitz: if it's for PHP (and I mean this)
<Alec> I'd rather take my mentors and lock them in a car, climb in the front seat having put child-lock on, and used socks and a hosepipe to wedge the exhaust into the slightly opened nearest window to me, and pump the accelerator
<leitz> Alec, I'd love to see something similar for Ruby. I know that I don't know, and I know of things I need to know, I just don't know how to structure and prioritize what I need to know to move forward.
Alina-malina has quit [Ping timeout: 268 seconds]
<leitz> I like mentoring when I can, and being mentored when I can get it.
jottr has joined #ruby
<Alec> If you really want to see something similar I'll pay for an old second hand car.
<Alec> Ideally a VW so it'll be quick
<leitz> You still haven't explained auties.
<Alec> Not my dept.
<leitz> Okay, time to head to church. Back after while. Lots of code work to be done.
leitz has quit [Quit: Nappy time]
<Alec> leitz: I don't think you can mentor really. What I do (which works really really well) is give them one of the sample projects (3rd years ~ 4th in America) and they do it, then they're all smug when they enter my office for the follow up
<Alec> You crush them with all the stuff they missed and the ones that make it are better for it
<Alec> I don't want to give an example though because it taints anyone who may actually do the exercise
amelliaa has joined #ruby
fering2 has joined #ruby
fering2 has left #ruby ["AndroIRC"]
quobo has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
lxsameer has joined #ruby
karapetyan has quit [Remote host closed the connection]
Alina-malina has joined #ruby
jtdowney has quit [Quit: jtdowney]
jtdowney has joined #ruby
clemens3_ has joined #ruby
kliq has quit [Ping timeout: 260 seconds]
kliq has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
amelliaa has quit [Quit: -]
lxsameer has joined #ruby
Zaab1t has joined #ruby
feelx- has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
leah2 has quit [Remote host closed the connection]
feelx has quit [Ping timeout: 240 seconds]
leah2 has joined #ruby
fmcgeough has joined #ruby
feelx- has quit [Client Quit]
tdy1 has quit [Ping timeout: 240 seconds]
le98 has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
hanmac has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
za1b1tsu_ has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
bonhoeffer has joined #ruby
alfiemax has quit [Remote host closed the connection]
cliq has joined #ruby
cliq has quit [Max SendQ exceeded]
cliq has joined #ruby
kliq has quit [Ping timeout: 240 seconds]
kliq has joined #ruby
alfiemax has joined #ruby
lxsameer has joined #ruby
cliq has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 244 seconds]
boardfish has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
GodFather has joined #ruby
<boardfish> Quick question, I'm getting data from an API in the form of an API::Object provided by the API's gem. How can I use this as an ActiveRecord model, and if not, is there a comparable alternative that'd let me save the objects and access them in the same way?
<boardfish> The big thing really is having them stored in a database and being able to access and manipulate their attributes without having to change the contents of the API object itself.
kliq has quit [Ping timeout: 260 seconds]
subroot has joined #ruby
karapetyan has joined #ruby
GodFather has quit [Remote host closed the connection]
desperek has joined #ruby
GodFather has joined #ruby
karapetyan has quit [Remote host closed the connection]
Zaab1t has quit [Quit: Zaab1t]
karapetyan has joined #ruby
amar has joined #ruby
subroot has quit [Read error: Connection reset by peer]
amar_ has quit [Ping timeout: 240 seconds]
bak1an has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
boardfish has quit []
GodFather has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 268 seconds]
Apocalypse has quit [Ping timeout: 276 seconds]
amar_ has joined #ruby
Apocalypse has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
DLSteve has joined #ruby
GodFather has joined #ruby
DLSteve has quit [Client Quit]
amar has quit [Ping timeout: 268 seconds]
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby
whiteline has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
psychicist__ has joined #ruby
alfiemax has quit [Remote host closed the connection]
amar_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
Dimik has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
FernandoBasso has quit [Quit: Leaving]
amar has joined #ruby
conta has joined #ruby
karapetyan has quit [Remote host closed the connection]
salasrod has joined #ruby
maiz has quit [Ping timeout: 240 seconds]
desperek has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
za1b1tsu_ has quit [Ping timeout: 240 seconds]
za1b1tsu_ has joined #ruby
redlegion has quit [Ping timeout: 250 seconds]
redlegion has joined #ruby
za1b1tsu_ has quit [Ping timeout: 244 seconds]
za1b1tsu_ has joined #ruby
bonhoeffer has joined #ruby
lxsameer has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
Mike11 has joined #ruby
alex`` has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
za1b1tsu_ has quit [Ping timeout: 244 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
amar_ has joined #ruby
amar has quit [Ping timeout: 260 seconds]
bonhoeffer has joined #ruby
mikecmpbll has joined #ruby
bonhoeffer has quit [Client Quit]
lxsameer has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicht has joined #ruby
nicht has quit [Max SendQ exceeded]
bonhoeffer has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
za1b1tsu_ has joined #ruby
Mike11 has quit [Quit: Leaving.]
desperek has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
rkoller has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
lomex has joined #ruby
hphat^ has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hphat^ has joined #ruby
claudiuinberlin has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
maiz has joined #ruby
za1b1tsu_ has quit [Ping timeout: 244 seconds]
graphene has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
graphene has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
za1b1tsu_ has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
amar__ has joined #ruby
jrafanie has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
leitz has joined #ruby
amar_ has quit [Ping timeout: 248 seconds]
<leitz> Is there a way to tell unittest to not error on automatic returns?
lxsameer has joined #ruby
za1b1tsu_ has quit [Read error: Connection reset by peer]
<leitz> Sorry, "warning".
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
suukim has quit [Quit: Konversation terminated!]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
npgm has joined #ruby
maiz has quit [Ping timeout: 268 seconds]
graphene has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
graphene has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
salasrod has quit [Quit: Leaving]
salasrod has joined #ruby
alfiemax has joined #ruby
lxsameer has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
edwardly has quit [Ping timeout: 244 seconds]
dellavg has joined #ruby
karapetyan has quit [Remote host closed the connection]
leitz has quit [Quit: Nappy time]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
lxsameer has joined #ruby
karapetyan has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
FernandoBasso has joined #ruby
samosaphile has joined #ruby
AJA4350 has quit [Quit: AJA4350]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
\void has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zapata has quit [Quit: WeeChat 2.1]
Caerus has joined #ruby
lxsameer has joined #ruby
ellcs has joined #ruby
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
leitz has joined #ruby
Freshnuts has joined #ruby
fmcgeough has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
alfiemax_ has joined #ruby
orbyt_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
ellcs has quit [Ping timeout: 265 seconds]
graphene has quit [Read error: Connection reset by peer]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
maiz has joined #ruby
conta has quit [Quit: conta]
lomex has joined #ruby
bonhoeffer has joined #ruby
maiz has quit [Quit: WeeChat 2.0.1]
lxsameer has joined #ruby
salasrod has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
biberu has quit []
bonhoeffer has quit [Quit: bonhoeffer]
<leitz> And the funny for the day. Rearranging code and tests fail. Cursing Matz, every developer I've ever known, and those yet to be born. Then realize I have two libraries with the same name and was using the wrong one...
whiteline has quit [Remote host closed the connection]
whiteline has joined #ruby
Freshnuts has quit [Read error: Connection reset by peer]
Freshnuts has joined #ruby
zapata has joined #ruby
kliq has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
leitz has quit [Quit: Nappy time]
lxsameer has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
jottr_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
dviola has joined #ruby
redlegion has quit [Max SendQ exceeded]
GodFather has quit [Remote host closed the connection]
redlegion has joined #ruby
FernandoBasso has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<FernandoBasso> Do I need an accessor to print MyClass.foo, when inside the class I have @@foo ?
Furai has quit [Remote host closed the connection]
GodFather has joined #ruby
Furai has joined #ruby
za1b1tsu_ has joined #ruby
Freshnuts has quit [Quit: Leaving]
GodFather has quit [Remote host closed the connection]
dellavg has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
<elomatreb> FernandoBasso: Yes, everything external needs a method, and attr_accessor will not work with class variables. Generally they're not want you want anyway though
almdrx has joined #ruby
<FernandoBasso> So, if I want an accessor, I would have to def self.get_foo; @@foo ; end ?
<elomatreb> Yep, and `def foo=(value)` for the setter
lele has quit [Ping timeout: 256 seconds]
<FernandoBasso> All right. Thanks elomatreb.
alfiemax has joined #ruby
<elomatreb> Beware of the slightly weird behavior of class variables when combined with inheritance btw
GodFather has joined #ruby
lxsameer has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
lele has joined #ruby
jhack has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
za1b1tsu_ has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 240 seconds]
GodFather has quit [Remote host closed the connection]
bga57 has quit [Ping timeout: 244 seconds]
d^sh has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
icantc has joined #ruby
lxsameer has joined #ruby
GodFather has quit [Remote host closed the connection]
envex has quit []
karapetyan has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
r29v has joined #ruby
desperek has quit [Quit: xoxo]
GodFather has joined #ruby
karapetyan has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
psychicist__ has quit [Ping timeout: 260 seconds]
redlegion has joined #ruby
Puffball has quit [Remote host closed the connection]
ur5us has joined #ruby
apeiros has joined #ruby
almdrx has quit [Quit: ZZZzzz…]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 265 seconds]
alex`` has quit [Quit: WeeChat 2.1]
GodFather has quit [Remote host closed the connection]
ur5us has joined #ruby
redlegion has quit [Max SendQ exceeded]
clemens3 has quit [Ping timeout: 240 seconds]
clemens3_ has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 268 seconds]
redlegion has joined #ruby
clemens3_ has joined #ruby
jhack has quit [Quit: jhack]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
jhack has joined #ruby
almdrx has joined #ruby
FernandoBasso has quit [Quit: Leaving]
clemens3 has joined #ruby
GodFather has joined #ruby
r29v has quit [Quit: r29v]
schleppel has quit [Quit: Konversation terminated!]
jhack has quit [Quit: jhack]
jhack has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
GodFather has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
lightstalker has quit [Ping timeout: 256 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
lxsameer has joined #ruby
kliq has quit [Ping timeout: 240 seconds]
jhack has quit [Client Quit]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
GodFather has joined #ruby
subroot has joined #ruby
GodFather has quit [Remote host closed the connection]
amar__ has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
almdrx has quit [Quit: ZZZzzz…]
GodFather has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
Puffball has joined #ruby
karapetyan has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
jinie has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
ellcs has quit [Ping timeout: 265 seconds]
scrptktty has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
clemens3_ has quit [Ping timeout: 244 seconds]
_whitelogger has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
alfiemax_ has quit [Ping timeout: 244 seconds]
devyn has quit [Ping timeout: 244 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
lxsameer has joined #ruby
devyn has joined #ruby
alfiemax has joined #ruby
jrafanie has joined #ruby
psmolen has quit [Ping timeout: 256 seconds]
_aeris_ has quit [Ping timeout: 250 seconds]
psmolen has joined #ruby
redlegion has quit [Ping timeout: 250 seconds]
_aeris_ has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
redlegion has joined #ruby
modin has quit [Ping timeout: 248 seconds]
modin has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
jhack has joined #ruby
subr has joined #ruby
jhack has quit [Client Quit]
subroot has quit [Ping timeout: 260 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<scrptktty> Question: what is the difference between a library and a framework? Is there a clear distinction?
bonhoeffer has quit [Quit: bonhoeffer]
<Radar> imo frameworks are a collection of libraries
<baweaver> A library does one thing
<Radar> like Rails itself is a framework, but it is made up of the libraries like activesupport / activerecord / etc.
<scrptktty> Gotcha
<baweaver> A framework is a collection of libraries to build an application
<scrptktty> But that presupposes modularization?
<baweaver> How so?
<scrptktty> For example, Sinatra is not split... It is just one thing.
<baweaver> Sinatra is still made up of multiple libraries
<Radar> sinatra wouldn't work without rack
<apeiros> scrptktty: a framework gives you a frame within which you operate. a library is a toolbox, providing you a couple of tools for a task. that's by what I tend to go :)
<scrptktty> Or shotgun!
<scrptktty> I see.
jhack has joined #ruby
jhack has left #ruby [#ruby]
<scrptktty> Thanks! I am trying to wrap my head things.
<scrptktty> <around
sameerynho has quit [Ping timeout: 256 seconds]
<zenspider> scrptktty: probably a semantic detail that doesn't actually help you understand things at this point. it's all just code. Just go with it.
jaequery has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
arooni has quit [Quit: ZNC - http://znc.in]
arooni has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
bga57 has joined #ruby
tty has quit [Quit: tty]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
rideh has quit [Ping timeout: 268 seconds]