Most important topic when coding

Savarak

Platinum Member
Oct 27, 2001
2,718
1
81
I believe it is the Formatting... Formatting is fundamental to understanding code, code logic, and the "divide and conquer" reasoning behind object oriented design... With proper formatting (including commenting of course) you can easily see syntax errors, logic errors, and of course, nice clean and clear code. Anyone agree? disagree? I'm trying to convince a friend who's new to coding to adhere to strict and proper code formatting when he codes his programs... Currently he's struggling because he takes code formatting to be a very low priority. I'd like some more backup to my theory!
 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
I definitely agree. I religiously indent, and when something goes wrong I can easily see at what "level" the error is. Indentation is the key to successful debugging.
 

Elledan

Banned
Jul 24, 2000
8,880
0
0
I find commenting even more important than formatting. Not that the latter is not important, but still.

When I'm coding, about 1/5 to 1/10 of all characters are comments, the rest is code. Formatting is done by Editplus
 
Jun 18, 2000
11,155
733
126
Couldn't agree more. If you keep with a strict style (not just commenting; this includes indenting and such), it'll be much easier to spot missing curly brackets or missing commas, or whatever else you f*cked up.
 

kranky

Elite Member
Oct 9, 1999
21,017
147
106
Agree with all replies. It's hard enough to write complex code, and you just make it harder on yourself if you don't format and comment properly. But a lot of people don't get it until they have to debug something that's more than a few dozen lines of code, that they haven't worked on for a while.
 

Rallispec

Lifer
Jul 26, 2001
12,375
10
81
I think making good comments in your programming is important.









SIKE!!!!!!!!!!!!! i'm the worst at commenting my programs. If anybody needs to figure out what it is doing, they can ask me. It really makes my teachers mad. :disgust:
 

RSI

Diamond Member
May 22, 2000
7,281
1
0
I assumed this was common sense in the computing world. How can someone not know this? To call myself a programmer would insult any current computer science student. And even I understand very well that formatting is extremely important when programming in any language. Take basic HTML, most programmers would not even consider that a "programming language". Yet even with HTML, formatting is essential. Try to edit a page that has been butchered by Notepad (sometimes Notepad screws up php pages when you save them). Impossible! But if you view a nicely formatted page with EditPlus, magically everything is simple and easy to comprehend. I have seen pure PHP code and I've seen plenty of C and C++. I can imagine that the same rules I've observed apply to most (or every) programming language in existence.

Logic rules.. just don't take it to an excessive level.

-RSI
 

Brutus

Member
Feb 4, 2000
115
0
0
Yup, formatting is vital in coding.

I had a professor who marked a solution wrong because I used an open bracket at the end of a line instead of putting it on the next line i.e.

for (int i; i = 0; i++) {

instead of

for (int i; i = 0; i++)
{

She was teaching Data Structures in C++ and my coding was done by Java conventions. She just wasn't used to seeing it like that...

Brutus
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |