This morning our post scrum it was announced that we will no longer be writing production code in CoffeeScript. I mapped a plan in learning multiple new skills in JS and Ruby, which including working through a free book. I now have no need to learn it now if I want to stay focused on learning skills need to advance in a career in web development.
I have not written much production code using CoffeeScript or Front-End code for that matter, so I will not find it hard to completely stop learning this language. I am at a time where all my learning aside from iOS stuff will be closely related to the work I do (though a new Tweet from my CEO says otherwise). My main goal is to advanced my skills in Ruby and Vanilla JS. I still plan on skimming through that book eventually, but with no emphasis on writing the code.
Once I have a stronger understanding of JS I will really look into looking a CoffeeScript then. I feel as if CoffeeScript was made for the Rails devs with limited JS knowledge, but a desire to write it. From what I did write, I found easy to pick up; CoffeeScript has a lot of similarities to Ruby and it's simplicity, but also has a lot whitespace restrictions, similar to HAML.
What are your opinions on CoffeeScript vs. Javascript?
This is my personal blog and journey in learning a new skill, Web Developing. In only 7 months I made a career change into this field by dedicating 25(avg) hours a week in studying Ruby. #All words are my own, except the ones I copy and pasted.
Thursday, July 24, 2014
Wednesday, July 23, 2014
Data limit reached
Did you you know that a string can only hold 255 characters?
My job in the few days was figuring out some of the simpler errors within the application. It was an been an amazing practice since it help me in better understanding the project as a whole and what it does.
When I was first given this challenge on my second at work I quickly Googled for the answer and surprised on how easy it was to find it on Stack Overflow. SQLite3 is pretty lenient with its data, so I am not sure if I would of seen this error before, but I have also never dealt with live data in a production situation.
I discovered that some Facebook profile urls were causing the Sidekiq to throw an error. For whatever reason some were coming in over the 255 character limit for a string. The quick fix was to switch the column in the database over to a text field without a limit.
I felt pretty proud when I discovered the fix for this on my own and that I remembered how to do this. from my practicing prior to the job.
If you are creating a new table or reviewing an old, think about the data to be received and if there is a possibility for the data to exceed the limit of a string, 255 characters.
My job in the few days was figuring out some of the simpler errors within the application. It was an been an amazing practice since it help me in better understanding the project as a whole and what it does.
When I was first given this challenge on my second at work I quickly Googled for the answer and surprised on how easy it was to find it on Stack Overflow. SQLite3 is pretty lenient with its data, so I am not sure if I would of seen this error before, but I have also never dealt with live data in a production situation.
I discovered that some Facebook profile urls were causing the Sidekiq to throw an error. For whatever reason some were coming in over the 255 character limit for a string. The quick fix was to switch the column in the database over to a text field without a limit.
I felt pretty proud when I discovered the fix for this on my own and that I remembered how to do this. from my practicing prior to the job.
If you are creating a new table or reviewing an old, think about the data to be received and if there is a possibility for the data to exceed the limit of a string, 255 characters.
One month in again
I like giving perspectives on how I am doing once I reach certain milestones. I originally planned on recording a video and completing an AMA on reddit, but did not get a large response. I am not sure if its because I kind of removed from the Aspiring Developer scene and no w moving into the obscurity of devs who made the jump in a job.
My hope is to continue to help others and answer questions for anyone looking for one. When I started this in Oct of 2013, I had no idea where to go or what to start learning. I would of loved someone to take the time and answer my questions or give me advice on what to learn.
I am serious when I say, email me or DM me for anything. I can't do pair programming at the moment, but I can jump a quick chat also, just ask.
How Do I feel?
Now that I am on month into the new job, I am very happy with what I have learned. My personal study at home has decreased quite a bit since I am now focusing on my family on the weekends, but I getting tons of time to research the new concepts I am faced with at work.
I spent quite some time working with the Twitter API and learning the in's and out's. I had the challenge of implementing the ability. this past Friday my company held a Hack Day where all engineers are aloud to work on any work related passion project of their choice. I was short on ideas and confidence to complete a task in one day. I originally sought on refactoring something after all the reading I have been doing on it from Katrina Owen, but found that to be a path towards a never ending rabbit hole.
I ended choosing to take on the task of updating the our to use the most update Twitter Gem and functionality. I ended up not completing this task within one working day due to too many interlocking dependencies to old functionality. I did however learn a lot about the gem and another called state_machine. My skill on researching documentation has definitely increased and making it easier to learn (checkout this article for more info on learning through docs).
In reality I am doing great and keeping up with pace of where I need to be. I however, would like to speed up my learning, which I plan to do in the next few months.
What am I learning working on?
I mentioned my learning is decreasing at home, which is true, but I am definitely more focused and spending less time goofing around (Twitter/Netflix) while studying. I have taken on the task to learn Objective-C/Swift, Javascript, and on continue learning Intermediate Ruby.
My plan has been to complete Objective-C and Swift on the weekends, since it requires the most concentration. I did a bit of learning the basics of C and loving to point out the different parts similar to Ruby. It is definitely easier have a basic understanding of Ruby and programming. I would of definitely been lost trying to learn Objective-C first, with all its boiler plate code. My goal is not to become a professional in iOS but to hope to gain a new ability in creating fun apps to share with friends on my phone. That goal will hopefully be realized before the end of the year.
Javascript has been another language where I appreciate knowing Ruby first. Understanding what variables and functions are generally has helped me progressed through the basics easily. I have learned JS in the past but never followed through any tutorials or books due to my focus on Ruby. I have been going through treehouse videos to understanding more of the basics and eyeing a few books to expand my know.
My work does use CoffeeScript and I plan on reading through this free book this weekend. I also have a talk I am preparing on Ember for FrontEndOrlando.
My goal is to be able to write production level JS/CoffeScript by the end of September.
Ruby is always going to carry a special place in my learning, as it will be my main lang for awhile. I was burnt out on spinning my circles with learning programming due to the learning the basics of Ruby (class, method, variables definitions) over and over. I am excited to finally get into some intermediate to Advance books. I have completed POODR but have plans to go through that again.
I am currently working through Confident Ruby for a work book club as well as WGR. I am disappointed in myself for not going through WGR until now, since there are so many explanations that would have help me along the way. I really enjoy layout and looking forward to becoming Well Grounded while hosting the upcoming RubyNewbie book club. My goal for Ruby is to write expert level code before the end of the year.
I have discovered a great pace while reading both of these books. I reading through each section 2-3 times, in order to pick up the concepts I missed on the first pass.
---
I definitely have a lot on my plate but looking forward to continuing my learning and getting back into some personal projects as well. As always thanks for reading.
My hope is to continue to help others and answer questions for anyone looking for one. When I started this in Oct of 2013, I had no idea where to go or what to start learning. I would of loved someone to take the time and answer my questions or give me advice on what to learn.
I am serious when I say, email me or DM me for anything. I can't do pair programming at the moment, but I can jump a quick chat also, just ask.
How Do I feel?
Now that I am on month into the new job, I am very happy with what I have learned. My personal study at home has decreased quite a bit since I am now focusing on my family on the weekends, but I getting tons of time to research the new concepts I am faced with at work.
I spent quite some time working with the Twitter API and learning the in's and out's. I had the challenge of implementing the ability. this past Friday my company held a Hack Day where all engineers are aloud to work on any work related passion project of their choice. I was short on ideas and confidence to complete a task in one day. I originally sought on refactoring something after all the reading I have been doing on it from Katrina Owen, but found that to be a path towards a never ending rabbit hole.
I ended choosing to take on the task of updating the our to use the most update Twitter Gem and functionality. I ended up not completing this task within one working day due to too many interlocking dependencies to old functionality. I did however learn a lot about the gem and another called state_machine. My skill on researching documentation has definitely increased and making it easier to learn (checkout this article for more info on learning through docs).
In reality I am doing great and keeping up with pace of where I need to be. I however, would like to speed up my learning, which I plan to do in the next few months.
What am I learning working on?
I mentioned my learning is decreasing at home, which is true, but I am definitely more focused and spending less time goofing around (Twitter/Netflix) while studying. I have taken on the task to learn Objective-C/Swift, Javascript, and on continue learning Intermediate Ruby.
My plan has been to complete Objective-C and Swift on the weekends, since it requires the most concentration. I did a bit of learning the basics of C and loving to point out the different parts similar to Ruby. It is definitely easier have a basic understanding of Ruby and programming. I would of definitely been lost trying to learn Objective-C first, with all its boiler plate code. My goal is not to become a professional in iOS but to hope to gain a new ability in creating fun apps to share with friends on my phone. That goal will hopefully be realized before the end of the year.
Javascript has been another language where I appreciate knowing Ruby first. Understanding what variables and functions are generally has helped me progressed through the basics easily. I have learned JS in the past but never followed through any tutorials or books due to my focus on Ruby. I have been going through treehouse videos to understanding more of the basics and eyeing a few books to expand my know.
My work does use CoffeeScript and I plan on reading through this free book this weekend. I also have a talk I am preparing on Ember for FrontEndOrlando.
My goal is to be able to write production level JS/CoffeScript by the end of September.
Ruby is always going to carry a special place in my learning, as it will be my main lang for awhile. I was burnt out on spinning my circles with learning programming due to the learning the basics of Ruby (class, method, variables definitions) over and over. I am excited to finally get into some intermediate to Advance books. I have completed POODR but have plans to go through that again.
I am currently working through Confident Ruby for a work book club as well as WGR. I am disappointed in myself for not going through WGR until now, since there are so many explanations that would have help me along the way. I really enjoy layout and looking forward to becoming Well Grounded while hosting the upcoming RubyNewbie book club. My goal for Ruby is to write expert level code before the end of the year.
I have discovered a great pace while reading both of these books. I reading through each section 2-3 times, in order to pick up the concepts I missed on the first pass.
---
I definitely have a lot on my plate but looking forward to continuing my learning and getting back into some personal projects as well. As always thanks for reading.
Friday, July 18, 2014
save_and_open_page method
When I interviewed for this job, I have to admit I said I had Capybara experience but I honestly really didn't. The most experience I had was from install it on my app and not knowing how to use it. I also had failing integration test on my Hartl app but commented them out.
Thanks to this job I was able to understand how to use Capybara and even write actual integration test.
One thing I learned that has been tremendously helpful is using the save_and_open_page method, you literally place that code above the last line of your test and Capybara will save and open that instance of the page, no internet required. Now you will be able to check out the page and find out why a test is failing, by seeing what info is not displaying.
One thing I learned that has been tremendously helpful is using the save_and_open_page method, you literally place that code above the last line of your test and Capybara will save and open that instance of the page, no internet required. Now you will be able to check out the page and find out why a test is failing, by seeing what info is not displaying.
Check out the following blogpost for more info: Ever heard of the sava_and_open_page method?

