this code is very repetitive and it looks like it it not following D.R.Y (don't repeat yourself) is or is this not wet code?
What code are you talking about?
My thoughts Exactly!!!
It's very wet. how can someone copy and paste the ones method instead of just make ONE method with name that explained the purpose of it, and force the user to provide a value rather than making 6 methods that all do the same. the value of one method should just be provided by the function caller, not the program. Let humans inject the number and not the program. That's what humans are for-- providing input. Not machines. CP makes me insane when I see it in code
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.