88 points · by curtis · 9y ago · 108 comments
This conversation between Miguel De Icaza and the author doesn't look too favorable for the author.
No argument there. After working 15 years on something non trivial it's totally ok to get fatigued and bail out. I was pointing out that there doesn't seem to be a valid technical argument to it.
We once had a project where some genius long ago had mandated that parts communicate via FTP. Eg one program uploads a file, another program monitors the directory. Total clusterfuck, so we wanted reliable automated tests. Turns out that doing an FTP server in .NET is pretty difficult. Full-fledged commercial libraries exist, but we just wanted a stub for testing.
IKVM, Apache Mina FtpServer solved it in two hours for us. I suspect many .NET shops use IKVM this way.
Sad to see it go, but it must've been an incomprehensibly huge one man hobby project for 15 years! If I were Jeroen I'd quit a long time ago :-)
Let's hope some shops get sufficient value out of it to maintain a fork. Jeroen if you read HN, thanks!!
The only difference at our place is that we assume FTP works and do our tests on the file system. We don't test whether FTP works. We know it does.
I understand that sometimes one has to work because of constraint imposed from parties beyond the control of the project. This may force one to support FTP. But FTP is still a terrible protocol. Uploading files to a directory and processing those from a batch job is not a proper solution to an event driven solution.
> To us, it is the only highly available and reliable one.
As one who has had some experience with FTP I must say that you should consider reading after the meaning of HA and reliability.
> Web services have downtimes and re-sends
This is pure bullshit, pardon my French. How does FTP save you from a connection trouble? How does FTP have less downtime? FTP is a stateful protocol, cannot be simply load balanced and made HA. Also idempotency makes some HTTP operations safe to redo if connection troubles arouse.
For really huge amounts of data there is BitTorrent.
I mean, sure, FTP the protocol works fine, and so does virtually all FTP software, but for communication it lacks an important feature: the ability to tell when a file completed uploading.
When we started to upload reasonably large files on reasonably fast file systems this became problem. Our file watcher noticed that a new file arrived, but it's just started uploading. We tried polling the FTP server for connection status, but it turned out that the client supported and did at time use, resumed uploads on connection drops. We ended up having to parse each file just to tell whether it had finished uploading. The file fortunately was an enormous XML dump, so we could check completeness pretty cheaply.
All of this work would've been avoided with a transactional protocol such as HTTP.
Like tvjames mentions, you can rename the file once complete. Alternatively you can ask for a .md5 file to be uploaded as well and, if all else fails, you can simply poll for the "last changed" time of a file and assume that if it wasn't touched for 15 minutes it's probably done.
I'm guessing that the FTP server does the job of not showing half-finished files, since I've never heard of a half-finished file being read back from an FTP server in 15 years. I may have to validate this assumption, though.
That piece is interesting. I don't know many .NET developers that aren't excited with what Microsoft has been doing with .NET over the last couple years. Can anyone shed light on why someone would be losing faith in it?
Now we take in .net core, which has changing standards and incompatible build files between various versions it has released. To even get .net core V2 you've gotta go to their github releases and grab a beta build. By having VS15 and VS17 with .netcore 2, my toolchain broke and couldn't even compile any modern .net core projects, requiring full wipe of VS. Combine that with working on projects that could be written for .net framework, .net standard, or mono, and you've got one big ball of mud that nobody wants to touch. Maybe in 5 years if things standardize and multi-platformability becomes a real goal of MS, but right now, its easier and more stable to make multi-platform applications with electron than C#. Or just C++ and QT, or really any other language that doesn't have 4 different runtime versions.
There have been multiple projects where lack of a library or database driver have resulted in hacks or passing something to a little Java app and back because it's unrealistic to do the work in C#. Like I said, the MS world seems to be an echo chamber and the vast majority of C# devs shun any solution outside official MS channels. Why do they do this?
Because open source devs generally still dislike MS and until .NET core (which is not ready for prime time) using C# saddled you to Visual Studio, Windows, SQL Server, and IIS. Because of this, the open source community on other languages like Python or Java is maybe 20x bigger.
The other reason open source avoids the MS platform is because they like to take your stuff and replace it with the "MS official" version. Entity framework was originally a poor emulation of NHibernate. WebApi a copy of Spring Boot. Instead of helping your project, or making it official like Java tends to do, MS likes to replace your OSS with something proprietary.
The other big .NET problem is speed. I like C# syntax better, but when I wanna get something done on my own I reach for Java first. It's faster and more flexible. In some areas the execution speed difference is 100x. The CLR might be quick but MS never considered performance a priority until .NET core, because before core they were only competing with themselves.
The echo chamberyness is leaving the MS stack in the dust. Everyone else runs on Linux now. Everyone else is using containers and SPA frameworks and Postgres. In the MS world, the unofficial rule is that if it's not a visual studio project template don't use it. It encourages reaching out of the Microsoft ecosystem as little as possible.
Big sites like stackoverflow that have chosen to go with C# have blogged about their adventures. Most of these adventures involve building things that are already available from the community in most languages. Core may save .NET but it might be too little too late. Windows has already lost the war for server operating system and that leaves little reason to use C# over the primary competitors Java and Go. Both of those have ecosystems far larger and far better support for things like databases, mapreduce, Linux, containers, etc...
The only issue I really do have is down to fragmentation - library authors have too many targets to supports support. Libraries may support .NET Standard, but not the .NET framework before 4.6, for example.
.NET community ain't terrible, but it's nothing compared to Python and Java. I have tried to convince my co-workers of this fruitlessly over the years but basically all of them are .NET for life. There's no point in arguing that another product is better if the person you're arguing with has never seen it.
I used to share the same opinion as you until a few years ago when I got bored of making the same old .NET CRUD "line of business" apps at work. I decided to do some cool open source stuff that I always enjoyed reading about.
At first I wanted to use .NET but I quickly abandoned it after playing with Linux on AWS and learning about Cassandra, React, rabbitmq, elastic search, and Postgres. I had never even touched all of these great things. At an MS shop it's "SQL Server, SQL Server, SQL Server" for anything with even the slightest resemblance to data storage. Web development is "Angular" or "MVC" with little variation.
I started writing some cool open source stuff and realized I would be alienating myself from most of my users if I made it in C#. So, I picked up Java and never went back, at least at home.
I'm the only developer at our company out of ~35 that prefers Java over C# and the only one that contributes to free software. I don't think that correlation is a coincidence.
.NET seems to have a lot of rough edges where MS said "fuck it, nobody will complain if this is slow". If you happen to use one of those features that didn't get enough love you get burned. Java is generally polished throughout, most likely due to the sheer volume of software written for the JVM
Honestly, I'm much happier writing stuff in Java or Python than I am .Net - both have substantially healthier ecosystems and I feel like I'm getting work done BECAUSE of my tools rather than in spite of them. I have to suck it up at work most of the time because we are a ".Net shop", but any personal projects I work on will likely never be done in C# unless it's a Windows desktop app.
There must be a reason for this though, one of the reasons why Java has a good ecosystem is because it's had a huge head start in terms of time and mindshare.
At the same time though, what's stopping people from making the open source ecosystem in .NET really good? There must be a reason, is it cultural?
Java's focus on cross-platform support from the start probably seemed like a waste of resources back in the 1990s when Windows was so dominant, but it had the advantage of making it more popular amongst UNIX users and the existing open source culture. Java going open source long before .NET also contributed to this. The end result is that you get organisations like Red Hat, Apache, IBM that create vast quantities of high quality open source Java code, and a culture that is steeped in open source development. Whereas in .NET it's rare to use components not built by Microsoft and when they do exist they are typically proprietary, same as in the 1990s.
This doesn't seem to be a complete explanation. I was doing Java heavily in the early 2000s, and open source Java was pretty new still. Apache Struts[1] was possibly the first big OS Java project, and it was only released in 2000. The first version of .NET was released in 2002, and something like Rails was only released in 2004.
"Head start" doesn't seem to explain this.
Simplicity is I think why python is so popular and why it is even used in all sort of odd places (like doing computationally intensive maths).
a) it had f2py at a really important (early) point
b) matlab is insanely expensive.
In any case, the current transition has pros and cons, and even these are categorized differently by each dev.
In addition, there are new alternatives that could cater to a particular dev's exact style.
We can see how the development works, and maybe people with more enterprisey (it here a word for this?) background find this problematic, as they are more accustomed to the slow pace of innovation/changes in that area.
For me, with pretty much FLOSS experience (mostly as user) this is nothing new or worrying. This is how business is done in the open, where you see experimentation. This is the way if you want to listen to your users: show them what you do, and listen to them. Do this often, not once every 3-5 years, as in the enterprise.
I will follow anything Jeroen publishes in the future with interest!
After this they tossed their Java runtime, added ActiveX to IE and started pretending that Java didn't exist. I'm not surprised at all that MS doesn't go near this project
[1] https://en.wikipedia.org/wiki/Microsoft_Java_Virtual_Machine...
They do this again and again.
* Look at what they do with programming language R, adding incompatible changes and calling it R. Don't use their R fork!
* Look at ES2016 and TypeScript, they lobbied to get Class syntax added to Javascript and now do an EEE with TypeScript and WebAssembly. Don't use TypeScript! Learn how to use Javascript and what prototype-based inheritance actually means - it's a rather great concept. Don't use VSCode! Use Atom, Sublime, IDEA, Eclipse, etc.
* Look at Nodejs, they are lobbying to get their IE11/Edge's Chakra JS engine instead of V8 as default JS for Windows builds.
* Look at Python, they have their hands reached out to it.
* Look at Nokia, the former number one smartphone manufacturer, they implanted a Trojan horse manager that canceled various successful smartphone product lines to go full in with WinPhone. He single handed managed to destroy Nokia, drive the company value down so they in the end bought it for little. Now even this devision is dead, what a waste.
* Look at Ubuntu, they sponsored the project to get a Linux usermode for Win10. Who ever steered up the community, at least they succeeded that Ubuntu now canceled their projects to have the rather polished Unity desktop and now goes back to the unpolished mess called Gnome. It also means the end of Ubuntu Phone with it's desktop mode - the only left competitor of WinPhone10 continuum desktop mode. They forgot about Samsung, they have now such a fearure in their recent flagship smartphones, and WinPhone10 is now merely supported on 13 devices.
* Look at Silverlight, they tried to clone Flash, they went as far as make the whole WinPhone7 Silverlight-land based on WinCE and lobbied Netflix and others to use their Silverlight video DRM.
A company I was working at was using a java library to do one specific thing related to file uploads, despite all their code being .NET. The library became a bit of a black box and no one bothered to keep up with updating it as it was essentially a binary blob that sit outside the normal update mechanisms (visual studio references)
Turns out the library had patched a RCE vulnerability a while back, spent a fun afternoon making a PoC exploit for it (tricky because we had some other file validation in place) to win the unofficial office competition to find a security hole in our product.
I would agree with your point in general, but the moral of the story is that adding complexity is not good considering most people are too lazy/incompetent to understand the full implication of something like "I'll just use a third party binary / library here" to their ongoing maintenance.
Not sure what makes you think Oracle's JVM is slower than the CLR, in any case...
I’m not sure if I’m understanding you correctly, that you’re saying Java is slower than .NET, and the JVM more vulnerable than the CLR?
After that, I started joking that installing malware one way or the other was Oracle's primary goal.
Right, tell me the ecosystem of .NET vs Java and deployment statistics...
https://github.com/mono/ngit/tree/master/Sharpen
(Not sure there's enough here to actually implement its transpilation on any other project.)
[1] http://developer.db4o.com/Projects/html/projectspaces/db4o_p...
MS has a long, dark history with open source including attempting to kill both Linux and Java. Many of us have forgiven but will never forget.
If the folks at Microsoft had any sense, they would have hired this guy, but they're probably busy rewriting Office in TypeScript based on Electron.
Cause VS is good with resharper but without it?
I haven't used it much for java but Intellij is excellent, hell even eclipse was pretty good.
I'd say in many ways dev tools seem better for java, the thing .net has going for it is that C# is a much nicer language.