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
  • Let's call him J. S. Crypt

    csharp javascript python com tools
    20
    0 Votes
    20 Posts
    1 Views
    P
    Hehe... OK. I thought I was another coding horror... you know, complete lack of testing.
  • Bash Web Browser

    question adobe linux architecture
    3
    0 Votes
    3 Posts
    0 Views
    Sander RosselS
    Last commit by lawl butthurt. The only file starts out promising :laugh: #!/bin/bash https://bitbucket.org/bashbrowse/bash-web-browser/ lawl tripfags Captain Flaccid lol, I have !The.Gay2w6 The butthurtery is strong in these. Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
  • That feeling

    java help question code-review
    2
    0 Votes
    2 Posts
    0 Views
    N
    Yep, nothing like coming back into work after 2 weeks, settling in and seeing: //TODO: fix this! public void DoSomething(){throw new NotImplementedException();} These are the moments when I realize that I'm an idiot. "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli
  • WebVR

    question com adobe beta-testing json
    2
    0 Votes
    2 Posts
    0 Views
    N
    I'm thinking flash in the pan. I'm not about to hop to and learn Bootstrap 3....D After having a look at the Samsung "VR Headset", I'm 100% certain of it. That thing is so incredibly stupid. "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli
  • WebUSB...

    question com adobe architecture
    18
    0 Votes
    18 Posts
    0 Views
    M
    How is different from installing driver? now we do same thing, driver be downloaded someone still have to make driver even with this webusb? can make harmful driver and steal data so not safer?
  • 0 Votes
    5 Posts
    0 Views
    N
    yes yes yes thats good
  • For certain large values of temporary

    asp-net collaboration question announcement
    4
    0 Votes
    4 Posts
    0 Views
    D
    Hard coded list of currency codes. I guess it was good enough to last.
  • My Word.......

    question com adobe architecture
    12
    0 Votes
    12 Posts
    0 Views
    M
    Sander Rossel wrote: have a VB.NET background Ahh, that explains everything! :)
  • When slapping yourself in the head is too good for you

    5
    0 Votes
    5 Posts
    0 Views
    Z
    If the English knew how to speak and spell properly, we would have never left. :-\ There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
  • Not cool, not cool at all

    help php question
    2
    0 Votes
    2 Posts
    0 Views
    N
    It's missing the critical piece: //TODO: Do something with $object do_something($object-id); "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli
  • Best use of relational data ever

    ruby
    22
    0 Votes
    22 Posts
    5 Views
    B
    :doh: That DBA needed to be whacked with a clue-wrecking-ball. What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
  • What else would you expect?

    question
    3
    0 Votes
    3 Posts
    0 Views
    K
    Eddy Vluggen wrote: And what is TryState.UseDefault? Definitely not something I would try or trust for this function! (at least where I was using it) Supposedly, it's based on the computer's regional settings, but I couldn't nail it down to exactly where. "Go forth into the source" - Neal Morse
  • What goes around, comes around...

    6
    0 Votes
    6 Posts
    0 Views
    P
    Never heard of IF-less programming?
  • The Cubs won the World Series

    13
    0 Votes
    13 Posts
    0 Views
    Richard DeemingR
    But Michael Lee managed to get the year right in 1993: Man's 1993 Yearbook Photo Predicts Chicago Cubs Win 2016 World Series | Huffington Post[^] "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Even the best of us...

    python com functional learning
    7
    0 Votes
    7 Posts
    0 Views
    P
    It just made me think of a new pattern: the Failure Swallowing pattern (a behavioural one). bool failure; try { // Some lengthy and fault-prone code // ... } catch { failure = false; } finally { failure = false; } if (failure) { failure = false; } And here is it; you will never see any error anymore. ;P Loneliness and cheeseburgers are a dangerous mix.
  • Just Found This

    help
    10
    0 Votes
    10 Posts
    1 Views
    P
    Never touch anyone else's private parts, unless you really really really trust each other Kitty at my foot and I waAAAant to touch it...
  • That moment when...

    7
    0 Votes
    7 Posts
    0 Views
    T
    Yep, that's what source control history is for (with an appropriate comment). #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
  • I don't see sharp anymore, ...

    csharp question career
    7
    0 Votes
    7 Posts
    0 Views
    P
    Nothing wrong with that, but maybe use an alias instead. Would you prefer: class MyTypeCollection : Dictionary<string, List<Tuple<string, DateTime, List<MyType>>>> {}
  • Paid per line of code???

    question
    18
    0 Votes
    18 Posts
    1 Views
    D
    Debug purposes or planned mechanics never introduced. It happens. GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
  • I like the defensive programming.. but it needs practice...

    3
    0 Votes
    3 Posts
    0 Views
    N
    You must respect the putting of the cart before the horse! :doh: "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli