New to programming, I've held the (self imposed) notion that the less lines (of code), the better. Thus, when programming something, rather than having separate variables for pieces, I've been nesting all that I can into a line. For example:
preg_match('~><a href=~', substr(file_get_contents($match[1])), strpos($match[1], "help")), $match_rating)
Would it be more professional/generally-preferable to break the line above into separate variable chunks, so that it looks more like:
preg_match($regExp, $bigString, $matches)
..With each variable/piece being defined above with its own line (and variable)?
I've wondered if this isn't really better or more efficient, since it seems like it would make it difficult for someone else to read and decipher it. I realize it's probably a personal preference type deal, but is there a generally held (professional) standard of which side to lean toward?