Click to See Complete Forum and Search --> : The end of PHP?


vaaaska
03-05-2005, 08:05 AM
I'm not trying to start some argument...I'm just passing on the message of this article. It's an interesting read...

(I've toyed with Ruby and plan to do so in the future as I have free time)...

Regarding Ruby (and Ruby on Rails)

http://hivelogic.com/archives/2005/02/27/regarding-ruby-and-ruby-on-rails/

Elizabeth
03-05-2005, 09:46 PM
Vaaska, that was a very interesting article - thanks for posting it.

/me runs off to play with Ruby! :)

vaaaska
03-06-2005, 03:44 AM
Totally...

The great web-app BaseCamp (http://www.basecamphq.com/) was done with Ruby in apparently a very short amount of time by one full-time and one part-time person.

I believe that it's frequent updates are managed by just one person...

Elizabeth
03-06-2005, 08:59 AM
Know basecamp well, but didn't know it was written in Ruby. Most excellent.

Heh I was going to install it on my local server to play around, but on a whim I asked my webhost to install it too (in case I actually ever do get anything up and running for my clients) - they just emailed me to say they're going to do a test install and make sure it doesn't conflict w/ anything else, then let me know when it's live. Sweet!

onion2k
03-07-2005, 05:15 AM
The fact Basecamp was written in Ruby is irrelevent. What makes it so good is that the interface and the way it all works .. which was designed by the guys at 37Signals, who are experts in user interface design. Basecamp could easily be written in PHP, Perl, ASP.NET, JSP, anything..

I agree that Ruby is a decent language.. but I don't think its as great a leap ahead of PHP as some people seem to believe.

Shrike
03-07-2005, 08:02 AM
Also I think that the author is disregarding PHP for it's wishy-washy nature, when that is one of the reasons as to why it's so prevalent now. Secondly he doesn't mention PHP 5, which is a bit of an oversight.

I do have to agree that PHP is lacking structure and that can be at times misleading. However that issue is starting to be addressed in PHP 5 with the Standard PHP Library (http://www.php.net/manual/en/ref.spl.php).

I think I'm probably a bit biased having not really tried anything extensively except PHP though ;)

Elizabeth
03-07-2005, 10:35 AM
Originally posted by Shrike
I think I'm probably a bit biased having not really tried anything extensively except PHP though ;) I agree with you there... I am also biased toward PHP. But I'm always up for keeping an open mind and learning new things - especially if it is something that will help me or my clients down the road. I guess time will tell. Who knows what will happen to PHP now that IBM is in the mix...

vaaaska
03-07-2005, 10:42 AM
I first became curious about Ruby because of 37Signals - they had posted a blurb in the blog looking for somebody to do the job. Eh? Ruby?

In an interview that I can't find now, somebody at 37 mentions that they felt that Ruby made development faster than with anything else and also that it took very few people. Which is why I mentioned it. Or perhaps that was just their PR wash...

Additionally, since they *are* 37Signals, I think that makes alot of people very curious about what's going on with all of this stuff. The fact that Basecamp was written by 37, programmed with Ruby and also it was the first major online app written with it makes it more significant than it's probably actually worth.

Plenty of reasons to be curious here...no disrespect to PHP.

onion2k
03-07-2005, 11:14 AM
Originally posted by Shrike
Also I think that the author is disregarding PHP for it's wishy-washy nature
You don't have to write wishy-washy PHP if you don't want to. With a little effort you can write very robust, stable, and maintainable PHP.. and if you're competent you can write it quickly too.

Someone who isn't particularly familiar with object oriented programming is going to turn out complete garbage with Ruby..

Each language is only as good as the person using it.

Sgarissta
03-07-2005, 11:25 AM
I've been toying with Ruby for a couple of months now. PHP is definitely more mature as a web scripting language, but that's mainly due to its age relative to Ruby.

Ruby's strongest points are an excellent object model, truly object oriented not bolted on. It does this in ways that PHP will never be able to, sadly. A simple example would be the following code.

5.times do |num| puts num.to_s end

Which would yield the output

0
1
2
3
4


This is by no means the most elegant example, but it's a simple example to show how clean the syntax, and object model is. Notice how the constant number is even an object.

Ruby has a long ways to go before it becomes a great web scripting language, but I have no doubt that it will get there, the ruby community is extremely intelligent and motivated.

So for those of you who have thus far discounted it, look out, it's coming, and it's real ;)

Shrike
03-07-2005, 12:03 PM
Originally posted by onion2k
You don't have to write wishy-washy PHP if you don't want to.
I completely agree with you. It's perfectly easy to write good PHP and and (presumably) perfectly easy to write garbage in Ruby. I was just stating that PHP's looseness coupled with it's huge impact on the web as a whole has led to feeling that it isn't a serious language (which I disagree with).

pohopo
03-07-2005, 01:26 PM
Something can be great and still fail. Beta vs VHS is the classic example. Ruby does look nice, however it has a large hill to climb in this world saturated with languages and frameworks.

LordShryku
03-07-2005, 07:01 PM
Originally posted by onion2k
Someone who isn't particularly familiar with object oriented programming is going to turn out complete garbage with Ruby..

But according to that advertism...errr....article, Ruby on Rails will be incredibly simple for a new programmer. I'd expect a person new to programming wouldn't have a grip on object oriented programming, so HA! You're wrong! :p


Anyway, the statement that Ruby will take over php is a little unworldly. Most people who use php on a constant have become biased with it. And I think that user base is in a pretty good range to keep it around for a while. Not knocking Ruby, but that "article" makes a lot of claims that really don't hold water.

vaaaska
03-23-2005, 10:12 AM
Oh interesting...this other technology they call Ajax (which is basically just javascript) is now built into Ruby.

I was contemplating picking up a book about Ruby but now the decision has been made for me...

Here's more stuff...

http://www.loudthinking.com/arc/000428.html

rpanning
04-04-2005, 10:09 PM
FYI - Slashdot posted a Ruby on Rails / Java Spring article (http://developers.slashdot.org/developers/05/04/04/1520227.shtml?tid=156&tid=1) today. I wander how much popularity for Ruby that will increase?

vaaaska
04-05-2005, 06:03 AM
I've got a prototype of a site I'm working on with Ajax...it was quite simple.

Here is a list of more resources and some working examples...

http://www.fiftyfoureleven.com/resources/programming/xmlhttprequest/examples

bpat1434
04-09-2005, 10:45 AM
It's interesting the topic of the thread is called "The end of PHP?" and yet, no-one has mentioned it. I can't see there ever being an end to PHP. Why? Here's my reasoning:

Windows and Apple are the two largest competitors in the computer OS market (not including *free* *nix environments). Why do people choose Windows more frequently than Mac? Because there's more stuff developed for it. It's by FAR not the greatest, nor the easiest, but it does its job. Just like PHP. Windows will NEVER cease to exist. Too many contracts and other crap. PHP can't go away. Too many sites alread rely upon it to power their site. Most bulletin-board systems require it. But in choosing a Mac over a Windows system, 93% of the users said: "It just works". This could be applied to Ruby. Although "easier" and "faster" it's only as good as the user (stated before). So while Ruby will work, PHP is just more wide-spread and will probably stay that way because people don't care about quality or functionality, but want what the norm is. Me? I'm a user who likes to experiment and use what works the best. That's why my next laptop/computer is going to be a mac (or custom built by me).

But a very interesting article none-the-less.

~Brett

Jason Batten
04-10-2005, 07:59 PM
18 million sites switch over night! Ruby takes over world!

:confused:

planetsim
04-10-2005, 10:19 PM
Originally posted by NetNerd85
18 million sites switch over night! Ruby takes over world!

:confused:

Hmm 18million i thought there were way more sites than that.

I havent looked into ruby but know a few that says its quite good. Ive been personally looking into Python. If theres going to be a language thats going to do something to PHP I think Python will be first, since its gaining popularity not just in the Web Development but also in Application Development.

Google is a good example of a big coporation using Python.

ZibingsCoder
04-11-2005, 12:02 AM
Python should die. So should Ruby. You should NEVER be able to use an actual number as an object...

*vomits*

Weedpacket
04-11-2005, 11:32 AM
Originally posted by ZibingsCoder
Python should die. So should Ruby. You should NEVER be able to use an actual number as an object...
Doesn't sound like too bad an idea to me; as long as I get to define operators on them. But then, I think numbers are objects - just as much so as strings, matrices, sets or surfaces.

Sgarissta
04-11-2005, 02:10 PM
Originally posted by Weedpacket
Doesn't sound like too bad an idea to me; as long as I get to define operators on them. But then, I think numbers are objects - just as much so as strings, matrices, sets or surfaces.

Actually Ruby's object model is the thing I like the MOST about it. It has a concept loosely called "open classes", meaning, even though a class has already been defined, it can be reopend at a later time and modified. So say you have a class Fixnum (the class that numbers are a part of), and you want to add a method named "next" to it, that will return the next number.

class Fixnum

def next
return self + 1
end

end

puts 1.next # should print 2


Not exactly a practical example, but shows how you can modify already completed classes.

vaaaska
05-11-2005, 03:45 PM
I should just start another thread for this but it's gone through here already...so I'll stick with it. I think Ajax boosts other technologies like PHP...

There was a pow-wow recently of Ajax'ers talking about stuff. This is a big run down on what people had to say (a few interesting things in here):

http://www.ajaxian.com/archives/2005/05/index.html

drew010
05-14-2005, 05:18 AM
Originally posted by ZibingsCoder
Python should die. So should Ruby. You should NEVER be able to use an actual number as an object...

*vomits*

well a number is just as much an object as any other type. .NET uses this same concept where every primitive type is based on the base "object" class.
My cousin got me into ruby a few months ago and its proved itself as a very powerful and straightforward language.

For those interested, another good resource is the book "Programming Ruby
The Pragmatic Programmer's Guide" which can be found online at http://www.rubycentral.com/book/

Even for those not interested reading the preface will give a good insight on the language itself along with a few simple examples.

I did have one of my home pages written in ruby until i needed to add a php rss parser i made and it seemed to much trouble to include the php file into ruby, sooo i went from ruby to php.

nightwolfz
05-20-2005, 04:15 PM
I dont get it, can u write websites with ruby or not.

Everywhere in manuals I see usual programming, no web programming :(

drew010
05-20-2005, 05:05 PM
Originally posted by nightwolfz
I dont get it, can u write websites with ruby or not.

Everywhere in manuals I see usual programming, no web programming :(

It is a scripting language just like perl, but with mod_ruby and eruby you are able to use it to make websites just like php. eruby does the translating of eruby <% code %> code blocks to regular ruby code and then integrates the html into print statements. then the mod_ruby apache module provides ruby to the apache api so requests can be passed to the eruby interpreter and then sent back to apache for sending the response to the client.

Clenard
05-21-2005, 08:14 PM
RoR looks nice... but it's ironic that the title of the post is labeled "The end of PHP?" and if you look at: http://www.basecamphq.com/tour-dashboard.php

they're using PHP for their site LOL

piersk
05-22-2005, 04:25 PM
Originally posted by Clenard
RoR looks nice... but it's ironic that the title of the post is labeled "The end of PHP?" and if you look at: http://www.basecamphq.com/tour-dashboard.php

they're using PHP for their site LOL

How is that ironic?

Clenard
05-22-2005, 04:30 PM
Because that's RoR's most popular project... and they're using PHP for the site... yet the title of this post is "The end of PHP?"...

how is it not ironic?

piersk
05-22-2005, 04:35 PM
Originally posted by Clenard
Because that's RoR's most popular project...

What is? basecamp?

Clenard
05-22-2005, 06:24 PM
Yes.

vaaaska
05-22-2005, 07:17 PM
Originally posted by piersk
What is? basecamp?

http://www.basecamphq.com/

Piersk, my stupid messages to you have been about people/groups just like this...massive influence and folks are paying attention...

Well, some people are paying attention...

;)

Clenard
05-23-2005, 04:17 AM
Originally posted by vaaaska
I should just start another thread for this but it's gone through here already...so I'll stick with it. I think Ajax boosts other technologies like PHP...

There was a pow-wow recently of Ajax'ers talking about stuff. This is a big run down on what people had to say (a few interesting things in here):

http://www.ajaxian.com/archives/2005/05/index.html

PHPArch has a webcast that sounds interesting as well... I've signed up... it's free :)

http://www.phparch.com/shop_product.php?itemid=94

Jason Batten
10-10-2005, 01:39 PM
Statement / Question, Ruby is free but it's not open source, is it?

Comment, Ruby has the worst syntax I have ever seen :bemused:

drew010
10-10-2005, 02:26 PM
its open source
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.3.tar.gz latest version

Jason Batten
10-10-2005, 09:46 PM
Cheers for the info but I don't need a link I have this www.php.net (http://www.php.net) :D

Might look into it once I complete my PHP OOP lessons. I like teaching myself, least that way I get to use my favourite paddle to punish my self... or should I say reward?