|
I'd like to write code so that it can be easily understood by other developers. What are some good ways to do that?
Started by ratty on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Have a coding guideline.Check some.
Do what it says.
Read Code Complete .
Get a programming language with easy to read/use syntax (eg Python) Give meaningful names of its dependencies.
|
|
Using rails 2.3.2 I have a partial _foo.rhtml that begins with a comment as follows:
<% # here is a comment %> <li><%= foo %></li>
When I render the partial from a view in the traditional way, e.g.
<% some_numbers = [1, 2, 3...
Started by brahn on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It is the same with the other options:
<%= print the output <%- don't put a line break before this block <%# ignore this block None of them should have spaces... .
That is a strange bug, but <%# is the valid comment syntax (without the spaces) .
|
|
I've never understood Christianity and God? As an atheist, supposedly, i'm going to hell. For not believing in god.
But this got me thinking. Surely god, is the one who is sinning and is the evil one for condemning billions of non-believers and other-...
Started by Douglas on
, 19 posts
by 19 people.
Answer Snippets (Read the full thread at yahoo):
Read Quraan, Know.
Please use your head and choose wisely, decide now before your time is up .
Will be shown to be real by your obedience to God's Word, so get a Bible and read it every day, starting.
|
Ask your Facebook Friends
|
Today I understood why people buy headphones... ...and I only listened to the Audio Technica M20 for F.I.V.E. minutes. My Brainwavz M1 just cannot, I repeat, can not give me the same:
Sound quality Impact Depth Width Premium feel (coiled, thick cable)...
Answer Snippets (Read the full thread at thinkdigit):
Re: Today I....
Around 2.2k.
What is your budget? Re: Today I understood why people buy headphones...
I'm also going to buy I'm saying.
Same feeling here bro.
Re: Today I understood why people buy headphones...
|
|
OPM interview Batman: Arkham City's game director and discusses the game's ending and DC's involvement. Watch out though, spoilers are ahead!
When OPM asked him about DC’s reaction to killing the Joker, Hill replied, “People from Warner and DC were here...
Started by Luke on
, 15 posts
by 12 people.
Answer Snippets (Read the full thread at arkhamcity):
That was something DC understood.
In the universe and have an important effect on Batman himself .
|
|
Started by thimes2692 on
, 59 posts
by 37 people.
Answer Snippets (Read the full thread at reddit):
I haven't read....
I am currently re-watching it, and OMG, this show fucks physics!
In one of the first few interneting led me here .
If this is the only thing you never understood about the anime you need to rewatch the show lol understood.
|
|
Heya,
I found this ol' shaman I have played with since TBC (race changes have been made) and wanted to level him to 85, now I did this in ele, but once I hit 85 I wanted to try that old-school enchancement which everyone played in vanilla/TBC because ...
Answer Snippets (Read the full thread at battle):
I promise you that it will get you up.
So, give it a read or five.
Can be read in this guide: http://elitistjerks.com/f79/t127416-enhancement_4_3_least_your_old_axe_good here on the forums if you just ask.
|
|
Something went wrong. Please make sure you added the video correctly. Click here to see how YouTube videos should be embedded. There could also be a technical issue that's not your fault. Click here to view the video on YouTube's site. If this link doesn...
Started by VinLieger on
, 19 posts
by 17 people.
Answer Snippets (Read the full thread at cad-forums):
The only Fox personality (read: opinion shows) I cannot stand.
Is a huge issue, especially now.
|
|
On subject of how windows handles a proper monitor profile (as opposed to colour-managed apps).
Stumbled across this video tutorial the other day, and in general it goes along with what I thought was my understanding of this subject...
http://www.youtube...
Started by gcrogers on
, 15 posts
by 5 people.
Answer Snippets (Read the full thread at photo-i):
If you friend has a half decent printer then comparing the screen and a print .
Speak and read.
|
|
When the first presedential nominations election started-up two weeks ago, it seemed to make sense all of a sudden.
So, having always wanted to know more about the process, I looked at http://www.enchantedlearning.com/vote/presidential _elections.shtml...
Started by tango_jd on
, 31 posts
by 13 people.
Answer Snippets (Read the full thread at virtualtourist):
In the media reports the number of delegates for each candidate ?
Jeannette Interested to read your opinions.
|