From February 2004 --
Some of you may know that I'm now more
interested in C# than in Java for the same
reasons I was looking at Java: marketability
of skills and ubiquity of available knowledge.
C# also happens to be a great language, or
so I have heard, faster and more flexible on
a Windows PC than a JRE. Not that I know.
The devil is of course in C# being Windows-
centric, but so are 90% of desktops, and if
one really wants to run C# code atop OS X
or Linux it can be done with the free Mono
framework (a bit immature; wait for ver. 2).
If not Mono, VPC7 is a less-than-ideal but
workable fallback for running .NET apps.
C#, .NET, and SQL Server go together like
beer and salt, but SQL Server isn't the only
database option. I think that maybe I'll try
building .NET Windows front-ends to very
simple PostgreSQL databases hosted on
UNIX. A .NET Data Provider does for .NET
what JDBC does for Java, and Npgsql is a
data provider for PostgreSQL servers. See
http://gborg.postgresql.org/project/npgsql.
If the .NET client does all the connectivity
work using data providers like Npgsql for
abstracting access, then client and server
can remain independently tweakable. That
is, the same data can be also accessed via
PHP or Ruby, and clients can also access
other back-ends like Oracle or SQL Server.
If you are also interested in C# or just want
to heckle, feel free to ask/comment. I deny
being a stooge for M$oft, but resistance is
futile and your species will be assimilated.
-Brad
--------- example of C# with Npgsql ---------
// in C#
using System;
using System.Data;
using Npgsql;
public class Test
{
public static void Main(String[] args)
{
String connstring = "Server=192.168.0.1;User
Id=test;Password=pass;Database=Test";
NpgsqlConnection conn = new NpgsqlConnection(connstring);
conn.Open();
conn.Close();
}
}
I made the decision to go with C# too. It is a good language. I will check out the Npgsql link. It looks really interesting.
Posted by: Sam at May 4, 2008 1:45 AMDiscover news jobs in .NET at JobsDotnet.com.
Posted by: JobsDotnet at June 3, 2008 10:25 AMIn my case i've been learning Java for a couple of months now and just the fact that it can essentially run on any platform makes it extremely popular. But i do agree 90% of desktops are running some sort of windows however, with the increasing popularity of the mini-notebooks being sold (out of the box with linux preinstalled) i'd still suggest that Java is an option you should look mor closely into. But if your mind is made up good luck! Reece
Posted by: Jobs In Manchester at July 26, 2010 7:49 AMAs an industry programmer , Although c# started by copying from java, I can really say there is only one thing which java is better than c# and that is being multi platform. in all other factors I prefer c#.
It is much easier to use delegates in c# , new frameworks like WPF help make great things done and its great IDE, visual studio has improved a lot during the years.
Good post -- a example of how and how don't pitch. I'm embarrassed that a multitude of in my field just do not get it.
Posted by: Jude Andes at January 15, 2011 1:28 AM