Thread: memory

  1. #1
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926

    memory

    You think that in 20 years that good programming practices considered today will be used. There will be so much memory; some people say that it is safe to not check the malloc and see if there is enought memory. Also they say make the source look good. I have seen some poorly written code to make it look good. Do you think that computers will keep getting faster, and the programming practices will get worse at taught. I will always try to write the most efficient code(most people here would). But if the practices get worse and we aren't taking advantage of the new computing speed, why even try to have faster computers; just program the same.

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    85
    Hopefully people getting into the field are doing it because they love computers and love trying to improve them. I'm sure that there will be less concern about how much memory is being used, but that shouldn't stop people from doing simple error checking.

    As for good looking source code, I think that the most important thing is source code that works well and is readable (comments!). Anyways, I don't really have much perspective to go on since I haven't been programming for nearly as long as some people here. I'm interested in hearing what you all have to say.

  3. #3
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    sadly enough most compies say screw commenting and documentaion, as long as it works.

  4. #4
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Yeah, I think that despite the best intentions of us programmers, our bosses will still force us to release code before it is fully optimized and secure.

    One more thing:
    "Memory / All alone in the moonlight / I can smile at the old days..."
    Sorry, I couldn't help myself
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    85
    Well.. then.. There's only one solution: overthrow the bosses!!

  6. #6
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Originally posted by scrappy
    Well.. then.. There's only one solution: overthrow the bosses!!
    That's a good one!

    I rarely get to fully comment a project that I'm working on. Hell, I barely ever get time to fully debug the thing before I release it.. which leads to requests from other engineers for fixes.

    I am trying to comment more on the fly tho... if I'm sitting here thinking about how to do something, I try to comment during that time. Since commenting is usually mindless work, I can do that and ponder an algorithm at the same time.

    And I've automated a lot of my error checking, so I can throw that in at the click of a button most times.

  7. #7
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Originally posted by scrappy
    Well.. then.. There's only one solution: overthrow the bosses!!
    WORKERS OF THE WORLD UNITE! YOU HAVE NOTHING TO LOSE BUT YOUR CHAINS!!
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  8. #8
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Originally posted by joshdick
    WORKERS OF THE WORLD UNITE! YOU HAVE NOTHING TO LOSE BUT YOUR CHAINS!!
    ... said the boy still in college.

  9. #9
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Originally posted by ober
    ... said the boy still in college.
    LOL.

    But utopian ideals I learn in college always work in the real world, right?
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  10. #10
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    umm... sure.

    BTW, have you heard the new report? Brain cells regenerate.

    DRINK UP!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 01-13-2008, 02:14 AM
  2. Question regarding Memory Leak
    By clegs in forum C++ Programming
    Replies: 29
    Last Post: 12-07-2007, 01:57 AM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  4. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 02:15 AM
  5. What's the best memory (RAM) type?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 12-15-2001, 12:37 AM