Page 7 of 14 FirstFirst ... 45678910 ... LastLast
Results 61 to 70 of 132
  1. #61

    Quote Originally Posted by kamsky View Post
    im not sure if tidy-ing you mentioned automatically modify or proposed you the code format.

    but in checkstyle it usually give warnings and reports. It also it also check not just the code formats. it also check if you have javadoc, class structure (example: it has checks that suggests implement hashCode() if you implement equals()), whole checking of the code is possible.
    checkstyle is a combination of tidy+autocomplete?

  2. #62
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Quote Originally Posted by bluedes View Post
    when you say corporate standard, that means its a standard being adopted by corporations, not just one corporation..

    if you generalize, mao na siya.. but if you specify that its your company's standard (maybe because ikaw ang gabuhat sa inyong standard), then please do say na its the coding standard inside your company only.. lahi man gud if you generalize, because that goes without saying that it is being adopted in other companies as well..

    its obvious na in-love kaau ka sa imong company, pero yaw lng pud ingna na parehas tanan sa imong company.. ingon gud ka na research kung ngano less used na sa uban.. why don't u just post your research here.
    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.


    Quote Originally Posted by bluedes View Post
    because as far as i've heard, i've never heard of such "corporate" standards..
    and now you do

  3. #63
    Junior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    478
    Quote Originally Posted by bluedes View Post
    checkstyle is a combination of tidy+autocomplete?
    no.

    it's just acting like a police that warns you that you are not adhering the standard defined.

  4. #64
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    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.

  5. #65
    Quote Originally Posted by MarkCuering View Post
    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
    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..

    Quote Originally Posted by MarkCuering View Post
    Visual Studio 2008, the watch features is no longer use nowadays...coz you can check directly by placing your mouse cursor to your variable. All of the inherited objects are displayed.
    and then later, you deny what you just posted...

    Quote Originally Posted by MarkCuering View Post
    I'm not telling you either that watch window is not recommended or the usefulness has already been declined… I’m just sharing that it has some limitations and side effects.

    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..

  6. #66
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    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 use perhaps 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. ----> overhead like 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.

  7. #67
    Quote Originally Posted by MarkCuering View Post
    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 use perhaps 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. ----> overhead like 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…
    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..

  8. #68
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    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.

  9. #69
    Quote Originally Posted by MarkCuering View Post
    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..

  10. #70
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    one line man gihapon to akong gi pang edit ila lang gi butang sa nested if statements., if it requires you to include try-catch-throw statements, better not to use ternary operators also.

  11.    Advertisement

Page 7 of 14 FirstFirst ... 45678910 ... LastLast

Similar Threads

 
  1. what's the best and most practical NEGOSYO today?????
    By fratbaxxx in forum Business, Finance & Economics Discussions
    Replies: 166
    Last Post: 10-09-2014, 01:31 PM
  2. Looking For: Pattern makers, Seamstresses and Tailors
    By kamikaze_007 in forum Jobs
    Replies: 5
    Last Post: 06-02-2013, 10:47 AM
  3. Replies: 0
    Last Post: 09-14-2007, 10:14 AM
  4. Replies: 0
    Last Post: 06-21-2007, 11:01 AM
  5. Bad design and coding practices (antipatterns)
    By cmontoya in forum Programming
    Replies: 8
    Last Post: 01-05-2006, 06:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top