Differences between a Web Developer and a Web Designer

It is frustrating nearly all the time, to hear people getting a Web Developer and a Web Designer mixed up.

Yep, indeed they “sound” similar, and one cannot do without the other, however these are 2 extremely different jobs…

Read the rest of this entry »

Getting Video Thumbnail from Youtube

 

Youtube

So, if you are a web developer of some kind, you are probably at some point wondering how to retrieve the youtube video thumbnail…

 

Getting the youtube video is easy enough, thanks to the embed code capabilities nowadays. But, how do we nicely get the thumbnail of the youtube video along with the embed code?

Read the rest of this entry »

Adding alpha_numeric_space to the Codeigniter Validation Library

Codeigniter Framework

Codeigniter Framework

I love Codeigniter, it is my favourite PHP framework by far!

The new form validation library I found was missing one handy validation function, whilst it has checks for alpha, alpha_numeric, alpha_dash and many other usefule ones, it was missing one that would proven to be very useful. Read the rest of this entry »

PHP Optimization – Good Coding Practice

I have been into PHP for a while, and I often wonder if my programming style slows down PHP. Regardless of which programming/script language used, there are always coding practices which you can adhere to that would improve and optimize the performance of the program/website.

I have compiled a list specific to PHP, feel free to comment and let me know if any of these are in any way incorrect or if I have missed out some important details!

The benchmarks are (unless otherwise stated) 100,000 repetitions, and the execution time monitored, then repeat this procedure further 100 times to get a mean (average) result. Results are in seconds.

I realise that this is not the best way to benchmark some of these things, however the information provided is only as reference and useful information, much of coding decisions depend on specific development situations. Benchmarks area always not 100% accurate, but these should give you some ideas.

Read the rest of this entry »

Get String between Some Strings – PHP

I find that sometimes I need to get some string which is between 2 so called delimiters. I don’t think PHP has a built in function to do this, so I was searching around for a solution and found a simple function which does exactly what I am looking for: Read the rest of this entry »

Inline Editing with Ajax (Flickr Like)

Recently I have come across an ultra-neat way of edit-in-place system which is a lot like what Flickr does. There are off course some advantages and disadvantages to this, but the biggest advantage is that the user does not have to leave the page to edit anything and save changes, which is both efficient and a time-saver. Read the rest of this entry »