Skip to content

The Weird and The Wonderful

It was the best of code, it was the worst of code. Coding Horrors, Worst Practices, and flashes of brilliance

This category can be followed from the open social web via the handle the-weird-and-the-wonderful@forum.codeproject.com

1.8k Topics 20.7k Posts
  • I am in love <3

    tools tutorial
    16
    0 Votes
    16 Posts
    0 Views
    D
    Do Not mix feeling with dev... resolute from one another..and don't drink and drive.. Thanks
  • I am the Legend of Grimrock Poster

    csharp
    3
    0 Votes
    3 Posts
    0 Views
    B
    Unholy mother of spam :omg:
  • Just got an error from VS2012

    help data-structures debugging
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Val Grind (the wrong kind)

    23
    0 Votes
    23 Posts
    0 Views
    R
    cpkilekofp wrote: I'm still boggled a bit by the number of people who responded "this is a common idiom" without actually analyzing what was written. Good, it's not just me then.
  • Getting it wrong badly

    database sql-server sysadmin testing collaboration
    7
    0 Votes
    7 Posts
    0 Views
    S
    now i get why your's doesn't insert a space there, i'm not that good with sql =p I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
  • Message Other user using CodeProject

    18
    0 Votes
    18 Posts
    0 Views
    OriginalGriffO
    I thought it might be! :laugh: If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
  • Facepalm Moment

    csharp visual-studio question
    14
    0 Votes
    14 Posts
    0 Views
    B
    That's why working in a team is good ... you spend 10 minutes feeling increasingly stupid and then give up and ask your colleague, who comes over and sees it in 5 seconds.
  • Make the font red! No, black! Can we do both?

    ruby question
    7
    0 Votes
    7 Posts
    1 Views
    R
    Marcus Kramer wrote: Looks to me like the code was generated by a tool... Yes, a right tool. ;-)
  • Somebody getting paid by the character typed?

    question
    2
    0 Votes
    2 Posts
    0 Views
    B
    My theory: sometimes "http://" is found in the current request URL, and sometimes it is not. If you always replace it with nothing, and then prepend "https://", you'll always get what you want.
  • Coded insults

    database xml
    27
    0 Votes
    27 Posts
    2 Views
    B
    I looked those up on Google, and found that those are quotes from movies. They can be turned off in the options dialog. I never noticed them before, and I use ImgBurn quite a bit. Bob Dole The internet is a great way to get on the net. :doh: 2.0.82.7292 SP6a
  • Who needs a UL?

    tutorial question
    12
    0 Votes
    12 Posts
    0 Views
    B
    throw new TableOverloadException(); Bob Dole The internet is a great way to get on the net. :doh: 2.0.82.7292 SP6a
  • One size fits all Web Service!

    xml
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How's your working enviroment ?

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Found this little gem in one of the applications

    ruby asp-net oracle com question
    14
    0 Votes
    14 Posts
    0 Views
    S
    Haha.. I should be wary of that one too indeed!! ^^ A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
  • No foreign keys on the first date.

    announcement
    9
    0 Votes
    9 Posts
    0 Views
    B
    EF should do that, but somewhere something is amiss - probably my fluent mappings - and I had to resort to the manual update you see in the code excerpt.
  • Facepalm time.

    testing debugging beta-testing help question
    5
    0 Votes
    5 Posts
    0 Views
    K
    When I first started in a Microsoft position, I asked why they were renaming procedures that were basically doing the same thing. It was their control method, the old procedures retained old behavior, the new code expected new behavior. After the new was promoted to production, the old was removed from SQL. If the lab started squaking, they knew they missed something. Sure missed that on a later project. About 80% of the existing tests were failing because the sprocs were massively changed and no-one bothered to maintain the tests when they re-wrote the sprocs.
  • Extract from the code I'm working on

    lounge
    7
    0 Votes
    7 Posts
    0 Views
    S
    Ho... I'm learning new power pattern every day!!! ;P A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
  • 0 Votes
    54 Posts
    3 Views
    J
    I frequently use select * from tbl where 1 = 2 when I'm trying to figure out the columns in a table.
  • How do you like your nulls

    question code-review
    19
    0 Votes
    19 Posts
    0 Views
    R
    :doh: Why didn't i though it? CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...
  • 42

    question database com
    4
    0 Votes
    4 Posts
    0 Views
    A
    How many roads must a man walk down? Don't comment your code - it was hard to write, it should be hard to read!