After introducing the basics of strings, we will apply what we learn to implement a function that takes the reverse complement of a given DNA string.
Like what you see? Please like, subscribe, and check out our free online course accompanying this video at https://programmingforlovers.com.
Check your work on this code along and get access to dozens of autograded exercises at Cogniterra: https://cogniterra.org/course/63/promo.
Join our P4❤️ community Discord: / discord
Help us grow our project by making a donation: https://www.paypal.com/donate?campaig....
00:00 Introduction
00:35 Code setup and pseudocode
01:49 Converting symbols and integers to strings
04:20 Converting strings to integers and checking errors
07:48 Parsing decimals from strings
09:37 Declaring strings and string concatenation
11:34 Indexing strings
15:30 Writing a ReverseComplement() function
16:39 A point about laziness and modularity
16:51 A first try at a Complement() function with a switch statement
21:24 Strings are read-only slices of bytes
22:41 Fixing Complement()
25:40 Optimizing Complement()
28:50 Implementing Reverse() to reverse a string
34:10 Checking all our functions
36:27 Modular code is easier to conceptualize and test
37:12 Happy coding! ❤️
Sur cette page du site, vous pouvez voir la vidéo en ligne An Introduction to Strings in Go durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Philomath 10 novembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,135 fois et il a aimé 11 téléspectateurs. Bon visionnage!