Refactoring organizations_controller.rb. #3793
FeruzOripov
posted on
Adding set_organization method for not repeating query code.
What type of PR is this? (check all applicable)
- [x] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Documentation Update
Description
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
- [ ] docs.dev.to
- [ ] readme
- [ ] no documentation needed
[optional] What gif best describes this PR or how it makes you feel?
Refactoring dashboards_controller.rb. #3794
FeruzOripov
posted on
What type of PR is this? (check all applicable)
- [x] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Documentation Update
Description
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
- [ ] docs.dev.to
- [ ] readme
- [x] no documentation needed
[optional] What gif best describes this PR or how it makes you feel?
Refactoring chat_channels_controller.rb. #3808
FeruzOripov
posted on
What type of PR is this? (check all applicable)
- [x] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Documentation Update
Description
Related Tickets & Documents
#3739
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
- [ ] docs.dev.to
- [ ] readme
- [x] no documentation needed
[optional] What gif best describes this PR or how it makes you feel?
Refactoring social_previews_controller.rb. #3818
FeruzOripov
posted on
What type of PR is this? (check all applicable)
- [x] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Documentation Update
Description
Refactoring repeated respond_to
code.
Related Tickets & Documents
#3739
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
- [ ] docs.dev.to
- [ ] readme
- [x] no documentation needed
[optional] What gif best describes this PR or how it makes you feel?
This is how great software happens.
Top comments (9)
Refactoring code is a great skill that not so many developers have...
Many developers feel afraid of doing these kind of tasks, it's actually scary cuz even changing one line could break things!
Great job, @feruzoripov ✋
I've always found refactoring to be refreshing ans even fun.
Thinking of better and more efficient ways to do something.
But thats just me. I always keep a copy of my original code just incase which helps me to not be afraid to royaly screw itup 😁.
I find it the opposite, cuz sometimes this happen:
Refactoring against a sturdy test suite is fun. Not so much without 😄
Therapeutic refactoring is definitely a thing
This is how I started my open source contribution journey, thanks )
Factoring is so important!
Great job @feruzoripov!
Thanks)
I'm so inspired after reading it. Thank you so much )