Day 51: Cracking Open my First npm Package

Continued my web security studies. Reading through the codebase for the PassportJS package. It is different and uses an older JavaScript style but it’s not too difficult to read. As a result of starting to go through the codebase, I finally have a full listing of all the properties and methods that exist on the Passport module. The module consists of an instance of an Authenticator class that is written as a traditional JavaScript Function. The Authenticator function is then used to construct an instance of that JavaScript pseudo-class / function with a lot of the core functionality and methods being attached to the class itself rather than an instance of the class.

There were a few hiccups when I was first reading through the code but I seem to slowly be getting more comfortable with the code base. The next step is to look at how the methods mentioned in the docs (specifically the passport.serializeUser and passport.deserializeUser) work in tandem with the rest of the module. This may get confusing but I think this is a worthwhile experience to have.

Perhaps by the end of this I will even feel comfortable tackling some of the issues that the package has and quite possibly get a PR done for the project since it is open source. Only time will tell.

TLDR;

Okay, so here are the highlights of what I did:

  • Backend -> Continued studying the concepts mentioned in the web security section. I started reading through the package’s code base to fill in some of the gaps that are not fully covered in the documentation. The goal is to finish compiling all the information in this docs page as well as all the other examples and sources to construct my own notes that ensure this framework is clear and easy for me to use in the future. I am trying to wrap things up with a clearer walkthrough of the serializeUser and deserializeUser methods that exist on the Passport modules prototype.


Goal For Round 8 of the #100DaysofCode Challenge

This is my eighth round of the “#100daysofcode” challenge. I will be continuing my work from round five, six, and seven into round eight. I was working through the book “Cracking the Coding Interview” by Gayle Laakmann McDowell. My goal was to become more familiar with algorithms and data structures. This goal was derived from my goal to better understand operating systems and key programs that I use in the terminal regularly e.g. Git. This goal was in turn derived from my desire to better understand the fundamental tools used for coding outside of popular GUIs. This in turn was derived from my desire to be a better back-end developer.

I am currently putting a pause on the algorithm work to build some backend/full stack projects. I primarily want to improve my skills with the back-end from an implementation perspective. I have improved tremendously in terminal and CLI skills but I lost focus due to how abstract the algorithm concepts got. I wanted to work on things that were more tangible until I can get to a position where I could directly benefit from improving my algorithm skills and theoretical knowledge. So that’s the focus right now. Build my backend skills and prove my full stack capabilities by building some dope projects.

Again, I still have no idea if my path is correct but I am walking down this road anyways. Worst case scenario I learn a whole bunch of stuff that will help me out on my own personal projects. Best case scenario I actually become one of those unicorn developers that go on to start a billion dollar company… You never know LOL.