Browse: Home / Programming
By Giedrius Majauskas on September 3, 2009
I have read a tweet about PHP programming today that made me furious. “Handling complex logic in PHP is like doing the LSATs after shock therapy” What is wrong with this statement? It moves responsibility from coder to the coding language and that is completely wrong in this case. Firstly, PHP has syntax similar to [...]
Posted in Programming | Tagged php, software quality |
By Giedrius Majauskas on September 1, 2009
Sometime we get a new inexperienced guy in a company as a programmer. Typically, we test them beforehand; however they are rarely perfect when started. Sometimes they are very new to programming or have bad habits from previous programming jobs. Thus it is my goal to help them to improve. And sometimes it gets really [...]
Posted in Programming | Tagged Programming |
By Giedrius Majauskas on August 24, 2009
There is couple of reasons to develop site distributed under multiple subdomains, e.g. subdomain1.domain.com, subdoman2.domain.com, etc. Each subdomain might be a distinguishable mini-site, which offers better separation of topics and even protects main site rankings to some extent. However, subdomain approach has one issue that needs to be solved. That is each subdomain is treated [...]
Posted in Programming, SEM | Tagged yandex |
By Giedrius Majauskas on August 22, 2009
Quite often I am hired to perform modifications in other web projects done by someone else. This might be an unmaintained website bought ages ago, or when programmers mess up. It is tough to analyze your own code after couple of years from creation. It is much harder to analyze code of someone else. There [...]
Posted in Programming | Tagged analysis, Programming |
By Giedrius Majauskas on August 16, 2009
Today I want to talk about really unproductive topic – that is how to code poorly. Or, more exactly, I am going to pick on my unfavorite piece of social site again, that is Boonex. We will talk about how one should not implement user sessions and how to do it better. Boonex uses unencrypted [...]
Posted in Programming | Tagged Programming, Security |
By Giedrius Majauskas on August 10, 2009
Google analytics does good job at monitoring pages visited, but what about pages that are not found on your server and thus never displayed? You can get these pages by moving the content around, having errors in your links, getting malformed links from various webmasters (often they are caused by bad software on their side [...]
Posted in Programming, SEM | Tagged 404, awstats, google analytics |
By Giedrius Majauskas on August 6, 2009
A traffic spike might be a joy for marketing department after successful advertising placement or a viral campaign. However, you will not be able to use up that traffic if your website is not loading properly. And that is quite common: no one likes to pay for more hardware than it is necessary during “normal [...]
Posted in Programming | Tagged optimization, traffic |
By Giedrius Majauskas on June 11, 2009
I had read a post at sitepoints about 16 php 5 frameworks. I will not argue the fact that frameworks are good and you should use one. What saddens me is that the key points of comparison are omitted in the post. So, how to compare different php 5 frameworks? Let us see. 1. Paradigms [...]
Posted in Programming | Tagged frameworks, php, Programming |
By Giedrius Majauskas on June 4, 2009
Switch off debugging output. All errors and warnings should go to logs and not your site output. You might leave it for your office IP’s, if you have a way to see what others see (additional IP’s or proxies). You do not want others to know what happens in your site, especially if your debugger [...]
Posted in Programming, SEM | Tagged website launch, websites |
By Giedrius Majauskas on May 29, 2009
My blog post is inspired by a meeting where I had a role of mediator between web developing company and customer. The issues were quite simple and common: increasing costs due to neglected specifications and some badly described features. Customer and web development company are in the same boat, although this fact is often forgotten [...]
Posted in Programming | Tagged Programming, specifications |
Recent Comments