Is Logging In Really Necessary?

They say blogging as a developer is a great way to log your journey and look back at it later to see how far you’ve come. I have a feeling this will be one of those entries.

Obviously, logging in is a critical component of web security, but learning user authentication (henceforth ref. as UA) is probably the most difficult thing I have tried to comprehend so far on my coding journey. Granted, I just started learning UA this morning, but still, it is not easy. I hope (and believe) that over time, it will get easier. The strangest thing is that there are so many custom methods included with npm packages around UA. The packages I’ve been using today are passport, passport local, passport local mongoose, and express session. I’m not sure if these are the norm, but they’re what I’ve been learning with.

This has all been self-study. In class, we are working with the fetch function, which is pretty great. It’s a good way to call a URL from the front-end. I’ve learned a lot today about fetching, promises, and the ‘then’ function. I think I now have even more clarity about the subject than I did yesterday. That’s one of the great things about learning to program; everyday I am learning something new. I think this is something that will continue to be true throughout my career, but probably never to the extent of newness I experience on a weekly basis right now.

Today’s assignment was to call a recipe search API called Recipe Puppy using fetch (pun intended?). The return was very slow because of some authentication parameters that were set. Fortunately, since I have been learning Node, I was able to write out my solution from scratch using NodeJS with Express. The only thing I didn’t know before starting this project was the “request” npm. That seems to be a good way to fetch a URL while running Node. I’m not really sure of the ins and outs of the request package, but I know how to use it to make an API call, and then parse the data, so that’s cool.

The rest of this week will be spent reviewing front-end fundamentals, and possibly pushing forward into some unique aspects of FE development, such as HTML canvas, sprites, and sprite animation. I’ve looked at canvas a little before, but I’ve never done anything with sprites, so I’m really excited about that. Next week we begin Node. I’m feeling pretty good with where I am as far as preparation goes. The main thing I want to get a handle on is UA though. That is really difficult for me to recreate without constantly looking at an example. Hopefully someday (sooner than later) I will get to look back at this post with a sense of relief and a much more thorough knowledge of UA.