#ruby - 10 March 2019
« Back 1 day Forward 1 day »
[06:27:57] marz_dgzmn: I'm trying to install gems via bundle install --path .bundle so the gems won't conflict with the system wide gemsets, how do I run my ruby script to use the gemsets installed on .bundle?
[13:34:44] waheedi: it will always return false in that case as the first belongs to Klass and the second to AnotherKlass
[14:36:27] notZarthus: waheedi: that sounds like a X-Y question .. in what scenario do you need to compare method bodies?
[14:44:28] waheedi: thanks, notZarthus, it is an experimenting scenario, I thought there is away to compare method bodies but it seems not, more precisely it was for implementing a singleton abstract class trying to make sure derivatives methods that are responsible for creating new instances or duplicating ones, are the same as the the parent "singleton" class
[14:45:49] waheedi: notZarthus: https://github.com/waheedi/singleton-ruby-class/blob/2940d1cbd4f46cb15dafeb55ab71be147b6fe564/singleton.rb#L23 this line specifically
[16:08:39] c-c: Ok, nice to clean up the code with vim '='. But struggling with the structure for the data of the opened named pipe IO-object, its r/w flags, and how to represent related nicks and processes. https://gist.github.com/csmr/5c0da68094e8112c4624f457f180be24#file-pipedprocs-rb-L105
[16:42:00] phaul: do two methods equal if for the same input they produce the same output or if the source code matches? Moreover do they equal if the source code doesn't match but have onlyy insignificant differences like varibale naming or indentation? Also Is this the same as solving the halting problem
[16:50:10] phaul: no, Im pondering aloud. waheedi asked about this, and I'm not sure what constrainsts they had for their question
[16:52:00] phaul: I suspect knowing if they output the same would actually be equivalent to solving the halting problem
[21:03:14] naezy: I need to use a command line interface to create a new user with some field values. example: new user user3 firstname.lastname@example.org 500
[21:04:15] naezy: I can write the code with classes but don't know how I can use commands to run a particular piece of code which creates new users
[21:26:32] ruby[bot]: naezy: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP