Slashdot Mirror


User: defcon-11

defcon-11's activity in the archive.

Stories
0
Comments
92
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 92

  1. Re:Version Control Is Your Friend on What Are the Unwritten Rules of Deleting Code? · · Score: 1

    // this looks obvious, but because of foo baz and kwok should never be attempted. YourName Date

    Or you could do the correct thing, which would be to add tests that verify the behavior of foo and baz are correct in the case of kwok, then you're covered regardless of implementation. If the comment describes a performance optimization, you should describe why the current version works, rather than why the old version doesn't. Either way, your name and date are automatically recorded by your vcs, so you should never need to include that info in a comment.

  2. Re:The more..... on What Are the Unwritten Rules of Deleting Code? · · Score: 1

    Depending on your language, putting a "TODO" marker allows for easy and quick cleanup afterwards.

    Only if I am allowed to punch you in the face every time I see a TODO in the code from 3 years ago with a terse description that doesn't even match the current code. If it's something that needs to be done now, then do it. Otherwise, track the task as a ticket/store/defect, whatever method you use for tracking and prioritizing work, but please, please don't put a useless comment in the code.

  3. Re:The more..... on What Are the Unwritten Rules of Deleting Code? · · Score: 1

    How does leaving commented code help avoid bugs? If a bug was introduced into the code base, first thing an investigating developer usually does is look at the vcs's change log to see what changed, where the deletion will be obvious. Leaving it in the code doesn't make it any more discoverable, and there is a pretty good chance someone will forget to delete it.

  4. Re:The more..... on What Are the Unwritten Rules of Deleting Code? · · Score: 1

    If I was performing a reviewing code and saw a bunch of commented out code, I'd ask why the hell it was there and tell the perpetrator to remove it before committing.

  5. Re:The more..... on What Are the Unwritten Rules of Deleting Code? · · Score: 1

    Or maybe you shouldn't be commiting unreviewed code in the first place (at least the master/trunk branch)

  6. Too expensive on USMA: Going the Extra Kilometer For Metrication · · Score: 1

    The problem is it's just too expensive. All of our road signs are in imperial. All of our building codes are in imperial. All of our tools are imperial. Many standard building materials like pipes are measured in imperial and then converted to metric for the rest of world anyway (if you've ever wondered why they sell weird sizes like 31.8mm, it's because it's 1 1/4 inches).

  7. Re:How about sky or space? on All Systems Go For Highest Altitude Supercomputer · · Score: 1

    Space probes run on a couple of lightbulbs worth of power for flight control, communications, instruments and sometimes heat source combined. For example, Curiosity, the newest Mars rover runs on 125 watts of usable power.

  8. Re:Wake up call on Hacker Behind Leaked Nude Celebrity Photos Gets 10 Years · · Score: 1

    What if the security questions you're answering are for your email account? Gmail and others have options for 2 factor auth, where a text is sent to your phone, but it's usually entirely optional.

  9. Re:Summation on New Theory About the Source of Pioneer Space Probe Deceleration · · Score: 1

    I thought this explanation was developed several years ago? Is it just a new analysis confirming the results?

  10. Old Data is fun on New Theory About the Source of Pioneer Space Probe Deceleration · · Score: 2

    Those mountains of data are more like molehill's by today's standards.

  11. Re:I use apps for business as a family account on Google Axes Free Google Apps For Businesses · · Score: 1

    Well, it was free up until today, and now you can pay $50 per year per person for it. It's only marketed to businesses, but they don't check to make sure you're a business when you sign up, anyone can use it.

  12. Re:Privilege Elevation bug not much of a bug on Researcher Discloses New Batch of MySQL Vulnerabilities · · Score: 1

    I guess most of the tempfile stuff I've worked with has been in Python and Ruby, where the std lib has functions to create tempfiles, and you don't have to worry much about file paths or name collisions or having to set the correct file permissions. Presumably there are similar third party libs for languages lacking these features in the std lib.

  13. Re:Privilege Elevation bug not much of a bug on Researcher Discloses New Batch of MySQL Vulnerabilities · · Score: 1

    I haven't done much windows development, are the semantics of C:\temp different from /tmp? Why is writing to it a bad idea?

  14. Re:Sounds great, would prefer ActionScript / Flex on The Shumway Open SWF Runtime Project · · Score: 1

    There are just as many horribly buggy, slow, and insecure Javascript/HTML sites. I've done some Flex work, and AS3 is a very solid platform. Mozilla's original Javascript JIT was an offshoot of the AS3 JIT, and I'm sure some AS3 features had a lot of influence on web standards such as WebWorkers. Now if the browsers could only agree on a standard for an efficient binary serialization format with object references like AMF....

  15. Re:No thanks on The Shumway Open SWF Runtime Project · · Score: 1

    The project is targeting HTML5 capable browsers, this will not work in IE8, or whatever crusty browser you're still using in the hinter land.

  16. Hasn't Google already done this? on Homeland Security Mining Social Media For Signs of Bio Attacks · · Score: 1

    Available free from Google: http://www.google.org/flutrends/

  17. Re:Lack of competition, recapitalization on A Year After Thailand Flooding, Hard Drive Prices Remain High · · Score: 1

    3.5" platter drivers are not exactly a hot growth area. The big HDD manufacturers had state of the art, super efficient assembly lines, but they are probably unwilling to spend the money required to get back to 100%, since investing the same amount of money in SSD assembly would likely have a much bigger payoff. If I was an HDD company I would spend just enough to get HDD assembly back to 80%, while investing the rest in growth areas like SSD.

  18. Re:Problem is offshoring and inshoring of US jobs on Tuition Should Be Lower For Science Majors, Says Florida Task Force · · Score: 1

    The unemployment rate for those majors would like to disagree with you: http://www.cbsnews.com/8301-505145_162-57324669/25-college-majors-with-lowest-unemployment-rates/ It's different with the S (especially if you're going into academics), but if you can't find a decent paying TEM job, then you either need to move to a different area, or you're not very good. The unemployment rate for Computer Scientists, Mathematicians, and Engineers of all fields is below 5% nation wide, and significantly lower than that in most major metro areas.

  19. Re:Just happy to see a Republican supporting scien on Tuition Should Be Lower For Science Majors, Says Florida Task Force · · Score: 1

    Liberal arts have already been thrown under the bus at most schools. A 700 person humanities or communications class costs far less to teach than the students are paying in tuition, which helps offset STEM classes that cost far more than what students are paying. Why do you think schools have gen-ed requirements? They are there to subsidizes higher level classes that would be too expensive to teach on their own.

  20. Re:Just happy to see a Republican supporting scien on Tuition Should Be Lower For Science Majors, Says Florida Task Force · · Score: 1

    I used to work at a University and I would say it has more to do with the Administration's boner for new multimillion dollar construction projects. Does your campus really need a $50 million dollar rec center or a $150 million student union?

  21. Re:Just happy to see a Republican supporting scien on Tuition Should Be Lower For Science Majors, Says Florida Task Force · · Score: 0

    That's a load of BS. Companies that represent the bulk of US contracting dollars are overwhelmingly run by white males: Boeing, Lockheed, Haliburton, General Dynamics, GE, Cisco, Mircosoft, GM... Which large government contracts are being awarded to minority/female run companies?

  22. Re:The maturing Internet on Congressman Warns FTC: Leave Google Alone · · Score: 1

    I don't think DNT will have such a big effect. Google already offers paid Gmail (and all their other apps) without adds/tracking as well, but most people don't really care. Personally I like targeted adds. If an add pops up for something on sale that I'm interested in, that's great. Win for me buying something on sale, win for the company selling it.

  23. Re:ATTN: Jared Polis on Congressman Warns FTC: Leave Google Alone · · Score: 1

    The US has by far the most efficient freight rail system in the world. We move the most absolute tons, plus we move more tons and $ of goods per transportation $ and per unit of energy than any other freight rail system in the world. The reason we don't have passenger rail is because it is far less profitable than freight, and is not very efficient. Car pooling with 2 or more people is more energy efficient than a full train for most autos/trains/distance combinations, and flying is cheaper (although less energy efficient) for most longer distances. Even in Europe, where passenger rail service is well developed, flying is cheaper than high speed trains anytime you are traveling a significant distance like you do in the US. Only the slow and/or short distance train tickets are price competitive.

  24. Re:Time to let it go... on Reiser4 File System Still In Development · · Score: 1

    For that to work, you'd have to bolt on some type of indexing system, which seems way out of scope for a standard file system.

  25. Re:A truly ridiculous idea. on A Supercomputer On the Moon To Direct Deep Space Traffic · · Score: 1

    The amount of data transmitted from spacecraft is highly limited due to power constraints. The amount of data being streamed back to the DSN is really tiny. Getting the data from a weak signal is the difficult part. Processing, storing, and relaying the data would all be trivial with a modern laptop. We're talking about data streams that don't have enough bandwidth to show a YouTube video (165 kbps for the Cassinni spacecraft for example). But as long as we're putting an antenna on the back of the moon, it should probably be able to handle more spacecraft with higher transfer rates, because we're optimistic about the future.