Help/Guidance on Expanding Knowledge of C# - C, C++, C# and Other Windows Phone Development

I've been taking some classes in C# programming at my University. I'm trying to attain a Computer Science degree and I feel like I've not learned much but a mild foundation for what I can do with C# programming and would like to expand my knowledge, little by little. I feel as though I have a pretty firm grasp on the basics and would love an experienced hand guiding me in the right direction towards getting me better ready for the job market after college. I'm currently applying for internships and would like to be well prepared.

Detayl said:
I've been taking some classes in C# programming at my University. I'm trying to attain a Computer Science degree and I feel like I've not learned much but a mild foundation for what I can do with C# programming and would like to expand my knowledge, little by little. I feel as though I have a pretty firm grasp on the basics and would love an experienced hand guiding me in the right direction towards getting me better ready for the job market after college. I'm currently applying for internships and would like to be well prepared.
Click to expand...
Click to collapse
The best way is to simply use it as much as possible and challenge yourself. I've been working as a developer for nearly 20 years and I'm always finding new things that I don't know how to do. Learning to search effectively is probably the best skill any new developer should hone.
If I were you I'd start out with something not too difficult, like a simple text editor application (make your own version of notepad!) That will give you some basic skills like simple UI design (menus, controls anchored to the form etc.), file reading/writing (good exposure to streams unless you use the quick and easy methods). It's just a general basic all-rounder. Then expand on it - make it so the pages open in tabs. That will teach you about collections (the tab pages, in this instance) or MDI child windows.
There are some great resources available online, but I'll always suggest Stack Overflow. If you don't know it then google it. It's part of the "Stack Exchange" collection of Q&A sites and is probably the most reliable place on the web for programming answers.
Basically, don't try and learn it so you can do it. Do it so you can learn it.
I hope this helps - good luck, and most of all, have fun!

Archer said:
The best way is to simply use it as much as possible and challenge yourself. I've been working as a developer for nearly 20 years and I'm always finding new things that I don't know how to do. Learning to search effectively is probably the best skill any new developer should hone.
If I were you I'd start out with something not too difficult, like a simple text editor application (make your own version of notepad!) That will give you some basic skills like simple UI design (menus, controls anchored to the form etc.), file reading/writing (good exposure to streams unless you use the quick and easy methods). It's just a general basic all-rounder. Then expand on it - make it so the pages open in tabs. That will teach you about collections (the tab pages, in this instance) or MDI child windows.
There are some great resources available online, but I'll always suggest Stack Overflow. If you don't know it then google it. It's part of the "Stack Exchange" collection of Q&A sites and is probably the most reliable place on the web for programming answers.
Basically, don't try and learn it so you can do it. Do it so you can learn it.
I hope this helps - good luck, and most of all, have fun!
Click to expand...
Click to collapse
Thanks! I was just thinking of making this my first project as well. I've done some random things such as a Base10 to Hexadecimal generator, in both the console and WPF. I was thinking this might be a good project as well. I just don't like the fact my school hasn't asked too much of us, but from what I've read that's common. I just want to be prepared to enter the job market so that I may hone my skills. I guess I'll get working on researching what the basic requirements of a text editor is, and how to start saving/opening/creating .txt files.

Related

Wanting to learn the basics of programming

