And save your time

A coffe in a table
A coffe in a table
Photo by Austin Distel on Unsplash

The principle has named after Vilfredo Pareto, an Italian economist in 1895, noticed that about 80% of Italy’s land belonged to 20% of the country’s population.

The idea of the rule is that 80% of outcomes (or outputs) result from 20% of all causes (or inputs) for any given event.

Some Examples:

  • 80% of a company’s revenues are generated by 20% of its customers
  • 80% of quality issues impact 20% of a company’s products
  • 20% of a blog’s posts generate 80% of its traffic
  • 20% of drivers cause 80% of all traffic accidents.

In that in mind, how we can use this in our days to achieve our goals? …

This tutorial will help you get started with Test Driven Development (TDD) today with JavaScript.

Image for post
Image for post

Why TDD?

Projects without test look like a bunch of things glued together.

Image for post
Image for post

We will use the Mocha framework and the Chai library for make easy our tests.

Little explanation about chai and mocha

What is mocha ?

Mocha is a JavaScript test framework running on Node.js and in the browser,making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

And chai ?

Chai is a BDD / TDD assertion library for Node.js and the browser that can be delightfully paired with any JavaScript testing framework.

The combination of Mocha and Chai today is best known for performing API Rest tests developed in NodeJS.

Creating our environment of tests

Let’s start our environment of tests, we make a folder called awesomeRestfulTests, inside type NPM init to create our package.json. …

Image for post
Image for post

Hello people! Today I am going to show you how I got my student pack from GitHub and how you can get it too.

Here are some advantages of the student package:

  • Unlimited private repositories.
  • Access to developer tools for free.
  • $50 in Digital Ocean credit.
  • Here is a complete list.


To get the student pack, you have to meet these requirements:

  • Must be enrolled in a degree- or diploma-granting course of study.
  • Must be a student aged 13+.
  • Must have a GitHub account.

If you meet these requirements, we will continue.

How to get the pack

You get access here and click to join GitHub Education. …

Deploy your applications like a 🚀.

Image for post
Image for post

This tutorial assumed you have Npm packager installed, if you don’t have you can download here.

What is surge ?

Surge is a static web publishing for Front-End Developers and permitted you publish your project without leaving the command line.

For installing him in your machine type the command below:

Image for post
Image for post

In this article, I'm going to show a simple way to automatically minify your CSS files using gulp. 🚀

To start — what is gulp?

Gulp is a JavaScript task runner that lets you automate tasks such as…

  • Bundling and minifying libraries and stylesheets.
  • Refreshing your browser when you save a file.
  • Quickly running unit tests.
  • Running code analysis.
  • Less/Sass to CSS compilation.
  • And much more!

The gulp workflow works as follows:

We can create tasks that we would like to fulfill. In these tasks we load files that we want gulp to work on (modifying or not), then we return them to some return folder.

It’s simple. …

Esta é uma pequena lista de bugs que podem comprometer a segurança de um site em PHP.
Alguns são bem conhecidos, outros precisam de um pouco de “sorte” do hacker para acontecer.

Image for post
Image for post
  1. SQL Injection

O mais conhecido, esse ataque visa o atacante injetar instruções SQL no seu site se você tiver um código assim:

// Recebendo um e-mail e senha de usuário para realizar login 
$email = $_POST['email'];
$senha = $_POST['senha'];
$sql = "SELECT email,senha FROM usuarios WHERE email = $email
AND senha = $senha";

Vamos supor que o usuário coloque o valor OR 1=1-- no input de e-mail olhemos o que acontece:

$email = $_POST['email'];
$senha = $_POST['senha'];
$sql = "SELECT email,senha FROM usuarios WHERE email = OR 1=1--
AND senha = 123 ";

O que vai acontecer agora é que, o OR 1=1 vai fazer ele selecionar o primeiro registro da tabela de usuários e o -- vai comentar o resto da instrução, assim o atacante ira logar no nosso sistema como o primeiro registro da tabela usuários. …


Vinicius Gularte

Writer in Medium, creator of Xabits, follow me in Linkedin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store