Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:I am not going to convert (Score 1) 245

Admittedly, my experience with TFS is a bit limited, but what you are describing is not the same thing. In fact, it highlights one of the problems I was talking about: With SVN, because dealing with branches is more cumbersome, people use the working copy as the place where they do their work. The result is that you have no version management of the work you are doing until you commit to the central repository.

This is not how you work with Git. With Git, you commit often. Every commit is tiny; it's the smallest possible atom of work which can't be divided further in any meaningful way. Before I started using Git, there was a whole lot of commenting out lines back and forth, committing only a selection of the dirty files in my working copy, and all kinds of similar things which effectively amounts to a kind of error prone, small-scale revision management by hand. Now all this is handled by Git, and it does it much better. Every change can be traced, reordered, combined, split, and so on. So when I say that my topic branch is floating nicely on top of the master, I'm not talking about the stuff in my working copy, I'm talking about my local revision history.

Furthermore, what I'm saying is not that certain things are impossible to do with Subversion. I'm saying that the mechanics of those things are so different that it fundamentally changes how you think of an use revision control in practice. It took me a few months of intensive Git usage to realise that.

Comment Re:I am not going to convert (Score 1) 245

Unless you're ok with a source control system that's trivially capable of throwing away history and corrupting your entire repository irreparably [...]

I don't get what you people are doing to corrupt your repositories, or even "throwing away history" (whatever that means). To me, it sounds like saying "A bicycle is better than a car, in case you run yourself over with it". To really lose stuff in Git, you have to really try to deliberately shoot yourself in the head, or be such an insane klutz you should be let anywhere near a computer with write access to a central repository anyway.

[...] all for the sake of making your history log "pretty".

That is because you think of the revision history as a chronological "trace" of what you have been doing (I notice how you even refer to it as a "log"), rather than a graph describing how different snapshots of the code base relate to each other logically. It has nothing to do with it being "pretty" and everything to do with maintainability. If you need to lift a feature developed in for example one fork of a project into another, it is much better if the development of that feature is clearly separated and logically related to other version of that fork's code base, than as something that "happened" somewhere in a chronological history at some point. This is a fundamental philosophical difference between how most people work with SVN versus how most people work with Git, and one of the strongest aspects of Git IMO.

Comment Re:I am not going to convert (Score 1) 245

SVN is good because it makes you deal wtih conflicts immediately. Git is bad because it delays dealing with conflicts until days, weeks, or even months later, at which point it all goes to hell.

I really don't get the argument why limiting my own options would be something good. If things "go to hell" for you because you don't merge/rebase often enough, then do it more often! There is nothing inherent in Git preventing you from using the SVN workflow. It is even the default behaviour if you just work on the master branch and do pulls.

In fact, I would argue that Git is actually much better than SVN in the respect of dealing with a moving target, since you have the rebase feature. With SVN, you either need to keep all your work in one huge uncommitted blob in the working copy, or you need to commit half-finished work into the central repository. With Git, you can keep your topic branch floating nicely on top of the master branch's head, while building it step by step in multiple commits. There is simply no sane way to do that with SVN.

Comment Re:Counterpoint (Score 1) 245

I agree there are some things that could be improved with Git's submodule feature (I assume you are aware of it, though you called it something else), but is SVN's externals really that much better? In my experience, both works, each with it's own pros and cons, though neither of them is "extremely painful".

Comment Re:I am not going to convert (Score 1) 245

I don't think git and svn are even really comparable in that way. I used to be a proponent of svn, but since I learnt git properly, there is no going back to svn ever again. The entire philosophy is different at a fundamental level, completely changing the way at least I work with version control. Git is more like a flexible framework where I can juggle different versions and multiple development threads, reordering things, rebasing onto different branches, or even create completely new workflows (such as a process for formal code review before merging with the master branch). Every commit is small and adds one meaningful unit of functionality to the code base, and you can clearly see how features are composed of isolated strings of such commit, and how those features, possibly developed in parallel by different people, are merged into e.g. a common master branch in a coherent way.

Subversion, in comparison, is more like a kind of central, static trail log of everything that has been going on, where each commit is huge and usually intertwined with different other activities. Sure, theoretically you could work in the same way with svn, but that would be like saying I could use email in place of irc to do interactive text chatting; practicality simply prevents it from working that way.

