Scato

JavaScript, the Universe and Everything - Part 3: Comparing Node to PHP

ScatoEggenJavaScript

JavaScript is taking the world by storm, making technologies like PHP obsolete... This is of course not true.

In this third and last part of JavaScript, the Universe and Everything, I will take a look at Node and compare it to PHP.

Lees meer
Scato

JavaScript, the Universe and Everything - Part 2: JavaScript in a PHP World

ScatoEggenJavaScript

In the first part of JavaScript, the Universe and Everything, I tried to explain what JavaScript really is.

Lees meer
Scato

JavaScript, the Universe and Everything - Part 1: What is JavaScript?

ScatoEggenJavaScript

If you want to know what JavaScript really is, you have to look beyond just the language. In contrast to PHP, there are several platforms that it runs on. And then there’s the ecosystem, which is nothing like the one PHP has.

Lees meer
Matthias Noback

Programming guidelines - Part 4: Messages

MatthiasNobackProgramming

In the previous parts of this series we looked at how to get rid of complexity at the level of algorithms. After discussing the problem of nulls in your code, we looked at object lifecycles and how to encapsulate them properly. Now that we have objects that can be constructed and changed only in valid ways, we need to look at how they communicate with each other and how we can improve our code with regard to that aspect.

Lees meer
Matthias Noback

Submit to the DPC call for papers!

MatthiasNobackDPC

This year Ibuildings will host the Dutch PHP Conference (DPC) in Amsterdam for the tenth time in a row, on June 23rd - 25th. As you may have noticed, since a couple of weeks you can send in your tutorial or talk proposals. The Call for Papers closes on February 22nd.

Lees meer
Matthias Noback

Programming guidelines - Part 3: The life and death of objects

MatthiasNobackProgramming

In the first part of this series we looked at ways to reduce the complexity of function bodies. The second part covered several strategies for reducing complexity even more, by getting rid of null in our code. In this article we'll zoom out a bit and look at how to properly organize the lifecycle of our objects, from creating them to changing them, letting them pass away and bringing them back from the dead.

Lees meer
Matthias Noback

Programming guidelines - Part 2: Getting rid of null

MatthiasNobackProgramming

In the previous part of this series we looked at what are basically a lot of guidelines for achieving "clean code". In this part I'd like to take a closer look at something we call null. Our main goal will be: to get rid of it.

Lees meer
Matthias Noback

Programming guidelines - Part 1: Reducing complexity

MatthiasNobackProgramming

PHP is pretty much a freestyle programming language. It's dynamic and quite forgiving towards the programmer. As a PHP developer you therefore need a lot of discipline to get your code right. Over the years I've read many programming books and discussed code style with many fellow developers. I can't remember which rules come from which book or person, but this article (and the following ones) reflect what I see as some of the most helpful rules for delivering better code: code that is future-proof, because it can be read and understood quite well. Fellow developers can reason about it with certainty, quickly spot problems, and easily use it in other parts of a code base.

Lees meer
Scato

The New JavaScript Workflow

ScatoEggenJavaScript

I can still remember seeing jQuery for the first time. Then we got Node JS! Running client-side code on Node wasn’t always possible, and ECMAScript 6 was great in theory, but how long would we have to wait until all browsers were updated? Much to my surprise, these problems are gone!

In this blog post, I will describe a JavaScript workflow that includes:

  • bundling JavaScript with Webpack
  • running ECMAScript 6 with Babel
  • checking style with ESLint
  • running unit tests on Node with Mocha
Lees meer
Chris

My journey to core contribution mentoring

Chris JansenDrupal

With many, many open issues (15496 at the time of writing) for Drupal core alone and even more issues for all the contributed modules it can feel like a big hurdle to start contributing to the project.

Lees meer
Scato

Using A JavaScript Style Guide

ScatoEggen

Using a style guide helps keep code more readable, which makes it more maintainable. It can also prevent you from introducing bugs which can be hard to spot (by making semicolons mandatory for example). Enforcing code styles is hard. You can use code reviews to do so, but luckily, there are some tools to help you.

This blog post tells you how to enforce the Airbnb Style Guide using ESLint and Ant.

Lees meer
Boy Baukema

Which Drupal modules can you trust?

BoyBaukema

Software we build depends on an aweful lot of other software, our framework (Drupal), third party modules, libraries (server side and client side!), PHP and it's extensions, Webserver (Nginx / Apache), OS (Linux), etc.

The question with security audits is always, how far do we goWhat third party software should and shouldn't we audit?

