A developer friend of mine once compared coding to the following scene from Malcolm in the Middle.
Hal fixing a light bulb by hal16
I find it to be a very apt comparison. I cannot count the number of times I set out to accomplish X, only to realize that U, V, and W must be tackled first. In spite of this, when tasked with having the myLivesNotes web app implement a "save" feature, I foolishly thought it would be smooth sailing.
The first hurdle my partner and I encountered was the realization that the web interface is more or less a static page. It does not actually make API calls to the mLN backend server. Rather, the test document is hardcoded into one of the Javascript service files. We decided to move forward by making an API call to the back end server.
This lead to the realization that none of the existing controllers actually retrieve data from a database. Naturally, I decided to take a moment to examine the local database. Upon inspecting the contents of the server database, I realized that it was empty. At first it appeared no work was done on the database, but that was before a database setup script was found in the server code. However, the database still needs to be populated with entries.
It looks like a fair bit of work might be necessary on the database before we can move forward with our initial goal. Hopefully we can connect with some of the previous team members to see how they envisioned the development to progress.
Sunday, June 28, 2015
Monday, June 15, 2015
Project Workflow
On-boarding
The on-boarding process at my first tech job was painful. Setting up the local development environment took about two days. Two days before I was able to write a single line of code. This was happening because I was following a Word document that listed all the steps I had to take to get everything up and running. The problem is that software is dynamic. With all the components constantly being updated, it is difficult to have reproducible results. This is especially true when you factor in things like certain libraries that may or may not come preinstalled on some machines.
The company I worked for has since solved with problem through the use of a virtual machine and Chef scripts. Now when somebody joins a company, they download a virtual machine that is locked to a specific version. The first thing the user does when they enter the VM is execute a remote bash script using the curl command. The bash script installs Chef, then executes it. Chef knows which automation it needs to run, and proceeds to install everything to get the developer up and running. This new process reduced on-boarding time to thirty minutes.
Automated development environments have become a best practice at many leading tech companies. Adopting a similar approach would serve myLivesNotes well. Especially considering that turnover occurs every four months, and students entering the program can be at very different skill levels. The current myLiveNotes on boarding guide is not specific enough to have a reproducible results. It leaves out key points that someone lacking experience would never figure out without hours of wasted time. The Postgres database required to run the API server is not locked to a specific version.
To make this even more complicated, developers are working on Macs, Windows and Ubuntu. It took almost two weeks to get everyone up and running.
Even though a senior contributor had to leave the team, the other developers should not need someone to sit with them in the same room to get started. The process should be much simpler. I passed out a headless Ubuntu server VM with instructions on how to get SSH into it from a host machine. However, this is still not ideal because the setup process of the original VM is not documented anywhere. I should have used a Chef or Puppet script to setup the VM. My second internship was at a prominent tech company in San Francisco. Their process was even simpler. As soon as someone joins the company, they can SSH into a remote Linux VM and start working right away. They have Puppet script that automate the creation of those VMs. It requires an initial time investment to setup the scripts, but it pays off in the long run.
Development
The team has done fantastic research into the myLiveNotes competitors. However, I think it could be more beneficial to shift gears a bit toward developing a functional prototype of the app. Without a working type, any sketches/ideas the team comes up with will be impossible to validate. More importantly, we do not have any idea how long it will take this team to get the app in its present incarnation into a state where it is functional. A small scrum where we tackle a simple issue will give us a better understanding of where we stand in terms of our ability to tackle difficult technical problem in a relatively short amount of time.
Contributions to Date
At the commencement of my involvement with myLiveNotes, I was tasked with performing research on the competition. More specifically, research on commercial companies producing applications for consuming and annotating documents.
The solution space is a fragmented one since there is a wide variety of material that people consume for any number of purposes. Most of the companies I analyzed provided one or two standout features their competition simply did not have. Microsoft's Edge Internet browser allows the user to annotate any webpage, and save the annotated version in their OneDrive account. Papers on Mac has an educational slant, so it allows users to directly inject footnotes into a Word document from a document that is open in their own application.
It was almost always the case that the more an application attempts to be a Swiss Army knife document reader, the less I was to personally use it in my daily life. Part of the reason is that I generally avoid downloading and installing new applications if there is a web application that can serve the same purpose. For example, Papers has a built it in web browser to search for documents to markup. I am not very likely to use it because I will not use anything but a web browser for research. At least for me, Google has done an excellent job of becoming synonymous with the word 'search'. If I wanted academic sources specifically, I would go to my university's online catalogue. It is not such an inconvenience to use both Google and the university search that I would install a feature heavy application to marry document acquisition with markup.
Subscribe to:
Posts (Atom)