The Artima Developer Community
Sponsored Link

Java Buzz Forum
PHP goes "Hmm..."

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
PHP goes "Hmm..." Posted: Oct 18, 2005 12:13 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: PHP goes "Hmm..."
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

PHP gets a lot of grief in Java and Ruby camps. That said, my question is whether this is fantastically powerful, or outright scary:

Java:

Object foo = Class.forName(actionName)
                  .newInstance(); 
String templateName = (String)Class.forName(actionName)
                                   .getMethod(eventName, new Class[]{})
                                   .invoke(foo, new Object[]{});

PHP

$foo = new $action_name();
$template_name = $foo->$event_name();

Hmmm

Read: PHP goes "Hmm..."

Topic: [Oct 12, 2005 16:29 PDT] 8 Links Previous Topic   Next Topic Topic: Rewarding the most passionate

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use