Hi guys, now I know this is a BIG request, but I was hoping someone might be interested in helping me begin to learn the different aspects of programming.
Now I know I cant just "hop on the band waggon" I need lots of training before hand in different programing languages, but the one I really want to understand is c# (thats what most windows mobile apps are built on right?)
So are there any really good recomended beginners guide you guys could suggest to me to get me started.
Sorry I must sound like I dont have a clue xD
(well I dont)
Thanks in advance
Hop on the band waggon? I guess you'd rather have to jump in cold water!
I suggest buy a book. If you actually spend the money on it then it's bigger motivation to make something out of it. There's even a book about Windows Mobile .NET programming. What else could you ask for? I don't have the link at hand but you should easily find it on Amazon.
RAMMANN said:
Hop on the band waggon? I guess you'd rather have to jump in cold water!
I suggest buy a book. If you actually spend the money on it then it's bigger motivation to make something out of it. There's even a book about Windows Mobile .NET programming. What else could you ask for? I don't have the link at hand but you should easily find it on Amazon.
Click to expand...
Click to collapse
Hey thanks for the speedy response,
are you refering to this?
http://www.amazon.co.uk/Programming...=sr_1_1?ie=UTF8&s=books&qid=1264201954&sr=8-1
It looks pretty nice, and will it teach me the basics?
yes, for example. or this one:
http://www.amazon.co.uk/Microsoft®-NET-Compact-Framework-Reference/dp/0735617252/ref=pd_sim_b_5
If you are really looking to learn programming, I would suggest against starting with Windows Mobile development. .NET framework for Windows Mobile is very lacking, and in order to do even simplest things you end up using Interops (way of calling native libraries written in C++) or searching/writing libraries on your own.
.NET (and C# by extension) is a multi-platform framework. Start with simple Windows or Web development. Read up on OOP development, find some simple examples online and start a very small, easy to write project.
Once you can write some simple applications for Windows or Web, then you might want to start looking into Windows Mobile development.
Before you start spending money on books try Microsoft's Beginner Developer Learning Centre a go. There are lots of video tutorials which will help you get the basics down http://msdn.microsoft.com/en-us/beginner/dd435692.aspx.
It's not specifically for windows mobile development, but most of what you will learn is transferable.
Once on the website, click "Windows Track" and then "Tier 1", tutorials are available for both C# and VB.NET.
The guy that made the BDLC tutorials for Microsoft also runs http://www.learnvisualstudio.net/, there are a few more free tutorials there too on more advanced topics, a subscription to the site will let you get all the videos.
And look for open source applications like "ReRemind", "Freda" or "RemoteTracker". If you debug these you can learn alot.
ajhvdb said:
And look for open source applications like ... "Freda" ... If you debug these you can learn alot.
Click to expand...
Click to collapse
No No No please don't use Freda as an educational example It's the first .NetCF app I wrote and I really am not very proud of some parts of it. In particular, I only figured out the right pattern to use for 'settings' forms after I had written several already. Some day I will go back and tidy up the code and document it properly. But right now I am still adding features ...
Jim
dont worry, if i look at my old code it's bad too but still works

[Q] Windows Desktop Programs/Games to Windows Mobile?

Took a look back for a few pages, and did a couple quick searches. Didn't quite find enough info.
I am wondering the best approach to take when converting a program to be compatible with and run on windows mobile.
I don't currently know any languages so, I would have to start learning from the beginning.
Thanks for any info
from the little I know about programming, the way an application (or games) works on windows is nothing similar to the way a program runs on windows mobile, so you would actually need to start from scratch... There are however some tools to make the job easier with older programs, like Dosbox... but I don't know if it's what you want.
The most amazing think for me is that, out os 61 views on this topic, the only person that bother to answer is NOT a developer (me)
Convert app? Impossible. With source code it is possible, if you adjust UI to fit the screen and get over some limitations and many other things.
Good is .NET on this, because if you install .NET CF on your PC, you can run apps built for winmo directly on your PC. Only issue is when it tries using other than normal libraries from GAC and tries using InterOp. That library would have to be recompiled for win32, rather wince-arm (back to 1st part). The same, the app has to be made that it is compatible with both file paths - remember that WinMo doesn't use C:\Windows but \Windows etc. And .NET CF is highly limited compared to desktop version.
Thanks for the replies.
I'm not looking for a simple way to convert programs as I'm sure it is impossible. I'm expecting to have to pretty much start from ground up.
I've seen some games such as Pocket Diablo(some others here http://www.jamesbeckingham.com.au/Default.aspx) as well as Starcraft that someone here was working on.
But I'm just wondering the best approach to do work like these guys. As there are some games I would like to bring to mobile.
These games work pretty much that people make the engine from scratch, with many hours in disassemblers, hexeditors etc they find out how does the engine load graphics from those huge files etc and they add it to their engine. Usually.
Its possible... but often more work than it is worth
OndraSter said:
These games work pretty much that people make the engine from scratch, with many hours in disassemblers, hexeditors etc they find out how does the engine load graphics from those huge files etc and they add it to their engine. Usually.
Click to expand...
Click to collapse
Exactly. The hours put in to "porting" these apps to windows mobile is often close to the work it would take to make the game from scratch. So if you are not familiar with coding, disassembling code is far outside your scope. However, when finished, these games have more of an original feel, but often work less effective. This is due to the translation of using mouse clicks to touch input. Games such as diablo rely heavily on having two mice buttons to click. A total remake would be less like the original but might compensate for the new control scheme.
Both ways are possible, but they are both also complicated and involve a great deal of work. Not to mention how unhappy blizzard is with people using their artwork, even if the game is absolutely free.
Sorry but, none of you are really being helpful..
I do not expect this to be easy. I am expecting it to be a long process, and telling me something that I already know over and over doesn't help me get started. I've already said that I expect to probably have to rebuild these from ground up..
I know what is ahead of me and want to do this stuff, other wise I wouldn't be asking.
So if anyone knows the process or at least where I could get started. Please let me know. Otherwise I'll just start with Java then C# until I find my own way into doing this.
From personal experience of porting a game ( http://forum.xda-developers.com/showthread.php?t=717274 ), it will take awhile. Here is the process I used when making the game:
1) Collect image resources if any are possible to be used.
2) Research what kind of engines to use. I made the mistake of trying to use the basic image function in C#.net, which was a waste of time. Then I switched to GDI+ and haven't had any problems since.
3) Make a list of things you want to do on the program. From the required things to the extra fancy features. Sounds are extra features.
4) Prototype A LOT. Find what you want to accomplish, break its parts down into basic actions, then prototype of how to do that action.
As a language to start with, I personally recommend C#.net because its easy to use. It doesn't have the speed of C++, but it does have the #region/ #endregion functions which have helped me ENORMOUSLY with writing code. The region code can be minimized. With 2000+ lines of code per class and about 20 classes, minimizing code makes moving around easier.
Check the XDA boards or search online if your lost. If you need more help on porting code or making functions to do specific actions, message me and I'll gladly help.

