441 reputation
310
bio website
location Quebec City, Canada
age 32
visits member for 3 years, 9 months
seen Oct 16 at 13:42

Web developper

  • PHP (Zend Framework)
  • MySql
  • Javascript
  • XHTML / CSS

Hobbyist

  • Python

Oct
16
revised Designing classes the right way
added 3 characters in body
Oct
15
awarded  Yearling
Oct
15
comment Designing classes the right way
I came up with intersection as a connecting segment, it could be used to represent the end of the line (previous station only), or an element in the middle of the line (one previous station and one next station). In the end the station is a collection of all these connections
Oct
15
answered Designing classes the right way
Sep
30
awarded  Explainer
Sep
24
awarded  Autobiographer
Feb
11
answered how to check email address exist or not in php
Dec
9
answered How is DRY principle ( applied at class level ) related to SRP?
Dec
9
revised How is DRY principle ( applied at class level ) related to SRP?
Clarification of acronyms used in the text and link to wikipedia references
Dec
9
suggested suggested edit on How is DRY principle ( applied at class level ) related to SRP?
Dec
9
revised Open Close Principle (OCP) vs Dependency Inversion Principle (DIP)
Clarification of some terms (use of full terms), added links to references and general question formatting
Dec
9
suggested suggested edit on Open Close Principle (OCP) vs Dependency Inversion Principle (DIP)
Jun
13
comment Pros of start learning programming with Python if what I really want is Javascript?
Really good point, more managers should see programming as such. The only point I am not totally with you is using a meta-programming language as a learning base (CoffeeScript)
Dec
27
answered Where do the parser and service objects fit in MVC?
Dec
12
accepted Best way to throw exception and avoid code duplication
Dec
12
comment Best way to throw exception and avoid code duplication
The PHP code is making a shit toward this since you can have your function and force parameters to be arrays or instances of classes/interfaces, but since int, strings and other simple stuctures aren't managed through objects, you can't validate them based on type like in : function myFunction(array $myArray, myClass $object)
Dec
12
comment Best way to throw exception and avoid code duplication
I am not trying to write Java code in PHP, I used it only as an exemple, what I'm really trying to do is to make sure that all the pre condition for the function are met to make sure that I have a stable result and an higher traceability of the differents bugs that can occur du to bad method usage
Dec
12
asked Best way to throw exception and avoid code duplication
Nov
9
answered CSS naming guildlines with elements with multiple classes
Nov
2
comment In PHP, what are the different design patterns to implement OO controllers as opposed to procedural controllers?
Symfony 2 (base for the micro framework Silex), Zend Framework 2 are two of the many good php frameworks that works with the MVC design pattern and both have a dependancy injection container at their heart. If you want a standalone dependancy injection you can take a look at pimple