• backend,  Programming,  reusability

    Creating reusable components using function wrappers (with Javascript)

    Creating reusable code is hard. I know, you have crappy deadlines coming up and you just need that feature today. But, before you go ahead and just dial in that feature, consider the future implications of it. Your code doesn’t die tomorrow, it doesn’t die next week, your code lives as long as the product does. Keeping that code base small and understandable is what ensures that working on the project remains as maintainable as possible. That’s the real reason why reusability is so important. However, that’s a discussion for another day. Today I’m covering one part of the puzzle, which is integrating wrapper functions. If you want to look…

  • Programming

    Consuming Axios in a Vue + Vuex project

    This tutorial focus will show you how to assimilate Axios into your tool belt for use in future projects to help save you time and headache. Prereqs: Basic knowledge of Vue.Js Vuex Axios A preexisting Vuejs app with Vuex What are we doing and why? We are taking the Axios plugin for Vuejs and baking it into our own custom GET, POST, PUT and DELETE functions for future projects in a scalable, reusable manner, that will help stop some bad smells from appearing in your code. Getting Started Make a new file called “CRUD.js” This is where we will store all of our CRUD functions. let’s create a basic “GET”…