Onespecificchallenge,whenwritingcodeasascientist,isthatwecarealotaboutgettingtherightanswer;butofcourse,therightanswerisnotalwaysobvious.Soweshouldbeverycarefulwiththecodewewrite.Apieceofcodethatcrashesisannoying;butapieceofcodethatruns,andgiveyouthewronganswercancompromiseyourscienceandyourcareer.Thisguidewillhelpyouadoptpracticesthatmakeitlesslikelytointroducemistakesinyourcode,andmorelikelytocatchthem.Hopefully,thiswillletallofuswritecodewecantrustmore.
Goodprinciplesinscientificcomputingcanhelpyouwritecodethatiseasiertomaintain,easiertoreproduce,andeasiertodebug.Butitcanbedifficulttofindanintroductiontogetyoustarted.Thegoalofthisprojectistogetyoustartedonthemostimportantpoints.Youcanusetheselessonsonyourown,orasagroup.
Thismaterialisaimedatpeoplewhohavealreadyinteractedwithacomputerusingaprogramminglanguage(weuseJulia,butthecodeismeanttobefairlygeneral),butwanttoadoptbestpracticesthatmaketheircodemorerobust.Itcanalsobeusedtofacilitatetheonboardingofnewpeopleinyourlaboryourproject.
评论