CronDose | Daily Dev Guides

Daily Snippets for the Developer Life

Creating a Reverse Development Calendar for Challenging Features

Creating a Reverse Development Calendar for Challenging Features

In the devCamp Freelancer Group I recently received the following question by Ryan Bent: “I have question that I’m sure you’ll be able to help me with. I have client that wants a specific feature built and he wants an estimate of cost and his how long. I bill by the project and calculate my hours internally. So my question is, how do I estimate time to build a feature that I’ve never built before?” This is such a common issue for developers that I wanted to dedicate a full guide to address the issue. […]

Guide for Integrating Omniauth in Rails 5 for Facebook Login Feature

In this classroom lecture, I teach how to integrate Facebook authentication into a Ruby on Rails 5 application. Build out the basic application Scaffold a basic application: rails new app_name -T –database=postgresql Create a set of pages Implement devise Setup a Facebook developer account Link to create the account Make sure to list your site URL in the setting’s page, if only in development use something like http://localhost:3000 Integrate Omniauth Add to your Gemfile # Gemfile gem ‘omniauth-facebook’ Update the User Table with the params needed rails g migration AddOmniauthToUsers provider:string uid:string name:string image:text rails […]

Classroom Live Lecture: Git Deep Dive for Developers

In this live lecture we walk through how to work with Git to build and manage applications. Link to the git cheat sheet.

Live Lecture: Deep Dive into RSpec

In this live lecture I walk through various ways that you can utilize the RSpec testing library in pure Ruby and a production Rails app. RSpec Code Resources Code from lecture

Introduction to Conditionals for Developers

Introduction to Conditionals for Developers

You won’t get very far in your study of algorithms before coming across conditionals. And in fact, in our previous guide on boolean logic we already introduced ways to implement conditionals. So in this guide we’re going to take a deep dive into how we can use conditionals to build algorithms. What are Conditionals? First and foremost, what are conditionals? The easiest definition I could come up with that still expresses the goal of conditionals is: A conditional is a computer science process that allows for a program to make dynamic decisions based on answering […]

Live Coding Lecture: Ruby Debugging + Inject Deep Dive

In this live lecture I lead one of the devCamp classes in how to perform debugging in Ruby with the byebug gem and also go through a detailed examination of how Ruby’s Inject method works.

Ruby Coding Lecture: Split, Join, Each, and Map Methods

In this lecture I take a deep dive and walk the devCamp code students through how to use the Ruby methods: Split Join Each Map The code for the lecture is below: Split str = “Star Wars, Luke, Darth, Yoda” p str.class p str.split(/, /).count [“Star Wars”, “Luke”, “Darth”, “Yoda”] p str.split(/, /, 2).count [“Star Wars”, “Luke, Darth, Yoda”] first, *rest = str.split(/, /) p first p rest api = “@=>Posts={title: asdfasdf, title: zxcvzxcv}, @=>Comments={body: qwe, body: vcxfgsfd}” p api.split(/@=>/) [“”, “Posts={title: asdfasdf, title: zxcvzxcv}, “, “Comments={body: qwe, body: vcxfgsfd}”] Join arr = [“Star Wars”, […]

Dodging Silver Bullets for Scalable Freelance Projects

Dodging Silver Bullets for Scalable Freelance Projects

Does the idea of a code library fulfilling a significant portion of a freelance project sound appealing? It’s ok, you can be honest and say ‘yes’. When I started out on my freelance journey, any time I came across a large feature request the first task I’d do was check to see if there was a code library that took care of the requirement. In the development world, code libraries like these are called silver bullets. However, as appealing as it may sound for a plugin or library to take care of the lion share […]

Guide to Using Web Developer Tools

In this guide we’re going to walkthrough an effective tool offered in modern web browsers: the developer tools. As you most likely know, HTML and CSS are used to structure and style websites. However, if you are new to web development you may be surprised that you can see the code for any web page by right-clicking on the page and clicking the View page sourceĀ button. This is a powerful tool, and I’ll show you why. You can follow along by going to the devcamp.com website (or any other site you want to inspect). Web […]

Developer Guide to Boolean Logic

Developer Guide to Boolean Logic

In this guide I’m going to discuss one of the most fundamental concepts in the world of computer science: boolean logic. Despite its importance, many developers have shelved topics such as boolean logic to the archives of boring math concepts. However, the concept of boolean logic is used so often in programming, that it’s a mistake to ignore it. Boolean Logic Definition From a programming perspective, boolean logic is: The concept of breaking complex decisions down into a series of true and false questions. Essentially every time you utilize an if/else conditional in a program, […]

By Daniele Zedda • 18 February

← PREV POST

By Daniele Zedda • 18 February

NEXT POST → 34
Share on