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. What every programmer should know about...

What every programmer should know about...

Scheduled Pinned Locked Moved The Lounge
csharpc++htmlcomtools
43 Posts 20 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 Christopher Duncan

    When I started coding, back in ancient times, it was more important to understand things like memory (what do you mean 64k segments???). Failure to do so would result in some long and interesting nights with your C debugger. Today, people equate programming with putting up a web page. When your primary tools are papyrus and ink, about the only thing you need to worry about is steering clear of the Pharaoh's daughter.

    Christopher Duncan www.PracticalUSA.com Author of The Career Programmer and Unite the Tribes Got a career question? Ask the Attack Chihuahua!

    R Offline
    R Offline
    Rama Krishna Vavilala
    wrote on last edited by
    #7

    Christopher Duncan wrote:

    people equate programming with putting up a web page

    You never miss an opportunity to take a jibe on Web development?:)

    J C J 3 Replies Last reply
    0
    • N Nemanja Trifunovic

      Granted, our profession would benefit from increase in standards, but this is simply not realistic: What every programmer should know about memory[^] What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

      Programming Blog utf8-cpp

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #8

      I'd rather people read that than that bloody Gang of Four bilge. Worryingly, people just by virtue of having 'read' it seem to consider themselves competant.

      Regards, Rob Philpott.

      N 1 Reply Last reply
      0
      • L Lost User

        Nemanja Trifunovic wrote:

        simply not realistic

        Wait.. what? IMO every programmer should have at least read those documents, and preferably understand most of it. And universities should encourage students to read these things.. You know most students think like "doubles are more precise so I should use them all the time"? And then of course they write code that throws away all the precision with subtraction and then compares the result for equality. And then they complain that doubles are broken. The lack of knowledge about computer memory is less apparent, but it can't be good.

        N Offline
        N Offline
        Nemanja Trifunovic
        wrote on last edited by
        #9

        harold aptroot wrote:

        IMO every programmer should have at least read those documents, and preferably understand most of it

        I am pleasantly surprised to see the attitude, but it is just never going to happen :)

        Programming Blog utf8-cpp

        L 1 Reply Last reply
        0
        • R Rob Philpott

          I'd rather people read that than that bloody Gang of Four bilge. Worryingly, people just by virtue of having 'read' it seem to consider themselves competant.

          Regards, Rob Philpott.

          N Offline
          N Offline
          Nemanja Trifunovic
          wrote on last edited by
          #10

          Rob Philpott wrote:

          I'd rather people read that than that bloody Gang of Four bilge

          Amen. The GoF stuff is IMHO harmful.

          Programming Blog utf8-cpp

          1 Reply Last reply
          0
          • N Nemanja Trifunovic

            Granted, our profession would benefit from increase in standards, but this is simply not realistic: What every programmer should know about memory[^] What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

            Programming Blog utf8-cpp

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #11

            There's a major difference between knowing something in and out, and being aware that there are potentially serious pitfalls and knowing when to consult a detailed reference. The former isn't overly realistic if if's something that you're not doing on a regular basis. Not knowing the latter is one of the common sources of wtfware code. Thanks for the memory article. I hadn't seen that one before, and will have to spend some quality time with it.

            It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains. -- Pride and Prejudice and Zombies

            1 Reply Last reply
            0
            • L Lost User

              They could still read them, reading is not hard.. Of course it's better if they understand it, but if they at least read those documents then even without understanding they should be more aware of possible pitfalls. Being aware of them is more important than knowing how exactly to avoid them - one could always look it up or ask someone else.

              D Offline
              D Offline
              dojohansen
              wrote on last edited by
              #12

              Did you even read them yourself? I suspect you did not. Or do you seriously think that every programmer needs to know the circuit diagram for a 6-transistor SRAM cell? Or the capacitor charge and discharge timing of DRAM cells? The entire first part (which is substantial) consists of hardware details that are utterly irrelevant to the vast majority of programmers. In fact, only those who write assembly code (or compilers - i.e. programs that write assembly code) could even potentially use detailed knowledge about the internal caching design of modern CPUs. Given how many programmers fail to grasp, not to mention make good use of, the fundamental concepts of OOP, I can think of a few things I'd recommend studying before this.

              L T S 3 Replies Last reply
              0
              • N Nemanja Trifunovic

                harold aptroot wrote:

                IMO every programmer should have at least read those documents, and preferably understand most of it

                I am pleasantly surprised to see the attitude, but it is just never going to happen :)

                Programming Blog utf8-cpp

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

                Nemanja Trifunovic wrote:

                but it is just never going to happen

                You're right of course, but it's not good :(

                1 Reply Last reply
                0
                • R Rama Krishna Vavilala

                  Christopher Duncan wrote:

                  people equate programming with putting up a web page

                  You never miss an opportunity to take a jibe on Web development?:)

                  J Offline
                  J Offline
                  Jim Crafton
                  wrote on last edited by
                  #14

                  Maybe because it's so epically full of failure? :)

                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                  R 1 Reply Last reply
                  0
                  • C Christopher Duncan

                    When I started coding, back in ancient times, it was more important to understand things like memory (what do you mean 64k segments???). Failure to do so would result in some long and interesting nights with your C debugger. Today, people equate programming with putting up a web page. When your primary tools are papyrus and ink, about the only thing you need to worry about is steering clear of the Pharaoh's daughter.

                    Christopher Duncan www.PracticalUSA.com Author of The Career Programmer and Unite the Tribes Got a career question? Ask the Attack Chihuahua!

                    J Offline
                    J Offline
                    Jim Crafton
                    wrote on last edited by
                    #15

                    Christopher Duncan wrote:

                    the only thing you need to worry about is steering clear of the Pharaoh's daughter.

                    Does Doug know about this yet? Someone should really let him know!

                    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                    1 Reply Last reply
                    0
                    • C Christopher Duncan

                      When I started coding, back in ancient times, it was more important to understand things like memory (what do you mean 64k segments???). Failure to do so would result in some long and interesting nights with your C debugger. Today, people equate programming with putting up a web page. When your primary tools are papyrus and ink, about the only thing you need to worry about is steering clear of the Pharaoh's daughter.

                      Christopher Duncan www.PracticalUSA.com Author of The Career Programmer and Unite the Tribes Got a career question? Ask the Attack Chihuahua!

                      D Offline
                      D Offline
                      dojohansen
                      wrote on last edited by
                      #16

                      Yeah, but the fact that programming is becoming easier is a good thing. Maybe not for programemrs' salaries, but for society as a whole... surely a good thing.

                      Steve EcholsS 1 Reply Last reply
                      0
                      • L Lost User

                        They could still read them, reading is not hard.. Of course it's better if they understand it, but if they at least read those documents then even without understanding they should be more aware of possible pitfalls. Being aware of them is more important than knowing how exactly to avoid them - one could always look it up or ask someone else.

                        J Offline
                        J Offline
                        jeffwask
                        wrote on last edited by
                        #17

                        Exactly, no one is saying memorize the circuit diagrams but understanding the concepts is enough. Just skim the parts that get a little thick...

                        1 Reply Last reply
                        0
                        • N Nemanja Trifunovic

                          Granted, our profession would benefit from increase in standards, but this is simply not realistic: What every programmer should know about memory[^] What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

                          Programming Blog utf8-cpp

                          S Offline
                          S Offline
                          Single Step Debugger
                          wrote on last edited by
                          #18

                          In my university there was a discipline called “Computer Architectures” which covered this subjects and a lot more in very deep basis. In fact this discipline was so hard that eventually some 10-15% of the students from my class failed to take this exam and had been suspended from the university.

                          The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                          1 Reply Last reply
                          0
                          • D dojohansen

                            Did you even read them yourself? I suspect you did not. Or do you seriously think that every programmer needs to know the circuit diagram for a 6-transistor SRAM cell? Or the capacitor charge and discharge timing of DRAM cells? The entire first part (which is substantial) consists of hardware details that are utterly irrelevant to the vast majority of programmers. In fact, only those who write assembly code (or compilers - i.e. programs that write assembly code) could even potentially use detailed knowledge about the internal caching design of modern CPUs. Given how many programmers fail to grasp, not to mention make good use of, the fundamental concepts of OOP, I can think of a few things I'd recommend studying before this.

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

                            dojohansen wrote:

                            Did you even read them yourself? I suspect you did not.

                            Of course I did.

                            dojohansen wrote:

                            Or do you seriously think that every programmer needs to know the circuit diagram for a 6-transistor SRAM cell? Or the capacitor charge and discharge timing of DRAM cells?

                            No, they don't need to remember it, but they should know that it works that way (not the exact diagram and figures)

                            dojohansen wrote:

                            could even potentially use detailed knowledge about the internal caching design of modern CPUs.

                            Cache trashing is far to easy to get, for example with naive large-matrix multiplication..

                            dojohansen wrote:

                            Given how many programmers fail to grasp, not to mention make good use of, the fundamental concepts of OOP, I can think of a few things I'd recommend studying before this.

                            That is definitely true.

                            D P 2 Replies Last reply
                            0
                            • N Nemanja Trifunovic

                              Granted, our profession would benefit from increase in standards, but this is simply not realistic: What every programmer should know about memory[^] What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

                              Programming Blog utf8-cpp

                              S Offline
                              S Offline
                              Saurabh Garg
                              wrote on last edited by
                              #20

                              I have never heard of the first article but I have read the second article. You should notice that it is not for programmers but for computer scientists. And IMHO it should not be a very difficult reading for any comptuer scientist worth his salt. -Saurabh

                              1 Reply Last reply
                              0
                              • D dojohansen

                                Did you even read them yourself? I suspect you did not. Or do you seriously think that every programmer needs to know the circuit diagram for a 6-transistor SRAM cell? Or the capacitor charge and discharge timing of DRAM cells? The entire first part (which is substantial) consists of hardware details that are utterly irrelevant to the vast majority of programmers. In fact, only those who write assembly code (or compilers - i.e. programs that write assembly code) could even potentially use detailed knowledge about the internal caching design of modern CPUs. Given how many programmers fail to grasp, not to mention make good use of, the fundamental concepts of OOP, I can think of a few things I'd recommend studying before this.

                                T Offline
                                T Offline
                                ToddHileHoffer
                                wrote on last edited by
                                #21

                                Well said.

                                I didn't get any requirements for the signature

                                1 Reply Last reply
                                0
                                • N Nemanja Trifunovic

                                  Granted, our profession would benefit from increase in standards, but this is simply not realistic: What every programmer should know about memory[^] What Every Computer Scientist Should Know About Floating-Point Arithmetic[^]

                                  Programming Blog utf8-cpp

                                  C Offline
                                  C Offline
                                  Chris Losinger
                                  wrote on last edited by
                                  #22

                                  Nemanja Trifunovic wrote:

                                  What every programmer should know about memory[^]

                                  does .Net have classes to handle capacitor discharge and DRAM column de-multiplexer control, or do i have to handle this in C++ ?

                                  image processing toolkits | batch image processing

                                  1 Reply Last reply
                                  0
                                  • L Lost User

                                    dojohansen wrote:

                                    Did you even read them yourself? I suspect you did not.

                                    Of course I did.

                                    dojohansen wrote:

                                    Or do you seriously think that every programmer needs to know the circuit diagram for a 6-transistor SRAM cell? Or the capacitor charge and discharge timing of DRAM cells?

                                    No, they don't need to remember it, but they should know that it works that way (not the exact diagram and figures)

                                    dojohansen wrote:

                                    could even potentially use detailed knowledge about the internal caching design of modern CPUs.

                                    Cache trashing is far to easy to get, for example with naive large-matrix multiplication..

                                    dojohansen wrote:

                                    Given how many programmers fail to grasp, not to mention make good use of, the fundamental concepts of OOP, I can think of a few things I'd recommend studying before this.

                                    That is definitely true.

                                    D Offline
                                    D Offline
                                    dojohansen
                                    wrote on last edited by
                                    #23

                                    harold aptroot wrote:

                                    No, they don't need to remember it, but they should know that it works that way (not the exact diagram and figures)

                                    Why? Why should programmers have to even know that memory is implemented in transistors? I'm sure the article contains a lot of stuff that is of great use to some programmers. But like the OP, I take issue with the sweeping generalization that every programmer needs to know this. Perhaps I'm too generous in my usage of the term, but based on my sampling of code project articles I should think there are quite a few people out there who consider themselves programmers yet wouldn't know what a NorthBridge is. Personally, I think it is in many cases far better for the compiler to worry about hardware optimizations and for the programmers to worry about maintainable, reuseable code, extensibility, economy, useability, testability, and so on. Again, the priorities are not the same for ALL programmers, but I'd say that the majority of us need not and indeed should not assume anything about the CPU caching or other hardware implementation details when coding.

                                    L 1 Reply Last reply
                                    0
                                    • D dojohansen

                                      Yeah, but the fact that programming is becoming easier is a good thing. Maybe not for programemrs' salaries, but for society as a whole... surely a good thing.

                                      Steve EcholsS Offline
                                      Steve EcholsS Offline
                                      Steve Echols
                                      wrote on last edited by
                                      #24

                                      No, it's not a good thing. VB made programming easier, and it made a lot of people think they were programmers, which gave the programming profession as a whole a black eye. IMHO. Take a look at the questions being asked in the forums, and you'll see what making programming easier leads to. :)


                                      - S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.

                                      • S
                                        50 cups of coffee and you know it's on!
                                        Code, follow, or get out of the way.
                                      D 1 Reply Last reply
                                      0
                                      • D dojohansen

                                        harold aptroot wrote:

                                        No, they don't need to remember it, but they should know that it works that way (not the exact diagram and figures)

                                        Why? Why should programmers have to even know that memory is implemented in transistors? I'm sure the article contains a lot of stuff that is of great use to some programmers. But like the OP, I take issue with the sweeping generalization that every programmer needs to know this. Perhaps I'm too generous in my usage of the term, but based on my sampling of code project articles I should think there are quite a few people out there who consider themselves programmers yet wouldn't know what a NorthBridge is. Personally, I think it is in many cases far better for the compiler to worry about hardware optimizations and for the programmers to worry about maintainable, reuseable code, extensibility, economy, useability, testability, and so on. Again, the priorities are not the same for ALL programmers, but I'd say that the majority of us need not and indeed should not assume anything about the CPU caching or other hardware implementation details when coding.

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

                                        Have you ever noticed how the "programmers" who don't know how a computer even works are generally completely clueless when it comes to optimization? And don't tell me that optimization is not important, especially caching optimizations are getting more important by the day due to the growing speed gap between RAM and processors. Other optimizations are still relevant in games and other high-performance software.

                                        D 1 Reply Last reply
                                        0
                                        • L Lost User

                                          dojohansen wrote:

                                          Did you even read them yourself? I suspect you did not.

                                          Of course I did.

                                          dojohansen wrote:

                                          Or do you seriously think that every programmer needs to know the circuit diagram for a 6-transistor SRAM cell? Or the capacitor charge and discharge timing of DRAM cells?

                                          No, they don't need to remember it, but they should know that it works that way (not the exact diagram and figures)

                                          dojohansen wrote:

                                          could even potentially use detailed knowledge about the internal caching design of modern CPUs.

                                          Cache trashing is far to easy to get, for example with naive large-matrix multiplication..

                                          dojohansen wrote:

                                          Given how many programmers fail to grasp, not to mention make good use of, the fundamental concepts of OOP, I can think of a few things I'd recommend studying before this.

                                          That is definitely true.

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

                                          I'm with you. Given a programmer who doesn't understand these subjects, even if he reads the articles and still doesn't understand them, he is better off than before he read them; now he knows he doesn't understand them. This is part of why I firmly believe that a formal education is required; the students will (should) be exposed to a lot of such information that they won't find on their own or in "Learn C# in 21 days". I also agree that not everyone should be able to give a class on such topics at the drop of a hat.

                                          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