At least a few hundred JavaScript algorithm challenges after taking Harvard’s CS50 course, I realized that I use (my brain uses) a “trie” type of knowledge retrieval approach, as compared to someone who can do more of a “dictionary” type of memory lookup. That is, my recall works better when I’m creating and analyzing code (e.g., surrounded by context).
For instance, if I come across a need for the “spread operator”, I may need to look up a quick example for syntax reference, but I know I can use it and I will put it to use. Or I may devise another method that may work out better long term, considering the potential future expansion of that particular code. Or I may just prefer another approach (e.g., I prefer `slice()` and `concat()` for copying arrays (but would always go with whatever coding guide I’m working with, if any)).
Anecdotal disclaimer: Using unfamiliar functionality can take me a half dozen trial and error attempts, but I always figure it out for the better of the project.
In short, I recall and know code better when I’m working directly with code (and Dev Tools!); not when answering academia explaining what a spread operator is. I have used it; I have it in my code; let’s go take a look! ๐
https://codepen.io/KeithDC/pen/weXdEe?editors=0010
#693: <SettingsForm setTimer={this.setTimer} {...configSettings} /></SettingsForm>
#904: this.state = { ...this.initialState() }
#920: const newObj = Object.assign({}, {...this.state}, {...this.initialState()})
#990: <input type="text" name="entryTitle"
{...timeProps}value={this.state.entryTitle}placeholder={this.props.titleTemp}maxLength={this.props.titleCount}size={this.props.titleCount}autoFocus={(document.referrer !== 'https://codepen.io/KeithDC/' && document.referrer !== 'https://codepen.io/KeithDC')}ref={(input) => { this.textInput = input; }}/>
I would like to devise an approach for delivering a similar level of knowledge sharing (for an interview) that can reveal my level of experience (and my particular code recall approach) is just as valuable (or perhaps revealing just as many pros and cons) as someone who has (or can feign) immediate (hashmap) recall.For now, the only approach I can think of, is that I believe I could convey such an experience level by writing out my “From Scratch” GistBox project, while also explaining the `what’s` and `why’s` of my coding approach (although unfortunately, I do not use the spread operator in this particular project). https://codepen.io/KeithDC/pen/dVrwrg?editors=0010 (challenge #4: GistBox)
—
Keith D Commiskey
https://keithdc.com
Leave a Reply
You must be logged in to post a comment.