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
S

scotchfaster

@scotchfaster
About
Posts
6
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Embarrassing code admission of the day (or why C.S. is good for you)
    S scotchfaster

    Someone has probably pointed this out already, but since the end result of this function is that the list is emptied, there's no need to remove one element at a time. So instead:

    foreach (double temp in fakeList)
    {
    // do something
    }

    fakeList.RemoveAll();

    But then, I don't have a C.S. degree...

    The Lounge question csharp android com design

  • Format string to string
    S scotchfaster

    Honestly, no matter how bad or well written it is, all objective C code looks like a coding horror to me. But I suppose this looks worse then most.

    The Weird and The Wonderful ruby code-review

  • worst error message or best
    S scotchfaster

    I like that one, actually. The worst error message IMO remains "Abort, Retry, Fail?"

    The Weird and The Wonderful regex help

  • What could they have been thinking?
    S scotchfaster

    job security?

    The Weird and The Wonderful hardware help question

  • Logical genius!
    S scotchfaster

    It looks to me like the author knew that they were writing bad code, and tried to hide the fact that they were using globals, which just made it all that much worse. But we all had to start somewhere. Slapping a poorly written function over the global accessor could be an evolutionary step towards a static class interface that properly encapsulates the data.

    The Weird and The Wonderful code-review

  • But...wait, what?
    S scotchfaster

    I don't know what language that's in, but I'm wondering if relying on the side-effects of assigning a member to itself is a good idea. A compiler (assuming this is compiled code) might reasonably optimize that away. However, you have to like the comment!

    The Weird and The Wonderful question
  • Login

  • Don't have an account? Register

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