I don't really understand why you see the need for a cloud solution to host a git repository, or why you even think it is easier to set one up with svn. Hosting a git repository is insanely trivial: you just put it on a machine with an ssh service running, and you're done! In fact, where I work, we regularly use each others' development computers as "hosts" when we pull and push topic branches between each other, before they are ready to go into the central repository. There is simply no setup other than creating a user account.

Comment Re:This is beyond sad (Score 1) 59

What they have "invented" appears to be pretty ridiculous, yes, but you are attacking it from the wrong angle. What you are saying is that what they describe isn't suitable for a certain application, namely what you think when you hear "cloaking". Science isn't about finding applications, though, it's about making discoveries and understanding how nature works. There might be other applications that you can't think about right now, and if science would limit itself to what we now know is useful in some particular way, much of it would never be discovered.

However, here is the real problem: Where is the scientific discovery here? All they have done is placed a series of lenses in a row, focusing the rays at some points, which means you need to be closer to the principal axis to block them there. (Notice how they never cover the centre of the "cloaked" area.) Lenses to that, though; focus rays. They have just named the volume surrounding the aperture "the cloaked region", fiddled with lenses to get it narrow, and written a paper about it. Pretty much any optical system containing lenses will have such a "cloaked region".

It seems scientific funding today has gotten so concentrated on quantitatively measurable output (meaning the number of published articles) that people publish any little trivial idea they have, preferably multiple times with slightly different wording, or in very small steps to extend it over as many articles as possible.

Comment Re:WIFI-Enabled Vital Organs?!?! (Score 1) 183

Well, I'm of the opinion that having good intentions shouldn't exempt someone from reasonable criticism. Besides, this is a technology site, so what's the problem of discussing how appropriate certain technological choices are? It's not like people are saying this company should be shut down or their product banned.

Furthermore (and this is actually a bit of an honest question), how much of a fucking breakthrough is this really? Have they actually done something unique, or are they just the first ones courageous (or overconfident?) enough to actually go through trying to replacing someone's heart completely? What's fundamentally different from other implants, such as ventricular assist devices, other than the application?

Comment Re:WIFI-Enabled Vital Organs?!?! (Score 1) 183

True. On the other hand, when designing something as critical as a heart, you'd better have extremely thorough quality assurance and testing to make as sure as humanly possible that faults are discovered before you make someone's life depend on it.

While I agree that requiring open heart surgery to reach the firmware probably is taking it too far, I wouldn't like to have an artificial heart installed, where the developers have had the luxury of thinking they can always fix problems later. The assumption should be that once you have connected someone's life to it, the firmware will not change.

Comment Re:WIFI-Enabled Vital Organs?!?! (Score 1) 183

I'll put it another way: Do you want to tell the patients that you didn't think the software keeping them alive through, so they'll need to have a firmware update?

Really, a heart is one freaking ancient invention. It's not something that needs new features every two months.

Unless it is to close security holes, of course. Oh, wait...

Earth

Cause of Global Warming 'Hiatus' Found Deep In the Atlantic 465

vinces99 writes with news about a study that may account for a slowdown in air temperature rises. Following rapid warming in the late 20th century, this century has so far seen surprisingly little increase in the average temperature at the Earth's surface. More than a dozen theories have now been proposed for the so-called global warming hiatus, ranging from air pollution to volcanoes to sunspots. New research from the University of Washington shows the heat absent from the surface is plunging deep in the north and south Atlantic Ocean, and is part of a naturally occurring cycle. The study is published in Science. Subsurface ocean warming explains why global average air temperatures have flatlined since 1999, despite greenhouse gases trapping more solar heat at the Earth's surface. "Every week there's a new explanation of the hiatus," said corresponding author Ka-Kit Tung, a UW professor of applied mathematics and adjunct faculty member in atmospheric sciences. "Many of the earlier papers had necessarily focused on symptoms at the surface of the Earth, where we see many different and related phenomena. We looked at observations in the ocean to try to find the underlying cause." What they found is that a slow-moving current in the Atlantic, which carries heat between the two poles, sped up earlier this century to draw heat down almost a mile (1,500 meters). Most previous studies focused on shorter-term variability or particles that could block incoming sunlight, but they could not explain the massive amount of heat missing for more than a decade.

Comment Re:Oh good lord. (Score 1) 225

"Use" means to convert it to a different form

