Posts

Showing posts from May, 2021
Image
  What is ActiveRecord and Relationship Associations It’s hard to explain what ActiveRecord is and how it functions because utilizing it really does feel like conjuring a spell at times. However, I’m going to explain what it is and what some it’s most important functionalities encompass to the best of my ability. ActiveRecord is essentially an ORM (Object Relational Mapping) and the M in MVC architecture. It handles communication to a database using its own language, whether that be ruby or python, etc. With ActiveRecord communication to the database that  normally happens through SQL is handled through associations. This is why it’s so important to understand what kinds of relationship associations you as the developer would like to have in your program.  Rather than utilize SQL to communicate with a database manually or have to manually tell an object which other object it belongs to upon each instantiation, ActiveRecord does that for you automatically in a sense and le...

Dream Journal Sinatra App

  In terms of programming, building this project was probably one of the most challenging things I have done so far. Even though I managed to build all of the project requirements, there were still a number of things I would have liked to change if I had had the time to do them. Nonetheless it was still a blast to work on, despite the challenges.  Some things I enjoyed about building this Sinatra app was getting to see first hand what changes were being made to my app as I was refactoring, debugging, and building. Having that visual aspect was definitely a motivating factor to keep going. I’m also incredibly thankful for the corneal gem, amongst others. If I would’ve had to build the directories manually it would’ve taken so much time out of the actual project building mode. Just like in my previous CLI application, having that skeleton laid out was certainly helpful in terms of visualizing where my files needed to go and also allowed me more time to brainstorm ideas for what ...