 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Chris Hartjes' Blog: Namespaces in PHP? Why *wouldn't* you want them?
by Chris Cornutt July 01, 2008 @ 11:14:51
With more recent talk about namespaces in PHP 5.3, bloggers all over are tossing their comments into the discussion. Chris Hartjes is one of the latest with his thoughts on the point of the functionality.
I'm an outsider when it comes to tracking the going-on in the world of PHP internals. So, because of that, I'm not going to comment on the actual syntax of how namespaces will be implemented or it's impact on internals. That's not really important as far as this particular discussion goes.
He mentions one of the primary arguments for namespaces from the casual developer's perspective - keeping things separate and so classes can have the same naming as some of their cousins in other namespaces.
voice your opinion now!
namespace php5 syntax framework naming class
Debuggable Blog: Better array syntax for PHP Here's your chance to weigh in
by Chris Cornutt June 10, 2008 @ 12:07:03
On the Debuggable blog, Nate Abele has posted a request for opinions on a topic that's been lighting up the PHP mailing lists (and other social media) lately - the alternative array syntax for PHP.
Well, there's a patch available, but 2/3 of the active PHP committers (who participated in the vote) voted against its inclusion. However, of the end-users participating in the discussion, 17 out of 20 voted in favor. Shortly before the voting was concluded, there was a call for some user-land input, so I decided to humbly submit my two pennies.
His comments support the idea, noting that arrays are "our bread and butter" for the language and should be updated to make them even easier to use (and more in line with the declarations of other variable types).
voice your opinion now!
array syntax declare update alternative opinion
Brian Moon's Blog: Short Array Syntax for PHP
by Chris Cornutt May 29, 2008 @ 11:13:00
There's been some talk floating around about a proposed additional syntax for creating arrays in PHP. Brian Moon sums it up nicely in a new post to his blog.
So, I was asked in IRC today about the proposed short array syntax for PHP. For those that don't know, I mean the same syntax that other languages (javascript, perl, python, ruby) all have. [...] It just feels like a good addition to the language. It is common among web languages and therefore users coming into PHP from other languages may find it more comfortable.
He compares it with other data type creation in PHP (you don't call int() to make an integer, so why call array() to make an array). However, according to a post from the internals mailing list, we might not be seeing this any time soon.
voice your opinion now!
short syntax array function integer string language construct
Stoyan Stefanov's Blog: JS/PHP string concatenation mistype
by Chris Cornutt October 31, 2007 @ 12:04:00
"Cross-over" developers out there (those that use PHP and Javascript on a regular basis) can sometimes get confused by little syntax things. Stoyan Stefanov got tripped up by just such an issue.
The front-end developer is a strange beast who has to jiggle to and fro and code in several languages literally at the same time - javascript, html, css, php or some other server side language, some SQL dialect... No wonder that sometimes we make silly mistakes.
His issue was with appending - in Javascript, it's a plus but in PHP, it's a period. Unfortunately, the problem can be hard to track down since Javascript also has a use for the period operator - treating the preceding thing like an object.
voice your opinion now!
concatenation syntax javascript append concatenation syntax javascript append
RefreshinglyBlue Blog: PHP vs Ruby - Practical Language Differences
by Chris Cornutt September 03, 2007 @ 13:57:00
From the RefreshinglyBlue blog, there's a new post that makes a comparison between two of the most popular web scripting languages - PHP and Ruby - on a practical, basic level.
There are rather significant syntactical differences between PHP and Ruby. For example PHP requires semicolons at the end of lines and generally requires curly brackets to enclose blocks of code. Ruby, on the other hand, uses newline characters to denote the end of a line of code...
The post goes through other differences like: value return methods, function/method naming, similarities between them, frameworks, namespaces, documentation and hosting options.
voice your opinion now!
language difference similarity practical syntax framework namespace documentation language difference similarity practical syntax framework namespace documentation
Derick Rethans' Blog: PHP Look Back 2006
by Chris Cornutt January 24, 2007 @ 08:13:00
Derick Rethans has posted his summary of the happenings in the world of PHP as experienced through his eyes:
It's the end of the year again, and that means that I (once again) spent way too much time writing this wrap up of PHP in 2006. In this, the fifth iteration of my annual PHP Look Back, we'll explore the happenings of the PHP world in 2006.
He mentions things like the various PHP releases over the year (especially the release of 5.2), discussions and debates over some of the core functionality of PHP (variables, syntax, etc), actions of the PDM, lots of Unicode talk, and many, many suggestions for functionality to be added to the core.
Check out the full (lengthy) look back here on his website.
voice your opinion now!
lookback year syntax core pdm unicode functionality lookback year syntax core pdm unicode functionality
PHP-GTK Community Site: Using GtkSourceview to build a php editor with syntax highlighting
by Chris Cornutt December 19, 2006 @ 08:34:00
There's a new tutorial posted on the PHP-GTK Community site today - a quick one showing how to use GtkSourceview to create a simple PHP editor with syntax highlighting.
This widget is nearly usable as a real php-gtk IDE. It extends GtkSourceView widget and internally manages both a text buffer and language object classes.
They provide the code, but not too much in the way of explanation for it. Thankfully, most of it is pretty straight-forward. There are a few things that the script has to manage to make the it work - a text buffer for the data, a viewer (window), and the syntax highlighting component. For the view, there are a few handy functions already built in so you won't have to create them - undos, the syntax highlighting, line numbering, markers, and bracket highlighting.
voice your opinion now!
gtksourceview editor syntax highlight undo marker bracket gtksourceview editor syntax highlight undo marker bracket
|
Community Events
Don't see your event here? Let us know!
|