Tag Archives: modules

Javascript modules and jQuery events

Posted in Javascript on August 28, 2015

Writing good Javascript code is tricky. A first step achieving this goal is to start writing modules in Javascript. Modules make way for structured, organised code that does one thing and one thing well. With the update of our website at PLint-sites, I improved the Javascript by using modules. The module I would like to discuss in this blog is for validating a simple form. Here jQuery comes in because we like to let the user know early on if he makes a mistake in filling out the form fields.

Read more

Javascript modules: why and how?

Posted in Javascript on July 17, 2015

Writing testable and maintainable Javascript code is not easy. Starting with Javascript modules is a good first step to write reusable code blocks that are testable. Small codeblocks that perform one task will also help maintaining your code. But how to write a proper Javascript module? In this post we summarise the steps.

Read more