Page 1 of 4 | Next »
[05:38:28] quarters: woodruffw, thanks. I was wondering if some_hash.find or find_all will be a linear operation
[03:58:06] quarters: hello. I have a file "foo.txt" in the same folder as "foo.rb" where I have a line "foo = File.new("foo.txt","r")" but am getting an error saying that such a file doesn't exist. The documentation here https://ruby-doc.org/core-2.1.4/File.html#method-c-open doesn't really clarify for me.
[04:48:04] quarters: I was wondering how to check whether or not a key in a hash starts with a particular string
[03:05:18] quarters: hello. I was wondering if there's a way to get [1,2,3,3,5] from removing [1,2,4] from [1,1,2,2,4,3,3,5] with a single operator. Diff unfortunately removes all instances of the elements [1,2,4] found in the other array
[00:32:43] quarters: hello. I was wondering if anyone can advise on how to debug specs with vs code's debugger
[05:48:11] quarters: hello. I was wondering how to refactor this to avoid an exception(found being an integer): "if found != nil && found > i"
[00:57:46] quarters: hello. I'm having an issue with running pry without readline and was wondering what the standard solution for this si
[01:20:37] quarters: kind of different, but the underlying error is the same I think: libreadline.so.7: cannot open shared object file: No such file or directory - /home/quarters/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/x86_64-linux/readline.so (LoadError)
[01:24:24] quarters: adam12, it's been awhile since I've touched ruby. is libreadline also a ruby gem?
[18:43:17] quarters: something I've been puzzled about is how to improve a web app after having move from from mvp to full implementation of all features. is this stage possible where a web app is bugfree and nothing else is left to implement?
[18:46:02] quarters: like even the basic ruby on rails microblog tutorial app. what would be considered a bug there? if it received traffic that demands the addition of maybe other instances of that microblog webapp?
[18:57:45] quarters: I guess I'm trying to get a high level view of what drives constant refactoring of a web app in the absence of scaling issues or introduction of new features
[16:36:02] quarters: hello. I'm trying to work with legacy code that uses attr_accessible and am struggling to understand it. I want to refactor this because attr_accessible is deprecated in the version of Rails I want to upgrade to: https://hastebin.com/nokajaduwi.rb is one of the models
[17:18:31] quarters: I had also installed devise and would like to remove it and did so from my gemfile but now my server is broken and was wondering how to fix it: /home/qkay/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant': uninitialized constant Devise (NameError)
[19:43:20] quarters: I'm guessing that gems in a gemfile aren't installed in a rails project but installed in the ruby folder? if so, if there are projects that use different versions of the same gem, are they all installed in that ruby folder?
[21:40:06] quarters: when I try to run rails db:migrate on the following: I get an error "wrong number of arguments (2 for 1)" and was wondering how to fix it: https://pastebin.com/Sy3MxL07
[21:48:07] quarters: Radar, I added protected attributes continued to be able to keep the syntax for attr_accessible from legacy code
[21:49:53] quarters: Radar: removing that gem will lead to other breakage and I was wondering if there's a way to troubleshoot without removing that gem
[22:11:34] quarters: does that mean that validation does not happen through constraints in the database?
[22:28:39] quarters: Radar: I'll definitely wean off of it but I'm a bit confused about how activerecord no longer accepts an options argument but https://edgeguides.rubyonrails.org/active_record_migrations.html says that it still accepts options arguments in migration files
[22:29:04] quarters: I'm not sure if the edgeguides are just not updated and I'll have to find what the current api for migrations is
[16:14:58] quarters: hello. I was trying to run bundle install with rbenv but am getting this message: "rbenv: ruby_executable_hooks: command not found"
[16:38:46] quarters: havenwood: I'm trying to work on a project here: github.com/github/classroom which requires rbenv. Otherwise, I'd use another ruby version manager. but yeah, I moved from rvm and ran rbenv rehash
[16:40:12] quarters: command -v bundle => ~/.rbenv/shims/bundle and gem which bundler => ~/.gem/ruby/2.4.0/gems/bundler-1.15.3/lib/bundler.rb
[16:43:08] quarters: ah, I had jruby-1.7.4 installed and running bundle install led to it prompting me that bundle install exists on that version of ruby
[16:43:44] quarters: kind of a brute way of doing it. hopefully I'll figure out how to keep that version of ruby and get it to work
[10:02:14] quarters: hello. I was wondering if it's recommended to use react-rails to use react as a front end
[10:11:44] quarters: dminuoso: so my friend coded something in ruby on rails with angular as a front-end but I'm only interested in using the API for that app, whereas, yeah, I'd like to code a separate SPA with node backend
[10:13:46] quarters: dminuoso: if I just use the rails app's API, what should I do with the front-end code that's already been written?
[10:18:30] quarters: can c-r-a be easily placed on top of the rails app without having to shuffle files within the existing rails file structure?
[10:20:51] quarters: dminuoso: oh...so I think I get what you're saying now. create a new dir, in which I place the c-r-a folder and the rails project?
[10:22:02] quarters: dminuoso: should i just leave the unused angular code in the rails app/views folder as is?
[10:23:44] quarters: dminuoso: yeah, I'd like to remove it, but am unsure as to where breakage would happen. Like can I just delete views wholesale without worrying about breaking the backend? Or is the frontend and backend files more modular in a rails project than I take it for?
[10:24:13] quarters: I haven't played with role manifests at all, but I'll definitely take that tack
[10:34:06] quarters: if a react component is already a stateful one, but I have some properties that I'd like to keep out of the state object so that any changes to it don't trigger a re-render, would you advise against declaring such properties outside of state?
[10:37:41] quarters: if I already implemented a class stateful component and had an object with used id numbers to track numbers that have been used to prevent duplicates for new list items, I'm not interested in having a component re-render whenever that object is updated with a new id number
[10:38:44] quarters: dminuoso: it isn't directly, but the id will be accessed from a property that IS kept in state eventually
[10:41:00] quarters: I'm still trying to understand what you mean by maintaining full application state
[10:47:46] quarters: do you mean that, as opposed to react-rails which causes refreshes during HMRs, using react directly would prevent such refreshes thereby allowing us to have control over the application's state
[11:01:07] quarters: dminuoso: how would a c-r-a based front-end be able to retrieve state if all of the components are functional stateless components?
[11:08:31] quarters: dminuoso: in what instances would you take a different tack where you introduce state to the react tree and not use redux
[11:18:20] quarters: I haven't worked with redux so I'm having trouble conceptualizing how state is persisted to local storage with redux. Is it saved to the browser like a cookie?
[11:23:38] quarters: I'll definitely look into them if this will help keep my react tree statefree and if I get all the attendant benefits of doing so
[11:26:41] quarters: noted. I reckon that the concepts you just listed will come through use rather than me reading articles or textbooks regaring them