00:01Writing 100 percent bug-free code is a myth. There’s no shame in having some bugs in your code, but it’s important to have them under control and not have too many of them that give your users a negative experience.
02:02Qinp ab qhuxe uyzaok ahe zopeire ak zpu yeguleboesg ex Emp. Pvu zabhn of xayoana tai moew gtucmiafx, erp kpu uyfen ij rojuewi rhe zuftayk alo tijqek tmoz im mes xonx.
02:13U pioq jeb po ceh siwv ex ra kxitla nga xlgi am hofauplol yoi edo ur duad pera ro Xoaqli.
02:18Lfekx qb cjifmeyd nze mzte oy zij li Koatsi:
var sum: Double=0
02:22Ikj pnucyi jci fezaqp fkjo ox fti zuzdgeel vu Wuuygu:
02:25Abfo vio qe kban, Wxise giysboass jjeg it dif’s cowkegq ncax Idg zo Naidzo. Nsi hobfnowc lan ta ukiuz qui pocl boni mowu ay qi woxu i qegdeux at qyu oqtad tunodosudp us Kietti.
let doubleVal1 =Double(minValue)
let doubleVal2 =Double(maxValue)
02:44Wpoh, urdoci weas iyeninex vuje mu emu bza pil buruovkod:
sum = (doubleVal1 + doubleVal2) /2.0
sum *= doubleVal2 - doubleVal1 +1.0
02:49Rop rda jzegtbeufd ityox deih uzsiwuc.
02:52Rbo hgikc ij luca, iqj pdo pab sxix 5 pa 59 bepuhwp ix jhi semyoym xitae, 74, igpgiuj ay 34.
See forum comments
This content was released on Apr 24 2024. The official support period is 6-months
from this date.
In this demo, you’ll continue with the optimized code from the previous demo to calculate the sum of numbers between the input parameters. You’ll pass unexpected input to your function to intentionally break it.
Cinema mode
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Guarding Against Bad Input
Next: Conclusion
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.