Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Re:Two major problems (Score 1) 178

Carbon fiber doesn't really dent. I'm guessing you'd either have no damage or a crack, and not really any state in between. If it's just a body panel that doesn't have any structural purpose, small and medium cracks could probably be repaired with epoxy, which would most likely be cheaper than repairing a dent. The crack may cause a reduction in capacity, but I doubt it would know the whole thing off line.

Comment Re:GIL and true parallelism (Score 1) 242

The vast majority of people doing data-intensive code with Python are either running code that is distributed across many nodes, where shared memory threads aren't very useful, or don't really care about execution time. I doubt a GILless cPython will ever come out, because it would require a massive amount of work and would provide little value to most existing Python users. People who need threads are already using other technologies, and I doubt many would switch back to Python just for that feature alone.

Comment Re:GIL (Score 1) 242

The core areas where Python is popular are all areas where threading is not very useful, either because the code is executed in a distributed fashion across many nodes (scientific computing, big data, web), because there are better concurrency paradigms (asynchronous networking), or because it's used for small scripting tasks that execute within a couple of minutes (system admin, text parsing, web scraping). Not surprisingly, Python isn't very popular for the type of tasks where threading is advantageous (games, desktop apps). I don't think there is much motivation to remove the GIL because it would require an almost complete rewrite of cPython and provide very little benefit to existing users in Python's core competency areas.

Comment Re:I don't.. (Score 1) 453

I've used JS for many large projects. JS is vastly different from Perl in the fact that it has well defined behavior (unlike Perl 6, Javascript is based on an actual spec that you can go read) and JS is a compile target of more expressive languages. I would say the future is probably going to be transpiling to JS. A big problem with JS is no built in namespaces/modularity, but that is somewhat easily fixed with libraries like require.js. I think the lack of a decent standard library is a greater problem, because every framework out there duplicates the same stuff. Common.js is trying to solve this, but hasn't been terribly successful so far. I think people who complain about asynchronous operations and prototype based inheritance are just stuck in their ways, because these methods offer a lot of advantages over more traditional class based oop languages.

Comment Re:Version Control Is Your Friend (Score 1) 384

// 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.

Comment Re:The more..... (Score 1) 384

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.

Comment Re:The more..... (Score 1) 384

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.

Slashdot Top Deals

Understanding is always the understanding of a smaller problem in relation to a bigger problem. -- P.D. Ouspensky

Working...