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. Printer-friendly, not programmer-friendly [modified]

Printer-friendly, not programmer-friendly [modified]

Scheduled Pinned Locked Moved The Weird and The Wonderful
javascripthtmldatabasedata-structuresquestion
9 Posts 6 Posters 0 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.
  • C Offline
    C Offline
    ClementsDan
    wrote on last edited by
    #1

    If your product manager asked you to make a printer-friendly version of a webpage, how would you choose to implement it? (A) Add a "print" parameter to your query string. In your CGI code, add IF statements where appropriate. (B) Add a @media print section to the stylesheet. (C) Write a 200-line Javascript function to walk through the DOM tree to remove unwanted navigational elements. No points for guessing which choice was made by the previous maintainer of one of the web apps I'm working on now.

    modified on Wednesday, August 27, 2008 8:07 PM

    P P P 3 Replies Last reply
    0
    • C ClementsDan

      If your product manager asked you to make a printer-friendly version of a webpage, how would you choose to implement it? (A) Add a "print" parameter to your query string. In your CGI code, add IF statements where appropriate. (B) Add a @media print section to the stylesheet. (C) Write a 200-line Javascript function to walk through the DOM tree to remove unwanted navigational elements. No points for guessing which choice was made by the previous maintainer of one of the web apps I'm working on now.

      modified on Wednesday, August 27, 2008 8:07 PM

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

      (D) Say, if you want it to print nice, don't use a webpage. Or maybe that's just me.

      1 Reply Last reply
      0
      • C ClementsDan

        If your product manager asked you to make a printer-friendly version of a webpage, how would you choose to implement it? (A) Add a "print" parameter to your query string. In your CGI code, add IF statements where appropriate. (B) Add a @media print section to the stylesheet. (C) Write a 200-line Javascript function to walk through the DOM tree to remove unwanted navigational elements. No points for guessing which choice was made by the previous maintainer of one of the web apps I'm working on now.

        modified on Wednesday, August 27, 2008 8:07 PM

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

        Let me guess, he picked (C) :suss:

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

        V C 2 Replies Last reply
        0
        • P Paul Conrad

          Let me guess, he picked (C) :suss:

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          and he wrote a buggy code to jeopardize the system and crash the user's browser to be appreciated by the management and promoted as a 'Technical Manager'. :omg: :wtf:

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          All the world's a stage, And all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts... --William Shakespeare

          P 1 Reply Last reply
          0
          • V Vasudevan Deepak Kumar

            and he wrote a buggy code to jeopardize the system and crash the user's browser to be appreciated by the management and promoted as a 'Technical Manager'. :omg: :wtf:

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            All the world's a stage, And all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts... --William Shakespeare

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

            Not just that, but perhaps the users would turn off javascripting on their browsers :rolleyes:

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            1 Reply Last reply
            0
            • C ClementsDan

              If your product manager asked you to make a printer-friendly version of a webpage, how would you choose to implement it? (A) Add a "print" parameter to your query string. In your CGI code, add IF statements where appropriate. (B) Add a @media print section to the stylesheet. (C) Write a 200-line Javascript function to walk through the DOM tree to remove unwanted navigational elements. No points for guessing which choice was made by the previous maintainer of one of the web apps I'm working on now.

              modified on Wednesday, August 27, 2008 8:07 PM

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              And. You should know by now that macho-programmers don't take the easy route when you can write hundreds of lines of redundant code. It's a system or developing known as Advanced Redundant System Enhanced Helping Online Lexical Expressions.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              M 1 Reply Last reply
              0
              • P Paul Conrad

                Let me guess, he picked (C) :suss:

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                C Offline
                C Offline
                ClementsDan
                wrote on last edited by
                #7

                Good guess. I showed him how to do (B) today, and he was impressed at how much simpler it was.

                P 1 Reply Last reply
                0
                • C ClementsDan

                  Good guess. I showed him how to do (B) today, and he was impressed at how much simpler it was.

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

                  ClementsDan wrote:

                  I showed him how to do (B) today, and he was impressed at how much simpler it was.

                  Cool. Hopefully, he learned from your example :)

                  "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                  1 Reply Last reply
                  0
                  • P Pete OHanlon

                    And. You should know by now that macho-programmers don't take the easy route when you can write hundreds of lines of redundant code. It's a system or developing known as Advanced Redundant System Enhanced Helping Online Lexical Expressions.

                    Deja View - the feeling that you've seen this post before.

                    My blog | My articles

                    M Offline
                    M Offline
                    Member 0xFFFFFFFF
                    wrote on last edited by
                    #9

                    You mean A.R.S.E.H.O.L.E., right? :laugh:

                    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