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! ❤️
Auf dieser Seite können Sie das Online-Video An Introduction to Strings in Go mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Philomath 10 November 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,135 Mal angesehen und es wurde von 11 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!