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. How sophisticated is your code?

How sophisticated is your code?

Scheduled Pinned Locked Moved The Lounge
csharpasp-netquestioncareer
60 Posts 39 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.
  • N Not Active

    I was on an interview yesterday and this was one of the questions I was asked by the Asst VP of IT. :wtf: How do you answer? Compared to what? or Very sophisticated, probably more than your people would understand. I was also asked by a project manager how I have used ASP.NET to code websites. Well, I haven't. ASP.NET is a technology, I have used the language C# to implement this technology.


    only two letters away from being an asset

    S Offline
    S Offline
    Steve Mayfield
    wrote on last edited by
    #34

    if my code was a person, it would be "Bond, James Bond"... :cool: Steve

    G 1 Reply Last reply
    0
    • S Stan Shannon

      Marc Clifton wrote:

      one of my clients told me that they were rewriting significant portions of the application because it needed to be dumbed down so inhouse people could understand it.

      I've found that any attempt to employ programming methods beyond CS101 is a waste of time because it will always be considered "too complex" by someone. The problem, as I always try to explain, is that the architecture of the code should always be complex enough to properly manage the inherent complexity of the application over its lifetime. Otherwise, poorly architected code, regardless of how simple it might seem initially, will invariably increase in complexity over time as changes are made and bugs fixed until it is finally completely unmanageable. But that usually just produces blank stares. To most people, a line of code is a line of code and nothing else, its relationship to all the other lines of code is utterly meaningless.

      Modern liberalism has never achieved anything other than giving Secularists something to feel morally superior about

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #35

      Man, you need to get out of the SB more. ;P Honestly, the few times I've seen you post something in the Lounge, it's something very good. :) I don't visit the SB these days anyway...

      Cheers, Vıkram.


      After all is said and done, much is said and little is done.

      1 Reply Last reply
      0
      • S Stan Shannon

        Marc Clifton wrote:

        one of my clients told me that they were rewriting significant portions of the application because it needed to be dumbed down so inhouse people could understand it.

        I've found that any attempt to employ programming methods beyond CS101 is a waste of time because it will always be considered "too complex" by someone. The problem, as I always try to explain, is that the architecture of the code should always be complex enough to properly manage the inherent complexity of the application over its lifetime. Otherwise, poorly architected code, regardless of how simple it might seem initially, will invariably increase in complexity over time as changes are made and bugs fixed until it is finally completely unmanageable. But that usually just produces blank stares. To most people, a line of code is a line of code and nothing else, its relationship to all the other lines of code is utterly meaningless.

        Modern liberalism has never achieved anything other than giving Secularists something to feel morally superior about

        D Offline
        D Offline
        DJ van Wyk
        wrote on last edited by
        #36

        Stan Shannon wrote:

        I've found that any attempt to employ programming methods beyond CS101 is a waste of time because it will always be considered "too complex" by someone.

        At my company I was asked to rewrite my ASP.Net application in VB, due to the fact that no-one else can understand C#.:confused: I thought the reason they employed me was to teach them how to use more "advanced" technology.

        J T 2 Replies Last reply
        0
        • S Stan Shannon

          Marc Clifton wrote:

          one of my clients told me that they were rewriting significant portions of the application because it needed to be dumbed down so inhouse people could understand it.

          I've found that any attempt to employ programming methods beyond CS101 is a waste of time because it will always be considered "too complex" by someone. The problem, as I always try to explain, is that the architecture of the code should always be complex enough to properly manage the inherent complexity of the application over its lifetime. Otherwise, poorly architected code, regardless of how simple it might seem initially, will invariably increase in complexity over time as changes are made and bugs fixed until it is finally completely unmanageable. But that usually just produces blank stares. To most people, a line of code is a line of code and nothing else, its relationship to all the other lines of code is utterly meaningless.

          Modern liberalism has never achieved anything other than giving Secularists something to feel morally superior about

          J Offline
          J Offline
          Jecc
          wrote on last edited by
          #37

          Stan Shannon wrote:

          The problem, as I always try to explain, is that the architecture of the code should always be complex enough to properly manage the inherent complexity of the application over its lifetime. Otherwise, poorly architected code, regardless of how simple it might seem initially, will invariably increase in complexity over time as changes are made and bugs fixed until it is finally completely unmanageable. But that usually just produces blank stares. To most people, a line of code is a line of code and nothing else, its relationship to all the other lines of code is utterly meaningless. Modern liberalism has never achieved anything other than giving Secularists something to feel morally superior about

          Argh! So much text! It's too complex for me to read! ;P But seriously, I couldn't express myself better than you did.

          1 Reply Last reply
          0
          • M Marc Clifton

            Stan Shannon wrote:

            The problem, as I always try to explain, is that the architecture of the code should always be complex enough to properly manage the inherent complexity of the application over its lifetime. Otherwise, poorly architected code, regardless of how simple it might seem initially, will invariably increase in complexity over time as changes are made and bugs fixed until it is finally completely unmanageable.

            I'm going to add an entry in my blog, quoting you. That's got to be the best way of stating the problem that I've ever come across. Marc

            Thyme In The Country
            Interacx
            My Blog

            S Offline
            S Offline
            Stan Shannon
            wrote on last edited by
            #38

            Marc Clifton wrote:

            I'm going to add an entry in my blog, quoting you.

            For all the good it will do. I am convinced that there will always be a controlling faction of the commercial software industry which simply refuses to allow software to be developed by grownups - it would just be such an expensive waste of time and all. -- modified at 7:15 Monday 11th June, 2007

            1 Reply Last reply
            0
            • S Steve Mayfield

              if my code was a person, it would be "Bond, James Bond"... :cool: Steve

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #39

              The whole 'license to kill' thing is a bit of a problem, however.


              Software Zen: delete this;

              1 Reply Last reply
              0
              • D DJ van Wyk

                Stan Shannon wrote:

                I've found that any attempt to employ programming methods beyond CS101 is a waste of time because it will always be considered "too complex" by someone.

                At my company I was asked to rewrite my ASP.Net application in VB, due to the fact that no-one else can understand C#.:confused: I thought the reason they employed me was to teach them how to use more "advanced" technology.

                J Offline
                J Offline
                jps330
                wrote on last edited by
                #40

                Despite knowing how to code VB, does anyone else find it a very difficult language to be able to read efficiently? It might be just my C roots that push me toward C#, but I guess sometimes you have to "speak the language of the land".

                D M 2 Replies Last reply
                0
                • E El Corazon

                  Mark Nischalke wrote:

                  How sophisticated is your code

                  My answer would be: My code is generally readable, so simple in conceptual application, but sophisticated in invention. Multiple times has industry scrambled to find out how I did something. The most recent of which: Boeing introduced a request for a 5 million dollar contract to do an alternative to augmented reality in field operations since "the technology was not existant for a true out-of-lab software solution..." the same week we made the announcement at a Virginia presentation that we had taken augmented reality out of the lab and into the field and not as a prototype, but as a full operational and tested system. Sophistication in "new" designs: sophistication in creative solutions, sophistication in invention and R&D, but simple in overall design and application such that it is easy to understand how I did it once someone gets the code.

                  _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #41

                  I like your answer. Great answer - if you don't understand the question, give them an answer that will make them think before they can understand it. Funny, inventive, intelligent and just plain sophisticated.

                  Crjangel

                  1 Reply Last reply
                  0
                  • J jps330

                    Despite knowing how to code VB, does anyone else find it a very difficult language to be able to read efficiently? It might be just my C roots that push me toward C#, but I guess sometimes you have to "speak the language of the land".

                    D Offline
                    D Offline
                    DJ van Wyk
                    wrote on last edited by
                    #42

                    jps330 wrote:

                    I guess sometimes you have to "speak the language of the land"

                    My problem with this is that I can write a better, faster system with C than in VB in shorter time that it would have taken to do it in VB. The argument that my company gave me is as follows : "If you leave, nobody will be able to support the system". As far as I know I am not the only person in the world that can code in C. Why should I write a crappy slow system, just so that my replacement can understand it?

                    J 1 Reply Last reply
                    0
                    • N Not Active

                      I was on an interview yesterday and this was one of the questions I was asked by the Asst VP of IT. :wtf: How do you answer? Compared to what? or Very sophisticated, probably more than your people would understand. I was also asked by a project manager how I have used ASP.NET to code websites. Well, I haven't. ASP.NET is a technology, I have used the language C# to implement this technology.


                      only two letters away from being an asset

                      M Offline
                      M Offline
                      MrPlankton
                      wrote on last edited by
                      #43

                      Stand up. Find the door. Respond... "AMF sir" Leave.

                      MrPlankton

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        Mark Nischalke wrote:

                        probably more than your people would understand.

                        Aye, there be the truth of it. I would honestly have to answer, that one of my clients told me that they were rewriting significant portions of the application because it needed to be dumbed down so inhouse people could understand it. The lessons learned from that experience are vast and deep. There certainly isn't anyone to blame, per se, but it revealed a variety of deficiencies dealing with motivation, education, documentation, and communication. Pretty much all the things we try to ignore. :sigh: Marc

                        Thyme In The Country
                        Interacx
                        My Blog

                        M Offline
                        M Offline
                        MrPlankton
                        wrote on last edited by
                        #44

                        Funny. I find the same response when ever one of my customers find that thier contract programmer used regex. "What are those funky symbols and what do they mean". Oh my goodness we are doomed.

                        MrPlankton

                        1 Reply Last reply
                        0
                        • J jps330

                          Despite knowing how to code VB, does anyone else find it a very difficult language to be able to read efficiently? It might be just my C roots that push me toward C#, but I guess sometimes you have to "speak the language of the land".

                          M Offline
                          M Offline
                          MrPlankton
                          wrote on last edited by
                          #45

                          No differance between vb and c# in capability... Until you go to computerjobs.com. Then you find 15k premium for c# programmers. Now every project is a c# project.

                          MrPlankton

                          S 1 Reply Last reply
                          0
                          • D DJ van Wyk

                            Stan Shannon wrote:

                            I've found that any attempt to employ programming methods beyond CS101 is a waste of time because it will always be considered "too complex" by someone.

                            At my company I was asked to rewrite my ASP.Net application in VB, due to the fact that no-one else can understand C#.:confused: I thought the reason they employed me was to teach them how to use more "advanced" technology.

                            T Offline
                            T Offline
                            tsdragon
                            wrote on last edited by
                            #46

                            I am so fortunate to work in a very small shop where my boss actually likes it when I use some new tool or technique that he doesn't know. It gives him an opportunity to learn something new too.

                            Meddle not in the affairs of dragons, For you are crunchy, and good with mustard.

                            1 Reply Last reply
                            0
                            • N Not Active

                              I was on an interview yesterday and this was one of the questions I was asked by the Asst VP of IT. :wtf: How do you answer? Compared to what? or Very sophisticated, probably more than your people would understand. I was also asked by a project manager how I have used ASP.NET to code websites. Well, I haven't. ASP.NET is a technology, I have used the language C# to implement this technology.


                              only two letters away from being an asset

                              B Offline
                              B Offline
                              bartedgerton
                              wrote on last edited by
                              #47

                              My applications always seem to start out simple enough, depending on the complexity of the app. It's all of the stuff you have to do to "idiot-proof" it that makes it become more complex. It always seems like a lot is overlooked during the analysis phase that is discovered later in QA. Then, there's the code comments and documentation, which, in an effort to explain code, can make it more confusing. Which is less complex?: // Items to display on each page (1 to 50) $maxitems = 20; or // This is how many items will be displayed on each page // It has to be at least 1 // It can't be more than 50 // Don't change the name of the variable!!! $maxitems = 20; // Fix maxitems // DO NOT MAKE ANY CHANGES BELOW THIS LINE!!! function checkmaxitems() { if (isset($maxitems)) { if ($maxitems < 1) maxitems = 1; if ($maxitems > 50) maxitems = 50; } else { $maxitems = 20; } }

                              1 Reply Last reply
                              0
                              • N Not Active

                                Stan Shannon wrote:

                                code should always be complex enough to properly manage the inherent complexity of the application over its lifetime

                                "Everything should be made as simple as possible, but not simpler." Albert Einstein The architecture should not be complex from the beginning. It should represent a complex solution to a problem domain in the simplest, and easiest understood way. The code that implements the architecture should likewise be simple, easy to understand and maintain, yet complete the complext tasks that make up the solution.


                                only two letters away from being an asset

                                S Offline
                                S Offline
                                Stan Shannon
                                wrote on last edited by
                                #48

                                I think the only true measure of well designed software is an architecture that does not become more complex over time. It is designed well enough that it can be maintained and modified with no significant change to the original architecture. That could well mean starting off with a higher level of complexity than might ultimately be needed. But that is better than starting off with an underdesigned architecture and tweaking it until it begins to grow exponentially more complex in an out of control fashion.

                                W 1 Reply Last reply
                                0
                                • N Not Active

                                  I was on an interview yesterday and this was one of the questions I was asked by the Asst VP of IT. :wtf: How do you answer? Compared to what? or Very sophisticated, probably more than your people would understand. I was also asked by a project manager how I have used ASP.NET to code websites. Well, I haven't. ASP.NET is a technology, I have used the language C# to implement this technology.


                                  only two letters away from being an asset

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #49

                                  Mark Nischalke wrote:

                                  How do you answer?

                                  "It gets drunk every Friday night, and thrashes the crap out of the processor".

                                  1 Reply Last reply
                                  0
                                  • N Not Active

                                    I was on an interview yesterday and this was one of the questions I was asked by the Asst VP of IT. :wtf: How do you answer? Compared to what? or Very sophisticated, probably more than your people would understand. I was also asked by a project manager how I have used ASP.NET to code websites. Well, I haven't. ASP.NET is a technology, I have used the language C# to implement this technology.


                                    only two letters away from being an asset

                                    J Offline
                                    J Offline
                                    Jasmine2501
                                    wrote on last edited by
                                    #50

                                    You actually said that and they didn't throw you out of the office, with prejudice? It's a stupid question, but you don't insult their intelligence like that if you want to get the job. My experience with hackers who think that the legacy system is all wrong and want to re-write everything, is that they don't have the ability to understand code written by anyone else, and they don't really know why they made that assessment, the code seems all wrong to them because they can't read code. The other issue you hinted at is an assumption that you are smarter than a bunch of people you have never met... how do you know what their people would understand? Is it remotely possible that they are Einsteins compared to you? And the statement "I write code that other people can't understand" is a huge red flag. Pointing out a technicality in an interview question when it's obvious what they were asking, just makes you come across as an arrogant ass. This is different from recognizing a technical issue in a trick question. "Have you used ASP.Net to code web sites?" is a perfectly valid question, in common English, and I really hope you didn't say that. I would ask for clarification of the term 'sophisticated' but I wouldn't come back with a response that makes the person feel like it's a dumb question. I hope you didn't actually say any of those things.

                                    "Quality Software since 1983!"
                                    http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

                                    1 Reply Last reply
                                    0
                                    • D DJ van Wyk

                                      jps330 wrote:

                                      I guess sometimes you have to "speak the language of the land"

                                      My problem with this is that I can write a better, faster system with C than in VB in shorter time that it would have taken to do it in VB. The argument that my company gave me is as follows : "If you leave, nobody will be able to support the system". As far as I know I am not the only person in the world that can code in C. Why should I write a crappy slow system, just so that my replacement can understand it?

                                      J Offline
                                      J Offline
                                      Jasmine2501
                                      wrote on last edited by
                                      #51

                                      What? Something is wrong there. VB sucks and it's totally unreadable, but I don't care what you're doing... it's ALWAYS faster than coding in C... if you know VB. When I first tried it, VB drove me nuts and it was slow to code, but that was my problem and I think you just need more practice with it. Performance issues I can understand, but come on... VB is waaay faster to write. I would rather work in C too, but speed of coding isn't why. And the answer to your last question is "so that your replacement can understand it" - I want to live forever too, but I'm not placing bets on it.

                                      "Quality Software since 1983!"
                                      http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

                                      D 1 Reply Last reply
                                      0
                                      • N Not Active

                                        I was on an interview yesterday and this was one of the questions I was asked by the Asst VP of IT. :wtf: How do you answer? Compared to what? or Very sophisticated, probably more than your people would understand. I was also asked by a project manager how I have used ASP.NET to code websites. Well, I haven't. ASP.NET is a technology, I have used the language C# to implement this technology.


                                        only two letters away from being an asset

                                        E Offline
                                        E Offline
                                        Eric Georgiades
                                        wrote on last edited by
                                        #52

                                        i was once asked to break down my code into a flowchart displaying every loop and accordingly every single line of code. then again, such an act is impossible and an utter waste of time, for any program that does more than file > close. i guess some people still remember Pascal and logical diagrams :P

                                        me, myself and my blog - loadx.org ericos g.

                                        1 Reply Last reply
                                        0
                                        • M MrPlankton

                                          No differance between vb and c# in capability... Until you go to computerjobs.com. Then you find 15k premium for c# programmers. Now every project is a c# project.

                                          MrPlankton

                                          S Offline
                                          S Offline
                                          srsabu
                                          wrote on last edited by
                                          #53

                                          MrPlankton wrote:

                                          No differance between vb and c# in capability...

                                          Not true, actually. There are some parts of the underlying IL that are exposed differently by VB.NET and C#. Try overriding an inherited interface implementation in VB.NET. It won't allow you to do that. Try it in C# and it works just fine. Of course, some would argue that you shouldn't ever do that in practice, but that is another discussion.

                                          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