codedokode

Results 11 comments of codedokode

May I add a note too? I am a user of promises, not developer though. I don't like global error handler and using PHP error handling system. Global error handler...

In many cases there is no need to handle error - it should just terminate the application. For example, if a `wget`- like client cannot resolve DNS name or connect...

1\) Regarding error handlers: PHP already has 2 global error handlers. Those are error handler set via `set_error_handler()` and uncaught exceptions handler set via `set_exception_handler()`. I don't like the idea...

Also I always use an error handler that converts PHP errors, warnings and notices to exceptions (similar to the one described in [PHP manual on ErrorException](http://php.net/manual/en/class.errorexception.php)). So in my code...

Спасибо за замечания. Про "не надо ставить try/throw на одном уровне" - имеется в виду, внутри одной и той же функции, так как в этом случае проще поставить if и...

@colshrapnel Эта рекомендация появилась потому, что я не раз видел в коде начинающих этот антипаттерн. То есть они могли бы использовать просто if/break/return, но (из-за незнания) использовали исключения, усложняя код....

@GrayHatter As far as I know this problem is actual for all 32-bit Windows versions. GCC assumes that the stack is aligned to 16 bytes when functions are called but...

This is probably because of stack alignment in 32-bit Windows programs built with MinGW. It is described [here](http://www.peterstock.co.uk/games/mingw_sse/) and can be fixed by recompiling the program and all of its...

I have checked this bug on Debian 8. - uname: Linux debian 3.16.0-4-586 #1 Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) i686 GNU/Linux - /etc/issue: Debian GNU/Linux 8 - x11vnc server: built from [commit...

In the X server there is a layout, that maps a keycode to a keysym (a character code). Keycode is a number from 0 to 255 and it corresponds to...