Blog berichten per label

Posts with "PHP"

  1. Autocompleting a lot of parameters

    by Pim Elshoff

    Tags:

    the-beauty-of-water-wallpaper_1024x768-6.jpg

    Some methods have many parameters. Sometimes they start out like that, sometimes they grow like that over time. Even though a maximum of two parameters is preferable, configuration for a method that does a big thing is difficult. Take curl for example; curl has a lot of options and so several wrappers around curl have arisen to deal with configuring it in a more humane manner. How can we keep the clutter of many parameters as low as possible, while maintaining autocompletion?

    Read more about "Autocompleting a lot of parameters"

  2. Module design, part 7: overview

    by Patrick van Bergen

    Tags: ,

    pb3zoom.png

    This article concludes the series on ProBase module design. It provides an overview of the main parts of the architecture and shows how the previous articles fit in.

    Read more about "Module design, part 7: overview"

  3. Module design, part 6: Inter-module queries

    by Patrick van Bergen

    Tags: ,

    shake hands

    I will now address a tricky part of module separation: database queries that access the data stores of separate modules.

    Read more about "Module design, part 6: Inter-module queries"

  4. A Regular Expressions Builder

    by Patrick van Bergen

    Tags: ,

    lego

    An interesting idea: attack the hardness of regular expressions with the power of fluent interfaces.

    Read more about "A Regular Expressions Builder"

  5. Module design, part 5: Model View Controller - Logic

    by Patrick van Bergen

    Tags: ,

    4 friends

    We found that business logic is such an important aspect of an application that it  deserves a special place in the Model View Controller architecture.

    Read more about "Module design, part 5: Model View Controller - Logic"

  6. Module design, part 4: Repositories

    by Patrick van Bergen

    Tags: ,

    repository.jpg

    In the first part in this series I mentioned that a business object should not not have a save() function to save itself to the database. It should just have simple getters and setters. This way an object is lightweight and very flexible.

    Read more about "Module design, part 4: Repositories"

  7. Module design, part 3: The Index

    by Patrick van Bergen

    Tags: ,

    library index.jpg

    In this part I will explain how ProBase hands a page-request over to the right function.

    Read more about "Module design, part 3: The Index"

  8. Module design, part 2: Dependencies and The API Factory

    by Patrick van Bergen

    Tags: ,

    factory.jpg

    In the first part of this series I handled the module API. I showed that it is a protective shield around the module that keeps it from being bound to other modules. In this part I will put it to work and show how it deals with its dependencies: the other modules on which it depends.

    Read more about "Module design, part 2: Dependencies and The API Factory"

  9. Module design, part 1: The Module API

    by Patrick van Bergen

    Tags: ,

    api_wall.jpg

    In this series I will explain some of the techniques we use at Procurios to develop software. In our framework, called ProBase, we use modules to partition our codebase. While this is not unusual, in the past ten years we have developed some of our own ways to deal with the complexity of a large codebase. I would like to share this knowledge because we hope it may benefit other projects as well, and we would like to spark your interest in our company: we are looking for enthousiastic developers.

    Read more about "Module design, part 1: The Module API"

  10. PHP is a baroque seriffy language, and that's why I like it

    by Patrick van Bergen

    Tags:

    baroque

    I have tried to put to words why it is that I like PHP so much.

    Read more about "PHP is a baroque seriffy language, and that's why I like it"