Working With the File System in Elixir

Working with the file system in Elixir does not really differ from doing so using other popular programming languages. There are three modules to solve this task: IO, File, and Path. They provide functions to open, create, modify, read and destroy files, expand paths, etc. There are, however, some interesting gotchas that you should be…

Details

Understand the Basics of Laravel Middleware

In this article, we’ll dive deep into the Laravel framework to understand the concept of middleware. The first half of the article begins with an introduction to middleware and what it’s actually used for. As we move on, we’ll cover how to create custom middleware in a Laravel application. After creation of your custom middleware,…

Details

The Theory of Constraints in PHP

I had been reading The Phoenix Project, a great novel about IT (you read that right), which presents day to day IT and devops problems at a large Amazon-like company in a way which makes mortals understand the complexities and chaos of 21st century technology. Without giving away any spoilers, at one point in the…

Details

Re-Introducing Eloquent’s Polymorphic Relationships

You’ve probably used different types of relationships between models or database tables, like those commonly seen in Laravel: one-to-one, one-to-many, many-to-many, and has-many-through. But there’s another type of relationship that’s not so common: polymorphic. So what is a polymorphic relationship? A polymorphic relationship is where a model can belong to more than one other model…

Details

New Course: Instant Webpack 2

What You’ll Be Creating The much-anticipated version 2 of the JavaScript module loader and bundler Webpack is now available, so why not learn all about it in our new course, Instant Webpack 2. In this course, instructor Dan Wellman will show you how to take a sample front-end web project and create a build system…

Details

Iterating Fast With Django & Heroku

Launching an online business can prove to be seriously complicated. Although on paper, it’s way easier to create an online business than a bricks-and-mortar one, an entrepreneur can get lost in the multitude of options. Some of the most common pitfalls an online entrepreneur gets stuck in include: Building too much too early: Lose time…

Details

Introducing NumPy

Numeric is a package that was originally developed by Jim Hugunin. It is considered the ancestor of NumPy, a Python library and an open-source project created by Travis Oliphant which stands for Numerical Python. Travis created NumPy by incorporating features of the Numarray package into Numeric. The fundamental idea of NumPy is support for multidimensional…

Details

How to Define and Implement a Go Interface

Go’s object-oriented model revolves around interfaces. I personally believe that interfaces are the most important language construct and all design decisions should be focused on interfaces first. In this tutorial, you’ll learn what an interface is, Go’s take on interfaces, how to implement an interface in Go, and finally the limitations of interfaces vs. contracts.…

Details

How to Add CAPTCHAs to Android Apps

If you are developing an Android application that needs to interact with your back-end server, it is important that you take steps to defend it against bots—automated scripts that try to pass for human. Otherwise, your server stands a very real chance of being overrun by them. CAPTCHAs, short for Completely Automated Public Turing tests…

Details