I decided to create a simple CRUD Todo app with Ruby on Rails back-end and Angularjs front-end. This application allows a user to create Todo lists and add todos to that associated list while using Angular to do all my requests without refreshing the page.
Ahhhh, the famous imposter syndrome, every programmer has been there! As defined by wikipedia, Impostor syndrome (also known as impostor phenomenon or fraud syndrome) is a concept describing high-achieving individuals who are marked by an inability to internalize their accomplishments and a persistent fear of being exposed as a “fraud”. My journey to learning how to program had many ups and many more downs where my confidence in switching careers was definitely tested. Often times I would think “Maybe this isn’t the right field for me” or “am I stupid for not getting this?”. Don’t worry we’ve all been there and its quite nice to hear that other people in similar situations are going through the same thing.
Recently I was building a small MVC CRUD To-do application with Ruby on Rails and Angular front-end. I really wanted to implement editable text so the user can simply click on the text, edit it, and save it without having to go to a separate route to edit a simple todo. I was able to come up with a way to edit the text by simple doing a ng-show and a ng-hide. Basically I would have a to-do in an <h3> tag, once a user clicked on this tag the <h3> would hide and an input field would show allowing you to edit the text. This fix ended up working for me but it was extremely clunky and simply ugly having to css the crap out of the input field to make it look relatively decent.
Switching from Sinatra to Rails was a little confusing to me at first looking at the way each framework layed out their file structure. With Sinatra your controllers basically hold all of your code used for routing and handing off information. A example of what a basic controller in Sinatra looks like :
For the Ruby on Rails with JQuery project I enhanced my previous task manager app that was built with just Ruby on Rails. This application is just a beefed up version of my previous task manager app utilizing jquery and ajax to get rid of those pesky page refreshes when requesting information from a database.