Upper Lamarck (Feb 03 2009) |
![]() |
| log in |
Message boards : Technical News : Upper Lamarck (Feb 03 2009)
| Author | Message |
|---|---|
|
So then. We had our weekly outage today. We knew it would be a long one - the result table is bloated for various reasons so it took forever to compress. This may help get past this period of "indigestion" I mentioned in the previous thread, but there's no sign of it getting much better any time soon. Expect continuing network pain. Plus Bob is resync'ing the mysql replica, so that'll be behind a bit in the near term. | |
| ID: 861709 · | |
|
Ah, you mean democrats describing republicans, don't you? | |
| ID: 861714 · | |
Ah, you mean democrats describing republicans, don't you? I think it's just best to abstract it to politicians describing rival politicians... ____________ | |
| ID: 861760 · | |
|
I have written a lot of C and even more C++. The point of C++ is that operations should be embedded in the class. This makes one place to fix rather than several. | |
| ID: 861766 · | |
... servers are slowly getting more and more out of sync, given some are 32-bit, some are 64-bit, some are running this rev of the OS, some are running that rev, some have this package installed, some don't, etc. and this is apparently becoming a problem. Like we have time to clean this all up. Give Boinc a real test and schedule a full shutdown Tues onwards until everything is synchronised up to the same versions. That may well fix a lot of the NFS mounts problems... And release a whole load of admin time in that there should be less head scratching over the differences quirks... Possible? ... a friend who insists that C++ is a vast improvement on C... a programming mystery... the problem was obscured in vague assignment operator behavior... foists contorted methodology... Any programmer can program in dangerously obscure ways in any language! As with all the various programming languages, each has its place. You can be just as dangerously vague in C with sloppy machine dependant casts or obfuscated code as you can be with the confused or unexpected use of operator overloading in C++. Usually, it's all just a case of making a clear and understandable design. Unfortunately, human time constraints usually mean that quick dirty hacks get added to bodge-fix special cases until it all becomes an unmaintainable mess. Can any project manager be convinced with allocating enough time for code review and then to actually tidy up the first coding attempts for easy maintainability? (Usually no because that will be a problem for another project manager 'sometime'...) So... How many programmers use 'defensive' programming for example? eg: #include <stdio.h> int main() { int a=3; const int b=4; if ( b == a ) printf ("\n'a' and 'b' are equal\n\n"); else printf ("\n'a' and 'b' are not equal\n\n"); return (0); } Who takes the thought to write the "( b == a )" to guard against a typo where "( a == b )" could be mistyped "(a = b )" and be still syntactically correct and may even survive trivial testing to then only later fail with the more thorough 'real-world' testing? In any case, who has the time for testing?!... Regards, Martin ____________ Mandriva Linux A user friendly OS! See new freedom Mageia2 The Future is what We make IT (GPLv3) | |
| ID: 861854 · | |
|
I have seen both atrociously written C and atrociously written C++. One example in C was a case where two values (X and Y) were passed down a call stack as arguments the 5th call in the stack they were passed in the order Y and X. In the tenth level they stopped being passed without being used. In the 20th call in the stack, X and Y were magically used out of a pair of globals -- that were set in the function where they were called in the order Y and X. Because of entanglement with other places, this took about a week to fix. | |
| ID: 861860 · | |
|
Good to see data from the new 05Jan09 recordings filtering through from the splitters. | |
| ID: 861893 · | |
|
Just a thought. | |
| ID: 861894 · | |
Encapsulation really does pay if you do it right. I totally agree - I do admit C++ has its pros in theory *and* practice (I use the STL of course). The key is "if you do it right" - which happens as often as it does in any language, i.e. almost never, and debugging C++ is far more painful than C. I'm talking *real* debugging - nitty gritty stuff - we've encountered bugs in other people's tried-and-true C++ code. Totally painful to hunt down and figure out given the obscurity and malleability of the code. I see C as a simple highway, with cars, and the basic rules of the road. C++ is cell phones, GPS, satellite radio, etc. that make highway travel seem more efficient, but ultimately these distractions are at best just distractions and quite possibly the cause of fatal accidents. I also see C as "wanna build a house? here's some tools and supplies" and C++ as "wanna build a house? here's some tools and supplies and a set of random carpenters." You may get the house done faster with the carpenters, but it won't be to your personal spec without much planning and oversight, and then you'll have quite probably have to remodel it later. Plus I'd rather hang out with the guy who builds his own house himself. As for the republicans describing democrats metaphor, I think this is quite apt. I'm firmly aware democrats have a different but equally annoying tone when describing republicans, and might use that metaphor from time to time. Of course, I'm thinking of the caricature depictions of these parties, which is basically all they are these days, aggravated by this constant us vs. them dialog in the media yet these two parties are functionally equivalent in many ways. I personally feel both parties are dead and useless and should disband and reform as several others, FWIW. - Matt ____________ -- BOINC/SETI@home network/web/science/development person -- "Any idiot can have a good idea. What is hard is to do it." - Jeanne-Claude | |
| ID: 861912 · | |
I personally feel both parties are dead and useless and should disband and reform as several others, FWIW. I completely agree! ____________ | |
| ID: 862186 · | |
Message boards : Technical News : Upper Lamarck (Feb 03 2009)
| Copyright © 2013 University of California |