Model-Side Issues in Validation & Future Functionality of the HealthCare Portal App

While making my HealthCare Portal App, built with Sinatra (short video on how it works can be found here), I found an interesting issue when I tried to render an .erb page after a failed validation.

The Problem:

  • My patient’s edit page is built to show the patient’s current information when you open the edit form. (The field is set to show the current values saved in the database for the patient’s attributes before they’ve been edited and updated).
  • In my app, the “name” and “birthdate” attributes of each patient must be valid per the ActiveRecord validation macros I used :
class Patient < ActiveRecord::Base
validates :name, presence: true
validates :birthdate, presence: true
... …

What API do you choose to work with if you spend all your time reading old books and looking for “scholarly references” online? The GoogleBooks API, of course!

For my first CLI project, I decided to look for books in my new field of interest, “Object-Oriented Programming”(rather than an old one).

Do these books look up-to-date for Computer Programming? If they’re in English, I bet they use words like “thou,” “wouldst,” and “apothecary.”

With this program, I fetched the top 40 most relevant books (according to the Google search engine) on “Object-Oriented Computer Programming” from the Google Books API.

Once started, the program offers the user the opportunity to browse these books by their titles, and then select one for more details by entering the number of a book that appears next to its title. …


My background is in teaching people to read Classical Greek and Latin (hence the title).

There’s still a lot of work to be done in the digital humanities to make ancient texts available, and I’ve done some work in that area—but, I get really excited when I think about all of the new avenues for creative design that software engineering opens up. I’m particularly interested in designing applications that have real-world use. I also just really like learning new languages and talking about them with other people.

In short, I’m looking forward to moving into the 21st century and finding a new path (inveniens novam viam) in programming!

About

Inveniens Novam Viam

I’m very excited to start a new journey in programming. I already love Ruby—the language and infrastructure. I cannot wait to learn JS, React, and Redux.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store