For an application that uses Drupal, it's pretty clear that we should audit the custom configuration and code as well as verify that all third party library versions used do not contain known vulnerabilities. But should we audit Drupal? Should we audit a popular third party module like Views? How about a less popular one like the Feeds REGEX Parser? What if a Alpha, Beta or Devel version is used?

To help with decision making we built and released the Ibuildings Drupal Security Audit tools.

Lees meer
Boy Baukema

A PHP Developers look back at OWASP AppSec.eu 2013

BoyBaukemaSecurity

"So tell me, why do you use PHP, really?"

I'm sitting at the conference dinner, in the cargo room of the Cap San Diego in Hamburg Germany, supposedly the 'largest cargo ship seaworthy museum in the world'. Across from me is a German student and OWASP volunteer. We've been talking for a while now, he looks forward to a future in pentesting so he volunteered to help with OWASP AppSec Research 2013. AppSec is a conference for Application Security, hosted by the Open Web Application Security Project (OWASP). Sometimes they add 'Research' to it to encourage researchers to come and speak.

'Sigh. Here we go again' I think as I hear conversation around us stop, people listening in.

Whatever reputation PHP has with other software engineers, it's even worse with the IT security crowd.

Lees meer
Melvin Louwerse

SOLID as a rock (Design patterns workshop - PHPBenelux pt 1)

MelvinLouwerse

On 24 and 25 January it was time again for PHPBenelux the 5th version no less. Two days full of PHP talks that started Friday morning with tutorials. My choice of tutorial was “Design patterns workshop” by Brandon Savage.

 

Before the tutorial really started about specific design patterns themselves we went back to the basics and got a explanation of SOLID. Because SOLID is the base of most of the design patterns and Object Orientated Programming. SOLID stands for five principles that should help with the making of better, more testable and easier extendable code.

Lees meer
Melvin Louwerse

It's becoming a pattern (Design patterns workshop – phpbenelux pt 2)

MelvinLouwerse

A continuation of the last blog about the "Design Patterns workshop: by Brandon savage during the PHPBenelux conference 2014

Lees meer
Boy Baukema

4 HTTP Security headers you should always be using

BoyBaukemaSecurity

What started as a dream for a worldwide library of sorts, has transformed into not only a global repository of knowledge but also the most popular and widely deployed Application Platform: the World Wide Web.
The poster child for Agile, it was not developed as a whole by a single entity, but rather grew as servers and clients expanded it's capabilities. Standards grew along with them.

While growing a solution works very well for discovering what works and what doesn't, it hardly leads to a consistent and easy to apply programming model. This is especially true for security: where ideally the simplest thing that works is also the most secure, it is far too easy to introduce vulnerabilities like XSS, CSRF or Clickjacking.

Because HTTP is an extensible protocol browsers have pioneered some useful headers to prevent or increase the difficulty of exploiting these vulnerabilities. Knowing what they are and when to apply them can help you increase the security of your system.  

Lees meer
Milan

Co-development teams

MilanVerzijlbergh

Bij onze software development trajecten werken wij met projectteams. Afhankelijk van het soort en de omvang van het project wordt een team samengesteld op basis van de specifieke technische kennis en kunde van de developers. Vaak bestaat een team volledig uit developers van Ibuildings, maar we werken ook in co-development teams waarbij naast developers van Ibuildings ook eigen developers van de klant aan het project werken. 

Bij zo’n co-development traject is het noodzakelijk om extra aandacht te besteden aan een goede fundering voor het project. Naast een introductie in de tools die Ibuildings gebruikt bij software development projecten, moet er ook overeenstemming zijn over de werkwijze die aan het project ten grondslag ligt. Met andere woorden, ervoor zorgen dat we als team dezelfde taal spreken.

Lees meer
Martijn de Letter

Ready steady cook

Martijnde Letter

Afgelopen woensdag hadden we de laatste interne workshop van het jaar en deze ging over de best practices met Vagrant en Chef.

Lees meer
Ross

Workshops, workshops everywhere

RossTuck

Ibuildings organiseert regelmatig een interne workshop. Hierbij worden (veelal) technische onderwerpen behandeld en aan de hand van een opdracht verder uitgewerkt.

Maar hoe maak je een workshop over Symfony 2 en Domain Driven Design (DDD) interessant voor iedereen?

Lees meer
Ross

ETags for the Uninitiated pt2

RossTuck

In the opening to this series, we discussed what ETags are and demonstrated their most common use case, caching. This time around, we’ll look at a lesser known but perhaps even better feature of ETags: keeping changes safe when writing to the server.

Lees meer