Skip to content

Instantly share code, notes, and snippets.

@evolve2k
evolve2k / plus_two
Created May 28, 2014 03:02
plus_two ruby mentoring
def plus_two num
return num + 2
end
# Most rubyists would tune that further and remove the 'return' knowing that
# ruby always does an automatic return on the last item in a method.
def plus_two num
num + 2 # no returns nahnahnah
end
@evolve2k
evolve2k / Telstra Data Packs.md
Last active August 29, 2015 13:57
Telstra Data Pack Prices March 2014
Monthly Data Pack $5 - 250mb
Monthly Data Pack $15 - 1GB
Monthly Data Pack $30 - 3GB
Monthly Data Pack $60 - 6 GB
Monthly Data Pack $100 - 10 GB
Monthly Data Pack $150 - 15 GB
Monthly Data Pack $250 - 25 GB
@evolve2k
evolve2k / ninefold chat enhancement request
Last active August 29, 2015 13:56
Ninefold chat enhancement request
Enhancement request for Ninefold Chat Support
Spoke to Eden H Support Operator at Ninefold
Ahh just one feedback if you can pass it on to the team
When I open this help chat screen I have to do the following:
1. Unminimise the chat screen
2. Press 'Chat'
3. Get told to wait cause Im X in the queue
4. What this means for me is that it's a blocking IO on what I want to talk about as I can't just type in whats on my mind right now. I have to wait around until I get to the front of the queue and the nice person says 'hi' before I can say what I came to say.
/*!
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see http://creativecommons.org/licenses/by/3.0/.
*/
/*
* Bootstrap Documentation
$('#main_content').toc();
alert('well this works!');
/*
* jQuery Table of Content Generator for Markdown v1.0
*
* https://github.com/dafi/tocmd-generator
* Examples and documentation at: https://github.com/dafi/tocmd-generator
*
* Requires: jQuery v1.7+
*
* Copyright (c) 2013 Davide Ficano
*
@evolve2k
evolve2k / OO_TDD_Rules.md
Last active December 16, 2015 21:29
OO TDD Rules

Today's approach

RED PHASE (Transformation)

FAIL

  1. Write a failing test starting from the smallest simplist thing you have certainty about (inside out approach)
  2. Get the test to report the failed state that you EXPECT.

EXPECT

@evolve2k
evolve2k / Handing Off a Ruby App
Created April 2, 2013 22:24
Steps to complete when handing off a Ruby Application
1. Add versions to all the gems in the Gemfile.
(This app may be picked up again months or years later, its terrible to try to compile it when the versions aren't present.)
2. Update the README
3. Ensure the test suite is passing.
4. Add a 'handover' note in the README which outlines the state of the specs and the pointy bits of the project and in non-political terms where things are at.
@evolve2k
evolve2k / TPP TDD 'Rules'.md
Last active December 15, 2015 12:19
Uncle Bob introduced the idea of TPP and in his literature referrs to a number of rules. Here I document some 'coding rules'.

Meditations

  1. You are not allowed to write any production code unless it is to make a failing unit test pass.
  2. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
  3. You are not allowed to write any more production code than is sufficient to pass the one failing unit test.
@evolve2k
evolve2k / code documenting tips.md
Last active December 13, 2015 18:48
A few documenting code guidelines from the Ruby Rogues http://rubyrogues.com/079-rr-documenting-code/

Code Comments

Don’t do it, a comment is a lie waiting to happen

  • If a comment is needed because the code is unclear, move it into it's own method with a nice name.
  • Write a unit test to explain things instead of using code comments.
  • Unit tests are executable, self verifying documentation.

README

It’s the universal ‘check here first’

  • introduce the project
  • show basic usage