Skip to content

Instantly share code, notes, and snippets.

@mozz100
mozz100 / semantic-pedantic.md
Last active January 8, 2016 14:19 — forked from jashkenas/semantic-pedantic.md
Why Semantic Versioning Isn't

Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.

For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.

Note: just a feeling. Feelings are human and can be erroneous

But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.

"Us" meaning who... users? I think version numbers

@mozz100
mozz100 / collapse_categories.js
Last active December 15, 2015 04:49 — forked from Mikhail-Zakharov/Collapse categories_Ver2.js
Add this as a global javascript widget in Zendesk to achieve collapsible category headers.
var collapsed_by_default = false; // set this to true if you prefer collapsed by default
function HideCategory(id, IsAgent, animation) {
// Function hides category
$j("div#category_" + id).hide(animation);
SetDownArrow(id, IsAgent);
$j.cookie('hide_category_' + id, 'yes', { expires: 180 });
$j("div#category_header_" + id).attr("onclick", "ShowCategory(" + id + "," +IsAgent+ ",'blind')");
};