Skip to content

Instantly share code, notes, and snippets.


Pietro Di Bello xpepper

Block or report user

Report or block xpepper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Before to start

In JavaScript there is NO concept of Class.

Everything is an Object.

Inheritance between objects is achieved with a mechanism known as Prototypal Inheritance.

We can create Objects and then link them together OLOO (Objects-Linked-to-Other-Objects).

xpepper / Study Path on
Last active Apr 25, 2019 — forked from pdincau/
Study Path on Microservices
View Study Path on
xpepper / Bank account kata (Sandro Mancuso).md
Last active Apr 25, 2019 — forked from abachar/
The Bank Account code kata (inspired by Sandro Mancuso)
View Bank account kata (Sandro Mancuso).md

Bank account kata

Think of your personal bank account experience When in doubt, go for the simplest solution


  • Deposit and Withdrawal
  • Account statement (date, amount, balance)
  • Statement printing

User Stories

xpepper /
Last active Apr 25, 2019 — forked from dschinkel/tdd-thoughts-by-dave-schinkel.txt
What Does TDD Give Me in terms of a Design Activity?


Tests and the Red | Green | Blue cycle put pressure on your design all the time as you code. Your design decisions are guided by that pressure.

As Corey Haines once stated: "It's like having a little buddy as you code, helping you along, pointing things out such as when your design sucks, when you've broken something, etc."

  • forces you to only create enough code to make a test pass (you’re keeping lean all the time)
  • you won’t be able to write the next test if you have code that’s too coupled
  • you’ll know immediately when you’ve broken behavior. This is different than test after.
xpepper /
Last active Apr 10, 2017 — forked from aslakknutsen/
Import your project's history in Sonar

When you do your first Sonar run on your project, you get a lot of new quality numbers to play with, but no trends. You only have one data set for comparison, the now picture.

Wouldn't it be nice if you could see the current trend of the project without waiting a couple of month for the 'daily/weekly' Sonar runs to fill up the data? Well, you're in luck! And if you're using git as a version system as well, this is your day. :)

In the Sonar Advanced Parameter documentation you will find a System Property called sonar.projectDate. The property let you tell Sonar when in time the running analysis was ran.

By combining this property and what your version system does best, track changes to source, we can now play back the history of the project as far as Sonar is concerned.

This little Bash script illustrates the concept. To spell out what it does in human readable form:

View docker-workflow-demo.groovy
node {
def maven32 = docker.image('maven:3.2-jdk-7-onbuild');
stage 'Mirror'
// First make sure the slave has this image.
// (If you could set your registry below to mirror Docker Hub,
// this would be unnecessary as maven32.inside would pull the image.)
// We are pushing to a private secure docker registry in this demo.
xpepper /
Created Jan 13, 2017 — forked from acolyer/
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
xpepper /
Created Nov 22, 2016 — forked from leonardofed/
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


You can’t perform that action at this time.