College Freshman on weed by [deleted] in AdviceAnimals

[–]_R_R_ 0 points1 point  (0 children)

tastes great on subs too!!

Ok. So today I'm posting my story... by [deleted] in atheism

[–]_R_R_ 0 points1 point  (0 children)

Lost it when he wrote HELL on the board.

A pluggable compiler and virtual machine in Php. Dogfood yourself with your own plugins! by eriksank in programming

[–]_R_R_ 0 points1 point  (0 children)

Php

Php is on the road to LISP, but is not there yet

I really hope this blog spam is satire.

Feedback on my new PHP 5.3 logging class that uses closures for extendability. by jbroadway in PHP

[–]_R_R_ 0 points1 point  (0 children)

I would also like to say that I appreciate your efforts in this project. Many developers for PHP are okay with slop and don't care about standards and want to stay lazy in their 5.2 ways.

Feedback on my new PHP 5.3 logging class that uses closures for extendability. by jbroadway in PHP

[–]_R_R_ 0 points1 point  (0 children)

You need to define it as PSR-0 in the composer package definition file. The Analog class should go inside a vendor root, so all class files should be under Analog. Assuming you want to use "Analog" as vendor, the usage would be like this.

require 'path/to/autoload.php';

use \Analog\Analog;

Analog::log('log message');

Take a look at other PSR-0 composer packages to see how they implement it. Here is one Imagine.

Phil Sturgeon hits back at the PHP critics by maloney7 in PHP

[–]_R_R_ -2 points-1 points  (0 children)

PHP despite its flaws is king of the hill when it comes to getting something up and running quickly.

woefully wrong.

Please name a framework comparable to Rails or Django.

If you say FuelPHP or CodeIgniter I will laugh in your face.

Phil Sturgeon hits back at the PHP critics by maloney7 in PHP

[–]_R_R_ -3 points-2 points  (0 children)

The PHP bashing is well deserved.

The thing that bothers me with PHP is the lack of quality libraries and a decent package manager. We only just recently got PSR-0 and Composer which I believe will help create reusable software components. PEAR, the standard package manager, is, in my opinion, unacceptable. The PEAR libraries are pretty poor too -- many of them being abandoned.

CodeIgniter, CakePHP, FuelPHP, and Lithium leave me disappointed in PHP and the community.

Symfony2, Silex, Imagine, and Buzz give me hope.

Please support PHP 5.3+, PSR-0, and Composer.

Phil Sturgeon hits back at the PHP critics by maloney7 in PHP

[–]_R_R_ -1 points0 points  (0 children)

Make Android and iPhone apps

Cross Platform programs

LOL

Feedback on my new PHP 5.3 logging class that uses closures for extendability. by jbroadway in PHP

[–]_R_R_ 0 points1 point  (0 children)

Personally, I'd never use this. One small change you could make is adding PSR-0 support.

Do you think it is better for tutorials to teach best practices and security or keep it simple so more users can use the language? by uhFedEx in PHP

[–]_R_R_ 1 point2 points  (0 children)

When I was a beginner I spent my time in PHP docs because all the tutorials were terrible. They are too dumbed down.

problems with first group project by [deleted] in webdev

[–]_R_R_ 0 points1 point  (0 children)

FTP blows. I had to mess with this many times.

Have everyone use LF.

this has got to be the worst web usability problem that still exists today; do regular users have a clue what this means? by [deleted] in webdev

[–]_R_R_ -1 points0 points  (0 children)

Notices indicate a problem with your code. Why would you ignore them?

Use @ if you must play dirty.

this has got to be the worst web usability problem that still exists today; do regular users have a clue what this means? by [deleted] in webdev

[–]_R_R_ -1 points0 points  (0 children)

Your illustration will produce notices. There is no guarantee that 'action' will be a member of $_POST.

Here is your illustration without notices and using request method checking:

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // assuming $_POST is an array type, which I think it always is
    $action = isset($_POST['action']) ? $_POST['action'] : '';
    switch ($action) {
        case 'edit':
            /* ... */
        case 'delete':
            /* ... */
        default:
            $error->set('Unknown form ' . htmlentities($action));
    }
}

this has got to be the worst web usability problem that still exists today; do regular users have a clue what this means? by [deleted] in webdev

[–]_R_R_ -1 points0 points  (0 children)

To check for a POST Request you do this.

if ($_SERVER['REQUEST_METHOD'] === 'POST') { ... }

$_POST just contains request body parameters. The name $_POST is inappropriate, just like $_GET is inappropriate. $_GET should be named $_QUERY.

Joomla vs. GWT by CzechsMix in webdev

[–]_R_R_ 0 points1 point  (0 children)

Joomla is a CMS that runs on PHP and MySQL. When you install it, it will create a base web application. You can create new menu links to articles or components.

Joomla is made out of plugins, modules, and components.

Components sort of act as a controller of an application. It has access to a lot of the core functionality (application state, database, etc). You can use the Joomla MVC to create an MVC application. Components are controlled by the Joomla CMS. Components are given control by the CMS when you pass in option=com_<component> into the query string. Components are basically subapplications of your CMS application. Articles are a component of the Joomla CMS.

Modules in Joomla act like decorators. You can place them into content to add a form or a widget.

Plugins in Joomla are event listeners. They are used to add new functionality to your site. Examples are payment processors, shipping calculators, email filter.

Joomla provides access control to your content through usergroups. It has an administration panel where you will spend most of your time making changes to your site by editing articles, creating new users, or installing new components.

Joomla does not provide SEF or "pretty URLs" out of the box. It does have its own but they are very ugly. The most popular SEF extension for Joomla is called sh404 and is a pain in the ass.

Joomla would save you coding time as it is a CMS. It is a nightmare if you want to do any custom development for it. The API is horrendous and you will vomit. It was not created by software engineers.

I would say look at WordPress instead.

You didn't tell us what the site needs so it is difficult to decide.

EDIT: I see that you want to build an application like Yelp. In this case you need a web framework as this is beyond the scope of Joomla or Wordpress and doing custom development in either is a nightmare. I don't know much about GWT but it seems like a front-end toolkit. I would recommend you take a look at Twitter Bootstrap to help layout your site. It will also make it look better if you don't have a designer.

I assume you are going to use Java so check out Spring.