Dev Thoughts

Musings from my development journey.

Topics

An optimistic proposal for making horrible code... Bearable

large

Talk from Joe Mastey

Common approaches to working with legacy code

  • Continue adding onto poorly structured code
  • Making small changes

Alternative approach

  • Name the evil (the issues with the codebase)
  • Sorting files by line length
  • bundle exec rake stats
  • Using tools such as RuboCop to set code structure benchmarks
  • Adding Rspec tests that checks for line counts in a program

"As we fix things, we are going to break things."

Priorities

  • Make your tests better - delete poorly written tests
  • Make writing new tests fast - attempt to write tests that don't need to interface with Rails directly
  • Eliminate dynamic code - metaprogramming can make a codebase unreadable (and therefore incredibly challenging to add/update/etc) - readability is vital
  • Behead the dragon - tear apart convoluted components

Key to success: Ensure to focus on the process.

Link to his slide deck

B0aa3b0f6fc4e854a2aed690392bf1c8
ffffftjg
Comment posted by Mahak 16 days ago
B0aa3b0f6fc4e854a2aed690392bf1c8
jjjjjjj
Comment posted by Mahak 16 days ago
B0aa3b0f6fc4e854a2aed690392bf1c8
jkhkzxckj x
Comment posted by Mahak 15 days ago
B0aa3b0f6fc4e854a2aed690392bf1c8
Make your tests better - delete poorly written tests Make writing new tests fast - attempt to write tests that don't need to interface with Rails directly Eliminate dynamic code - metaprogramming can make a codebase unreadable (and therefore incredibly challenging to add/update/etc) - readability is vital Behead the dragon - tear apart convoluted components
Comment posted by Mahak 15 days ago