2 ms·
I know a lot of programming languages due to the range of work that I do. I've done C++, Java, Perl, and a large amount of PHP starting from PHP 3.0 until 5.1-
by wvenable 13y ago
I know a lot of programming languages due to the range of work that I do. I've done C++, Java, Perl, and a large amount of PHP starting from PHP 3.0 until 5.1-ish.
I'm currently doing C# on Windows most of my days.
I'm about to start a new project that's a re-write of an old but still very popular PHP 4.0 site and I'm going to use PHP (probably the just released 5.5). The main reason is that I have limited time to learn another language/platform and PHP just isn't that bad. My PHP code looks extremely similar to my code in just about every other language I use. I have great IDE (phpstorm). I'm familiar with the gotchas and avoid them and I'm familiar with the advantages and I exploit them. I intend to keep things relatively simple while taking advantage of all the modern language features currently in PHP (closures, traits, generators, etc).
> PHP is now, in 2013, the only language that I work with that gives me no way to automatically create getters and setters for class variables.
That's actually pretty easy in PHP using the get and set magic methods. In my code, any method that starts with the word "get" or "set" can be accessed as a property. With traits, you can apply that code anywhere.