LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2006, 12:22 PM   #16
cyb0rg777
Member
 
Registered: Dec 2004
Location: ~
Distribution: Debian
Posts: 143
Blog Entries: 8

Rep: Reputation: 15

I'm not much of a programmer but this reminds me of another thread about programming style.
I prefer this:

if()
{
}

to this :

if(){
}
it makes it easier to read for me.
 
Old 03-21-2006, 12:28 PM   #17
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Read others' code on a regular basis. Also, read through the STL headers; if you can read that, you can read anything.
ta0kira
 
Old 03-21-2006, 02:30 PM   #18
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
What I always do when I'm trying to understand the strange and weird code of some programs(even mine) I go through the program and make my own comments about each line on a separate piece of paper. Then you can read over your notes, and try to piece your comments together into some kind of discernable order. Also, as I mentioned before, there are automated programs to format code for you, although I have never used them to any extent and cannot say how useful they really are.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help to understand this code cranium2004 Programming 1 03-21-2005 11:35 AM
fat fs code difficult to understand ramya272 Programming 7 03-07-2004 12:43 AM
Help me understand this Driver code! fbarre Linux - Newbie 2 09-24-2003 05:10 PM
Help me understand this Driver code! fbarre Linux - General 2 09-24-2003 12:51 PM
Looking up people's profiles... Thymox LQ Suggestions & Feedback 3 10-07-2002 02:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration