The DEV Team profile image The DEV Team

Feruz Oripov, The Real MVP.

twitter logo github logo ・1 min read

Refactoring organizations_controller.rb. #3793

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?

alt_text


Refactoring dashboards_controller.rb. #3794

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?

alt_text


Refactoring chat_channels_controller.rb. #3808

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?

alt_text


Refactoring social_previews_controller.rb. #3818

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?

alt_text

feruzoripov image

This is how great software happens.

twitter logo DISCUSS (9)
The team behind this very platform. πŸ˜„
markdown guide
 

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 😁.

 

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 )

 
 
 

I'm so inspired after reading it. Thank you so much )

Classic DEV Post from Aug 14

What Does Your IDE/Code Editor Look Like?

The DEV Team profile image
The hardworking team behind dev.to ❀️

Want to contribute to open source and help make the DEV community stronger?

All the dev.to code is freely available on GitHub.

You're welcome to jump in!