Skip to content

Instantly share code, notes, and snippets.

View CoryFoy's full-sized avatar

Cory Foy CoryFoy

View GitHub Profile
first_pass = {
"A" => "1000000",
"B" => "0100000",
"C" => "0010000",
"D" => "0001000",
"E" => "0000100",
"F" => "0000010",
"G" => "0000001",
"H" => "1100000",
"I" => "1010000",
RSpec::Matchers.define :be_a_member_of do |expected|
match do |actual|
expected.include?(actual)
end
end

5 Team States:

  • Collocated - Team report to the same leader, and sits together in the same area where incidental communication can heppen
  • Distributed - Groups of people who make up the team are collocated in different locations
  • Dispersed - Individuals from the team are in different locations
  • Matrixed - Team members are collocated, but report to different managers who may or may not be aligned with the systems vision
  • Vendorized - The delivery unit is made up of people from both internal and external sources (i.e., team is reliant on a vendor as part of being able to deliver)

As you move further away from the team being a single, coherent, collocated unit, you should be decreasing the amount of time between integrated builds of working software.

# This assumes you have a folder structure like the following:
# - App
# - myapp.rb
# - secure
# - foo.jpg
require 'sinatra'
get '/' do
'Hello, World! <img src="/image/foo.jpg" />'
This article: http://verynicewebsite.net/2014/07/all-the-iwatches/ says that
Morgan Stanley thinks Apple could sell 30-60mm iWatches in the first year.
What does that really mean?
According to: http://www.statisticbrain.com/wrist-watch-industry-statistics/ there
are 1,200,000,000 (1.2b) watches sold each year. Two of the biggest sellers are
Swatch and Rolex. According to that same page:
Company | # Watches Sold Per Year | Avg Price Point | Total Revenue
---------------------------------------------------------------------------
Single Responsibility (single responsibility)
Single Responsibility (single responsibility)
Single Responsibility (single responsibility)
Single Responsibility Now put your code up
Up in the code (code), class loaded up (up), I'm adding my own method
Decided to rip (rip) and paste in this snip (snip)
Cause I got a deadline to meet
Now my codes in the red, change takes forev'
Thanks to your team for reaching out. Here's a short list. This was after adding two books to my cart and attempting to check out:
0) Numerous delays trying to get to the check out page. Several refreshes involved.
1) I get to the login page. I enter what I think my email/password is. I get a message that the system has been upgraded, so I may need to click forgot password. I don't actually have an account.
2) So I reenter my information, and click "Create Account". It hangs at a loading screen.
3) I refresh and get to an enter information screen. I enter my information. It asks for a "Display Name". I enter "Cory Foy". It tells me that "Cory Foy" is already taken. That makes no sense, because it's just a display name.
it's == it is
@CoryFoy
CoryFoy / gist:9831494
Created March 28, 2014 12:22
Lean Principles...
(See http://xprogramming.com/articles/deliver-working-software-frequently/ and http://leanblitzconsulting.com/14-principles-of-the-toyota-way/)
Are you not getting everything you take on finished? Then take on less.
"Use pull systems to avoid overproduction"
Are there defects in your code? Then test it sooner and better. Try pair programming.
"Level out the workflow. Work like the tortoise, not the hare" and “Use visual controls so no problems are hidden.”
Is your code hard to work with? Then refactor it as you go.
"Build a culture of stopping to fix problems, to get quality right the first time"
require 'set'
GEM_FILE_TO_PROCESS = "Gemfile.lock"
def gem_list_finished?(line)
line.include?("PLATFORMS")
end
def non_gem_line?(line)
line.include?("GEM") ||