LWN.net Logo

PHP: a fractal of bad design (fuzzy notepad)

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 20, 2012 15:34 UTC (Fri) by rev (guest, #15082)
In reply to: PHP: a fractal of bad design (fuzzy notepad) by nye
Parent article: PHP: a fractal of bad design (fuzzy notepad)

Nearly.

Defining a constant for sizeof(char) still leaves us with a SPOD violation: AMC: yes, SPOD: no.


(Log in to post comments)

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 20, 2012 23:18 UTC (Fri) by mathstuf (subscriber, #69389) [Link]

What do SPOD and AMC stand for here?

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 21, 2012 0:05 UTC (Sat) by neilbrown (subscriber, #359) [Link]

AMC is "Avoid Magic Constants".

I'm guessing SPOD is "Single Point of Departure".

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 21, 2012 13:49 UTC (Sat) by rev (guest, #15082) [Link]

Single Point Of Definition.

Sorry, I thought the meanings of the acronyms where obvious from the context.

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 21, 2012 18:26 UTC (Sat) by mathstuf (subscriber, #69389) [Link]

I had just never come across them before (AMC is strongly tied to the car manufacturer in my mind and SPOD is new).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds