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

sloosecannon

@sloosecannon
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need a new phone...
    S sloosecannon

    The Motorola Moto X is a fantastic option, especially given the price. Almost stock Android, timely updates, and great hardware. I have one, and it's probably my favorite smartphone to date. EDIT: Or, if you want the cheaper option, the G is almost as good and significantly cheaper...

    The Lounge android question learning

  • What is null equal to?
    S sloosecannon

    Woops, logic derp. Yep, you're right. The code is Java for context, but it does lazy logic evaluation too...

    The Weird and The Wonderful question

  • What is null equal to?
    S sloosecannon

    Which can be simplified to

    if (null==value)
    {
    throw new NullPointerException();//It was null, we don't like their kind here
    }
    else
    {
    //Do something
    }

    The Weird and The Wonderful question

  • What is null equal to?
    S sloosecannon

    Eh, not my choice. Code style rules...

    The Weird and The Wonderful question

  • What is null equal to?
    S sloosecannon

    Mmmh, yeah, there's stuff like that in there too. I'll have to see if I can anonymize it enough to be internet postable. Let's just say someone did not understand object oriented coding and how Java works. We got to use this library before we actually took over developing it as contractors, and all the problems we had with it before are starting to make sense now...

    The Weird and The Wonderful question

  • What is null equal to?
    S sloosecannon

    I understand the concept of null, however, evidently "those who came before" didn't... Hence why I'm posting this here ;)

    The Weird and The Wonderful question

  • What is null equal to?
    S sloosecannon

    I come before you with a question, a yearning in my heart. What is null..... Equal to?

    ...
    if (value == null || value.equals(null)) {
    return "null";
    }
    ...

    Evidently, the concept of "null" and "null pointers" and "null pointer calls" is lost on the guys who wrote this particular line of code. It doesn't make any errors, probably because someone added the first condition after a few NPEs happened... EDIT: Clarification - the title is rhetorical.

    The Weird and The Wonderful question

  • Cheap Android tablet - hasn't anyone tried this yet?
    S sloosecannon

    I doubt it would be as easy as copying a windows ISO onto an sdcard, but you can probably flash an img or a zip. Never used that tablet so I don't know how the bootloader/recovery/boot system works, but flashing capabilities are pretty standard. Of course, if the bootloader is locked/protected, all bets are off.

    The Lounge css android mobile hardware question

  • Another glittering career falls at the first hurdle
    S sloosecannon

    Ouch...

    The Weird and The Wonderful career

  • That's rude, latest Adobe flash update
    S sloosecannon

    Eh, I usually set chrome to block all plugins unless I specifically tell it to show them. Judging by this behavior though, it wouldn't surprise me if Flash changed that when you update too...

    The Lounge adobe announcement

  • User Expectations for cancel button
    S sloosecannon

    I do believe the Windows UI guidelines cover this... Provide a command button to halt the operation if it takes more than a few seconds to complete, or has the potential never to complete. Label the button Cancel if canceling returns the environment to its previous state (leaving no side effects); otherwise, label the button Stop to indicate that it leaves the partially completed operation intact. You can change the button label from Cancel to Stop in the middle of the operation, if at some point it isn't possible to return the environment to its previous state. From: http://msdn.microsoft.com/en-us/library/windows/desktop/aa511268.aspx

    The Lounge design 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