Code Navigation, Design Patterns, and Too Many Functions

When going into extremes in using a specific programming style or a specific design pattern the result is always bad code - even if it looks nice. https://unixsheikh.com/articles/code-navigation-design-patterns-and-too-many-functions.html

3y | unixsheikh
Git bare vs. non-bare repositories

The Git revision control system has something called a "bare" and a "non-bare" repository. This tutorial deals with the issue and also compares the Git design to the design of Mercurial and Bazaar. https://unixsheikh.com/tutorials/git-bare-vs-non-bare-repositories.html

3y | unixsheikh
The Book "Pro PHP Refactoring"

I just finished reading the book Pro PHP Refactoring by Franvesco Trucchia and Jacopo Romei. The book itself should be refactored - it's not pro at all. The book is an attempt to take the guidelines from the famous "Refactoring, Improving the Design of Existing Code" by Martin Fowler and turn them into PHP refactoring principles. https://unixsheikh.com/articles/the-book-pro-php-refactoring.html

3y | unixsheikh
Code comments are good right? Well, not if there are too many!

Too much commenting makes the code difficult to navigate. Experienced programmers try to create code that is self-explaining. Good code is almost always self-explaining. https://unixsheikh.com/articles/too-many-comments.html

3y | unixsheikh
Benchmark 2 - MySQL Cache

This is a benchmark test of the performance of MySQL Cache. The test was performed on an Intel P4 1.7 Ghz with 1036028 kB of memory over a private LAN. The server runs MySQL 5.0.51a and PHP 5.3.3 on a standard Debian installation. Between each change of settings all related processes was restarted. Since Debian Squeeze the MySQL Cache is enabled by default. https://unixsheikh.com/articles/benchmark-2-mysql-cache.html

3y | unixsheikh
Benchmark 1 - Dynamic pages vs. static pages vs. Memcached

This is a benchmark test of the loading speed of dynamic pages vs. static pages vs. pages stored in Memchached using PHP. The test was performed on an Intel P4 1.7 Ghz with 1036028 kB of memory over a privat LAN. The server runs MySQL 5.0.51a and PHP 5.3.3 on a standard Debian installation. Between each change of settings all related processes was restarted. https://unixsheikh.com/articles/benchmark-1-dynamic-pages-vs-static-pages-vs-memcached.html

3y | unixsheikh
Benchmark 3 - The Alternative PHP Cache (APC)

This is a benchmark test of the performance of PHP with and without APC (Alternative PHP Cache). The test was performed on an Intel P4 1.7 Ghz with 1036028 kB of memory over a private LAN. The server runs PHP 5.3.3 on a standard Debian installation. Between each change of settings all related processes was restarted. https://unixsheikh.com/articles/benchmark-3-the-alternative-php-cache-apc.html

3y | unixsheikh
Enforce strong passwords in Debian

This tutorial explains how you can enforce a strong password for users on Debian. https://unixsheikh.com/tutorials/enforce-strong-passwords-in-debian.html

3y | unixsheikh

Membres



Chercher