Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 




<?
if ($art = 'stolen'){
echo 'ZOMG!!! Art Theif';
$action = 'taken';
}

if ($code = 'stolen'){
echo 'Meh, Who cares?';
$action = 'no action taken';
echo 'WRONG!!! CODE SHOULD BE TREATED LIKE ART!!!';
        echo 'Stop Art and Code Theft now!';
}

else{
echo 'lol noob =P';
}
?>
©2009 =Rebel2206
:iconrebel2206:

Author's Comments

Code isn't just text. People put the same passion into coding as others do with art. So why can't they both be treated the same?
This is a quick php script to get a message along. As far as i know it will work, Unless there's parsing errors :shakefist:

I've recently started play around with code. some i lernt from other members of deviantART. Just because we don't make pretty pictures or poetic stories, doesn't mean we're not artists.

Don't Steal Code

I know this may be the wrong category. but i couldn't find one that suited it most :p

Critiques


:iconmiksago:
Okay, first of all, good idea with the concept of showing that code can be art. I would've rather seen some python or ruby (or prehaps brainfuck), as those really do have a strong emphasis on the layout and indentation of code.

--
Now to the actual critique, this code is fairly verbose in the way that it's written, and could probably be simplified.

The first thing I notice is the style that you've used in your opening tags, generally, while the short open tags for php work, they do require special configuration in your php.ini. I'd recommend for full compatibility for all users that you use standard opening tags, <?php

Another thing about the opening and closing of your php block, is if the file only contains php code, you don't need the closing ?>, and it's recommended that you omit this to reduce chance of rendering extra white space.

Also, the code that you've written would through massive errors, as $code, $art, and $action are undefined or are missing a default value, which could cause problems for later parsing.

Thirdly, I congatulate you on the way you've tackled this problem (minus the exclaimation marks), Using a simple, logical and flow based execution is a good way to code something like this simply.

Those are just a few of my thoughts.
The Artist thought this was FAIR
12 out of 13 deviants thought this was fair.

Thank you for your Critique

You are not logged in.

Comments


love 0 0 joy 0 0 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconsalxe:
Beautiful words :happycry:

--
Recommendations:
Migrate to GNU/Linux today; know why and how.
Change your IM service for a Free one.
Forget the dreaded MP3, go Vorbis.
:iconcolorx:
bat

--
Mapping Intrinsics with Scalar Operands
scalar arguments are introduced for SPU instructions with immediate fields For example, the intrinsic function vector signed int spu_add(vector signed int) will translate to an AI assemblyinstruction
:iconjellystick:
Miscat. xD

--
Click this [link] to fave my avvie~ ouo

WANT A JOURNAL CSS? Click this [link] for details!
:iconrebel2206:
i know, but you could of pointed me to the right place ;P

--
Gallery
Group Manager of #dAmnU :groups:
:iconjellystick:
Oops, sorry. xD It'd be under Literature, but I don't know what's after that. xD; Sorry

--
Click this [link] to fave my avvie~ ouo

WANT A JOURNAL CSS? Click this [link] for details!
:iconmiksago:
Please, enable critique on this ;P

--
Freelance Web Developer | BrandedCode
:iconrebel2206:
Done :O

--
Gallery
Group Manager of #dAmnU :groups:
:iconrebel2206:
Yeah, i got as far as Lit :noes:

--
Gallery
Group Manager of #dAmnU :groups:

Details

May 21
617 bytes
5.6 KB
53×55

Statistics

17
9 [who?]
322 (0 today)
12 (0 today)

Share

Link
Thumb

Site Map