tag:blogger.com,1999:blog-5382426726630308577.post701640169862405676..comments2023-02-28T02:19:48.946-08:00Comments on Nothing technical about it: Coding Style...Jitesh Shahhttp://www.blogger.com/profile/07784858389224126152noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-5382426726630308577.post-36152371457547745932008-10-28T12:41:00.000-07:002008-10-28T12:41:00.000-07:00if you are adding all this in coding style is ther...if you are adding all this in coding style is there anything remaining for actual programming thingy :)Praj ~https://www.blogger.com/profile/07415630012778122351noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-44331021429861497492008-10-12T05:22:00.000-07:002008-10-12T05:22:00.000-07:00What is coding style?1) Indentation.2) How you lay...<B>What is coding style?</B><BR/><BR/>1) Indentation.<BR/>2) How you layout your elements. eg. "for () {<BR/>}" is one style and <BR/>"for ()<BR/>{<BR/>}" is another. Former one is better. <BR/><BR/>3) What names you give to functions and variables. <BR/>4) How do you divide your logic into functions<BR/>5) How do you use typedefs and macros<BR/>eg. Do you write "tmp = a + 30/40" or do you write "tmp = a + SOMEMACRO" <BR/><BR/>6) Some good practices like, single exit of a function, using goto is NOT bad, etc etc<BR/><BR/>7) What values do your functions return (eg. 0 if successful, non-zero if error)<BR/><BR/>8) How do you use global variables<BR/><BR/>and the list goes on.... Coding Style is a truly vast topic and doesn't confine to just indentation...Jitesh Shahhttps://www.blogger.com/profile/07784858389224126152noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-34726825503738480662008-10-12T03:03:00.000-07:002008-10-12T03:03:00.000-07:00"The other 10% being college assignments.. even th..."The other 10% being college assignments.. even there the code has to be understood by MANY third people :P"<BR/><BR/>=))..tomne!!<BR/><BR/>..seriously pann..barobar ahe :)Pallavi https://www.blogger.com/profile/01733465650642531512noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-47041669679912130342008-10-12T02:44:00.000-07:002008-10-12T02:44:00.000-07:00coding style != indentationgo jitesh! proper disco...coding style != indentation<BR/>go jitesh! proper discourse on coding style needed!Vedanghttps://www.blogger.com/profile/18258723953789317560noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-60638164660331857702008-10-11T11:05:00.000-07:002008-10-11T11:05:00.000-07:00@saurabhYou get me wrong. I am not talking about C...@saurabh<BR/>You get me wrong. I am not talking about C standards, I am talking about coding style. <BR/><BR/>It don't matter which standard you use. POSIX, ANSI or ISO. Coding style is how you present your code!Jitesh Shahhttps://www.blogger.com/profile/07784858389224126152noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-2166227497833825192008-10-11T09:39:00.000-07:002008-10-11T09:39:00.000-07:00POSIX and ISO C standards deserve a mention and ad...POSIX and ISO C standards deserve a mention and adherence.What's in the namehttps://www.blogger.com/profile/01819105731065341920noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-22215200962477655532008-10-11T09:32:00.000-07:002008-10-11T09:32:00.000-07:00@cdklol..no potshots :P .. just reminding someone ...@cdk<BR/>lol..no potshots :P .. just reminding someone of his/her horrible times :P<BR/><BR/>@nachiket<BR/>ok! sure!<BR/><BR/>@prajwalit<BR/>indentation is not even 1% of the coding style. Have a look at the documentation. You'll know!<BR/>Also, I am sure there are differences is coding style here too (the function names you give, etc etc). reconciling them is essential!Jitesh Shahhttps://www.blogger.com/profile/07784858389224126152noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-46487905971887801752008-10-11T09:19:00.000-07:002008-10-11T09:19:00.000-07:00too bad... I thought, from post heading, its about...too bad... I thought, from post heading, its about styling the webpages... or coding CSS style sheets :)<BR/><BR/>i dnt care indentation... aptana studio takes care of it :)Praj ~https://www.blogger.com/profile/07415630012778122351noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-75873897673861445542008-10-11T09:14:00.000-07:002008-10-11T09:14:00.000-07:00Write a comparison of emacs vi and others in the n...Write a comparison of emacs vi and others in the next post.. will you ??Nachikethttps://www.blogger.com/profile/15002220749862662390noreply@blogger.comtag:blogger.com,1999:blog-5382426726630308577.post-14112601024538585512008-10-11T08:33:00.000-07:002008-10-11T08:33:00.000-07:00so the first post has landed...entire code base !!...so the first post has landed...entire code base !! lol .... taking potshots here as well :P :DCDKhttps://www.blogger.com/profile/12394035957204789434noreply@blogger.com