Slashdot Mirror


User: Tablizer

Tablizer's activity in the archive.

Stories
0
Comments
29,100
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 29,100

  1. Spooky action at a distance is only spooky if one assumes distance is real and not an emergent property of a projected/holographic universe. In the same way in a computer simulation/game...

    Perhaps the entire Universe runs on Hillary's home server. No wonder the 'ghazi committee is so determined.

  2. How Laws Are Written (Re:There you go...) on Former Governor On Holding the Department of Energy Accountable In Idaho (thebulletin.org) · · Score: 1

    They were ALL told to do that because they had no email backup server. The IT chief said so.

    And as the law is written, it does NOT say the archiving has to be fail-proof. Even paper copies get eaten by rats or soiled by plumbing leaks.

    Laws rarely define such contingencies. They are written by lawyers and politicians, NOT disaster recovery or prevention experts.

    Adding such details into law could really bloat them up, and Republicans seem to repeatedly complain about the size of laws.

    GOP wants contradictory things because they are not logical. (True, few politicians are.)

  3. Re:Lessons on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    As I mentioned nearby, many languages don't support any money-friendly types.

    Using integers or self-rolled "number string" libraries carry their own risks, both machine and human.

    I've used Double before many times for money without problems. The trick is to round the values to 2 decimals before and after every multiplication or division, and before saving.

    Or to keep it simple: "round all values before and after any math".

    One can make four wrapper functions: add_dollar(), subtract_dollar(), multiply_dollar(), and divide_dollar(). Example:

    function multiply_dollar(d1, d2) {
      places = 2;
      r1 = round(d1, places);
      r2 = round(d2, places);
      result = r1 * r2;
      result = round(result, places);
      return(result);
    }

  4. Re:Bad Habits? on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    I see such for assembly being somewhat of a help because assembly op-codes are usually cryptic. But anybody qualified to alter the code should learn the op-codes anyhow.

    It does underscore the point though that the existence of comments/documentation and the usefulness of comments/documentation can be two very different things.

  5. Re:Bad Habits? on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    I bet the contract required that every subroutine be commented, but said nothing of quality of comments.

    Some PHB probably noticed this AFTER the code was written and took advantage of the poor contract wording, telling somebody to write an automated commenter.

  6. Re:You're the problem on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    so who's going to come up with George and Ringo to make up the full set?

    A bunch of code Monkees

  7. Size it based on analysis, not ritual on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    "Coupling" is a vague concept, I have found out. Specific "types" of coupling could be called code patterns, but coupling as a general concept is vague (as currently described by authors).

    As far as function/method size, in my opinion "it depends". If it's quite short or quite long, at least pause to ask "why" and consider alternatives. But don't force every one to be 20 lines out of some ritual habit.

    My "best" shorter methods tend to be called many times. They often consolidate commonly-found domain idioms into a simpler concept.

  8. Wrong things improved on Tomorrow Is 'Back To the Future' Day (cnn.com) · · Score: 2

    We still don't have #&@!% flying cars, but we do have nifty tablets to read USA Today on, unlike the flick's paper version.

    Hover-boards? Well, kind of, if you count big and noisy. 3D pop-out sharks? Well, kind of, if you are at the right spot (although automated eye position tracking is improving).

  9. -22 on Intel Develops Linux 'Software GPU' That's ~29-51x Faster (phoronix.com) · · Score: 2, Funny

    I did the math, and got -22x faster. I'll pass on it, Thank You.

  10. Re:You're the problem on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    There's a lot of code that needs comments like "fixes bug XXX".

    I don't know how many times I've written comments similar to:

    // Works around a bug in Microsoft X version Y.
    // I have no idea why this "fixes" it,
    // It just does.

  11. Re:Lessons on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    One is weighing the cost of slower code reading against naming collision risk here. The slower reading is a constant but small "tax", while the name collision is a relatively rare but notable event when it does occur. I'm not convinced the average longer run cost of name collisions is greater than the average longer run reading "tax".

    Perhaps a compromise is order: dh_vndr_id or dhous_vndr_id.

    Maybe your shop's language or coding style increases the risk of name collisions more than average. If you have a large code base, you probably want context, name-space, and/or class qualifiers anyhow.

  12. Re:Lessons on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    Many languages don't offer money-friendly types. If one is careful about rounding at the right time, one can live with Double for smaller amounts.

  13. Re:Lessons on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 2

    I meant real newspapers, not tabloids :-)

    (Do they still make those?)

    get_off_my_lawn(exclamation);

  14. Re:Lessons on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 2

    Hungarian notation (HN) is controversial. If the variable's name is a sufficient clue to the type, I'd consider skipping HN.

    For example, "lineCount" is pretty obviously an integer, and invoiceAmt (or invoiceAmount) is obviously a monetary value (typically "double").

    I like to use "isX" for booleans, such as "isGood" for a quality check flag, or "isFinished" for a loop flag.

    They both have their trade-offs and it's probably a close call either way if done smartly.

  15. Re:Documentation on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    So, how does shooting make you feel?

  16. Lessons on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 5, Interesting

    Variable and object naming, and commenting is an art-form that takes experience to do well. Here's a few practical guidelines I've learned follow:

    1. Think of newspaper headlines when commenting. Don't make somebody read the whole article to know what the article is about.

    2. Comment the "odd" stuff, not the obvious stuff infer-able from function name etc.

    3. Goldilocks Rule: Names both too long and too short can be bad.

    4. The more frequent a name is used, the shorter it should be. Use comments at declaration to give the full name. Example of a variable that may be used often:

    var dhv_id; // Department of Housing vendor ID

    If it's used often, I'd rather have an abbreviation than see DeptOfHousingVendorID all over the code, making it long and "wrappy".

    5. Everybody has their own preference, but you have to target the "average" developer (future unknown reader) to make code future-friendly.

  17. Re:He's building nuclear reactors? on The Polymath: Lowell Wood Is America's New Top Inventor (bloomberg.com) · · Score: 2

    [...efficient nuclear reactors] Where can I go see one?

    Here.

  18. Re:memory loss defence? on Bank's Severance Deal Requires IT Workers To Be Available For Two Years (computerworld.com) · · Score: 1

    "Oh, I remember now. You wet your finger and quickly stick it into this little socket here..."

  19. Just because we generally support the prez doesn't mean we agree with everything he does. That's an unrealistic expectation: we vote for a representative, not individual initiatives.

    Maybe there is a legitimate security reason to keep the details of this stuff secret: it's obviously dangerous in the wrong hands. Unfortunately we cannot directly tell if the secrecy is justified because it's still secret.

    Let's hope our system of checks and balances works to ensure there is a reasonable review and consensus on this.

  20. Correction (Re:Not surprising) on Feds Looking Into Reports CIA Director's Email Was Hacked (nbcnews.com) · · Score: 1

    Correction, "Mrs. C", not H.

    Also, I believe her office had a separate "special" system for classified messages. This is not the "regular" server for non-classified info. However, the details are classified, for obvious reasons.

  21. Not surprising on Feds Looking Into Reports CIA Director's Email Was Hacked (nbcnews.com) · · Score: 1

    Any off-the-shelf service or system is probably quite vulnerable to large-state-sponsored hacking.

    And this includes "generic" gov't servers not designed for storing secrets (such as the one Mrs. H "should have used").

  22. I am nearly 50....[they asked] "Tell me about a time you worked with younger people and what the challenges were"

    I've heard that kind of questioning back even when I was in my early 40's, in multiple interviews. IT runs in dog-years or something.

    Companies often don't value experience because they cannot "see" the benefits of it. Most of the managers are short-term thinkers and the 60-hour code-monkey mentality gets you quicker short-term results in the latest IT fad.

    However, if you care about 5 years out or more, than experience can make a huge difference. I started pointing that out in interviews and gave examples. Some didn't seem to care, and those are probably managers who expect to be promoted etc. within 5 years and don't give a fudge about the long term.

    But some did seem to care, especially those burnt by hit-and-run coding/design.

    The US corporate world is generally a short-term world, for good or bad, and in that environment, experience is not as valued. That's just the way it is.

  23. Oh no, Putin's after Fluffy the Kitten again!

  24. Re:You know the old saying... on Ask Slashdot: Is it Practical To Replace C With Rust? · · Score: 1

    But you seem to be talking about changes in developer behavior and design approach. That complicates the hardware-centric comparison. As far as existing and typical programs (as currently done), C-compiled programs usually beat their competitors.

  25. I for one welcome on An Algorithm That Can Predict Human Behavior Better Than Humans (mit.edu) · · Score: 1

    Good! Maybe AT&T will finally use the system to realize we are sick and tired of their telemarketing calls and that we hate their slimy guts for their billing gimmicks.

    Right now they seem clueless, as if a bunch of PHB's in a room stick a wet finger in.....the air to make a GUESS that we like being annoyed and that annoying us somehow makes them more profitable.

    Robots couldn't do worse than the current marketing idiots there. Hell, give chimps a try also.