cs


PHP to ASP.NET [CSharp]

After working with C# all summer, I have been having thoughts about moving from PHP to ASP.NET (mainly C#). All summer I have been wondering why it was that I never tried C# before, with the improvements in C# 3.0+ like Windows Connection Foundation [WPF], Windows Presentation Foundation [WPF], Linq, etc. it is hard to [...]

CSharp vs Java

In a sense Java and C# are quite similar, but when you get a bit under the tip you will notice some of the difference between both languages. For some reason C# felt a bit more easier the Java to me, and a bit (a lot) more powerful. There are things like defining getter and [...]

Unique ID

There are times when you need some sort of unique identifier for some reason, and it can be hard to find a system that will have a very low collision risk. After working on the problem for a while, I could find some ways to generate unique identifier. Use UNIX timestamp in milliseconds Use DateTime.Now.ToBinary() [...]

Function overloading in PHP

A while back i wrote somewhere: After doing some Java, i do miss “overloading” a function. I hope they will implement it in PHP6… Overloading is creating two functions with same name, but have different amount off arguments passed to them… I did find a trick to go around, using a combination of func_num_args and [...]