Skip to content

Instantly share code, notes, and snippets.

@mrtns
mrtns / gist:9888781
Last active August 29, 2015 13:57
BDD Workshop

Abstract

Behaviour Driven Development, like any other dogma in software development, is a complicated beast. It's proselytized by the zealots, and abdicated by the trolls. The practical reality is somewhere in between. And the best we can do is arm ourselves with understanding.

This workshop will attempt to cut through to the core of BDD. We will learn the history and theory behind it, show the outputs of its evolving practice, and explore how to incorporate it into our current work.

BDD finds itself at the intersection of a lot of different disciplines. This is ultimately what makes it so effective, fruitful and exciting. After all, building the right software is just as important as (if not more than) building the software right.

@mrtns
mrtns / gist:10081393
Last active August 29, 2015 13:58
BDD Implementation Patterns Workshop

Abstract

Behaviour Driven Development, like any other dogma in software development, is a complicated beast. It's proselytized by the zealots, and abdicated by the trolls. The practical reality is somewhere in between. And the best we can do is arm ourselves with understanding.

BDD finds itself at the intersection of a lot of different disciplines. The majority of those are non-technical. This workshop will focus on the technical aspects. Having a solid understanding of these will allow practicioners to focus instead on the really important parts, instead of getting caught up in implementation details.

Syllabus

@mrtns
mrtns / gist:786d0a06d8ab7c304b41
Last active August 29, 2015 14:15
MySQL Timezone Issue
# MySQL is in UTC timezone
SELECT @@global.time_zone, @@session.time_zone, @@system_time_zone, TIMEDIFF(NOW(), UTC_TIMESTAMP);
/*
+----------------------------------------------------------------------------------------+
|@@global.time_zone|@@session.time_zone|@@system_time_zone|TIMEDIFF(NOW(), UTC_TIMESTAMP)|
+----------------------------------------------------------------------------------------+
|SYSTEM |SYSTEM |UTC |00:00:00 |
+----------------------------------------------------------------------------------------+
@mrtns
mrtns / README.md
Created September 7, 2015 01:39
Data Visualization Notes
@mrtns
mrtns / README.md
Last active December 12, 2015 09:39 — forked from mbostock/.block

This variation of a bivariate area chart uses clipping to alternate colors. When New York is warmer than San Francisco, the difference between the two is filled in green. When San Francisco is warmer, the difference is filled in red. A similar technique was used by William Playfair all the way back in 1786.

@mrtns
mrtns / gist:8324764
Created January 8, 2014 21:12
ASP.NET MVP
http://www.unit-testing.net/CurrentArticle/How-To-Use-Model-View-Presenter-With-AspNet-WebForms.html
http://www.hanselman.com/blog/OneASPNETSneakPeekElegantWebFormsAndSnowballsInHell.aspx
http://www.ctothoughts.com/2011/11/testing-aspnet-webforms.html
http://www.aaron-powell.com/posts/2010-05-18-testing-messaging-within-a-presenter.html
@mrtns
mrtns / gist:8328388
Last active January 2, 2016 16:09
Multi environment, multi tenant, multi language BDD specifications, scenarios

Approaches

  • Write a single spec. Script multiple runs. Use tags to define which scenarios to execute on each run
  • Write a single spec. Script multiple runs. Use spec tables to define different assertions to perform on each run
  • Write a spec. Duplicate a spec for each variation. Set up run in Using block of spec

Notes

Variations

  • envrionment
@mrtns
mrtns / gist:8348257
Created January 10, 2014 07:39
viewport
https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html
http://webdesignerwall.com/tutorials/viewport-meta-tag-for-non-responsive-design/comment-page-1#comments
http://blog.javierusobiaga.com/stop-using-the-viewport-tag-until-you-know-ho
http://stackoverflow.com/questions/8735457/scale-fit-mobile-web-content-using-viewport-meta-tag
http://stackoverflow.com/questions/18466871/conditional-viewport-scale-to-fit-when-screen-width-is-too-small-or-too-big
http://dev.opera.com/articles/view/an-introduction-to-meta-viewport-and-viewport/
@mrtns
mrtns / gist:8364792
Last active January 2, 2016 21:39
BDD Notes

BDD

“BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters.”

Goals

2. Quality

1. Go Faster

Theory, Practice