Search:

Type: Posts; User: Shiro

Search: Search took 0.04 seconds.

  1. Replies
    55
    Views
    193,212

    Sticky: >It's a matter of opinion as to which is more...

    >It's a matter of opinion as to which is more readable.

    True.

    >Over nesting also makes things very hard to read and thus
    >difficult to maintain, defeating HLL too. I've seen this kinda junk ...
  2. Replies
    55
    Views
    193,212

    Sticky: >the continue version of this code is clearer and...

    >the continue version of this code is clearer and makes more
    >sense than your version, simple as that.

    Well, that's your opinion. Mine is different, simple as that.
  3. Replies
    55
    Views
    193,212

    Sticky: Take a look at to following to code-fragments. ...

    Take a look at to following to code-fragments.



    while (....)
    {
    if (....)
    {
    ....
    }
  4. Replies
    55
    Views
    193,212

    Sticky: Saw these examples, these doesn't show at all why...

    Saw these examples, these doesn't show at all why to use continue.



    Can be replaced by



    while (fgets(buf, sizeof(buf), fp) != NULL)
    {
  5. Replies
    55
    Views
    193,212

    Sticky: In my opinion, it is usually better to avoid such...

    In my opinion, it is usually better to avoid such statements like continue or goto. Avoiding these statements leads in general to more structured code and forces you to design a structured algorithm...
Results 1 to 5 of 5