Why using fancy logic in a return statement is the wrong way to program
Yes, it looks impressive to write a function like This code takes a string, splits it into individual characters and adds “-“ to each one. Then the join() combines the chars back into a string. It works just fine and looks impressive. However, this code can be difficult to read. It’s easy for us as […]