Category Archives: web development

Friday Algorithms: A Data Structure: JavaScript Stack

Algorithms and Data Structures Instead of writing about “pure” algorithms this time I’ve decided to write about data structures and to start with a stack implementation in JavaScript. However algorithms and data structures live together since the very beginning of … Continue reading

Posted in algorithms, javascript, micro tutorial, web development | Tagged , , , , , , , , , , , , , | Leave a comment

MVC in Practice: Designing Models

Existing Examples There are lots of examples online teaching you what is MVC, why it is good and how to develop an application using this pattern. However most of them use a predefined structure with already constructed database and only … Continue reading

Posted in micro tutorial, web development | Tagged , , , , , , , | 1 Comment

Friday Algorithms: JavaScript Bubble Sort

Bubble Sort This is one of the most slowest algorithms for sorting, but it’s extremely well known because of its easy to implement nature. However as I wrote past Fridays there are lots of sorting algorithms which are really fast, … Continue reading

Posted in algorithms, javascript, micro tutorial, web development | Tagged , , , , , , , , , , , | 2 Comments

Default Error Handling in Zend Framework

Zend_Controller_Action_Exception There’s a cool feature in Zend Framework when a controller or action doesn’t exists. That’s really useful, because you simply write an ErrorController.php in you default module and every action’s exception sends the user to this controller/action and the … Continue reading

Posted in micro tutorial, PHP, web development, zend framework | Tagged , , , , , , , , | Leave a comment

document.forms['myform'].submit() is not a function?

.submit() You want to submit the form by clicking on a link or some other element on the page and this is a simple task. You know that by simply adding something like document.forms['the-form-name'].submit() this will work. <form method="post" name="myform"> … Continue reading

Posted in micro tutorial, web development | Tagged , , , , | 3 Comments