Originally posted by AricC
The curley bracket!
Collapse
X
-
Argh! Evil !!Originally posted by AricCWith the speeds of PC processing these days I wouldn't think this is a big factor.
This sort of "who cares, PCs are fast these day" reasoning is responsible for a lot of stupid coding and user frustration.
You don't happen to work for MS, by any chance?Comment
-
Not sure I like including code on the same line as the opening bracket, but otherwise we agree.Originally posted by AnthonyScaifeI prefer:
I like:Code:if (databaseGotUpdated) { updateCount++; clearDisplay(); renderNewTable(); }
- The style of indentation
- camelHumpStyle names rather than with_under_scor es
- ++
- Functions in the style verbAdjectiveNo un() in plain English
What does everyone else think ? ( "what a pedant !" ? )Comment
-
No I don't work for MS but tell me how ++ is that much faster than +=?Originally posted by Killer42Argh! Evil !!
This sort of "who cares, PCs are fast these day" reasoning is responsible for a lot of stupid coding and user frustration.
You don't happen to work for MS, by any chance?Comment
-
Actually this is a very good point, I once had to spend 2 weeks going through the code of an embedded project with 16Mbyte RAM searching for ways to save memory because people with this sloppy style had used it all up and the project need space for development.Originally posted by Killer42This sort of "who cares, PCs are fast these day" reasoning is responsible for a lot of stupid coding and user frustration.Comment
-
Ah, code bloat - ya gotta love it!Originally posted by BanfaActually this is a very good point, I once had to spend 2 weeks going through the code of an embedded project with 16Mbyte RAM searching for ways to save memory because people with this sloppy style had used it all up and the project need space for development.Comment
-
I agree, M$ == Code Bloat. Takes up lots of space and requires lots of RAM.Originally posted by Killer42Argh! Evil !!
This sort of "who cares, PCs are fast these day" reasoning is responsible for a lot of stupid coding and user frustration.
You don't happen to work for MS, by any chance?Comment
-
I wouldn't call using += 1 over ++ sloppy at all and I still haven't seen any proff ++ is that much better.Originally posted by BanfaActually this is a very good point, I once had to spend 2 weeks going through the code of an embedded project with 16Mbyte RAM searching for ways to save memory because people with this sloppy style had used it all up and the project need space for development.Comment
-
I never said it was you are reading my comments out of context to the reply they where made to and the original comparison was between ++i and i++ not i++ and i += 1;Originally posted by AricCI wouldn't call using += 1 over ++ sloppy at all and I still haven't seen any proff ++ is that much better.
Personally I still maintain that once the optomiser has put its oar in they should all be more or less the same.Comment
-
I hope it was removed humanely and sent to a good home. Otherwise the Apostrophe Preservation Society will be after you.Originally posted by BanfaLast edited by Banfa : Today at 02:46 AM. Reason: Removing naughty 'Comment
-
Perhaps I was, but that is what I've gathered from reading previous posts is that there is some sort of big difference between the two.Originally posted by BanfaI never said it was you are reading my comments out of context to the reply they where made to and the original comparison was between ++i and i++ not i++ and i += 1;
Personally I still maintain that once the optomiser has put its oar in they should all be more or less the same.Comment
-
Hmm only if you believe the poster of the original comment that ++i is more efficient than i++ because of a copy but there are many cases where there would be no need of a copy and many more where optimiser would come along and optimise away the inefficiency.Originally posted by AricCPerhaps I was, but that is what I've gathered from reading previous posts is that there is some sort of big difference between the two.
I do not think the argument for ++i over i++ holds water.Comment
Comment