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. The Lounge
  3. Insider Article

Insider Article

Scheduled Pinned Locked Moved The Lounge
csharphtmlasp-netcomsysadmin
12 Posts 11 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

    N P T P D 10 Replies Last reply
    0
    • L Lost User

      Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

      N Offline
      N Offline
      Nickolay Karnaukhov
      wrote on last edited by
      #2

      Yepp... Security is more important than "pseudo perfomance optimization"... You can cover perfomance costs by adding some not really expecive hardvare but in case of real problems with security you will need to spend lot more money...

      ------------------------------------------------------------ Want to be happy - do what you like!

      1 Reply Last reply
      0
      • L Lost User

        Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

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

        Yup. Bad tip. Just don't do it, kids!

        regards, Paul Watson Ireland & South Africa

        Shog9 wrote:

        And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...

        1 Reply Last reply
        0
        • L Lost User

          Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

          T Offline
          T Offline
          to_be_defined
          wrote on last edited by
          #4

          It's incompetent advice. Client side validations aren't reliable, their only point is saving the user the time it takes to make the trip to the server to validate and displaying the page with the errors. If javascript is disabled or blocked, bye-bye "validations". Not validating on the server is a newbie mistake that invites all sort of exploits and errors.

          1 Reply Last reply
          0
          • L Lost User

            Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

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

            Oh that's right. Just validate on the client side. But wait. Who's that? Cross Site Scripting Man, coming to inject malicious values into your database because you switched the server side validation off.

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

            1 Reply Last reply
            0
            • L Lost User

              Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

              D Offline
              D Offline
              DavidNohejl
              wrote on last edited by
              #6

              clickety![^] It could be good advice, but badly worded. Correct would be something like: Try to catch invalid input on client side, so you can avoid (expensive) postback and server side validation, when you already know it's invalid. (But always have server side validation in place.)


              [My Blog]
              "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - RĂ¼diger Klaehn
              "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

              1 Reply Last reply
              0
              • L Lost User

                Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

                O Offline
                O Offline
                originSH
                wrote on last edited by
                #7

                Yep, never trust incoming data, even if it's supposedly already been validated. Yes it costs a few extra cycles to validate again but thats better than having the app go down, or even worse having the security comprimised.

                1 Reply Last reply
                0
                • L Lost User

                  Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

                  A Offline
                  A Offline
                  Andy Brummer
                  wrote on last edited by
                  #8

                  That's a bad article just about all around. 1. Test your applications performance. 2. Understand what the expected peak load for you application will be in requests/sec. 3. If you need your page to perform the difference between fast enough and appears instantaneous on your development system can be huge. Anything under a couple of hundred milliseconds appears instantaneous, but you might need to get it down to 20 Follow those 3 rules and optimize performance where you need to, and write for maintainability in all other cases.


                  This blanket smells like ham

                  D 1 Reply Last reply
                  0
                  • A Andy Brummer

                    That's a bad article just about all around. 1. Test your applications performance. 2. Understand what the expected peak load for you application will be in requests/sec. 3. If you need your page to perform the difference between fast enough and appears instantaneous on your development system can be huge. Anything under a couple of hundred milliseconds appears instantaneous, but you might need to get it down to 20 Follow those 3 rules and optimize performance where you need to, and write for maintainability in all other cases.


                    This blanket smells like ham

                    D Offline
                    D Offline
                    DavidNohejl
                    wrote on last edited by
                    #9

                    5

                    Andy Brummer wrote:

                    That's a bad article just about all around.

                    Well, duh. It's on "Software Development in the Real World". Ya know how real world software development[^] sometimes is :) ps.: you know you are paranoid when you hit ctrl+s after finishing sentence in the freaking browser text area :wtf::-O


                    [My Blog]
                    "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - RĂ¼diger Klaehn
                    "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

                    1 Reply Last reply
                    0
                    • L Lost User

                      Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

                      L Offline
                      L Offline
                      Le centriste
                      wrote on last edited by
                      #10

                      Wow, this is really stupid.

                      ----- If atheism is a religion, then not collecting stamps is a hobby. -- Unknown God is the only being who, to rule, does not need to exist. -- Charles Baudelaire

                      1 Reply Last reply
                      0
                      • L Lost User

                        Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

                        E Offline
                        E Offline
                        Ennis Ray Lynch Jr
                        wrote on last edited by
                        #11

                        Requires use of the other security validation methods built into the .NET framework. After a certain point there is not much you can do. Declarative security and good object orientation can remove a lot of the security risk. Having been at a lot of ASP.NET shops I can say that most likely with the code you have been exposed to it is a massive risk. However, performance and maintainability both come from proper planning.


                        Need a C# Consultant? I'm available.
                        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                        1 Reply Last reply
                        0
                        • L Lost User

                          Hey Just reading an article from the insider letter about how to improve ASP.NET performance and it quotes this: Avoid Server-Side Validation Try to avoid server-side validation, use client-side instead. Server-Side will just consume valuable resources on your servers, and cause more chat back and forth. (link to the full article http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html) Ok this will improve performance but surely the cost of a performance hit is worth the security. Does any one else think this is a daft trade or is it only me? Dan

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #12

                          Two-tier validation, again? On the server side, protect the server. Developer-focused diagnostics are more important here than user friendly error messages. On the client, help the user enter valid data. This often requires more detailed analysis of the input, and must be tailored to the front end.


                          We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                          My first real C# project | Linkify!|FoldWithUs! | sighist

                          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