I find it very similar to how I have learned how to debug Javascript, using the alert("foo") or console.log("foo"), but thats another blog post. If you are unfamiliar with integration testing checkout thoughbot's blogpost on it.
I realize some of these post will not be useful to some readers of my blog. I recommend keeping these tips in the back your mind, because they will eventually become very useful. I am personally using them as my notes to go back to, just as the Ruby Rogues explained. I hope to google the save_and_open_page method one day or any other tipI wrote about and find it in the top ranking on google. So save this, bookmark it, and thanks for reading.
*Please note this method will not work without the gem "launchy"
Thursday, July 17, 2014
I discovered rails dbconsole
Did you know you can access the to drop and add columns in the db? Well I didnt.
I remember distinctively being in an interview for a job that I didn't get and getting asked if I knew how to access the database to make changes locally. It was my first interview for a rails job and I am pretty sure I didn't answer all the questions to the best of my ability, my response was that I knew to access the Rails console (
Let me outline the issue I had
I created a column on the activities table called reference id. This was planned to hold a stripe reference_id so I can do stuff that is not necessary to explain in this post, just know I needed to save an id that was not already being saved. My issue is that I originally set this column to an integer rather than a string. I was in the need to rollback to the previous migration, which I am well aware of how to do that rake:db:rollback, but I discovered that rather than typing the command repetitively you can write how many steps to go back, like so rails:dbrollback STEP=2 this will take you back 2 migrations.
Knowing how to rollback did not solve my problem. I actually had to adjust my local db, which Postgres. The db "psql" is saved locally on my computer and even though used I rollback I never wrote a down command and caused the column to stick locally, since it was never taught how to delete. I highly recommend using the change method. See below for an example of the using the Down and Change.
The above example would have been great and I would not have had a problem, but with out a down method I basically wrote a bug in migration file and it messed up everything and I could't just change the method cause it was broken.
My resolution was to open up the rails dbconsole which was to actually run the following commands.
ALTER TABLE activities
DROP COLUMN reference_id;
What I did was access the activities table and deleted that specific column. Now with my mistake physically removed from the table I was able to rewrite the migration as a change method and make the column a string as I originally intended.
It is one thing to just blow up the db with a rake db:drop:all and start over, but I have found it takes half a day to recreate my sample data in order to properly test the app, so I try to never do that.
This seems simple, but little things as this are the little tip I continue to learn in my new dev position and I will keep posting them as I learn. If you need more info on this checkout this Stack Overflow.
I remember distinctively being in an interview for a job that I didn't get and getting asked if I knew how to access the database to make changes locally. It was my first interview for a rails job and I am pretty sure I didn't answer all the questions to the best of my ability, my response was that I knew to access the Rails console (
rails c) to adjust and create records in the data. Yesterday it was brought to my attention that you can access the actual db with `rails dbconsole`.Let me outline the issue I had
I created a column on the activities table called reference id. This was planned to hold a stripe reference_id so I can do stuff that is not necessary to explain in this post, just know I needed to save an id that was not already being saved. My issue is that I originally set this column to an integer rather than a string. I was in the need to rollback to the previous migration, which I am well aware of how to do that rake:db:rollback, but I discovered that rather than typing the command repetitively you can write how many steps to go back, like so rails:dbrollback STEP=2 this will take you back 2 migrations.
Knowing how to rollback did not solve my problem. I actually had to adjust my local db, which Postgres. The db "psql" is saved locally on my computer and even though used I rollback I never wrote a down command and caused the column to stick locally, since it was never taught how to delete. I highly recommend using the change method. See below for an example of the using the Down and Change.
The above example would have been great and I would not have had a problem, but with out a down method I basically wrote a bug in migration file and it messed up everything and I could't just change the method cause it was broken.
My resolution was to open up the rails dbconsole which was to actually run the following commands.
ALTER TABLE activities
DROP COLUMN reference_id;
What I did was access the activities table and deleted that specific column. Now with my mistake physically removed from the table I was able to rewrite the migration as a change method and make the column a string as I originally intended.
It is one thing to just blow up the db with a rake db:drop:all and start over, but I have found it takes half a day to recreate my sample data in order to properly test the app, so I try to never do that.
This seems simple, but little things as this are the little tip I continue to learn in my new dev position and I will keep posting them as I learn. If you need more info on this checkout this Stack Overflow.
Wednesday, July 16, 2014
Odin Ruby is done but Ruby Newbies is not: Next step is Well Grounding Ruby
Someone mentioned to me in one of the earlier meetings of Ruby Newbies, "I am not sure how newbie I am." It is true the connection to newbie is someone with absolutely no experience with Ruby, but my idea is slightly different.
I have spend the last 4 weeks working on Ruby and learning stuff everyday. There are too many concepts that I have yet to experience, I also am not extremely comfortable with the basics of working in things such as Procs and Lambdas, or even know all the cool syntactical tricks of Ruby. I just finished off a basic C course on Treehouse and a greater appreciation for Ruby. I hope to continue with my learning and work with anyone willing.
My plan now that we have completed the Odin ruby curriculum section is to work through some more Books as well as well live code on problems with the group. I still have a long way to go on this journey and looking for anyone who wants to join, no matter what the level.
I began reading Confident Ruby by Avdi Grimm and enjoy every page so far. I am finding alot of parallels to the POODR book and even found that Sandi consulted Advi to review the drafts of the book. I am not that far in to share the concepts yet but looking forward to sharing on this in future post.
My plan with the Ruby Newbies is to work through the Well Grounded Rubyist, the book has come highly recommended to me but I never got more than a third of the way through it. My hope is to spend 3-5 weeks on it. My initial though was to go through the first 6 to get out of the beginner explanations and right into the meat of it, but it looks like I might tackle the first 4 chapters and give a talk on it. More details to come.
For those in the Orlando area, specifically orange county. You need to sign up for the free account for Treehouse and Lynda.com. I spent a lot of time during my Lynda.com 7 day free trial and looking forward to view some more advanced concepts and new languages now that I have a little programming under my belt. I am just about finished with my the treehouse section on C and moving onto to Objective-C next.
Use this link Here. Link to the WGR book review event, please RSVP, I am hoping to get at least 5.
I have spend the last 4 weeks working on Ruby and learning stuff everyday. There are too many concepts that I have yet to experience, I also am not extremely comfortable with the basics of working in things such as Procs and Lambdas, or even know all the cool syntactical tricks of Ruby. I just finished off a basic C course on Treehouse and a greater appreciation for Ruby. I hope to continue with my learning and work with anyone willing.
My plan now that we have completed the Odin ruby curriculum section is to work through some more Books as well as well live code on problems with the group. I still have a long way to go on this journey and looking for anyone who wants to join, no matter what the level.
I began reading Confident Ruby by Avdi Grimm and enjoy every page so far. I am finding alot of parallels to the POODR book and even found that Sandi consulted Advi to review the drafts of the book. I am not that far in to share the concepts yet but looking forward to sharing on this in future post.
My plan with the Ruby Newbies is to work through the Well Grounded Rubyist, the book has come highly recommended to me but I never got more than a third of the way through it. My hope is to spend 3-5 weeks on it. My initial though was to go through the first 6 to get out of the beginner explanations and right into the meat of it, but it looks like I might tackle the first 4 chapters and give a talk on it. More details to come.
For those in the Orlando area, specifically orange county. You need to sign up for the free account for Treehouse and Lynda.com. I spent a lot of time during my Lynda.com 7 day free trial and looking forward to view some more advanced concepts and new languages now that I have a little programming under my belt. I am just about finished with my the treehouse section on C and moving onto to Objective-C next.
Use this link Here. Link to the WGR book review event, please RSVP, I am hoping to get at least 5.
Sunday, July 13, 2014
learn.thoughtbot.com, I tried it out.
I tried thoughtbot's learnprime, online training material months ago. I never signed up for the paid version but viewed the sample portions of the videos, but always had it on the back burner for things to do. I recently got a marketing email form Ben Orenstein stating I could start the learnprime program at 50% off.
The course is at steep price in my mind, $49 at the mid-tier. I chose to go ahead an try out the program for a month. thoughtbot is a well respected organization and I have always been pleased with their blogpost and podcast. I also have enjoyed the teaching Ben, mainly from viewed conferences talks on Youtube.
I was surprised to find out that the course did not meet my expectations initially. I actually did not even complete workshop before casting judgment, which was unfair. I only ran through the first portion of the iOS workshop and viewed the first half of the Intermediate Rails.
I admit I initially did not give the courses a chance and only skimmed through, but after just about finishing the Intermediate Rails videos. I find that they are worth the amount I paid (which was 50% off). The Rails tutorial was out of date using Rails 3.12.2 and I had issues getting it up and running with the recommend version. I finally just bundled the latest of everything, including Rails 4.1 and did not have a problem.
I eventually completed viewing all videos in the Intermediate Rails group and plan to rewrite the app a little each day. I also started the TDD app/workshop which I will probably complete this week, since it is smaller. Thanks to VLC and the ability to download the video, I have been watching all the videos 2x speed.
My final conclusion after viewing the videos is the content phenomenal and worth the money paid, I however would not recommend it to beginner or anyone just dabbling. I believe the content is great for someone with quite a bit of Rails personal experience in multiple apps/tutorials. I actually review some things I learned at work from others devs including, Single Table Inheritance and Object Oriented Design. I even saw areas of improvement I could bring into my work app, by limiting the dependencies within the controllers.
What I liked about the content is they take time to explain the best practices of Rails and concepts from Sandi Metz's POODR. I couldn't find it better timing since I have been binging on her past Rails talks, now that I have finished her book. I highly recommend her teaching and recommend watching the follow talk at Rails Conf 2013. It is basically a tease of whats in her book.
The TDD workshop is definitely a must for anyone looking to be hired as a Rails dev. Not every company practices TDD, but it is the best walkthrough of Unit and Integration testing I have seen. Even if you write your test last, the way test lines up right with the recommendations of chapter 9 in the POODR book. This workshop is $15 on it's own and definitely worth money.
This brings to my observation, the cost of learnprime is high but they offer some high level content, which I never took into consideration. The weekly iteration is awesome videos delivered every week, and some info hot topics in the industry to stay cutting edge. Again this is all info for established devs and ones close to becoming established.
I am still on the fence to keep my membership for the iterations alone, as I feel I can finish both workshops before the end of the month. I am definitely appreciative for the content they have provided in the course; but I have no plans in completing any others but very interested in viewing all the iterations.
The course is at steep price in my mind, $49 at the mid-tier. I chose to go ahead an try out the program for a month. thoughtbot is a well respected organization and I have always been pleased with their blogpost and podcast. I also have enjoyed the teaching Ben, mainly from viewed conferences talks on Youtube.
I was surprised to find out that the course did not meet my expectations initially. I actually did not even complete workshop before casting judgment, which was unfair. I only ran through the first portion of the iOS workshop and viewed the first half of the Intermediate Rails.
I admit I initially did not give the courses a chance and only skimmed through, but after just about finishing the Intermediate Rails videos. I find that they are worth the amount I paid (which was 50% off). The Rails tutorial was out of date using Rails 3.12.2 and I had issues getting it up and running with the recommend version. I finally just bundled the latest of everything, including Rails 4.1 and did not have a problem.
I eventually completed viewing all videos in the Intermediate Rails group and plan to rewrite the app a little each day. I also started the TDD app/workshop which I will probably complete this week, since it is smaller. Thanks to VLC and the ability to download the video, I have been watching all the videos 2x speed.
My final conclusion after viewing the videos is the content phenomenal and worth the money paid, I however would not recommend it to beginner or anyone just dabbling. I believe the content is great for someone with quite a bit of Rails personal experience in multiple apps/tutorials. I actually review some things I learned at work from others devs including, Single Table Inheritance and Object Oriented Design. I even saw areas of improvement I could bring into my work app, by limiting the dependencies within the controllers.
What I liked about the content is they take time to explain the best practices of Rails and concepts from Sandi Metz's POODR. I couldn't find it better timing since I have been binging on her past Rails talks, now that I have finished her book. I highly recommend her teaching and recommend watching the follow talk at Rails Conf 2013. It is basically a tease of whats in her book.
The TDD workshop is definitely a must for anyone looking to be hired as a Rails dev. Not every company practices TDD, but it is the best walkthrough of Unit and Integration testing I have seen. Even if you write your test last, the way test lines up right with the recommendations of chapter 9 in the POODR book. This workshop is $15 on it's own and definitely worth money.
This brings to my observation, the cost of learnprime is high but they offer some high level content, which I never took into consideration. The weekly iteration is awesome videos delivered every week, and some info hot topics in the industry to stay cutting edge. Again this is all info for established devs and ones close to becoming established.
I am still on the fence to keep my membership for the iterations alone, as I feel I can finish both workshops before the end of the month. I am definitely appreciative for the content they have provided in the course; but I have no plans in completing any others but very interested in viewing all the iterations.
Subscribe to:
Posts (Atom)



