Join Slack
Powered by
is it good or bad practice to provide other names ...
# codingconventions
h
Hullaballoonatic
05/20/2019, 6:28 PM
is it good or bad practice to provide other names for properties in the following way? is it considered clutter?
Copy code
fun Double.squareRoot() = pow(0.5) fun Double.sqrt() = squareRoot()
s
Shawn
05/20/2019, 6:42 PM
IMHO it’s clutter
➕ 5
Shawn
05/20/2019, 6:42 PM
pick one canonical name to do something, don’t confuse other folks with multiple options since that usually implies some kind of difference
➕ 4
h
Hullaballoonatic
05/20/2019, 6:50 PM
alright thanks
Hullaballoonatic
05/20/2019, 6:50 PM
i love your logic. it's probably more important than pretty code
👍 1
3
Views
Open in Slack
Previous
Next