Archive for the ‘Web applications’ Category

Clean code talk

  Clean code talks about testing, by Google The Clean Code Talks – Unit Testing The Clean Code Talks – Global State and Singletons The Clean Code Talks – Don’t Look For Things!

How to set apache to skip a directory before a catch-all RewriteRule

Most of PHP applications use internal PHP routing (any MVC framework like ZF, CakePHP… , including wordpress) use a catch-all rewrite rule. In case a directory needs to be ignored from that (to avoid broken urls falling back to that catch-all route), use a RewriteCond   #.htaccess. Redirect all the URLs to index.php, except the [...]

My considerations about Db models and RESTful application

I’ve worked on more than one project using complicate DB layers and HTTP client/server systems (e.g. RESTful apps) to interface with the DB server. My opinion: when working on a project (especially a team project), easy solutions are better then clever ones. OK, OK, a design pattern is an elegant solution to a common problem, [...]

Implementing page counter (MySQL memory temporary table + MySQL procedure)

Although there is google analytics, web applications often have to save statistics of visits (IP, page visited, timestamp) in order to make some business logic. Example: websites with articles (blog or newspaper) with features like “most read articles”, “articles most read from the visitors of the current article” etc… SaveĀ  visits into a MySQL memory [...]

Free web-based software for project management

After being part of a new team that works with outsourcing team with dynamic allocation of resources (developers) without using a software to plan and schedule the project, I’m now interested in experimenting some free web-based software for project management [project magement wiki]. As expected, the awesome wikipedia contains a page about the software used [...]

Validator, Auto complete and Date picker Jquery scripts

In this post I’ll quickly present three Jquery plugin I often use: Jquery Validator [link] [download my working example html+js.zip] After defining the field validators (email, string length range, regex, equalTo another element, int…) for all the form elements in one array. It shows the error messages next to the form elements and prevent the [...]

Functional testing for web applications: Selenium IDE for firefox

In a previous post I wrote about PHP Unit testing. In software science, the levels above Unit testing are Integration, System and System integration testing. For a standard web application I suggest to use only Selenium [official site], a powerful complete framework , distributed with apache licence 2.0 (a free-software, GPL compatible). Selenium includes many [...]