bloc referral

If you are interested in learning to code with a mentor, try bloc and get $100 off.
Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts

Monday, February 10, 2014

Bundler::GemfileNotFound

I saw this error while working on the airplane last week, I found the following Stack Overflow question. 

Bundler::GemfileNotFound

My first thought was that I messed something up in my gem file, but a quick search shows that you need to install bundler gem.

install rubygems-bundler
This is confusing since I my app was created using "rails new"

I scrolled down further and found an answer stating the following: "cd into a directory that has a Gemfile"

I was not in the correct folder and I did the same thing this morning. Since I had o look this up twice I thought I would share on my blog in case someone else has the same issue. 

The actual answer was voted 51 times, but was not at the top of the page. Prior to this SO question I would juts look for the first answer but now I will be scrolling down to read all the answers. I realize the right answer might not always be the first. 






Monday, January 6, 2014

Missed my goal because of debugging.

I seemed to have made an error in my database and awaiting my mentor, Adam, meeting this afternoon to walk through this. I did a good amount of searching through Google on how to fix it and figured out I was way off. I was busy with the family and church yesterday and was unable to give time to figuring this out. I was able to spit off my git to my mentor and got his response stating my database explosion. I really respect my mentor and his ability not to just give me the answer, but give a little bit of info to assist me learning how to figure it out.

There is an extreme amount of value with a mentorship and apprentice type learning. I am going to push Bloc on every one but I recently discovered another site that offers rails mentor help. I have not used it and only heard of it through a Rabbit Hole Session, but if you are really interested in learning Rails or Ruby and tired of the roadblocks you continue to run into, I highly recommend a mentor or even a pair to share code and issues.

I have pair programming on my list of things to do and look forward getting started with that after Bloc ends. So if anyone is interested... Bloc will be over in March for me.

As far as my progress: I missed my goal of finishing Bloccit32 last weekend. I attribute that miss to me not reaching out for help sooner. I spent all Saturday night with my database issue but was determined to figure it out myself and then did not message Adam until Sunday morning. I realize I need to make a new rule for myself and not spend more than 3 hours on a problem. Just about every issue can be figured out through Google but sometimes it takes a half day or longer to really find that answer (speaking from experience). I need to advantage of the tools available sooner to ensure I stick to my personal goals in learning Rails.

*FYI if you are not part of the Ruby or Rails group on Google plus, you should join today. I have gotten responses to my questions in less 60 seconds. Its a great tool for questions and great for finding other beginners.

Friday, January 3, 2014

Need a break from all this debugging.

I spent my morning learning session in Codecademy's Ruby section. I have completed 68% thus far and hope to eventually finish that last little bit. I started a few weeks ago but never got back into it since Bloc started. I have also postponed Learning Ruby the Hard Way until Codecademy is done, just need to focus finishing one thing.  I find myself a little scattered brain in my learning outside of Bloc due to all these awesome tutorials and ideas I keep finding. I am glad I have auxiliary learning to my main learning to help me out when my brain is racked on one issue. I will need to make a gist wish-list of all the things I want to tackle in addition to my 2014 goals.

As of today I am stuck on a NoMethod Error in my code. My assumption is that I labeled an instance variable as plural with an "s" and called it as a singular. That is my guess because that has been the plague in all my errors....TYPOS!!! I can't tell you how crazy my typos have made me so far but I am grateful from the learning experience it has given me. I am just letting my brain rest until its ready for debugging later today! Looking forward to implementing Rspec next week so I can scale down my debugging time.

My current project is available on git if anyone would like to skim it. Called bloccit32. I am currently on lesson 13/21, which behind my schedule but ahead of schedule for Bloc.

I recently found a site where a devloper fed up with not learning decided to create 180 sites in 180 days. Check her out: Jennifer Dewalt. I am definitely inspired and hope to do something similar once Bloc is over, not only will it be "learning by doing" but it will be an opportunity to learn new things for 6 months straight.

(Another guy, Filip, just started this 180 day project and is currently on day 1.)

bloc.io





Saturday, December 21, 2013

My problems with Rspec and Debugging

I have spent the majority of my week trying to figure out errors and learning Rspec. I discovered through the codeship blog they were giving a free course for Rspec for free. That same day I completed the Bloc Rspec section...what a coincidence.

Rspec seems to be a valuable skill I will need on my resume when judging my extensive research on job descriptions.

 Below was given as the Rspec test:

ruby on rails











To solve the test, the method "add" had to be defined. Here is the answer I finally figured out using the Bastards book of Ruby. (after an hour of being stumped).


The resolution:

ruby on rails


I wish I could go into detail on Rpsec and how it works. I will hopefully be able to in the future when I gain a better understanding. 

Happy coding