www.webdeveloper.com
Results 1 to 5 of 5

Thread: Eschew Obfuscation!

  1. #1
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120

    Eschew Obfuscation!

    Hey all,

    I've composed a brief list of general sub-rules for one of the most important rules in computer science--really almost any field: eschew obfuscation!

    Take a look, if you don't mind. I'd be interested in your feedback--whether you disagree strongly with a point, want to see a point added, or even if you just want me to correct a typo ...

    Thanks.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    Spot the type in this paragraph

    Good article, overall. I like it.

    Don't use a wheel for its bolts.
    Including a library for one, two, or even a small handful of its features is often a horrendous waste of bandwidth and efficiency hit. Don NOT use JQuery solely—or even mostly—for the ability to select nodes by ID using the $ function. Use the methods that the DOM already provides or write your own $ function that does precisely and only what it needs to do.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  3. #3
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    Ah ... Thanks!
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  4. #4
    Join Date
    Aug 2006
    Posts
    1,918
    Always a fun topic, I like the writeup. But I will play devil's advocate on two of your points:

    Normalize your data: While I agree in general with normalization of a data model, it is in tension with application speed. If one took you literally on this point, one would be putting speed lower in priority than maintainability, memory usage, and whatever other positives you might state for normalization. In some cases though, speed happens to be more important than those things, and in those cases I'd say normalization is the wrong thing to do.

    Don't use a wheel for its bolts: Possibly your point is within the scope of interpreted web applications only here. If I want *only* the cos function, in a C application, I will include the *entire* math library, just to get that one function. I believe that's the correct way to do it, and the compiler and linker will sort out your concerns of having incorporated too much extra library code.

    Dave

  5. #5
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    Good points. They probably deserve the addition of a disclaimer or qualification--or at least an addendum to the existing "grain of salt" disclaimer.

    I'll think about that. Thanks.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles