Skip to content

Instantly share code, notes, and snippets.

View xpepper's full-sized avatar
💭
😏

Pietro Di Bello xpepper

💭
😏
View GitHub Profile
@xpepper
xpepper / CI Alternatives.md
Last active April 17, 2022 12:41
CI, alternative a confronto :-)

Continuous Integration - Know your opportunities

Continuous Integration in a nutshell

Continuous Integration (CI) is an important practice every team should adopt in order to detect defects and errors early and solve integration problems easily. Roughly speaking we may say that CI is a practice that allows the growth of solid software by giving greater confidence to the developers and better products to the final customers.

The concept behind CI is fairly simple: the codebase is owned by several developers that continuously integrate their changes to a common version control system. For each integration the system runs a predefined set of tasks automatically; these tasks may vary from running all the tests to building all the components.

@xpepper
xpepper / semantic-commit-messages.md
Last active March 22, 2022 16:55 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional, and may contain IDs of the task / user story we are changing the code for (e.g. SELL-123)

Example

@xpepper
xpepper / Install PostgreSQL 9 in Mac OSX via Homebrew.txt
Last active February 8, 2022 03:12 — forked from lxneng/gist:741932
Install PostgreSQL 9 in Mac OSX via Homebrew
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql
@xpepper
xpepper / about-me.md
Last active January 1, 2022 12:39
More about me

Pietro Di Bello, Coder and Agile Coach

Hi! I'm Pietro 👋
I am a passionate coder, I like to build products that can change the life of people.
I am a coach and a trainer, I feel proud and happy when I can help my teammates get better every day at their jobs.
I am an agile developer, I try to embody the agile and lean principles in my professional life.
I love refactoring, testing and eating an elephant solving big problems one bite at a time, with tiny and safe steps.
My preferred programming languages are Kotlin and Ruby, but the one I know best is Java.

The people I owe the most are Kent Beck, Joe Rainsberger and Martin Fowler 🙏

@xpepper
xpepper / asvagrant.sh
Created December 30, 2021 21:55
A shell script to execute a command on a vagrant machine (e.g. ./asvagrant.sh ls)
(
relativeDir=""
while [[ ! -d ".vagrant" ]]; do
if [[ "$(pwd)" == "/" ]]; then
echo "Not a valid path"
exit
fi
relativeDir="${PWD##*/}/$relativeDir"
cd ..
tags
TDD, testing

Another precious TDD exercise by Kent Beck

Let's say you interested in TDD but you just can't figure out how to write a test before you write the code. Here's a foolproof exercise that let's you experience the TDD workflow in spite of that block:

tags
kata

ATM kata

You have to develop an Automated Teller Machine (ATM) allowing cash withdrawals.

The ATM main features: