«« Next » « Previous
«« Next » « Previous

Link Details

Voting at DZone is super easy, but you aren't logged in. Login and vote now.
Link 51450 thumbnail

By bloid
via alexatnet.com
Published: Nov 05 2007 / 14:47

PHP is a good language, but there are always surprises. And today I've seen an interesting approach in Arnold Daniels's blog. He talks about temporary variables in PHP. This tip is useful to "lazy" developers who do not even think about variable names. They may prefer magic names like ${0} and 0 is good enough variable name, why not...
  • 11
  • 11
  • 1992
  • 830

Comments

Add your comment
User 238564 avatar

FlySwat replied ago:

1 votes Vote down Vote up Reply

This should be called:

6 Almost Language Universal tips to Obfuscate your Code.

User 216759 avatar

joorce replied ago:

0 votes Vote down Vote up Reply

I suffer for the poor souls coming after him.

User 201118 avatar

Lars Pohlmann replied ago:

0 votes Vote down Vote up Reply

That's really bad, although he states:
"When it is better to write more and then read the code easily, do not be lazy.".

I'd say, that's always the case.

Writing less code is about not repeating yourself, not about obfuscating it.

User 248587 avatar

joeabiraad replied ago:

0 votes Vote down Vote up Reply

Well I dont see the point of this... Shouldn't your goal be to write BETTER code ?.... down

User 233461 avatar

antych replied ago:

0 votes Vote down Vote up Reply

Well, it is a bit doggy but accurate. You can write less code with those tips, whether you should is a different story.

User 249616 avatar

robse replied ago:

0 votes Vote down Vote up Reply

Idon'tthinkit'saverygood{0}

User 250250 avatar

c0de replied ago:

0 votes Vote down Vote up Reply

Bad practices that makes code unreadable and unmaintainable.
You can write less code by writing code in a smart way by using objects to reuse code.

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.