tihomir ivanov

Hi All,

I learned PHP in only 17 hours and it was absolutely enough to begin work as a PHP developer. Learn More how it can be done.

 

Honestly, I don't like asp.net, php, java, c++, javascript, ruby at all.

So, I Created My Own Powerful Programming Language for a few days.

Learn How it Can Be Done. It's really easy :)

C# Bad Code Examples

Written on August 27, 2010 – 12:28 am | by admin |

After the success of PHP Bad Code Examples, I decided to write another one about bad code examples, but this time it’s about C# Enjoy: Example 1. /// <summary> /// Returns current UTC time /// </summary> /// <returns></returns> public static DateTime GetCurrentTimeUtc() { DateTime dt = DateTime.UtcNow; return dt; } Example 2. bool value; if(value.ToString.Length() [...]

Tags:

PHP Bad Code Examples

Written on August 18, 2010 – 5:31 am | by admin |

I’m little tired of examples how we should write out code. So, here’s a list of really bad PHP code examples. Enjoy Example 1. <?php phpinfo(); if (file_exist(‘../../../../etc/passwd’)) { include(‘../../../../etc/passwd’); } Example 2. if (!isset($_GET['month'])) { … } else { if (isset($_POST['submit_fin'])) { … } } Example 3. function InitBVar(&$var) { $var = ($var==”Y”) ? [...]

Tags: ,