Posts by André Spineli • 81 points
3 posts
-
2
votes2
answers66
viewsQ: Cost of using exceptions with PHP and Valueobjects
I have always heard that exceptions have a high processing cost and make the application slow. In the specific case of PHP, how much can we abuse the use of exceptions? In the case of data…
-
2
votes2
answers3294
viewsA: How to run php files in browser using VS Code?
PHP as of version 5.4 provides a built-in server for development, to use open a command terminal/prompt in your project directory and type: php -S localhost:8000 Access through the browser through…
-
3
votes3
answers182
viewsA: Access modifiers in PHP
It makes sense, when designing a class the ideal is to define methods (functions) as being behaviors of a given entity and not simply multiple getters and setters to modify attributes. A method can…