Inky Code

Niky Morgan: New York-based Web Developer

Getting Past CORS with an AWS Lambda

In my previous post I discussed the process of building an app which shows a visual catalog of the Bitmoji comics available for use in Slack. My Minimum Viable Product was a React frontend which made a request to a Sinatra backend which then requested a list of Bitmojis commands from the Bitmoji API. Why did we even need a backend for this application? Couldn’t our frontend just request this same data via JavaScript?

SlackMoji, Debouncing and React Event Pooling

The Flatiron staff are frequent users of Bitmoji. We use it on email, GitHub and especially on Slack. One of the difficulties of using Bitmoji on Slack is knowing which commands are connected to Bitmoji comics. We have at times found new and unexpected commands using outside sources like this, but the comics update frequently so it is hard to stay current.

Starting New Campuses Using The Flatiron Way

For the past five months, I’ve worked at three of Flatiron School’s new campuses. Starting in March I spent three months in Washington, DC at our first new campus. From there I ventured to Dumbo where I worked at Access Labs, a tuition-deferred program in Brooklyn powered by Flatiron School. After three weeks at our London campus, I am now back at Access Labs. Being part of so many new campuses was exhilarating and exhausting. Every day we were making decisions that would impact the way these campuses would grow and run in the future. Fortunately we had Flatiron School’s values as our North Star, guiding all the work we did.

Saving Database Space with Rails Enums

I have an app that is running out of database space. It is a shared Rails project with colleagues and we host the app on Heroku, so it has a 10,000 row limit. Since I clean up the database regularly to remove unused data, I decided to focus on other fixes that might decrease the amount of space we are utilizing.

Humor as a Pedagogical Technique

Now that Flatiron School has grown to five campuses, we have many more instructors on the team. In addition to sharing general lecture tips, we frequently share ideas for domains and code examples to use. One domain that has been passed down through several generations of instructors appears in a set of first-week lectures. Over the course of a few lectures, we teach the students the basics of object-orientation and increasingly complex relationships. The domain is Twitter: a user has many tweets and a tweet belongs to a user. By the final lecture, we add in the concept of favoriting another user’s tweet. With a new favorite model joining a user and a tweet, we introduce a many-to-many relationship. A user can have many favorites, a tweet can be favorited many times, and a favorite joins one user to one tweet.