Skip to content
  • Home

CobraTechs

Tag: Java

Written by HowardDecember 30, 2021

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 […]

Blog at WordPress.com.
  • Follow Following
    • CobraTechs
    • Already have a WordPress.com account? Log in now.
    • CobraTechs
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar