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

 



Forgot your password?
typodupeerror
×

Comment Re:Why bother? (Score 5, Insightful) 421

Your reply is also somewhat confusing to me. I don't think you've actually looked into the issue. .NET popularity has gone downhill as more developers want to use more dynamic and developer-oriented solutions which are almost invariably open source. This is an actual trend; a real statistic, and essentially the reason why MS went ahead and open sourced .NET.

If it is a real trend and a real statistic then please link to some reference for this. I'm interested to see. Maybe I'm not very good at Google searches but I cannot find any reliable statistics to support this.

As for C and .NET you can use .NET quite easily with C. Even if your project is strictly in C#, if you know C I doubt you'd have much trouble with C# (other than maybe getting the hang of good-practices?).

I code mostly in C++ and C# and have no trouble at all with C#. It's one of my favourite languages. My post however was not about myself, I was paraphrasing the original question, as perhaps I've missed something but the statement "why you are asking for citation when the whole discussion is sort of based on this issue" is completely at odds with how I read the original question - i.e. (very much paraphrasing here) 'Should I learn C# it seems to be the way forward'

Though even if your interpretation of the original question is correct, it would still not seem unreasonable to ask for a reference to support the statement that .NET is losing popularity. The only evidence of this "fact" I can see on this thread is mis-matched anecdotes, hence my reply to your post.

Comment Re:Why bother? (Score 1) 421

Why? A sincere question, not a snark. Is it multi-programing-language support? The Microsoft IDE (VS?) What is it that wins over the Java ecosystem?

I'm not the OP but while Java is not a bad programming language at all, in my opinion C# is much nicer. It is pretty much Java but with more features and candy. Java has finally caught up with a few of the big ones - e.g. lambdas, try-resource to match C#'s using blocks, the streaming API to kind of capture part of LINQ's functionality and default methods to kind of match extension methods as a way to do mixins.

It's still lacks a lot of features though - e.g. generics with support for unboxed types and runtime type checking, unsigned types, stack allocated arrays/structs, support for unsafe code and pointers, coroutines, type inference on variable declerations, properties and property initializer syntax, operator overloading, language level support for async programming constructs, nullable types and the '??' operator, dynamic types, .etc. C# 6 will also be adding the '.?' to allow propagation of null through chained methods

In addition to this I feel like the core .NET libraries have generally benefited from the hindsite of seeing where Java went wrong / could be improved on.

Comment Re:Microsoft is adapting to a new role (Score 1) 421

Yeah, this is a big one, and it's especially painful when working with programmers who are less competent. If you are writing it yourself, you can just wrap everything in try{}catch{}, which is what I do, but you never no what method is going to throw an exception.

Agreed about the docs. MSDN documentation in general is horrendous. It lacks critical information and is generally written in a completly impenetrable way. They also rely on crappy machine translation for non-English languages, ugh.

There is one good reason for avoiding checked exceptions though. Interfaces. In Java it is required that either 1. all exceptions that might ever be thrown by implementations of an interface be declared at the interface decleration or 2. all exceptions be bundled in RuntimeExceptions to short circuit the checked exception mechanism anyway (with the potential side effect of ruining stack traces).

As far as catching exceptions go, imo unless you are going to do something specific to deal with an exception, then catching it is bad coding practice. E.g. Catching a SocketException to implement retry logic - sure go for it. Catching an exception to log it and rethrow (or worse throw your own custom exception and ruin the stack trace) - do this as high up the call stack as possible.

Comment Re:Why bother? (Score 2, Interesting) 421

Uhh... .NET usage has been falling for many years now, that's why they made it open source to try and recover from that trend. I'm confused as to why you are asking for citation when the whole discussion is sort of based on this issue. Also note that headhunters looking for .NET devs could be the result of devs *leaving* .NET causing a lack of hands and thusly an increased need.

As far as I can see the premise of the original question is that 'my employees like .NET but I'm happy in C and about to retire, should I bother learning it'? Nothing about that implies that .NET is fading. In fact it seems to imply the exact opposite to me. In the hypothetical situation that it did imply that .NET is fading though, that still wouldn't make it a fact. Is there actual evidence that .NET is failing? All I can see on this Slashdot thread is mis-matched anecdotes.

Comment Re:C# and Xamarin allow cross platform mobile (Score 1) 421

Which is probably more important than anything else. The benefit of open sourcing .net core is that mono will get better. So if you have a lot of existing .net code and want to get away from ms licensing, at least ms will keep the dev tool revenue.

From (mostly indirect) experience, maybe it does for CRUD apps. For complicated applications though you might get ~30% code sharing and a lot of pain.

Comment Re:Antipodal eruptions (Score 1) 78

