So I am still reasonably new to Ruby and I have only been working on it at home and therefore have had no one review my code and comment on whether I am writing my code in the correct way. The only input I have is from code that I see online and the book I bought about Rails. Now, most things are pretty straight forward and being as I work as a developer I have a basis on what is readable and what is not which leaves most of my code looking good (in my opinion) but the one problem I have are parentheses. I have no clue when I can omit them and when they should be used and even looking through my book I couldn’t find consistency.
After searching the web it seems the area is a little blurry but pretty much comes down to if parentheses make it easier to read your code, then add them in, otherwise omit them. I tried to find some concrete answers that take this a bit further but every place I looked, everyone, seemed to have different preferences.