Showing posts with label cook roulette. Show all posts
Showing posts with label cook roulette. Show all posts

09 December 2014

Cook Roulette

Oh hey, I have a blog.

I spent 5 weeks busting my butt trying to make an app. I succeeded in that. Hooray!

Cook Roulette is a random meal generator. I'd go into details, except that I spent an extreme amount of time on my github readme document, so I'll just direct you there.

My log in page is my favorite page because CRONUTS.
Also, it's live. Go to https://cookroulette.herokuapp.com. Once you click on the meal generation page, you can check the Yummly button to use its API and get a recipe suggestion based on the randomly generated ingredients.

It was so insanely easy to deploy that I want to make other random apps just because I can. I'm thinking about working on two different projects. I'd like to use Django in one, but I'm not really certain what I want it to be. The other one is a game that I'd like to make (mostly for my friends and me) written in JavaScript (gasp. I know) using Firebase as the database. Firebase is really really cool.

My biggest project, however, is getting a job. I have a couple interviews lined up, so fingers crossed that those go well. A lot of people are trying to be strategic about when they apply to places, but honestly, I'm going to believe that I'm a competent software engineer and I'm qualified to apply for junior development roles right now. Perhaps I should be more cautious about when to apply to places, but if I wait until I'm comfortable, I'll never apply anywhere because comfortable is not typically my state of mind.


21 October 2014

Hackbright Day 16: Sessions + More Flask

When I transferred high schools way back in 2001, I joined all the extra curricular activities that I could in order to meet people and make friends. Some of them turned out to be life-changing (Hi, Ms. Maciolek!) and some of them turned out to be a huge waste of time (that would be you, softball). One of the things that sort of fell in between those extremes was the literary journal *thing* that I did one year. One of the first orders of business was to pick a name for it. My suggestion was "Sessions". They ended up going with "Harbinger". Speaking to the incredible content of my character, I basically lost interest once my name wasn't chosen.

Fast forward 13 years, and now I finally get to talk about sessions.

Sessions, in this context, are about storing information on the server side of a web app. In Flask, the session is a dictionary that you fill with information like, for instance, the user name. For websites where you might buy something, everything you'd add to a shopping cart would be in the session dictionary.

Our assignment today was to make a webapp. The skeleton for the app was already in place, but we needed to add things to it to make it functional. We ended up using Flask, the python framework for web apps, SQL, html + css, and jinja (which is a way to inject a little bit of python into the html). It was a lot of fun, actually, and we were able to make a functional app with a log in page and an account page.

I had a meeting with my advisor today and at his suggestion, I'm going to try to work on a project on my own to create an app, mostly to practice all these new skills that we've been talking about in class.

apt-get install ROBOJULIACHILD 
So my intent is to create a recipe-generating bot that is based on a few different recipe "structures" and will then randomly select things that would go with it. I've sort of sketched out an idea of how to implement it. The working name is cook roulette, but robojuliachild is my favorite. My biggest thought is to make the recipe structure a class and then have the different kinds of recipes (e.g., quiche, risotto, etc.). This works because I'm probably not going to make anything that's too fancy, but doing this with classes makes it modular so I could come back to this easily. What's also nice about this is that I can get more experience with classes without having to go back to that horrible game exercise. (I should definitely probably revisit that at some point.) I'm thinking that it would be interesting to add baking recipes to this because you could calculate the required ingredient amounts based on the ph of different ingredients.

We also talked about how the internet works and now I think I want to run my own server to deploy my own apps. And then I brought up cookie clicker because I'm totally a winner like that.