...and to extract work while doing so. No? Which means converting it to some form where it has higher entropy.

Look, it seems like you are more or less just making stuff up based on your rather incomplete understanding of thermodynamics, which is why recommended you to actually read up on the subject. Setting aside the rather dubious claim that a perfectly isolated system can even exist, what you are describing is exactly how you could define a perpetual motion machine of the second kind: an isolated system that performs work using energy from a single heat reservoir, without transferring heat to an external cooler reservoir. Such a machine cannot exist, because it violates the second law of thermodynamics, which states that the entropy of an isolated(!) system never decreases. The system tends towards thermal equilibrium, where all the energy is converted to a uniform distribution of heat.

If you had bothered to look any of this up, you would have already known this, instead of speaking out of your ass based on what you think a perpetual motion machine is and why it must be impossible.

The key flaw in your reasoning is that you seem to think of energy as something that's equivalent regardless of its form. It is not so. In fact, whenever we use energy to perform some work, it actually isn't the energy in itself that we are using, but its state of being far from equilibrium. Its "order", for the lack of a better word. The energy is just a carrier. And when we are using heat energy, we are actually not using the heat in itself, but exploiting the temperature differential between the heat reservoir and a cooler reservoir. That's why all heat producing power plants need cooling water, and the reason jet engines get higher efficiency when flown through cooler air at high altitude (even if it's thinner). Conversely, it explains why a refrigerator requires external energy even though it is removing energy from its interior, and why a heat pump can have more than 100% heating efficiency whereas distributed heating can never reach 100%.

One physicist who have written a lot about these things is Ilya Prigogine, if you are interested to read more, although I'm sure you could find many others.

Comment Re:Oh good lord. (Score 1) 225

I think you should ask yourself what it actually means to "use" energy. What purpose can energy have that does not involve irreversibly transforming it to heat?

Or to put it another way: If you have a system that takes in a lot of useful energy, and it does not transform this energy to heat (which inevitably would be radiated as black-body radiation as the system's temperature increases), then you are either: 1) wasting energy, by not exploiting all the work it could have performed before releasing it, or 2) just storing it without actually using it (although the process of storing it would involve performing some work as well).

If, on the other hand, you have managed to build a magical system that can perform useful work without extracting it from the energy you are continually collecting, but can "reuse" energy like a perpetual motion machine, then why the fsck are you collecting more? You don't need it!

Honestly, though, I really think you should pick up a physics text book that covers thermodynamics if you want to understand these things. From your responses (assuming you're not just trolling) it's evident that if you ever read one, you either didn't understand it, or you've forgotten some pretty basic principles and need to refresh. Now the argument sounds more like "I don't really know, therefore aliens can do it. Easy peasy."

Comment Re:Oh good lord. (Score 1) 225

Heat is a waste product, efficient energy use doesn't necessitate heat.

Not sure if I'm feeding a troll now, but, yes it does. "Using" energy specifically means transforming it such that the entropy increases. The energy doesn't disappear, you can only change its form. And the form where it has the highest entropy (i.e. where you have extracted all useful work), is heat.

All a Dyson sphere does is exploiting the energy difference between its interior and its exterior. All the energy passes through it; the sphere just maximises the entropy as it passes through, in order to perform as much useful work as possible. If it emits anything other than pure black-body radiation, that means it has inefficiencies.

Comment Re:Better than zombie drivers (Score 1) 190

Better for whom? I'm saying is that we agree that it probably would be safer, at least from some average utilitarian perspective. The point you are still missing is that for me as a driver, and most other potential buyers of these cars, it is pretty much pointless to ever switch it automatic drive if we have to be 100% alert all the time and be prepared to intervene to avoid the risk of being charged with manslaughter at any random moment. If whatever happens is on me, and the car company doesn't trust their own car enough to accept liability for what it does, then it sure as f*ck is going to be me who is behind the wheel. And this is how lots of people will reason, whether the car is actually a better driver than them or not. People may be overestimating themselves, but when it's their neck that's on the line, lots of them are going to want to be in charge. That's just psychology. So for these fully automatic cars to be widely adopted, for the benefit of us all IMHO, I think it is crucial that the legal systems ensures that the passengers are not held liable for whatever flaws the car has.

Slashdot Top Deals

A morsel of genuine history is a thing so rare as to be always valuable. -- Thomas Jefferson

Working...