Journey Through Code


& code through the journey

Life Struck

OK, here it goes: I’m back. After 3 months of not knowing what to do with my life and how to climb out of the financial mess that I’m in, and seeing most things as black-and-white, I’m back to my passion. I want to prove to myself that I can build this and that the only things I really, really need are time and persistence, and I’ll let my passion lead the way.


Life Strikes

I’ve had a very stressful week, almost feeling like a failing adult because of my bank account hitting severe lows and the delayed monthly rent payment and my work hours being cut drastically due to my workplace becoming overstaffed. That only means I will be looking for a second job in hopes to stack more hours on top of my head where I am not using my brain to its full potential but more like essentially losing time which I could be spending on learning code.


Sinatra MVC project

Here I am again, working from the ground up to build an app that would magically (or should I say, programmatically) transform into something I see on a daily basis: a website. Now that I understand the basic routes, get and post requests, the separation of concerns and the need for a database that takes care of itself by not saving empty values or complete gibberish, I appreciate every website a lot more. Years ago I would not have figured out how a line of some random code transforms into a color or an animation, and now I am building it all on my own.


Client vs. Server Side Validations

It is nearly impossible to imagine an internet with no user input. The magical world of intricate web connections would be immensely limiting with static webpages following one after another… So this is where forms and validations come in. Apart from allowing us to communicate with other internet-friendly users, forms provide us with the ability to enter a website and see its hidden content, then make a secure purchase, update our user profile, delete it if the satisfaction was not guaranteed, etc.


App Architecture: Model–View–Controller

When I wrote my first CLI app, in it I had a controller that communicated with the user and fetched the requested data; it was the heart of my simple program. In addition, to actually get that information, I had a Scraper class that “modeled” my data from a website. Unfortunately, for the command-line, the notion of a view is left out.