Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
4/8/2004 3:58:50 PM EDT
Anyone?  Let me know.
4/8/2004 4:12:48 PM EDT
[#1]
Quoted:
Anyone?  Let me know.
View Quote


Me... every day.

4/8/2004 9:33:20 PM EDT
[#2]
Ditto!

4/8/2004 11:40:13 PM EDT
[#3]
I do a little, but try to avoid it when possible.
4/9/2004 5:03:38 AM EDT
[#4]
Yep
4/9/2004 5:18:38 AM EDT
[#5]
I know Visual C++, and VB.NET.

I've done a little C#, and so far it seems pretty much like C++, but also includes the CLR features for managed code like VB.NET...
4/9/2004 5:36:06 AM EDT
[#6]
What would you recommend as being the best vehicle for learning the language?  What are the best web based resources?
4/9/2004 5:48:41 AM EDT
[#7]
Hey Folks,

I'm a recruiter and we frequently have C# and .NET opptys so let me know when and if you decide to look around.

Stevan
[url]www.AdeaSolutions.com[/url]
4/9/2004 6:11:14 AM EDT
[#8]
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.
4/9/2004 6:23:30 AM EDT
[#9]
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.  
4/9/2004 6:24:49 AM EDT
[#10]
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]
4/9/2004 6:30:43 AM EDT
[#11]
[url=https://www.amazon.com/dp/dvdtracker?tag=arfcom00-20]The .NET Languages: A Quick Translation Guide[/url] book helped me quite a bit.  I went from a VB6/ASP background to C# and it tells you how to do something in VB6, VB.NET and C#.
4/9/2004 6:31:57 AM EDT
[#12]
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]
View Quote


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...
4/9/2004 6:34:16 AM EDT
[#13]
That was the 'advanced' concept that I was referring to -- overloaded operators.

I post there as mhiles. I'm pretty active in the DotNetNuke community. I write modules for the DNN framework.
4/9/2004 7:28:42 AM EDT
[#14]
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!
4/9/2004 7:58:39 AM EDT
[#15]
I don't know what the underlying data transport is for the SETI client, but if it's XML, what you are wanting to accomplish should be super easy as you should be able to grab the XML data from their server and transform it locally.
4/9/2004 7:59:30 AM EDT
[#16]
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.  
4/9/2004 8:02:07 AM EDT
[#17]
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();
4/9/2004 8:08:35 AM EDT
[#18]
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.  
View Quote


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.
4/9/2004 8:39:51 AM EDT
[#19]
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.

4/9/2004 11:05:53 AM EDT
[#20]
Another good resource with lots of samples and public projects:

[url]http://www.gotdotnet.com[/url]
4/9/2004 12:37:08 PM EDT
[#21]
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();
View Quote


I am playing with snippet compiler, and it is telling me that UI is not in my namespace.

Is that a custome control?
4/9/2004 12:53:22 PM EDT
[#22]
You have to add the reference in your project.
4/9/2004 12:58:22 PM EDT
[#23]
Quoted:
You have to add the reference in your project.
View Quote


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();
}
}
4/10/2004 12:08:17 AM EDT
[#24]
80% of my coding is in C++, 20% VB, and I write all my HTML in notepad. [BD]
4/10/2004 1:28:14 AM EDT
[#25]
Quoted:
80% of my coding is in C++, 20% VB, and I write all my HTML in notepad. [BD]
View Quote


Hehe  I'm like that too.  Except I'm converting all my HTML over to PHP, and I use VI rather than notepad.
4/10/2004 2:04:36 AM EDT
[#26]
Quoted:
Quoted:
80% of my coding is in C++, 20% VB, and I write all my HTML in notepad. [BD]
View Quote


Hehe  I'm like that too.  Except I'm converting all my HTML over to PHP, and I use VI rather than notepad.
View Quote


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.
4/10/2004 10:31:07 AM EDT
[#27]
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.