 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Andrew Podner: Using Stackato for PHP Applications in a Private PaaS
by Chris Cornutt March 18, 2013 @ 12:17:51
In this new post to his site Andrew Podner looks at using the Stackato software from ActiveState to provide a Platform-as-a-Service environment on any cloud infrastructure.
So, now it is settled, I want to stay inside the corporate firewall, but I want each application isolated from the next, and by the way, there is no budget for any of this. I posted about three PaaS providers a while back, and started thinking that what I really needed was PaaS, but I needed to be able to host the PaaS environment inside a corporate LAN. Off to search the web. Surprisingly, there were not just a ton of viable results in that search. Even more surprising...hard to find one with a "download here" button. No matter how I searched though, one company & product kept popping up: Stackato by ActiveState. The words "Free Micro Cloud" were a very encouraging sign. So let's take this thing for a spin and see just how easy it is...
He walks you through the installation process - downloading the VMs, setting up the initial configuration and how to use the command line tool to deploy your own applications (several come preconfigured though). He also includes an example configuration (YAML) you can use to configure custom applications and some sample code showing a database connection.
voice your opinion now!
activestate stackato paas private internal review tutorial
Community News: Privates - Harmful or Useful? (Discussion)
by Chris Cornutt December 12, 2012 @ 09:53:57
There's been a few articles posted on various blogs in the PHP community recently about the "most correct" usage of the "private" scope in your PHP applications. As with any feature of just about any language out there, there's people on both sides of the fence. Here's the ones that have weighed in so far:
- Brandon Savage's initial post (an excerpt from his upcoming "Do This, Not That" book)
- A response to this from Anthony Ferrara
- Brandon's own response to comments on his previous article
- This new post from Larry Garfield and some of his experience from the Drupal world
Various topics come up during these posts including static coupling, using interfaces versus inheritance, wrapper classes and developer intent.
voice your opinion now!
private scope visibility harmful blog
Brandon Savage: Private Methods Considered Harmful ("Do This, Not That" Excerpt)
by Chris Cornutt December 10, 2012 @ 11:26:42
A while back Brandon Savage mentioned a book he was writing ("Do This, Not That") to help PHP developers learn some of the best practices associated with the language. Today he's posted an excerpt from the book for your enjoyment.
This great series of highly focused e-books will offer tips, tricks and best practices focused on core areas of PHP development, including databases, security, filtering, regular expressions, configuration and more. Since it will be a series of tightly targeted solutions, developers will be able to pick all, some or just one of the offerings that solves their specific problem(s).
This excerpt looks at private method use in your applications and why they could be considered "evil" if not used correctly.
voice your opinion now!
book excerpt private method dothisnotthat introduction bestpractices
Vance Lucas' Blog: Protected vs Private Scope Arrogance, Fear and Handcuffs
by Chris Cornutt April 05, 2011 @ 10:45:53
Vance Lucas has tossed his hat into the ring in the debate about private versus protected scope in PHP projects with this new post to his blog.
The age old private vs protected debate has been re-ignited in the PHP community recently following the decision of Doctrine2 and Symfony2 to make all class methods private until there is a very clear and proven reason to change them to protected or public. The intention is a good one - to ensure they are providing a clear and stable API through intentional and known extension points that they can better test and support. [...] The problem is that this kind of thinking is a slippery slope that kills the spirit of programming.
He suggests that, by limiting the scoping down to private, you're taking away the very thing that gets most people excited about third-party tools - the extensibility. In his opinion, it sends a strong message to other developers that they're "not welcome" to make suggestions or updates to the application/tool.
voice your opinion now!
opinion private protected scope application thirdparty
Insidesigns Blog: Create a scalable private messaging application using PHP5
by Chris Cornutt December 08, 2010 @ 11:21:24
From the Insidesigns blog there's a new tutorial showing how you can create a scalable messaging application that works similarly to the instant message platforms users are used to. Their method combines PHP and a MVC approach.
Most social networking sites support two types of messages: public and private messages. Private messages are generally sent in a similar fashion to e-mails, and public messages being posted on user's profiles for other users to see. In this article by Michael Peacock, author of the book PHP 5 Social Networking, we will learn how to allow users to post private messages to each other.
They start with the database structure (specifying things like sender, message and the message) and move into the models to connect the scripts to them. Then they progress into the controllers and views for listing messages, reading a message, viewing and deleting a message. Full code is provided in the post, ready for cut and paste.
voice your opinion now!
private messaging application scalable tutorial mvc
Paul Jones' Blog: Regarding Underscores
by Chris Cornutt October 21, 2010 @ 10:47:25
In response to a post from Leszek Stachowski about underscores in PHP class development, Paul Jones has shared his own thoughts on the matter - that he disagrees with Leszek and suggests keeping the underscore prefix for private methods.
I think the underscore-prefix for protected and private is a good convention to keep. As with many things about programming, this convention is not for the program, it is for for the programmer. For example, limiting your line length to about 80 characters is a good idea, not for reasons of "tradition", but because of cognitive limitations of human beings who have to read code. Likewise, using the underscore prefix is an immediate and continuous reminder that some portions of the code are not public. Its purpose is as an aid to the programmer.
He suggests that it offers something similar to the thought process behind the magic methods like __get or __set that both work on a private scope. Check some of the comments for opinions both for and against the idea from other community members.
voice your opinion now!
underscore opinion private convention programmer
Leszek Stachowski's Blog: php anachronic coding standards
by Chris Cornutt October 18, 2010 @ 13:46:27
In a new post to his blog Leszek Stachowski wonders about a coding convention that's still widely used when it comes to private methods in a class - the underscore prefix.
The question which comes instantly to my mind is: why? Is there any reason why this convention should be kept when PHP object oriented programming has gone a long way since PHP 4 (when there was no access modifiers and such underscore was the only fast way to distinguish public from, hmm, not public methods and properties) ? Are, for instance (as one of major OOP languages), Java coding standards pushing towards such naming convention? No!
He, like many other developers, are pushing to drop this kind of convention as an outdated reminder of the PHP4 days when "private" didn't exist in the language. Scope modifiers have done away with the need for that underscore completely.
voice your opinion now!
coding standard private method underscore opinion
|
Community Events
Don't see your event here? Let us know!
|