[Q] Making WP7 Apps?

I'm sure this question has been asked through other forums (similar threads were shown) but I couldn't find one for WP7.
I recently picked up the HTC Surround and so far I'm really enjoying it. One thing I'm missing are some apps that I had on the iPhone. Namely, WunderRadio. I don't know if, in time, they'll make this app for WP7 handsets but to be honest I'd like to try to make my own. Conceptually, the idea seems simple: have a list of streaming stations, allow the user to scroll through them, then pull the right information when a station is selected and stream it.
However, I have absolutely NO background in programming so I may very well have oversimplified the process I'm aware it's going to take some time and real effort but I do have some time on my hands and would love to give back for once. I'm hoping to refine my skills enough where I could start writing more applications. The marketplace leaves a lot to be desired when looking for apps. I'm hoping to find some books or free resources to help me get started. The cheaper the better
Any tutorials, videos, free resources would be greatly appreciated.
Thanks in advance!
-- 127 views and no replies? Am I asking in the wrong forums or people really don't want to help?
There's a ton of resources on create.msdn.com and the MSDN blogs. Here is their jump start post:
http://create.msdn.com/en-US/education/catalog/article/wp7_jump_start
However, I get the feeling that writing a solid streaming radio station isn't something that's going to be easy for someone not only unfamiliar with mobile/WP7 programming, but programming altogether. You're certainly welcome to try, I'm just saying, it won't be easy.
Thanks Deeko, I'll start there.
I'm not sure if you're familiar with WunderRadio but that's basically what I'd like to accomplish. I guess I'll start with some simpler projects that aren't as involved.
Thanks again.

My First App, Need Serious Help :/

Hey guys, like the title says, I'm attempting to create an app, but with little success at this point.
What I want to do, didn't sound all that complicated in my head. I want to make an episode guide for a TV show I like. Nothing too fancy, but I do want it to look WP7-authentic.
First off, I don't know or really understanding coding in the slightest. I was hoping to be able to design most of the app through the on-screen WP7 display, which it seems I can do a lot on.
From what I've gathered, here's what I'd like to do:
Use the "Pivots" as the different story arcs or "seasons"
Within each pivot, Episode # and Title
But I'd also like to go one further and have each episode be clickable, which would take the user to a page containing info about the respective episode. Synopsis, International Titles, Airdate, etc.
It's a big project, I just need a little help getting it going.
Thanks!
dbG33K
what you're describing can be done one of two ways.
1. just display images after images
2. input text into the program
from what im gathering, it should be fairly easy for you to do as this is the sort of beginner stuff in most windows phone 7 programming books. id suggest you look into programming because even the slightest pivots and transitions require code.
now if you were on android or webos, thats different. they have full on graphics based programming thats a simple matter of drag and drop and choose function.
Download Expression Blend. You can do pretty much everything without having to write any code. It includes a "Pivot" template which has a pivot all ready for you, then you just add PivotItems using your mouse. Then you can use the Sample Data feature to mock up how your episode data will look.
The only thing you would have to write code for would be to pull the episode information from a datasource. Bind it to your controls and Expression will have the rest done for you.
http://www.microsoft.com/expression/windowsphone/
Sample Data:
http://expression.microsoft.com/en-us/ee426896.aspx
First thing you'll need before you even open Visual Studio or Blend is a data feed.
An rss feed is ideal, And I'm sure theres alot of them out there for TV listings. Without that, theres little you can do (other than screen scraping websites, but people don't look too kindly on that)
If you can find me a Url for the RSS feed you want to use, I'll be more than willing to help you out
xanderkaiber said:
First thing you'll need before you even open Visual Studio or Blend is a data feed.
An rss feed is ideal, And I'm sure theres alot of them out there for TV listings. Without that, theres little you can do (other than screen scraping websites, but people don't look too kindly on that)
If you can find me a Url for the RSS feed you want to use, I'll be more than willing to help you out
Click to expand...
Click to collapse
What he said
I'd be willing to help you out as well. I'm in the process of writing a feed reader to help me make the move WP7 from WPF/Silverlight. The idea I have for the UI is similar to yours and the feed reader (at least in the basic form) will be open source so I've no problem sharing my code...
I appreciate your willingness to help me out, but it's actually a series that has been over for quite a while.
Hey guys, I've gotten much further on my app and have become a little more well-acquainted with coding in the form of using Expression Blend 4. That said, I do have a few questions:
1. After making a few pages, I decided to make a sort of Welcome page for my app. How do I tell it to show that page first instead of "MainPage.xaml"?
2. On that welcome page, I would like to make a button that pulls up the user's E-mail and have it have my e-mail as the recipient.
Thanks a bunch!
This is in the WMAppManifest.xml file within the Properties folder.
for the email look into the email compose task
barryallott said:
This is in the WMAppManifest.xml file within the Properties folder.
for the email look into the email compose task
Click to expand...
Click to collapse
That doesn't really help me too much...
What am I supposed to do in the WMAppManifest.xml?
And where do I find the email compose task, and how do I implement it into the app?
EDIT: Nevermind, I figured out both of those questions. A new question, though: How do I take screen shots of the app? I need at least one to submit it to the marketplace, but I don't know how :/
dbG33K said:
That doesn't really help me too much...
What am I supposed to do in the WMAppManifest.xml?
And where do I find the email compose task, and how do I implement it into the app?
EDIT: Nevermind, I figured out both of those questions. A new question, though: How do I take screen shots of the app? I need at least one to submit it to the marketplace, but I don't know how :/
Click to expand...
Click to collapse
Download this:
http://www.innovativetechguy.com/?p=13
Make sure your emulator is set to 100% size and uncheck the "Show Device" checkbox in the tool. That will give you the necessary 480x800 sized .png
There's a fair lot you can do using the designer panel, but you will definitely need C# code for what happens 'behind the curtains'. Things like pulling the episodes from the internet and such.
I definitely recommend these tutorials:
Windows Phone 7 Development for Absolute Beginners.
It builds up slowly, but definitely gives you the foundation you need to put together basic applications.
Hey guys I found this thread and after reading it I feel I have a lot in common with dbG33K's tasks & questions. I feel I have a lot to offer WP7 apps as I learn more! I started out in January learning and studying as an absolute beginner (even did the 5 day course online). After a lot of studying, I felt confident enough to write my first BIG app.
I'm pretty good at the xaml part and getting real familiar with c# as I go along. Also, I think I have all the pieces I need, just need help putting it all together. I'm using an API for the data source (i have all the dlls and resources in place even all the c# methods for the API).
I have the UI all put together, now working on the c#. I'm just unsure on the binding part. I know my listboxes and other controls should be binded to a method in c#, but what calls that method? When the page loads that listbox, textblock, etc? Also, what kind of coding is generally used inside the {} of the methods that pulls info from the datasource?
As I have learned a lot aver the past couple of months, I find that I've learned it from examples I've found online, but I'm drawing a blank on this one. Any help would be great!
Thanks!
Do any of you can tellme how can I save text from the text box??
Sent from my LG-C900 using XDA Windows Phone 7 App

[REQ] Beginning WP7 Coding - Need some help

I have been coding on WM 6.x and the CE lineup for years. Done it on VB.NET. Now, with the iteration of WP7, I have migrated to the refreshing OS. But, I got the shock of my life when I opened VS2010 WP7 project...
XAML, Binding item, etc. I have never touched them before. Coding for the WM 6 was as easy as Windows Forms. If you get me. I gave up WPF because of the confusing stuff esp XAML. Borrowing a WP7 coding book frm the library didn't help. So now.. If there's any member who's willing to devote a small time to answer some of the coding difficulties (thru PM) as I code along, it will be great. Can't offer you much, though ...
Went through the same thing. I found the documentation on MSDN really useful. Also if you have a look on codeplex there are some samples and apps around that could be useful for you to look over. I would say don't be too scared by XAML its really good once you get used to it.
Also you might want to look at the new mango dev tools as they support developing in vb so you won't have to move to c sharp
arikyeo said:
I have been coding on WM 6.x and the CE lineup for years. Done it on VB.NET. Now, with the iteration of WP7, I have migrated to the refreshing OS. But, I got the shock of my life when I opened VS2010 WP7 project...
XAML, Binding item, etc. I have never touched them before. Coding for the WM 6 was as easy as Windows Forms. If you get me. I gave up WPF because of the confusing stuff esp XAML. Borrowing a WP7 coding book frm the library didn't help. So now.. If there's any member who's willing to devote a small time to answer some of the coding difficulties (thru PM) as I code along, it will be great. Can't offer you much, though ...
Click to expand...
Click to collapse
Same here, although i don't have any programming skills at all.
Any help/advice would be appreciated.
I can understand how going from WinForms to XAML/Silverlight would be a shock.
Strangely, my ASP.NET experience helped me to adapt to XAML - the concept of defining UI declaratively in the markup and having the code in a code-behind file is exactly the same in both.
If you've done any desktop WPF, it's the same concept as well.
In order to adapt from WinForms, think of it this way:
1) the design canvas - works similarly between either WinForms, WPF, Silverlight.
2) the declarative markup - similar in concept to HTML. In WinForms, the auto-generated InitializeComponent () in *.designer.cs is responsible for creating, initializing, and building the UI - in WPF/Silverlight the XAML serves this purpose, but is much easier to modify than the InitializeComponent method (which they tell you you shouldn't be doing).
3) the code behind - In WinForms, you have to open up your WinForms class in the code view, and you can code all the event handlers and whatnot. In WPF/Silverlight, this is in the *.xaml.cs, and is very similar to the WinForms codebehind.
I'd recommend going to create.msdn.com and start going through the tutorials.
Check this site Getting Started with Windows Phone.
http://msdn.microsoft.com/en-us/wp7trainingcourse_wp7gettingstarted_unit
Yes, MSDN, they have a on-line training to get your started, even your first "Hello World" app to try. I figure I will be going this route to get an idea of the tools then go deeper into reading coding just to get the fundamentals down.
It's the only way I could get started...
These videos are helpful
http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners
is there a german version too??
i need German language
styles89 said:
is there a german version too??
i need German language
Click to expand...
Click to collapse
Doesn't look like it, and besides nearly all programming is done in English.
Personally I can't stand using a Norwegian version of Windows, and others can't live without it.

Categories

Resources