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! ❤️
On this page of the site you can watch the video online An Introduction to Strings in Go with a duration of hours minute second in good quality, which was uploaded by the user Philomath 10 November 2023, share the link with friends and acquaintances, this video has already been watched 1,135 times on youtube and it was liked by 11 viewers. Enjoy your viewing!