|
In my opinion you can see a lot about languages from how they solve simple problems. So, for how would the following PHP code look in RoR?php:<? $result = mysql_query("select * from people order by lastname asc"); if (!$result) throw new Exception(mysql_error()); echo '<table>'; while ($row = mysql_fetch_array($result)) { echo '<tr>'; echo '<td>', $row['lastname'], '</td>'; echo '<td>', $row['firstname'], '</td>'; echo '<td>', $row['age'], '</td>'; echo '</tr>'; } echo '</table>'; ?>
|
# ¿ Aug 8, 2007 22:05 |
|
|
# ¿ Apr 29, 2024 00:49 |
|
crazysim posted:That guy makes crazy stuff like this and this but wow is his stuff brain mashing when he gets off the serious note. Running random eval()s from the Interweb is a good idea c/d?
|
# ¿ Aug 9, 2007 11:57 |