• Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    Shell
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A repository with a coding standard/style guide and conventions document for each of the languages I care about

Style Guides

This repository contains a set of style guides, coding conventions and standards for the languages I care about.

Purpose

I am sick of putting this stuff up for a vote every new team I create or start up. It consumes less time if we just use a set of conventions and standards that we are already content with then iterate on those for our team's needs.

Intent

Anyone is allowed to fork this repository and update the style guides for their own purposes and teams use.

A lot of this I don't really have strong opinions on (unless otherwise mentioned) the key is consistency of a codebase's style and conventions in a team setting with many people contributing. It reduces the maintenance costs of codebases if there is a shared understanding of standards and conventions that should be adhered to.

These should be enforced during review. When tools are available code conventions should be made executable to avoid squabbling over ambiguities.

Structure

There will be a master branch which will contain the coding styles, conventions and standards that I personally prefer. The develop branch may contain some tweaks I am playing with and haven't decided upon yet.

Other branches will be the living standard for the team, OSS project, etc. that I am an active participant in that doesn't mind this being public.

Each language will have the following structure:

  • languagename /
    • README.md (or README.asciidoc or README.adoc)
    • TUTORIAL.md (or TUTORIAL.asciidoc or TUTORIAL.adoc)
    • any file format for language tooling that provides executable checking of conventions that encode the standards.

Philosophy

Why is there a section on philosophy in a style guideline repo? The benefit of writing easy to manage code is universally obvious, right? While the direct goal of easily manageable code can be seen as beneficial, the indirect results, including improving the team dynamic is not immediately obvious to everyone. That, and good code gives us the power to form Voltron.

The enforcement of coding standards and styles can mostly be left to build automation, thankfully! This leaves us with an amazing cognitive ability that we shouldn't waste. The aspect of building and deploying services requires an immense amount of technical knowledge and design fudamentals. How do we learn these? How does an entire team get on the same page? How do technical leads respectfully and thoughtfully instill a vision and methodology into others in their team? How do you [actually poach an egg?] 1

To successfully achieve this we must take into account several aspects of systems management, software design and human nature. To see the product of competent engineers successfully delivered to customers through awesome operations is a beautiful thing. What does this have to do with style? If the style of the code is homogenous, the actual problem being solved, solution being presented or change being applied can be the focus of the conversation. This shift in focus, while the result of minor changes in workflow causes the entirety of the interactive discussion to be about actual issues, and not syntax. The primary objective here being to add intelligent human discussion to the problem being solved. While we achieve this, the other benefits should not be ignored. A team that does code reviews fosters an increased level of respect amongst the group. The discussions create a shared belief in the vision of the application/company and the team. This takes the power of leadership out of one person's hands and puts it into the hands of everyone who cares. In addition to these, doing good code reviews gives everyone a chance to improve, constantly. Any engineer who thinks they are at the top of their game is ignorant of their surroundings and should not be trusted. Everyone has room to improve, and respectful, stylistically correct, code reviews are an amazing way to do exactly that.

License

This is licensed under the 3-clause BSD license. See LICENSE file for more details.

More Repositories

1

mbp-nixos

Instructions and scripts related to getting NixOS running on a newer generation MBP
Nix
129
star
2

twitter4r

OLD repository: Please see http://github.com/twitter4r/twitter4r-core for latest official repository for project.Twitter4R: The most Ruby-like bindings for the Twitter.com REST API by a long way. (Anyone want to take over? I don't have time for Ruby OSS projects any more)
Ruby
89
star
3

rebar-templates

Rebar Erlang, OTP and other project templates. Use rebar3 for rebar3 templates and updates.
Erlang
68
star
4

7languages7weeks

Repository for my journey through the #7languages7weeks challenge, plus blog.
Ruby
32
star
5

cabal-heroku-buildpack

ANCIENT REPO. ARCHIVED. A Heroku buildpack for Haskell/Cabal applications
Shell
20
star
6

carson

Carson is the butler from Downton Abbey. A fine butler indeed. Jenkins and Hudson suck arse. Carson will replace them for software projects requiring true continuous +delivery+ tooling.
Erlang
17
star
7

sinatra-on-nix

An example Sinatra project using Nix to configure the development environment
Nix
14
star
8

welltypedfp

Curriculum, and materials including exercises for an internal course on typed pure functional programming
10
star
9

lambda-purescript-starter

Starter template project for building AWS Lambdas with PureScript
PureScript
9
star
10

vim-rebar

Rebar Vim plugin
Vim Script
5
star
11

vim-bundler

Bundler standalone Vim plugin taken from my contribution to the Rails Vim plugin
5
star
12

effpee

Learning material
Haskell
5
star
13

funalgebra

