Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I've had (and likely will still have) beginner-level problems in learning Ruby and/or Rails. something about... When I've run into problems so far, I didn't have a good-enough understanding to ...
#1: Initial revision
I've had (and likely will still have) beginner-level problems in learning Ruby and/or Rails. <details> <summary>something about...</summary> When I've run into problems so far, I didn't have a good-enough understanding to be able to form a proper question, and instead got help from other developers in the project. So I'm afraid my list is going to be mostly "something about X" rather than real titles. - Something about scoping and the `unscoped` keyword. - Something about nil-safe references. I can stick a `&` on the end of everything that could be nil in function calls like `something&.function()`, where calling `function()` on nil emits an error, but I *probably* shouldn't just be sprinkling `&`s through my code just in case, right? But what *should* I be doing? - This might sound dumb, but in view code, it took me a while to notice (and thus get) the difference between `<% ruby code %>` and `<%= ruby code %>`. - Our project uses the MVC pattern but there are also helpers (in `app/helpers`, alongside `app/view` etc). How are those tied in to the rest of the code? I usually run into this by starting from a view, trying to track behavior back to the controller, and coming up empty in the controller. - Something about database migrations versus maintenance tasks -- if I need to move some data, when should I prefer which? </details>
