The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

New hacker term: Frankenware by SnappingTurtle2004-09-22 10:28:23
  Hmm... refined: by Scirocco2004-09-22 10:30:30
    Hmm... (2) by karaken122004-09-22 10:45:35
      and how about by dennismv 2004-09-22 11:34:26
writing code that can be and is Mathematically and Algorithmically proven to be correct and efficient ?
And how about using strong typing, encapsulation, and good error-checking ?

For every function/method/procedure, no matter how small, clearly define what input it will accept, and what output it will give. If anything else is encountered, it should give a clearly written descriptive error message at what went wrong and where.

Code like this may not be the most efficient, but it can get pretty close. (as in it's best to use functions and clearly defined code/module blocks rather than code everything straight through. a la spaghetti code). Even though spaghetti code may run just a tiniest bit faster, as there is no function overhead, using functions will give you a lot more benefits, like clear separation of tasks. Also, document your code !
[ Reply ]
        That's not spaghetti code! by Avium2004-09-22 13:19:15
          straight-through coding by dennismv2004-09-22 14:37:40
            It depends on whether you use -fomit-frame-pointer by bwkaz2004-09-22 15:45:05
              wow by dennismv2004-09-22 17:43:05
              One major downside to that. by Avium2004-09-22 19:24:29
        Strong Typing Is Evil. Witness LISP. :-P (n/t) by bwkaz2004-09-22 15:46:39

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)