Journey to becoming a DEV...continued
I continued to focus taking an online boot camp AWS Lambda & Serverless Architecture Bootcamp (Build 5 Apps) I finished up API Gateway, Lambda and DynamoDB modules Each had their own labs and believe it or not, all labs worked. I'm traditionally one of "those people" who dislike or find everything wrong with labs. I'm still surprised everything worked since the labs involved configuration and some coding. I'm enjoying API gateway as well as Lambda. I realize it's docker on the backend, but is cool...
From a DEV perspective, I feel like a person fresh out of college learning a new trade. Lots of new technologies, methodologies, patterns to writing code. It's been refreshing to focus mainly on one language for now, JavaScript. One of the labs involved having the => operator. Later in the week, I found https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions that explains it briefly. The journey to write less code.
Other things I learned in JavaScript is === (aka three equals). My sample code worked either with two (==) or three (===), which for a fresh, new eyed "dev-guy-in-training". This made me go "hmm". A quick google search led me to a site I've used for years and I recall helping promote "back in the day". https://www.w3schools.com/js/js_comparisons.asp
I like the strict nature of === and will try to be formal when writing code and doing comparisons. Hopefully, this will encourage less bugs.
The code challenge
A really smart guy I work with sent an email asking if I was up for a "coding challenge". The code is available at https://github.com/steveschofield/code-challenges The v5 version appears to work as designed. The coding challenge basically had two arrays with some similar data and some differences in both arrays.
I needed to write code and add in a JavaScript array for everything the same and another array to contain differences. It took me a few hours of googling, testing to determine. My v1 version had a few bugs, but was around 100 lines of code. The v5 version had around 50 lines of code. If lines of code is my benchmark. I was 50% better and had better quality. Feel free to download, fork or show me a better way.
I found a neat solution on https://www.w3resource.com/javascript-exercises/javascript-array-exercise-23.php This involved using more advanced code that I can write at this time. It worked with just 'numbers', at least in their example. The best code written is code that works. I'll continue to seek out coding challenges and helping refine the new craft I'm working towards.
And last but not least. To be a dev person. Macbooks are a necessity. I'm waiting on mine to be configured. After many years on the windows platform, this WILL be an adjustment. I'm up for adventure.
I'd be interested in hearing from anyone their stories, tips / tricks or anything to help me along my journey. Until next time!
Steve
"Journey to become a dev"
PS - if this type of article isn't meant for Linkedin. I can posted on an external blog.... if there is something different or better, feel free to let me know.