Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Richard X Menezes

@Richard X Menezes
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The Perfect Loop
    R Richard X Menezes

    Completely agree to you. And am the one responsible for their deliverables, as I am their lead. :(

    Richard Menezes

    The Weird and The Wonderful collaboration code-review

  • Tricking Microsoft and being shamless
    R Richard X Menezes

    U r completely right dude! Now a days it more about Money then Ethics! And unfortunately that's true every where. :(

    Richard Menezes

    The Weird and The Wonderful css sharepoint design sales question

  • The Perfect Loop
    R Richard X Menezes

    I was doing a code review last week for a simple change which I had asked one of my team member to do. We were looping through the details of the File we downloaded and doing processing depending up whether it's type A or type B (This code was already there)

    foreach(MyfileInfo fil from files)
    {
    switch (fil.MyFileType)
    {
    case A:
    //Do some work for file A
    break;

      case B:
      //Do some work for file B
      break; 
    

    }
    }

    All That I had asked that person to do was to to change the way File B was processed. And this is what I got. :(

    foreach(MyfileInfo fil from files)
    {
    switch (fil.MyFileType)
    {
    case A:
    //Do some work for file A
    break;

      case B:
      **foreach(MyfileInfo fil2 from files)
      {
         switch (fil2.MyFileType)
         {
            case A:
            break;
    
            case B:
            //Do new work for File B.
            break;
         }
      }**
      break
    

    }
    }

    So if there were 50 files downloaded of type B the processing was happening 50*50= 2500 times :(( :((

    - Richard Menezes

    The Weird and The Wonderful collaboration code-review
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups