Skip to content

Instantly share code, notes, and snippets.

View darkofabijan's full-sized avatar

Darko Fabijan darkofabijan

View GitHub Profile

Biggest sources of flaky tests (from our experience)

FactoryGirl

When using FactoryGirl to create records in tests, it is necessary to be aware that you are usually creating a lot more records than is obvious in the code. While this is usually harmless aside from slowing down tests, it is capable of creating some mind boggling flakiness. Some scenarios where this is probable are tests that count the number of records, tests that are expecting a certain record and assume that only it exists. Improperly set model level validations can also contribute to this.

Timestamps

@darkofabijan
darkofabijan / gist:7157148244c3ec0cb43a
Created December 1, 2015 20:58 — forked from vrinek/gist:bda51f6fc8b22b5df301
Blizzard Software Engineering Reading

Blizzard Software Engineering Reading

by Jay Baxter (circa 2009)

Associate developer

"This list is for people who want to become Associate Software Engineers at Blizzard. An associate should have skills at the level indicated by these books. Note that this is almost completely focused on C++ programming. This list is incomplete. I need a book on how to become a professional. I've listed several books that give examples of professional behavior, but not one on the actual training."

Programming: Principles and Practice Using C++

by Bjarne Stroustrup

@darkofabijan
darkofabijan / speaker.md
Last active August 29, 2015 13:57 — forked from matiaskorhonen/speaker.md
Creating a blog in 15 minutes with Phoenix

Darko Fabijan

Contact details

Speaker bio

I am developer and cofounder of Rendered Text, a company that you might know by Semaphore, hosted continuous integration service. I have been working with Rails since 2008, and got pushed into distributed systems arena while trying solve problems of fault-tolerant nodes, realtime updates and fast multi-node deployments that we were facing on Semaphore. While exploring distributed systems I discovered Elixir and joined the Phoenix core team.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@darkofabijan
darkofabijan / redis.markdown
Created October 25, 2012 10:28 — forked from eskim/redis.markdown
Running redis using upstart on Ubuntu

Running redis using upstart on Ubuntu

I've been trying to understand how to setup systems from the ground up on Ubuntu. I just installed redis onto the box and here's how I did it and some things to look out for.

To install:

class User < ActiveRecord::Base
def forms
Form.where(:company => company)
end
def find_form(id)
forms.find(id)
end
end
@darkofabijan
darkofabijan / user.rb
Created February 22, 2012 12:17 — forked from miloshadzic/user.rb
class User < ActiveRecord::Base
def find_form(id)
company.forms.find(id)
end
end
Factory.define :application do |factory|
factory.attachment(:sample, "public/samples/sample.doc", "application/msword")
end