Blegh

Posted Sunday, July 20, 2008 at 05h44 in Personal

I’ve written 2,104 lines of PHP in the past 48 hours. It may not be the most efficient code, and there are a good number of comments in there, but for someone who’s not really a programmer, that’s still kind of a lot. And no, I don’t think writing tons of lines of code is an accomplishment, let alone a measure of coding ability. On a good day, you delete lines of code. So, basically, I’ve had a terrible past two days. :\

BTW, I’m not sure what they’re called, but the one-liner if/else statements (i.e. $a = ($b > $c) ? $b : $c) are a great space saver.

2 Comments »

Comment from pekkle on July 21, 2008 at 2:15 pm

Those are the ternary if-then-else statements introduced in (or made popular by) C … ;)

Comment from stevec on July 24, 2008 at 5:50 pm

ternary, that’s what they’re called? thanks. :)

ya, i’ve been using them for years but never knew what they were called. i first saw them when browsing other people’s code.  how come they didn’t teach us those in cos126 or cos217?

RSS feed for comments on this post | TrackBack URI

Leave a comment

XHTML: You can use these tags:

<a href="" title="">
<abbr title="">
<acronym title="">
<b>
<blockquote cite="">
<code>
<em>
<i>
<strike>
<strong>