Getting closer...
I've been shooting for 10 points on katas each day for the last week as some take a lot longer than others. BUT I'm finally rank 6! Along the journey I've learned about Regular expressions (RegEx) and I've tried using anonymous functions more, but this has led me down a rabbit hole of creating objects attached to functions and how to use them. (I'm still far off from being good with them but it's opened my mind to be more abstract with my approach to things and think about how I can implement anonymous functions.
My example (someone's answer to a kata that destroyed mine haha):
function DNAStrand(dna) {
return dna.replace(/./g, function(c) {
return DNAStrand.pairs[c]; });
}
DNAStrand.pairs = { A: 'T', T: 'A', C: 'G', G: 'C', };
I thought this was a super clever approach and I'm excited to continue progressing as I'm getting closer and closer to finishing the prototype exercises! I'm stoked to get going and rip through building some apps!
P.S. If you're feeling down, or second-guessing yourself on this journey. just remember.. Any one who is great at something put in the work, they were amateurs starting out just as anyone else would be. Keep going, and stay consistent. Even if it's half an inch a day within a year I'm sure you'll be on your way to completing that first mile (km for my international friends). :)
9
0 comments
Trey Delcamp
5
Getting closer...