This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This is a demonstration of a valid reason for having two methods that call each other. | |
# It is part of a response to a queuestion online | |
# https://softwareengineering.stackexchange.com/questions/376333/is-2-methods-calling-each-other-code-smell/377660#377660 | |
# | |
# See a video of me making this at https://youtu.be/YugJV21W91A | |
# | |
# we are using recursion to implement quicksort. | |
# The sort is implemented two slightly different ways | |
# and each way calls the other to do the next level down the tree. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
author: Toby Anderson | |
licence: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/legalcode) | |
--> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../iron-pages/iron-pages.html"> | |
<!-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parse fixture files to seed the database in a non-destructive way | |
# duplicates are avoided and you may specify if the fields of an | |
# existing record should be updated. | |
module FixtureParser | |
require 'yaml' | |
# files_options_hash has fixtures file names as keys and then a hash like this as values |