The short ternary operator, ?: provides a way to do this much more conveniently: $_GET['mykey'] ?: "". However, this is not good practise, as if the value does not exist it will raise an E_NOTICE.
Group items matching
in title, tags, annotations or urlJungleJar | Featured Web Application: PHPanywhere.net - 0 views
-
This is an extremely cool and useful web application, and if it hasn't been thought of before, I'm absolutely shocked, because it makes so much sense. Essentially, PHPanywhere is a web based free Integrated Development Environment or IDE for the PHP language. In other words it is a web based application that provides PHP developers a PHP code editor that mocks a desktop application, and it does so very well.
Does "Safe Mode" of PHP really give any benefit? - 0 views
PHP: rfc:isset_ternary - 0 views
-
-
The coalesce, or ??, operator is added, which returns the result of its first operand if it exists and is not NULL, or else its second operand.
-
chained
- ...3 more annotations...
30+ Firefox Add-ons for Web Developers & Designers - 0 views
-
Las 30 mejores extensiones para Firefox:
Aardvark - A cool extension for web developers and designers, allows them to view CSS attributes, id, class by highlighting page element individually. chromEdit - Alter the appearance of any page by editing CSS and Javascript files with this extension. CSSMate - Firefox extension to edit CSS files.
CSS validator - Check the validity of your webpage using this CSS validator extension. CSSViewer - See the CSS properties of page elements with this extension.
EditCSS - Play around with loaded CSS, Web Developer extension also provides this functionality.
IE Tab - Designers and developers can view their CSS projects on Internet Explorer using this extension.
Style Sheet Chooser II - Users can pick and choose alternate style sheets for a website. FireBug - A console for debugging JavaScript, HTML, and Ajax code snippets. HTML Validator - Cool extension to validate web pages with HTML standards of W3C. JavaScript Debugger - JavaScript debugging extension enables a strong debugging environment.
PHP Worst Practices at blog.phpdeveloper.org - 0 views
-
Beware the Outsiders
-
Sure, you could cobble together your own library to add that feature and yes, it might integrate excellently with your code, but what does that gain you? One of the points of Open Source development is to share your knowledge with the rest of the community.
-
Unplanification
- ...8 more annotations...
Learning JavaScript from PHP - a Comparison | Lullabot - 0 views
-
In PHP, all variables are local in scope unless declared as global. JavaScript is opposite, and all variables are global unless declared with the var keyword.
-
Both PHP and JavaScript are loosely typed
-
JavaScript is a bit mixed concerning undeclared variables, if you attempt to modify or compare with an undeclared variable, the script will break entirely, but you can check the variable status using typeof() or in conditional statements containing only that variable.
- ...6 more annotations...
Rasmus Lerdorf: PHP Frameworks? Think Again. - 0 views
-
Rasmus Lerdorf is the creator of PHP and still continues as a core developer to the PHP project.
-
heavy Twitter mashup that he created. This does a lot of database calls and a lot of behind the scenes work. By hand-tuning it he was able to get on the order of 280 req/sec.
-
"Any script based language is simply not fast enough".
- ...2 more annotations...
ongoing · Test-Driven Heresy - 0 views
-
As a profession, we do a lot more software maintenance than we do greenfield development.
-
the deep-TDD rules: ¶ Never write code until you have a failing test. Never write any more code than is necessary to un-fail the test.
-
we do way more maintenance than initial development. And in my experience, the first-cut release of any nontrivial software is pretty well crap.
- ...38 more annotations...
1 - 11 of 11
Showing 20▼ items per page