Even though we’re specialized in web development, we like new challenges.
One of our client asked if we could build a desktop application for sales agents. Agents need to scan images, also add several information using a form and submit the data when Internet connection is available. Even though it sounds easy, it can be a [...]
Posts under ‘web development’
How about syntax checking your work before issuing a commit? I’m sure you know how it feels when those tiny last minute changes – hey it needs no testing! – just break your app after deployment.
If git is your version control system of choice, make sure you don’t miss the pre-commit hook feature, which was [...]
HipHop for PHP from Facebook hit the streets several days ago resulting in dozens of posts about the technology. Let’s see what the PHP community says:
Marco Tabini enlists the HipHop features and encourages using it
the echolibre blog talks about possible security/buffer overflow implications, and mentions similar available solutions
Ilia Alshanetsky provides an excellent and thorough overview: [...]
According to Dmitry:
poorly optimized loops and unoptimized switch statements
memory caching with unlimited size: “I’m not sure what this pattern is called in Java, but [...]
Brandon Savage has some great tips regarding coding OOP:
“Use Objects. Lots of Objects”
“Use Interfaces To Make APIs Predictable”
Use Dependency Injection”
“Composition Over Inheritance”
“Create Loosely Coupled Classes”
As you can see it’s absolutely not rocket science nor these are new invetions: these rules simply help to avoid typical OOP pitfalls and keep your applications well structured.
Google released Closure, the library and toolset that powers Docs and other Google products.
Closure Library – a JS library with widgets, controls, lower-level utilities for DOM manipulation, server communication, animation, data [...]
Brandon Savage compiled a good summary of application performance tips. Definitely not the difference between using single and double quotes in your code: these are easy to implement and effective (=”micro”) methods to improve responsiveness of your code, like:
Eliminate Any Sort Of Logged Errors
Enable Output Buffering For Everything
Make Use Of A Content-Delivery Network
Determine What Data [...]
Running CRON jobs is not an easy task if you want to do it perfectly: fortunately we’re doing it similarly as it’s recommended by the Percona guys:
- prevent running multiple copies using file locks
- watch for errors
- store historical run times (use logging)
Further details and code sample in Watch out for your CRON jobs at [...]
Do you have some image resizing PHP code out in the wild? You’d better prepare yourself: your code may break anytime if you don’t pay attention to the memory limit settings of PHP. (God, it could already did!)
Take care of the plenty megapixel images and avoid trouble now!
How many memory do you really need? Find [...]