Live data from Hacker News

Google joins .NET Foundation as Samsung brings .NET support to Tizen

techcrunch.com

161–170 of 341 posts

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#161
post #149
post #111

Earlier quoted context omitted.

Java the language versus C# the language.

Same question. What advantages does C# the language have vs Java the language? Do people perceive Java as playing "catch up" with other languages? e: I only ask because I've always heard the opposite.

I'm not sure where you would've heard the opposite. "Java the ecosystem" has clear advantages over "C# the ecosystem", but I've never heard anyone claim that Java is a better language. Things C# has that Java got years later or not at all include lambdas, LINQ, value types, reified generics, and async/await.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#162

Earlier quoted context omitted.

> The var keyword: While this is sometimes nice for quick scripting or hacking in the debugger console, it opens the door for hard-to-read code. I find type inference to be the opposite, generally, because it encourages good naming, and it reduces noise/boilerplate. It also makes writing and refactoring faster (don't have to think about the return types, just the code flow). The only situation I can even think of whe…

> It also makes writing and refactoring faster (don't have to think about the return types, just the code flow). I see what you mean, but isn't this one of the advantages of explicitly declaring types? If you refactor a method to return a different (incompatible) type, you'll have to touch all affected code parts, possibly revealing uninteded consequences of the change. Also, I think remembering that autocompletion i…

> If you refactor a method to return a different (incompatible) type, you'll have to touch all affected code parts, possibly revealing uninteded consequences of the change.

If you can refactor your code such that you change the return type of a method such that it returns an object of a different type, which nonetheless implements all of the methods used by clients of your type that accept and return types which in turn accept and return types that line up with the expectations of their clients, etc, etc, without having to look at or touch any of those clients, and end up with something that happily compiles but gives an unexpected result, you need to have a long and hard look at how you're using the language's type system, and why it isn't encoding your assumptions in a sane way.

Your code shouldn't be compatible with a different type unless it makes sense for your code to be compatible with that type. That's what the type system is for.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#163
post #27
post #6

Earlier quoted context omitted.

No thanks. I like Java, and esp Java 8 just fine.

I like Java too and it's a shame we are limited to some weird bastardization of different source levels on Android. A credible threat of Google moving Android away from Java is the best hope we have of this situation ever improving.

Well, it could be worse. At least the standard library is there, as opposed to GWT (where you pretty much cannot use any Java library at all).

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#164
post #149
post #111

Earlier quoted context omitted.

Java the language versus C# the language.

Same question. What advantages does C# the language have vs Java the language? Do people perceive Java as playing "catch up" with other languages? e: I only ask because I've always heard the opposite.

Pretty much everything that is in kotlin should have been in java for a while IMO and some of these features are in C#

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#165
post #133
post #25

Earlier quoted context omitted.

Why would someone down vote an opinion that they are okay with Java? It added to the conversation. Personally I prefer C# and Swift to Java but others idea are just as valid.

> Why would someone down vote an opinion that they are okay with Java? Paul Graham once said [1]: I think it's ok to use the up and down arrows to express agreement. Obviously the uparrows aren't only for applauding politeness, so it seems reasonable that the downarrows aren't only for booing rudeness. It only becomes abuse when people resort to karma bombing: downvoting a lot of comments by one user without reading…

This is the number one reason why I looked for a different place and was hoping lobst.er would have taken off.

The down vote causes the comment to be dimmed and seen as a rejection to the comment. It is very frustrating when the top right side is your name and your "Hacker News Points" so I don't get why the down vote if you disagree. A down vote kills the conversation.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#166

Earlier quoted context omitted.

I thought MS was (quietly) killing WPF and burying it next to Silverlight? Not soon enough I think. Nice idea, headache inducing implementation.

UWP and Xamarin apps can use XAML, so it's not like the underlying ideas of WPF/Silverlight are dead.

WPF is a lot more than just a markup language for object graphs. Heck, the features I consider most essential and important to WPF (data binding, templating, and the idea that controls only encapsulate behaviour) have nothing to do with XAML at all.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#167

I like the laptop with a bunch of lovely Microsoft technologies, and then WiX. Please, please die WiX. Imperative XML + non-deterministic execution order + the worst error messages of the entire stack. I love C# and the CLR, but damn WiX sucks.

I haven't done a lot of 'Windows exclusive' development for a while, but something like 6-8 years ago, I was making an installer for a small company that up to that moment, they had to send someone over to spend a whole day installing the software on client's machines.

I was strongly suggested to use WiX. I spent 2 months trying to get something to work, but I wasn't able to get nothing truly useful to run. I remember explicitly that something as simple as writing to the registry was proving problematic. To make it worse, documentation was poor, and there wasn't much of a community around it cause it was brand spanking new.

Two months in, without telling anyone, I decided to ditch it and use NSIS. That day I had something that actually worked! Within 2 weeks I had something that was running end to end, installing the software on the machine. The next month was polishing, and testing/fixing for different versions of Windows.

I have no idea how things may have changed now, but if I tasked with making a Windows installer today, I wouldn't even think twice about using anything other than NSIS.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#168
post #2

Nice. Now please make C# a first-class citizen in Android and start to migrate from Java to C#.

I doubt it's going to be a first-class citizen like Java anytime soon.

there is a lot of Innovation going on, with the new open source .NET. the CoreRT[1] project compiles C#->C++->Machine code for any platform, including ARM. and Samsung has been a big contributor to make that happen. and today during the Connect() event, they announced that every Xamarin forms app will run on Tizen[2].

[1] https://github.com/dotnet/corert [2] https://www.tizen.org/blogs/dh0922/2016/tizen-.net-developer...

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#169
post #48

Earlier quoted context omitted.

Google have not made their own languages Dart/Go official to Android. Why would they make languages other than Java a priority now?

.NET would have had a real chance at being the android application platform if it was philosophically in the state that it is today (open sourced toolchain/compilers, open-source friendly MS, Mono/Xamarin in good shape). Moving android away from Java is going to be a big undertaking and I doubt Google will undertake such a huge project only to move away from Oracle and closer to MS. If they ever try to replace Java,…

Silly idea that will never happen, but imagine Google and Microsoft* working together on Android and it becoming actually open (i.e. not a tool to protect google search on mobile) and easily targetable by Java, C#, Go, etc. apps. From a technical point of view it might sound difficult until you realize modern smartphones are veritable beasts compared to computers 10 years ago, and we've had general purpose OSes for decades now. This is mostly just me shipping Google and Microsoft after their successful recent collaborations like TypeScript.

* - based on the premise that MS might be open to this after failing at mobile over and over again

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#170
post #166

Earlier quoted context omitted.

UWP and Xamarin apps can use XAML, so it's not like the underlying ideas of WPF/Silverlight are dead.

WPF is a lot more than just a markup language for object graphs. Heck, the features I consider most essential and important to WPF (data binding, templating, and the idea that controls only encapsulate behaviour) have nothing to do with XAML at all.

Both UWP and Xamarin Forms have all of that.
Post reply on HN