Link Details

Link 617267 thumbnail
User 898311 avatar

By RJernigan
via leftnode.com
Published: Jun 14 2011 / 22:06

I am retiring from PHP as my language of choice for personal side projects and new programming ventures. This was not an easy decision to come to, but one that I think is necessary for my love of programming to continue. You see, I'm not only a programmer because I love programming, but because I can not do anything else.
  • 35
  • 1
  • 5612
  • 11

Comments

Add your comment
User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

"PHP does not enforce good clean coding standards.": What? Please explain.

User 236075 avatar

henk replied ago:

6 votes Vote down Vote up Reply

Many languages and platforms, like Java EE, ASP.NET and RoR have something like a "highly preferred way of doing things" and a strong community idea of best practices.

PHP is utterly lacking this. The framework itself doesn't enforce or even recommends any particular style. The sky is the limit. You want to put your business logic between the tr and td tags in your view code? Sure! Put the business logic right under the input element on your view since that input element triggers that business logic and related things are handy to be together? Hey? Why not huh?

If there's a question on a PHP forum and someone responds with some awkward script fragment copied from phpfreakz and advises to copy/paste this everywhere were needed, there are 10 responses like: "-w00t-!!! ThAnkS!!!" and "hey, very clever man!!1!1!" etc.

In many other communities such advise would be literally burned to the ground. Yes, it does make those communities a little hostile to newbies, but the ones who endure eventually always get better because of it.

User 393686 avatar

RawThinkTank replied ago:

0 votes Vote down Vote up Reply

PHP is now old, but Spaghetti code is still alive and kicking.

But i think that is now going away like CGi went away (not mainstream anymore). When you compare advantage of compiled JS, those thing look primitive. A Form that resides in clientside cache is gona load 100s of times faster than one generated at runtime on serverside.

User 530255 avatar

mWo12 replied ago:

2 votes Vote down Vote up Reply

I just wished the author add something about Python or Ruby vs Scala. I myself want to do my next project in something else than PHP. I though about Python or eventually Ruby. I think many people are in a similar position, so it would be interesting to know why the author chose Scala over Python or Ruby.

User 393686 avatar

RawThinkTank replied ago:

0 votes Vote down Vote up Reply

Scala is just a language

User 338269 avatar

Miloskov replied ago:

1 votes Vote down Vote up Reply

I guess because behind Scala there is the java ecosystem, the libs are huge plus you get runtime speed and scalability. Python I love it but still a scripting language same as Ruby. Me my self I will not use Scala yet, I will continue with Java but thats my guessing why they choose Scala. Also there is some article around there that said Scala looks like a scripting language but still a compiled language.

User 755021 avatar

devent replied ago:

0 votes Vote down Vote up Reply

With the JVM you have much more choices then just Java/Scala. There is Groovy, too.
IMHO I don't understand the hype around Scala, I'm more a Groovy fan. Because with Java I already have a statically typed language and Scala is just so cryptic. With Groovy I have Ruby, Python but with full support for Java.

User 202553 avatar

jnbek replied ago:

1 votes Vote down Vote up Reply

Scala's nice, but not quite good enough to drag me away from the far superior Perl. Parsing a form? With CGI::Ex just:
$self->{'form'};
But i'm glad the author is finally seeing the light and leaving behind the abomination that is PHP.

User 888091 avatar

me.yahoo.com/a/R6xBmQhuioE5J2C.gUdxsp224uch0rURqQ-- replied ago:

0 votes Vote down Vote up Reply

Scala is yet another language with horrible syntax, only Erlang is worse... seriously try to read a complex piece of scala code vs a complex piece of java or c++ or c# code, you have to read the code 3 or 4 times to understand all that is going on in scala. It's just fuggly.

User 888091 avatar

me.yahoo.com/a/R6xBmQhuioE5J2C.gUdxsp224uch0rURqQ-- replied ago:

0 votes Vote down Vote up Reply

I personally took a look at Lift and loved the high level advantages, a lot of cool stuff, but after i looked at the code examples, i started decided not to even go there, Scala is just a syntax mess... I trully dislike it, its like python and java had a bastard child and it's confused about it's identity.

User 338269 avatar

Miloskov replied ago:

0 votes Vote down Vote up Reply

If you want the most elegant language pure functional Haskell it is, I love it, But nobody mentioned about Clojure, It runs on the JVM, Have all the FP features, Nice lisp syntax easy to read, and its dynamic same as Python. People should take a look at Clojure is a beautiful language.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax