A method's gravity
17-Feb-2023 772
What I call Method Gravity means for me:The bigger the method the more new lines of code will be added to it.I noticed this while working on various projects: once a method grows, the chances that the next developer will add more lines to it increase.There is a tipping point (like with the gravity of a start) when a method is too big, it will collapse, meaning someone will take it apart and split it into smaller methods. .
A method's gravity #ruby #rubydeveloper #rubyonrails #method's #gravity https://rubyonrails.ba/link/a-method-s-gravity