- 歌词
- 专辑列表
James Dempsey and the Breakpoints
-
Anti-Patterns
Anti-patterns Coding practices you should avoid Anti-patterns And so your app don't crater like a meteoroid Whether you're a newbie or here since NextStep 3 3 there's a chance you picked up some bad habits So take my advice, make your code play nice or the bugs will multiply like rabbits Ah-do-do-do-do-do Anti-patterns Whoever said 'when in doubt retain' should be reprimanded Anti-patterns All the retaining just leaves all of that memory stranded You should not rely on the amount of the retain count That's just askin' for pain Just follow the rules and use them diagnostic tools You code'll be right as rain Do I have to explain Hold me, use me, then release me Hold me, use me, then release me Anti-patterns Yeah, you know they're gonna to bite you somewhere down the line Anti-patterns Even if the code seems to work at the time If you choose to peruse and use character values of NSString You'll be surprised when your app's localised and the subtle problems that bring 更多更详尽歌词 在 ※ Mojim.com 魔镜歌词网 Yeah, Unicode's a complex thing Anti-patterns Sometimes it's only good intentions gone awry Anti-patterns Yeah like callin' stuff that isn't public API It's not polite for random strangers to be gropin' at your privates So please try to refrain But if it's your infatuation to break encapsulation, it's like running towards an oncoming train And your app submission will be in vain Oh, oh, the code we've seen Oh, oh, the code we've seen, and it burns your eyes to read it Oh, oh, the code we've seen Oh, oh, the code we've seen, yeah, and occasionally written Anti-patterns Yeah, you know they're goin' to make you sadder but wiser Anti-patterns Might I suggest that you run the static analyser Well I could go on for hours but the powers that be say that'll be too long Well anti-patterns is the code that you write when you're writin' it wrong Oh yeah, well anti-patterns is the code that you write when you're writin' it wrong One more time now Anti-patterns is the code that you write when you're writin' it wrong
-
|