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
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. javascript-professionals

javascript-professionals

Scheduled Pinned Locked Moved The Weird and The Wonderful
javascriptcom
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wickdom
    wrote on last edited by
    #1

    because in another post someone mentioned the lack of knowledge of arrays in childhood i got reminded of a funny spam-mail i once received. they have such nice things like var status1 = ""; var status2 = ""; var status3 = ""; or <a HreF="blah">. enjoy here[^]

    P 1 Reply Last reply
    0
    • W wickdom

      because in another post someone mentioned the lack of knowledge of arrays in childhood i got reminded of a funny spam-mail i once received. they have such nice things like var status1 = ""; var status2 = ""; var status3 = ""; or <a HreF="blah">. enjoy here[^]

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #2

      The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach." (Now I've forgotten who said it; I had to find a post by leppie to get it.) Need a status? Make one. Need a second one? Go right ahead. Need a third? Hey! They don't grow on trees! It reminds me of a job I used to have... I was assigned the maintenance of the credit card processing part of the system. Each member's account had fields for credit card number, type, and expiration. So far so good. Then we got a new client who wanted a backup credit card... OK, we added a second set of credit card number, type, and expiration plus a field to indicate which one was used last time to the table. Then we got another new client who wanted to do EFT and before anyone told me about it, they added account and routing number (or whatever) to the table. When I went to talk to the DBA and suggest we should have some sort of PaymentSource table that could have any number of sources associated with an account. His response was that, although it was a good idea, the inmates had taken over and there was nothing we could do at that point. X|

      P 1 Reply Last reply
      0
      • P PIEBALDconsult

        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach." (Now I've forgotten who said it; I had to find a post by leppie to get it.) Need a status? Make one. Need a second one? Go right ahead. Need a third? Hey! They don't grow on trees! It reminds me of a job I used to have... I was assigned the maintenance of the credit card processing part of the system. Each member's account had fields for credit card number, type, and expiration. So far so good. Then we got a new client who wanted a backup credit card... OK, we added a second set of credit card number, type, and expiration plus a field to indicate which one was used last time to the table. Then we got another new client who wanted to do EFT and before anyone told me about it, they added account and routing number (or whatever) to the table. When I went to talk to the DBA and suggest we should have some sort of PaymentSource table that could have any number of sources associated with an account. His response was that, although it was a good idea, the inmates had taken over and there was nothing we could do at that point. X|

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        PIEBALDconsult wrote:

        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

        Yes, very true.

        "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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