It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm new here and have a problem. I am having to pick up C#, but I have no experience in it. I'll mainly end up (probably) doing tooling type stuff, but I haven't programmed in awhile and I don't know a huge bunch about it.
I have to write a class that depicts an enemy spaceship, but I am not quite sure how! I seem to have forgotten everything I learned in Java and VB about writing classes. Where might I find good resources for re-learning to write classes, learning to write a class in C#, and learning to write classes for video games?
Specifically, I have to show how it interacts with other enemies, weapons, how big it is, how it looks, etc.
I'm not asking for code, just for resources on learning.
Maybe you should ask on the gamedev stackexchange platform in order to get more pertinent responses : Gamedev Stackexchange
Also, MSDN is a good solution : Learn Visual C# on MSDN. They describes the basics a lot, concepts, classes, structs, interfaces, with a lot of tutorials and resources (like Creating a Maze for example).
Not a direct answer but:
http://www.3dbuzz.com
They have incredible tutorials on c# and C and for the most part - programming logic is programming logic, once you have a way of thinking its a lot easier irrelevant of what the language is. They also have XNA stuff to help you with that.
You should stick to the MSDN Documentation. It's a good source of information for everything you need to know about C#.
Once you get a good hold on C# you should look into XNA Platform.
It's a free Game Development Engine by microsoft for C#.
You can make games for Windows, Xbox360 and Windows Phone.
http://www.microsoft.com/en-us/download/details.aspx?id=23714
This is the best tutorial I know to learn how to use XNA.
Well if you're starting from the ground up I would suggest download Microsoft's Visual Web Developer. It's a free IDE that will be very helpful for you when programming.
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express
Once you have that installed, you can follow csharp.net's introductory tutorials:
http://csharp.net-tutorials.com/basics/introduction/
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am new to Software Development, could you please give me some input into which platform is mostly used by other Software Developers.
I am looking to develop software which has DB Connectivity with an attractive customisable UI.
Please recommend the what is currently used in the IT industry by other Successful Software Developers.
If you are really new to learning try to read few books on C#, WPF, MFC and play with it. Choose the one which is more fun to work with and that will drive you to learn a lot. If you are into Industry then mostly your project needs drive you towards a particular choice.
But as i mentioned if you want to be successful learn one which is fun to you.
There is no simply best development platform. If so every developer should be developing with that instead of using many different tools and platforms. Every platform has its pros and cons. Personally I would recommend you c#. Its easy to start with. Its development environment(visual studio) is very good for interface design(especially for windows forms development) and its very good to start learning object oriented approach, which is very important in software development. If you can clarify you needs more maybe I can recommend something else.
There are many web development tools if you want to develop a web application. Dreamviewer is more simpler than visual studio to start designing web applications.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have made a game in C# with XNA. And I would like to make it playable online.
I want to be able to host a game on one machine and be able to connect to this game on other machines. Kinda like a listen server in Half Life.
This might seem like a pretty common problem that should have been solved a million times. But I have googled my ass off and i cant really seem to find any useful information.
I want to know exactly what I would need, concerning network-stuff, in order to create an online game with XNA, without using the microsoft-Live thingy.
A Library? the using-thing located in top of a class.
Code for initializing this stuff
How to look for another computer playing this game.
How to get/send data between the computers.
On which client are things calculated. If one guy would fire a bullet, should this bullet be created as an object on both clients? Or is one having the object,(checking for collisions etc.) and the other one just gets positions for draw?
I would like someone who has made a game like this to answer, what would be a standard approach.
The built-in XNA libraries are Live-focused, so you'll either have to live with that, or use a different network library.
The .NET UdpClient and Socket libraries are pretty straightforward.
Alternatively, have a look at the Lindgren open source network library. It includes some extension methods for sending XNA types like Matrix, Vector3, etc. which can be useful when you're getting started.
I wrote an answer for a question about making an MMO using lidgren, as mentioned above. It's got a few links to resources you can use to learn how to use it. I've used it personally to have a small test app with 5 users running around together, but I haven't taken it any further than that just yet.
Massive multiplayer in xna
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have always had an interest in coding, and a while back a started to learn C#. Since I only do this as a hobby, i have been learning it very slowly and don't know too much yet, but when I started to read about C++ and how it runs closer to the OS, I started to wonder if I should start learning C++ instead. I know html and JavaScript pretty well and to me C# seemed to be somewhat similar to js, so it wasn't to hard. I just downloaded C++ Express and noticed it is in a very different style than what I'm used to. I'm wondering if I should stick with c# or try c++ (especially if I want to start playing with Arduino sometime in the future). What are some advantages/ disadvantages to both?
As a person who has done all of these languages professionally, I would say that C# is probably the easiest to learn while still being very powerful. There is a lot of help for the .NET platform both from the libraries standpoint and from the community as well. Unless you really want to get down and dirty with a language, stick with C#.
The bigger answer, however, is "it depends". If you are looking to learn a language for the sake of learning one, C# is the way to go. However, if you are thinking about possibly using this new skill in a job setting, look for what type of job you want and decide from there. If you are looking to build applications for yourself and your friends, stick with C#. You can build a Winforms app in about five minutes and you can scale to larger and more professional apps easily from there. C++ will be much more difficult to do the same with.
Coming from Javascript, I would probably recommend staying with C# if you don't want to get down and dirty with details. It will take care of memory management and several other low-level concerns that C++ makes you deal with manually, so it's a little less of a shock to go from an interpreted scripting language like Javascript or Python or Ruby to C#. It's kinda half-way between them and C++.
That said, if you want to learn more of how programming languages and computers in general work, go for C++. It's more complicated than C#, but learning C++ very well makes any language you learn after that easy. Plus with C++, there's virtually no limit to what you can do (C# imposes a few limits), and you pretty much have the entire computer with all its speed and resources at your disposal.
That said, C++ usually takes longer to do the same thing in. For instance, creating a Windows application with a GUI and everything would take a considerable amount of time in C++, but in C# it's trivial. It's a tradeoff you have to deal with, but like I said, if you learn C++ first, C# is cake. The converse is not necessarily true though.
If you want to work with Arduino, go for C++ (never worked with Arduino but the code snippets looked like C so..). C++ is very similar to C, and most C will compile as C++ with very little modification.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to implement another debugger (language) for .NET (it's just for academic reason, so that it can implement just a part of a language). I myself like to implement NS2 (network Simlator 2) script for .NET in which anybody can write ns2 script and debug it with .NET
I read this article in stackoverflow and it is far from what I'm looking for.
Here is the requirement
have some predefined keywords (e.g: for, while, if ...)
check the correct form of the statements (e.g: for(start;end;counter){commands} ...)
diffferent colour for different types of statements
ability to add to any IDE (e.g: implementatin like add-in or as a dll or ...(I have no idea))
many other thing that is not necessary for now
How can I do this?
Update : I'm not sure that you got my point, take a look at this, it is very close to what I am looking for.
It will not be an easy task. However: The Dragon Book is probably a good place to start (assuming you've got sufficient computer science background for a compiler theory book to make much sense to you). Compiler Construction: Principles and Practice is also a good text.
You'll want to compile to CIL (common intermediary language). This handy wiki article outlines the CIL instruction set. Debugging your intermediate code against the CLR... well, that's where the StackOverflow article you've linked will come in handy =)
That'll cover your first two bullets (and consume a big chunk of your life).
The next two are different issues, but the easiest way to 'make it go' would probably be to define a syntax for an existing text editor, and set up a macro in the program to call your compiler. I'd recommend TextPad, though I'm sure opinions on a configurable general-purpose text editor will vary among the community ;)
Designing a full IDE with all of the features you've come to know and love in your environment could be quite a task ... or you could try to build an eclipse plugin. Personally (assuming you can design your language and learn something from it), I'd just stick with syntax highlighting in TextPad.
There is more and more interest in this area and in fact there is an active project by Microsoft Research that is looking at this on building a common infrastructure to build compiler (and debugger) for custom languages targetting .NET
http://cciast.codeplex.com/
I have used the infrastructure myself but not an expert in compiler technology. Hope this gives you a good starting point and you may find the discussion forum useful to share idea with like minded people.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 13 years ago.
How can I start with C#
First, get a copy of Visual C# Express, it's free.
Then, you could follow an online tutorial (use google), it could for instance be the one found here. I would also recommend you get a good book.
If you are a total novice at programming, I would go for a book that teaches programming rather than C# specifically. Many C# books will assume you have at least some experience with programming.
Microsoft has an excellent guide to Getting Started With C# on their web site. Download Visual C# 2008 Express and follow their instructions to create your first application.
If you're already comfortable with another object-oriented programming language, you might prefer to buy a decent book that takes you through the language from the perspective of an already experienced programmer.
Borland (developers probably most famous for Delphi) have a free IDE to get started with building your c# applications. To learn more about c# builder please visit there website at http://www.borland.com/csharpbuilder/
SharpDevelop has a very intriguing Visual Studio look a like, developed in c# and offering it's source for both review and modification. Released under the GPL it is without a doubt a powerful c# IDE. To learn more about this IDE, please visit http://sharpdevelop.com/OpenSource/SD/Default.aspx
If you need a good book, I would recommend Visual c# .NET 2003 in 24 Hours by Sams Publishing. I don't personally know the author but he is very helpful and his book is very insightful and aimed towards those who never programmed before.
Also Sitepoint.com has a nice set of articles and a book out about using C# .NET and ASP to make a website. That would be a fun way to start.
Start by downloading the IDE for C#... Visual Studio Express Edition. Free and no strings attached.
On that page, you can find learning resources as well. MSDN Express provide a good reference.
I recommend a copy of Juval Lowy's Programming .NET Components. I'm still picking stuff from that one.
Sometimes I feel as if I was new myself. There are always things to learn and discover.
Get a book, read first 2-3 chapters, then start to code reading in parallel the rest of the book. Think of a little project or a toy to program - and go for it!
Here you have the trick explained.
http://norvig.com/21-days.html
As with any other programming language, its not about how to start coding, its about what to code, how to study it, and to code! Being involved in a OS project always helps, so you can learn from the success or mistakes others developers make.
Hope it serves, Happy Coding!
Simply: don't start programming C#.
Try a real language like Java, C++ or Lisp.
Java is a classic beginner language.
And if you already knew it, you would not be asking that one-liner questions on stackoverflow.