Engineering

169 posts
Code Style options for Cleaner Diffs

Code Style options for Cleaner Diffs

Our previous blog post covered tips on code style fixing while working on legacy projects. The blog post was very generic and the ideas are applicable to projects in any language. I mentioned some tips that help your peer developers review your pull requests. What I didn’t mention are...

Improving code style when working on a legacy code base

Improving code style when working on a legacy code base

Legacy projects Old projects (maybe even 6 months or less) often come without test suites, are tightly coupled with an outdated version of a framework (if not: has lots of boilerplate code), and are written without consistency in code style. When working on such a project, it’s tempting to...

Tilde and caret version constraints in Composer

Tilde and caret version constraints in Composer

When installing a dependency, we are used to installing a version that adheres to a known public interface and does what it promises. That way we can safely use it in our code. A dependency that uses semantic versioning allows you to predict whether it is still going to work...

JSday Maceio 2015 recap

JSday Maceio 2015 recap

We have tons of conferences in Brazil related to web technologies. BrazilJS is far the most incredible one, and it relies heavily on JavaScript. Yearly thousands of JavaScript enthusiasts and developers go to POA to have this amazing experience. A few months ago I saw a conference called JSday and...

PHP type hints: self and parent

PHP type hints: self and parent

In PHP we can type hint function arguments since version 5.0. Over the years and with newer versions of PHP the number of possible type hints have increased. Here’s an overview: public function foo( // Since 5.0 self $self, parent $parent, FooInterface $foo, // Since 5.1 array $array,...

Using illuminate/config v5 outside of Laravel

Using illuminate/config v5 outside of Laravel

1. The Laravel framework has become very popular, between others, for its simplicity and expressiveness. With the recent release of Laravel v5, most of the core dependencies were updated. The same applies to illuminate/config, which is responsible for containing our app’s configuration. We are often involved in projects...

Elasticsearch Aggregations

Elasticsearch Aggregations

I have already covered how you can easily integrate Elasticsearch with your app, but I haven’t talked anything about how you can query your data. I won’t cover the basics of querying or filtering here, instead I will cover a cool feature called aggregations, it’s a way...

Learn hard, play hard #PHPBenelux2015

Learn hard, play hard #PHPBenelux2015

For 6 years in a row now, the PHPBenelux-team organized their annual conference in Antwerp. And yes, madewithlove was present! Dieter and Jonas attended the conference and joined some interesting yet diverse talks. Now I am not going to cover every talk we joined in detail. But I’d love...

Use gitattributes to keep your tests out of other people's production

Use gitattributes to keep your tests out of other people's production

A quick tip here, for all PHP developers out there who author packages registered on packagist.org. Add a .gitattributes file in the root of your github repository. The .gitattributes file allows you to configure several things, but the most important thing related to composer is the ability to not...

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.