Slides and code examples from 'Functional Algebra By Example' talk at CodeMesh 2013
Scala
5
star
14

remarkable2-custom-templates

Custom templates and scripts for my reMarkable2 tablet
Shell
4
star
15

puppet-nix

Using Puppet now but would rather get to using Nix and NixOS? Then use this Puppet module to get Nix installed on all your infrastructure. Then who can argue? As forgiveness not permission. Subvert the system. And do it now.
4
star
16

deno-cli-fp-ts-sample

Example of a Deno command-line program skeleton using fp-ts library
TypeScript
3
star
17

rails-skeleton

Ruby
3
star
18

bash-http-server

For the lolz
Shell
3
star
19

amnesia

A fork of the amnesia project on sourceforge.net to be usable in rebar projects
Erlang
3
star
20

ruby-procinfo

A very simple Ruby/C extension to (at the moment) retrieve getrusage information about current process
Ruby
3
star
21

dsmigrator

Migration tool to define, manage, and run migrations against non-RDBMS datastores, search engines, message brokers, and similar pieces of infrastructure with basic schema and structure.
Scala
3
star
22

metafusion

Set of convenience libraries for use in various applications from cryptography to configuration
Ruby
3
star
23

amnesia_core

Amnesia core Erlang/OTP project for RDBMS access (needs database driver, e.g. amnesia_mysql)
Erlang
2
star
24

servant-intro

Servant introductory HTTP API and walk through
Haskell
2
star
25

amnesia_mysql

Amnesia MySQL driver Erlang/OTP project for RDBMS access (depends on amnesia_core)
Erlang
2
star
26

ammonia

Provides more project conventions for Nitrogen web applications in Erlang
2
star
27

fin_util

Utility and helper Erlang modules used in Finsignia projects. Anything from generating pseudo-random passphrases, generating code from templates, etc.
Erlang
2
star
28

seckey-workshop

Security (hardware) key workshop and play area
Nix
2
star
29

lerna-yarn-purescript

ARCHIVED. DO NOT USE.
PureScript
2
star
30

rebar

Mirror and fork of basho's rebar project, mirrored directly from the official Mercurial repository on bitbucket rather than from the unmerged GitHub basho/rebar repo.
Erlang
2
star
31

vim-rvm

RVM Vim plugin written in Vim Script
1
star
32

katas

Random material to show progression of abstraction for katas
1
star
33

susanpotter.net

Output of susanpotter.net site
HTML
1
star
34

hspark

Haskell implementation of the spark shell script by @holman
1
star
35

unfiltered-api.g8

Giter8 (g8) template repository for an Unfiltered (Scala) based HTTP API
1
star
36

chef-cookbooks

Chef Cookbooks for a variety of environments, servers and stacks
Ruby
1
star
37

adventures-in-purescript

Repository to go along with a series of PureScript talks
PureScript
1
star
38

notjusthelloworld.com

HTML
1
star
39

buildoku

An old idea from summer 2011 (before buildpacks) for building binaries on a "Heroku" VM and checking in the binaries to Git
Ruby
1
star
40

functionalprogramming.rocks

1
star
41

purescript-cards

Simple PureScript starter project with client and server (WIP); for educational purposes only
PureScript
1
star
42

scalaz-usages

Scalaz usage
1
star
43

rebar_subdirs_output

Rebar plugin/extension to print output with full paths for errors.
1
star
44

IoGit2

Io bindings for the libgit2 linkable library
1
star
45

basic-security-hygiene

A developer's guide to securing their OSX laptop
HTML
1
star
46

defresourceful

Clojure DSL for defining REST APIs to ultimately generate client libraries automatically like so: https://gist.github.com/1102201
1
star
47

heroku-buildpack-nanoc

A Heroku buildpack for static sites generated from Nanoc
1
star
48

rainbow_unicorns

Sample riak_core application
1
star
49

httpgener8

Generators for Scalacheck useful in the HTTP protocol domain
Scala
1
star
50

sslmon

Simple monitoring agent for SSL/TLS certificates
Haskell
1
star
51

euler

Project Euler solutions for Haskell, Erlang and Scala
Haskell
1
star
52

lucycross.com

Lucy Cross' basic portfolio site
HTML
1
star
53

scala-git

Git repository library in Scala - used as a learning tool for both understanding the Git repository formats and concepts and learning Scala standard libraries better
1
star
54

js-signer

A signing Javascript library. Could be used for authenticating application calls to the Flickr REST API or proprietary APIs that use a similar signing scheme.
JavaScript
1
star
55

goos

Repository to subvert Java examples in the GOOS book to Scala and aim to evolve them into more FP code and tests because growing an OO codebase should involve making it more functional :P
Scala
1
star