I've never found the antipodal argument convincing. Seismic waves converge at the antipode of an impact only if the target is spherically symmetric and isotropic. In the actual Earth, you have reflections off all kinds of laterally varying boundaries. Also, the sound speed differs substantially between continental and oceanic crust, so the path matters quite a bit. The Chixulub impact is also not that big (as planetary-scale impacts go). The projectile was what, 10 km? Shock heating is only significant within a few times the projectile diameter.

I'm not a geophysicist but I do write software for the field so so I do have some limited knowledge of it. With the disclaimer out of the way, forgive me if I am wrong but:

1. Would anistropy mater much in this situation? I know it matters a lot in seismic tomography but the magnitude of the waves here is, well, of a completly different order of magnitude (excuse the pun). Would the physics creating angle dependent and/or horizontal velocity variations in the crust still hold up? Would they mater much on this scale? Presumably the waves are spending most of the time traveling through the mantle.

2. Similarly is being exactly spherically symmetric that important? Are the other stellar bodies were the antipodal phenomenon has been observed exactly spherically symmetric?

http://www.newgeology.us/presentation35.html provides a reasonably good summary of the pro-antipodal argument. Even if the waves are not focusing on an exact point with equally timed first-arrivals you could still reasonably expect see something resembling antipodal effects.

Comment Re:Antipodal eruptions (Score 1) 78

Only if you think that being off by about 10,000 km is "reasonably good". What kills the "killer" asteroid hypothesis is that the bulk of the biogeostratigraphic and high-resolution geochronological evidence now both suggest that the bolide impact predates the mass-extinction by about 100-150 kyrs.

The circumfrence of the earth is ~40,000km, being 10,000km off implies being a quater of the world away. I can't see that looking at the map provided by mbone. The map divides the earth into 12 longitude sections with the rough location of the impact crater and the Indian land mass being seperated by 6 longitude sections. Similarly the impact site and the location of the Indian land mass are roughly symmetric about the equator.

Comment Re:Antipodal eruptions (Score 2) 78

From the link:

The crater is about 300 miles wide. It was found by looking at differences in density that show up in gravity measurements taken with NASA's GRACE satellites. Researchers spotted a mass concentration, which they call a mascon-dense stuff that welled up from the mantle, likely in an impact.

So Frese and colleagues overlaid data from airborne radar images that showed a 300-mile wide sub-surface, circular ridge. The mascon fit neatly inside the circle.

Far from definite but the evidence is far stronger than you are making out.

Comment Re:Baby meet bathwater (Score 1) 289

Hush! Most christians don't know the winter solstice was expropriated by the early christian church! The early christian church was having difficulty converting people because the "pagan" faiths have better hollidays, so they just borrowed them with a bit of "Christian" window dressing thrown on top. What? You thought christmas trees are christian?

I went to a Christian school and this was hardly a secret. We had to take Christian Studies classes, where we learnt the history of Christianity including things like this.

Organized relegion is not just composed of faith but also of tradition and social order. In Christianity faith is belief in Jesus and hence God. Chrismas on the other hand is a mater of tradition, and to some degree social order. The fact that it was originally a pagan festival does not lessen its importants as a mater of Christian tradition.

Similar distinctions can be seen in religions around the world. In Islam (in my limited understanding), faith is the belief in Muhammed as the final prophet of God, while tradition and social order are primarily determined by Sharia Law. Sharia Law in itself is only in part derived from the Quran. As many Islamic communities have faced what they feel are existential crisis, they have turned to tradition and hence stricter observation of Sharia law.

In Japan, Shinto could be seen to exist as a 'relegion' but it is in reality devoid of all aspects of faith. It continues to exist as a mater of tradition with the observance of thousands (probably tens of thousands) of festivals/observances at shrines around the country. On the face of it, these festivals exist to (mostly) placate look Shinto 'Gods'. However, nobody seriously believes in these local 'Gods'. Even with Budhism the faith aspect is generaly very weak. Probably the biggest aspect of 'Budhist' faith in Japan is the visting of ancestral graves, which is closer to ancestor whorship than Budhism.

I'm sure there are similar examples from plenty of other countries as well but these sprang to mind.

Comment Re:Obj-C (Score 1) 316

If your only experience with C / C++ is MS VSxxxx, its no wonder you hate the thing so much. The MS tool chains have never been standards compliant, and they have absolutely zero qualms about breaking their customers legacy code just for random changes. When are developers going to learn their lesson and stop relying on MS for anything they don't have to. You end up locked to MS and they can do whatever they want to you (including large scale cash withdrawal).

To be clear I don't hate C++ at all. I find it a very powerful and expressive language but if the project requirements allow for it I'd rather use Java/C#. They're much more productive language to program in imo. No waiting for compiles, better tooling (e.g. refactoring), nice runtime errors, and the relative ease of integrating third party libraries being the main factors.

Couldn't agree more with you about Microsoft VC++. Clang is sooo much nicer.

Slashdot Top Deals

Arithmetic is being able to count up to twenty without taking off your shoes. -- Mickey Mouse

Working...