mau diay ni imong pagsabot sa corporate standards? try reading this:
Corporate standards
It’s not only inside our company, but in other companies as well (that I've worked closely). it is possible that our module will be distributed to other company, and that X company will distribute to Y company which no longer connected to us, but these corporate standards are there and carried out.
Spatial, Aveva, DDW, ASL, Keppel, STI, are different companies and they have their own private standards, but since partnership involves with more than a decade already, and they continually supports each other respectively by its own products and biproducts. They put some guidelines, put into practice, etc...and that's where corporate standards evolved.
these project bro does not takes months of working...normally 2-3 years and some of it for a lifetime.
and now you do![]()

That's nice... For Microsoft related products and approach you can try Code Contracts & SandCastle then read:
- MSDN Design Guidelines for Developing Class Libraries
- Data Abstraction and Hierarchy by Barbara Liskov (check the author's profile too)
- Object Oriented Software Construction by Betrand Meyer (check the author's profile too)
These are the most borrowed books in our library, right before I came here... but almost all desks has it now.
I remember sometime ago we attended a public technical conference; the construction and phase of the topics are strongly based from these books... We are all displeased and very unhappy… coz the presenter didn’t acknowledged the author’s work, which he owed a lot. The rest went back, satisfied with the entire presentation, leaving the rest of the important knowledge they almost knew.
maglibog man ta nimo bro..
contradicting man gud imong gipangsulti..
here, i'll point it out, para makakita ka sa trend sa imong posts, okay..
and then later, you deny what you just posted...
anyway, when you say "corporate" standards, sa akong huna2x, its not just partnered between 2-3 companies, its like global "corporate" standards.. that's why corporate standard because every corporation is adopting the standard..
in my knowledge, what you just explained is not corporate standard but intercompany agreement.. every project has some set agreements depending on the need or want of the developers on a case-to-case or personal basis.. its being set when drafting the contract for the project.. in that case, dili na sya corporate standards.. standards ra na sa inyong company on a project basis.. or kung enforced na on every project thereafter, then its only particular to your company.. not on a general basis na everyone nagadopt..
lahi man gud kung standards na istoryahan, kay its supposed to cater to the majority..
for example, going back to the watch window, if microsoft truly sees na dili na useful ang watch features, ngano i-implement pa man na? useless na.. but that's not happening.. according to your standards, you prefer not to use it lng... but it doesn't mean na useless to the majority..
i'm aware of long term projects.. i worked in IBM for a short while, and I also had chance to have HP and Sony as clients from another company.. but now, I'm in the academic world na.. our projects are also long term, like government grants running 5-10 years..
You got some point… but these standards I’m talking about are not just on a project basis… I guess you are accepting it like ECMA, ISO, IEEE, OASIS, IETF and more… which I can considered it as GLOBAL standards. Even though it is not as GLOBALLY implemented, just see what happen between ANSI, JIS, DNV and Russian Standards, but since it is widely used and implemented by various industry, globally, we can considered it as global "corporate" standards (according to your statement).
Regarding about the “watch” features… I think I already corrected my comment by stating that it has some limitations and side effects. You didn’t ask in what level that it is no longer useperhaps I overstate that a bit.
Actually our discussion is just about ternary operators, if I’m going to specify furthermore about watch window… there are more to discuss, more than ever on standards LOL.
Going back to ternary operator, here are some additional infos.
Bjarne Stroustrup's : Note that a function overloading expr1?expr2:expr3 would not be able to guarantee that only one of expr2 and expr3 was executed. ----> overheadlike what happen in VB?
PARASHFT SITE: [27] Coding standards, C++ FAQ Lite
JAVA : Bug ID: 6721089 ternary conditional operator does not handle generics
MICROSOFT CONNECT :
C# compile error with ternary operator | Microsoft Connect
some answer :
We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Ternary operator generates 'conditional expression cannot be determined' error. | Microsoft Connect
So I've resolved this bug as By-design, but here's the details….
Added some workaround:
bool IsGood = false;
double? DoubleVar = IsGood ? 0 : (double?)null;
and here’s the casting again.
IntelliSense totally fails after simple macro encountered | Microsoft Connect
Strange limitation of C# compiler with nullable types and ternary operator | Microsoft Connect
ANSWERS:
Thanks for reporting this bug, we have been able to repro this issue and are investigating.
Thanks again for reporting this issue. A fix has been checked in. Visual Studio Team Checkin System
LOL and plentyyyyy of those under different languages…
Last edited by MarkCuering; 12-17-2009 at 03:36 PM.
huh?
you're trying to show that ternary operators is not advisable to use because of those bugs reported by your precious .Net compiler? love jud kaayo nimo ang micro$oft noh?
sige na lng bro.. di nko mulalis nimo sa usage sa ternary operator.. wa man ni pugsanay..
but on ur bugs, that java bug is not a bug.. its misunderstanding of usage of ternary operator.. gi-explain pa gani na sa report page on sun website na dili na bug..
and bjarne stroustrup never advocated against the use of ternary operator.. kung against pa sya ana, wala ta na niya gi-implement sa iyang C++.. murag wa ka ka-G anang text ni stroustrup.. its only saying that ternary operator cannot be overloaded because its senseless overloading an if-statement.. not only that, but other operators (like sizeof and (.) dot) cannot be overloaded also.. so that means dili na lng gamiton ang sizeof or (.) dot operator kay dili man sila ma-overload? what kind of logic is this..![]()
Of course you cannot overload that LOL... Bjarne's message reminds me of adding some functions (overloaded) inside ternary operator... with vast numbers of C and C++ versions, the conditional operator may behave differently. I haven't encoutered that anyway, it just some sort of remembering when dealing with Macros and Inline functions.
take a look at VB also.
IIf(condition, op1, op2). the function call has significant disadvantages, because the subexpressions must all be evaluated, according to Visual Basic's evaluation strategy for function calls.
From MSDN:
The expressions in the argument list can include function calls. As part of preparing the argument list for the call to IIf, the Visual Basic compiler calls every function in every expression. This means that you cannot rely on a particular function not being called if the other argument is selected by Expression.
I'm not just telling that ternary operators are not advisable due to bugs reported everywhere... but base in my experience as well... Coz there are professional who really abuse the usage of ternary operators, I don't know what the hell comes into their mind of putting it in the first place... they place several ternary operators under nested if statements, and his code had some bugs, and aside from that, It is difficult to test and modify, I remember I had some trouble placing my try-catch-throw statements...how would you do that in a ridiculous single ugly line... it's the only conditional statement which is not available for throw, I don't know about other language... anyway, to make it short I ended up by rewriting with several if...else statement.
*sigh*
you really misunderstood my point..
ternary operators are recommended for one-line if statements only..
abuse of ternary operators defeats its purpose.. if the code becomes unreadable because of its improper use, then that is not advisable to use anymore..
i already said this in the first post i mentioned about ternary operators..
one line man gihapon to akong gi pang editila lang gi butang sa nested if statements., if it requires you to include try-catch-throw statements, better not to use ternary operators also.
Similar Threads |
|