Posted: 4/8/2004 3:58:50 PM EDT
| Anyone? Let me know. |
|
With the advent of .NET, you can do nearly anything in VB.NET that you can do in C# (with the exception of a couple very advanced concepts which are only used in rare circumstances). Now that VB is truly OOP and supports things like inheritence, there's no advantage to using C# if you don't already know the language. In .NET, all higher level languages get deconstructed within the framework into the Common Language Runtime. heilo, I am saying this because if you are wanting to learn to program and you are using the .NET environment and are trying to decide where to start, the challenge is less formidable if you start with VB as it is significantly more syntax friendly. I wrote a couple thousand lines of code this week in both languages. |
| After getting laid off last year programming PowerBuilder, I managed to get into a small company part-time learning Visual Studios .NET, ASP, and HTML. Not that hard to pick up and there are lots of tips, tricks, and hints to be found online after a Google search. |
|
Quoted: One of the best sites on the net is a user community not dissimilar to that here at ARF called [url]http://www.asp.net[/url] Hey, I am on there-- but rarely post... are you "BenDover" there too? Only thing I can recall being different between VB.NET and C# is that VB.NET cannot do overloaded operators... but with the CLR, you can write C# objects to handle overloaded operators or anythign really, and use it from within VB.NET fairly easily... |
|
Well, I have done a lot of "programming" with scripting langauges built into various financial packages I have used. None of it is "real" programming. It has been something I have always enjoyed and since my wife wants me to get out of the financial markets, I thought I woudl give a try to learning it. My first application that I came up with that I am going to try to tackle in the next week or so is, I want to read the user info file that seti@home generates and pull out the info that is in there, along with having the program go to the seti@home website and get the various stats for my account. I want that info to then be written to an html file, which is part of my active desktop. I have both VB.net and c#, and to be honest, I would prefer to learn c#, as I have always kicked myslef for not learning c back in the late 70's when I was really hooked on computers. Anyone have any code frgaments that would help me to reach my seti@home goal? Or shoudl I just bang myhead against it until I get it? Thanks guys! |
| BD, check out [url=http://www.devexpress.com/?section=/Products/NET/CodeRush]CodeRush[/url] if you use Visual Studio.Net. Very slick add-on for the IDE with a bunch of built-in templates, auto-completes, keyboard shortcuts, etc. It's nice being able to type "ps", hit the spacebar and have it create a public string property as well as the private field tied to it automatically. |
|
heilo, you can use some of the built-in objects to create HTML if you're so inclined. Here's a Hello World C# sample that puts some text in an HTML table and writes it out to a file. using System; using System.IO; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; Table tbl = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text = "Hello world"; tr.Controls.Add(td); tbl.Controls.Add(tr); TextWriter textWriter = new StreamWriter(@"D:\helloworld.html", false); System.Web.UI.HtmlTextWriter output = new System.Web.UI.HtmlTextWriter(textWriter); tbl.RenderControl(output); output.Close(); textWriter.Close(); |
|
Quoted: BD, check out [url=http://www.devexpress.com/?section=/Products/NET/CodeRush]CodeRush[/url] if you use Visual Studio.Net. Very slick add-on for the IDE with a bunch of built-in templates, auto-completes, keyboard shortcuts, etc. It's nice being able to type "ps", hit the spacebar and have it create a public string property as well as the private field tied to it automatically. Looks cool. I've been using Codesmith [url]http://www.ericjsmith.net/codesmith/[/url] a lot to generate application frameworks against templates. It's pretty cool and free. CodeRush looks like it does some similar stuff and also gives the IDE integration with VS. |
|
I found a good resource for .net is: [url]http://www.dotnet247.com/247reference/default.aspx[/url] The search feature on it trolls through newsgroup posts and different websites. If your stumped you can pretty much find anything there. I was looking for some rather out there stuff the last time I was working with .net and found some clues there. Its a good resource. |
|
Quoted: heilo, you can use some of the built-in objects to create HTML if you're so inclined. Here's a Hello World C# sample that puts some text in an HTML table and writes it out to a file. using System; using System.IO; using System.Web.[red]UI[/red].WebControls; using System.Web.[red]UI[/red].HtmlControls; Table tbl = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text = "Hello world"; tr.Controls.Add(td); tbl.Controls.Add(tr); TextWriter textWriter = new StreamWriter(@"D:\helloworld.html", false); System.Web.UI.HtmlTextWriter output = new System.Web.UI.HtmlTextWriter(textWriter); tbl.RenderControl(output); output.Close(); textWriter.Close(); I am playing with snippet compiler, and it is telling me that UI is not in my namespace. Is that a custome control? |
|
Quoted: You have to add the reference in your project. This is how I set it up. using System; using System.Collections; using System.IO; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; public class MyClass { public static void Main() { Table tbl = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text = "Hello world"; tr.Controls.Add(td); tbl.Controls.Add(tr); TextWriter textWriter = new StreamWriter(@"D:\helloworld.html", false); System.Web.UI.HtmlTextWriter output = new System.Web.UI.HtmlTextWriter(textWriter); tbl.RenderControl(output); output.Close(); textWriter.Close(); } private static void WL(string text, params object[] args) { Console.WriteLine(text, args); } private static void RL() { Console.ReadLine(); } private static void Break() { System.Diagnostics.Debugger.Break(); } } |
|
Quoted: Quoted: 80% of my coding is in C++, 20% VB, and I write all my HTML in notepad. [BD] Hehe I'm like that too. Except I'm converting all my HTML over to PHP, and I use VI rather than notepad. I've been playing with PHP a little too. It's a primitive language, but it's simple and efficient. I also do a little client-side coding with JavaScript, but only when forced. he he C++ is so much more powerful than the languages mentioned in this thread that I find myself not wanting to code in anything else. |
| Well, I've decided that having my website be all PHP or all HTML would be better than a mix, and I needed PHP for a couple pages, so they're all getting converted. It is simple though, which works in its favor -- if it was a royal PITA (say...javascript [puke]) I wouldn't be doing it. |