News for hackers. Stuff that matters.
Re:Ask HN: Is my code any good? by nikant on Sunday May 03, 2015 @02:52AM (#9480309)
Yeah I know I need follow the best practices. I have started writing tests for the next update. But do you recommend TDD for iOS development?
Re:Ask HN: Is my code any good? by melloclello on Sunday May 03, 2015 @03:03AM (#9480330)
Devil's advocate: I feel like TDD for iOS is a bit of a wasteland, and don't usually bother with it personally, unless there's some especially dense mission-critical business logic that I need to be 100% confident in.
Re:Ask HN: Is my code any good? by amorphid on Sunday May 03, 2015 @07:18AM (#9480884)
If you wanna get a lot better, try writing your own testing framework. I wrote a BDD style testing library for Androod when I first started learning Java, and that helped me understand how to write good code for Android platform.
Re:Ask HN: Is my code any good? by ninjakeyboard on Sunday May 03, 2015 @03:51AM (#9480414)
It's not simply best practice - it's necessary to maintain your code.
Re:Ask HN: Is my code any good? by rimantas on Sunday May 03, 2015 @07:09AM (#9480858)
It is not. There are heaps of code with test which is unmaintainable and heaps of elegant code without test in sight which is easy to maintain. Cargo culting is rarely the best practice.