News for hackers. Stuff that matters.

igorw2

Re:Addition of 1 and 1 in PHP on Saturday March 09, 2013 @02:52PM (#5349402)
Negative numbers are supported. But if you want a clean solution, implementing a SubtractionOperator is easy enough. Just implement the OperatorInterface.
Re:Addition of 1 and 1 in PHP on Saturday March 09, 2013 @02:48PM (#5349384)
There's a pull request for that now. ;-)
Re:Addition of 1 and 1 in PHP on Saturday March 09, 2013 @02:48PM (#5349382)
The library supports adding other numbers than 1 and 1. Your use case of adding 2 to 1 is supported. As are multi-digit numbers. As are negative numbers.

As you can see, the library is quite advanced.

Re:S-expressions on Monday February 04, 2013 @01:22PM (#5165938)
Let me clarify the reason for this.

Many people asked for yaml support in composer, and it was shot down. Here's why: Once you start supporting many formats you lose interoperability, as any tooling now needs to support all formats. That is the main reason why composer will not support sexpr.

Re:PHPPHP: a PHP VM in PHP on Sunday December 30, 2012 @10:56AM (#4986024)
xdebug exposes a gdbp interface which supports breakpoints, stepping, inspecting variables, etc. And you can use it with gdb or any GUI that supports gdbp, such as macgdbp.

EDIT: It does not expose a REPL though, which I suppose is what you meant?

Re:React/GifSocket: GifSockets in PHP on Monday October 15, 2012 @09:09PM (#4657958)
Does not work in IE6.
Re:React/GifSocket: GifSockets in PHP on Monday October 15, 2012 @09:05PM (#4657942)
Yeah, the lack of native non-blocking bindings is quite the issue. There have been some attempts at implementing plain-PHP non-blocking drivers. One of the most impressive I've seen so far is phpdaemon: https://github.com/kakserpom/phpdaemon.
Re:PHP Tips and Tricks - Codular on Monday July 30, 2012 @03:45AM (#4311314)
This is an excellent example of how _not_ to write code.

Custom autoloading scheme instead of PSR-0? Classname.inc.php, seriously? Moving on, dynamic variables are a terrible unfeature that should be avoided. References usually cause more harm than good and should be avoided as well. And finally, a class which is named with a redundant "Class" suffix, containing only static members, aka class-oriented programming.