• Jonathan (unregistered)

    I would also just delete this if I found it, but you couldn't just blindly replace it with a normal double as this is a reference type and properties of type PhbDouble could be set with null values and there might have been logic relying on that.

    Perhaps "Phb" didn't know about C# nullable types, namely "double?"?

    Presumably "Sole Purpose Of Visit" has in at least some places used "double?" as opposed to just "double".

  • NotAThingThatHappens (unregistered)

    DELETE FROM comments WHERE username = 'Jonathan'

    INSERT INTO comments (username, comment) VALUES ('NotAThingThatHappens', 'Frsit!')

  • Prime Mover (unregistered)

    Potentially Hazardous Bodger?

    Perfectly Horrendous Barfmonger?

    Pretentious Holistic Bicycle?

    We can't guess what PHB could stand for ...

  • Industrial Automation Engineer (unregistered)

    It goes to show once again: beauty is only skin deep, ugliness goes right to the bone.

  • Ainz Ooal Gown (unregistered) in reply to Industrial Automation Engineer

    Are you trying to disrespect my beautiful skeleton?

  • (nodebb)

    I imagine there could be a valid use case for value type wrapper in a reference type (although a generic PhbRef<T> where T: struct is a cleaner approach). I cannot imagine any such cases myself, but I can imagine there could be.

  • Hanzito (unregistered)

    But you never know when you want to overload the float set method!

  • some guy (unregistered)

    Almost Brillant!

  • ichbinkeinroboter (unregistered) in reply to Prime Mover

    I had an assumption :-) But I very much doubt ANY PHBs would know code well enough to be the source of the requirement for this..

  • (nodebb)

    I do have to give him credit for adhering to official naming guidelines - 3 letter acronyms are to be pascal cased, and he did that. It's not all bad!!!

  • Sole Purpose Of Visit (unregistered) in reply to Jonathan

    I did indeed make sure I replaced PhbDouble with a nullable real double. (And I never worked out why the class wasn't sealed, and what use the protected member might be.)

    Other highlights of PhbCoding included a PhbPoint class (containing nothing much more than an X, Y and Z) and a whole parallel set of PhbMatrix calculations (which of course worked only with PhbPoints). Those were easy to refactor/obliterate.

    The ten thousand line long PhbGridView class, which hoisted everything you might want to do with a standard grid view (including event handling), has, however, taken me over a year to refactor. And I'm only half way through it.

  • Alex Vincent (google) in reply to Prime Mover

    Fans on Dilbert don't need to guess what PHB stands for. It has to do with hair, management, and pointiness.

  • Loren Pechtel (unregistered)

    When did we get nullable types, though? Could this have predated them?

  • Yikes (unregistered)

    This is a step in the right direction from my technique of a friend in school whereby each variable was named after a different boxing legend.

  • Long Time Lurker (unregistered)

    Picking some nits: perhaps the bodies of the constructor and the Create method got dropped during anonymization, the snippet as provided does not compile.

  • Fizzlecist (unregistered) in reply to Prime Mover

    Paula H. Bean?

  • (nodebb) in reply to Loren Pechtel

    Nah. Null preceeded type, I think. Let me check the book...

    Before the beginning was null.

    Yep...

  • MaxiTB (unregistered) in reply to Jonathan
    Comment held for moderation.
  • MaxiTB (unregistered) in reply to Sole Purpose Of Visit
    Comment held for moderation.
  • xtal256 (unregistered) in reply to Sole Purpose Of Visit

    "The ten thousand line long PhbGridView class, ..., taken me over a year to refactor."

    This is what really shits me about the software industry. For every bad developer writing code there is another good one who has to fix their shitty code. It might even be at a 2:1 ratio (or higher!). Just think of all the hours wasted.

    I think I have personally spent far more time on refactoring and fixing code than I have on writing new code. And most of that new code is now long gone due to the trend of everything being re-invented and re-written every 5 minutes in the web dev world.

  • Canthros (unregistered) in reply to Loren Pechtel
    Comment held for moderation.
  • Canthros (unregistered) in reply to Long Time Lurker

    It's likely that the implementation of the property got lost, too, since there's not much need for a backing field if you're using an auto-property.

  • (nodebb) in reply to xtal256

    The good developer redoing the work of the bad developer? Half the time they are the same person.

  • Pietro (unregistered) in reply to Prime Mover
    Comment held for moderation.
  • Sebastiaan Stok (unregistered)
    Comment held for moderation.
  • Diane B (unregistered)

    Pointy Haired Boss?

  • Maalik (unregistered)
    Comment held for moderation.
  • Maalik (unregistered)
    Comment held for moderation.
  • Maalik (unregistered)
    Comment held for moderation.
  • farhankanju (unregistered)
    Comment held for moderation.
  • farhankanju (unregistered)
    Comment held for moderation.
  • (nodebb)

    Vielen Dank für die Informationen.

    Addendum 2024-02-07 23:23: In der digitalen Welt der Blumenarrangements bin ich auf eine Webseite gestoßen, die nicht nur kunstvolle Blumensträuße anbietet, sondern https://myglobalflowers.de/ diese auch zu einer poetischen Erfahrung macht. Jeder Strauß erzählt seine eigene Geschichte und fängt die Schönheit der Natur in einer digitalen Blumenpoesie ein.

  • (nodebb)
    Comment held for moderation.

Leave a comment on “Double Narcissism”

Log In or post as a guest

Replying to comment #:

« Return to Article