| View previous topic :: View next topic |
| Author |
Message |
liaty
Joined: Tue Mar 14, 2006 5:10 pm Posts: 30
|
Posted: Fri Apr 14, 2006 12:10 am Post subject: open source c# code |
|
|
| I just starting to learn c# using mono. Where can I get sample code that is open source ie that I can use and change without hacking Microsoft code or any other propriety code. |
|
| Back to top |
|
 |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Fri Apr 14, 2006 12:59 am Post subject: RE: open source c# code |
|
|
| Theres not much C# Mono code out there at the moment because Linux is only just taking it on. I imagine somebody else here might know of some but there isn't a great deal. There are some Mono tutorials out there though. |
|
| Back to top |
|
 |
liaty
Joined: Tue Mar 14, 2006 5:10 pm Posts: 30
|
Posted: Fri Apr 14, 2006 1:43 am Post subject: RE: open source c# code |
|
|
| I'll just have to start writing my own, probebly the best way to learn anyway. |
|
| Back to top |
|
 |
M-Saunders Moderator

Joined: Mon Apr 11, 2005 1:14 pm Posts: 2881
|
|
| Back to top |
|
 |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Fri Apr 14, 2006 2:47 pm Post subject: RE: open source c# code |
|
|
Prehaps Mono will be used in 30 years . Doesn't GNU still use the original C for most of their work so they're probably about to move up to C++ then Mono will come about when computers can anticipate our need for coffee (essentially an infinite loop making coffee at each pass).
Of course just because a lot of Linux people still program in C doesn't mean that Mono won't be used. |
|
| Back to top |
|
 |
liaty
Joined: Tue Mar 14, 2006 5:10 pm Posts: 30
|
Posted: Fri Apr 14, 2006 8:01 pm Post subject: RE: open source c# code |
|
|
The reason I chose mono, was I like the idea of being able to port programs to windows. If I get to the point of writing resonable programs, I can show freinds that use windows, on their machines.
Plus I am starting a course in September, part of which is programming. I know that it will be programming in windows so I am getting a head start now as monodevelop looks very similar to visual studio. |
|
| Back to top |
|
 |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Sat Apr 15, 2006 2:13 am Post subject: RE: open source c# code |
|
|
| Most major languages are portable though. Java especially runs on many systems. The only thing you have to be careful of is that compatible libraries are available for each system. In the case of C++ both GTK and QT will run in Windows. Also is Mono an exact .Net clone or does it simply do something similar in a different way. |
|
| Back to top |
|
 |
jjmac LXF regular
Joined: Fri Apr 08, 2005 2:32 am Posts: 1996 Location: Sydney, Australia
|
Posted: Sat Apr 15, 2006 4:43 am Post subject: RE: open source c# code |
|
|
Hi,
GMorgan Wrote:
>>
Prehaps Mono will be used in 30 years . Doesn't GNU still use the original C for most of their work so they're probably about to move up to C++
.
.
.
Of course just because a lot of Linux people still program in C doesn't mean that Mono won't be used.
>>
That is quite interesting, don't get me wrong here as i figure you are talking quite lightly. But it does seem to echo the curious perception that there is something actually wrong with C. Even though very few languages themselves, in source form, aren't built using it Except for possibly emacs. There is also this idea that C and C++ are actually different things, rather than the former, really just being an inclusive set of the later.
As Stroustrup well points out, the problem people tend to have with diff languages is more the result of them evaluating one, but in terms of an the other or by them having some vested interest in the promotion of one. Which in the proprietary world is unfortunate, but none the less a fact. Would not SGI push the benefits of templates, even before their spec was completely ironed out (grin)
C will, for a long time to come, provide the required balance between low level manipulation and the ability to work in a higher level conceptual context. All the bad C around is just that, bad C. Quite a lot of the code about is written in a style that has long since been superseded (X), but people get there habits and they do, do, a lot of good work. C++ it self provides just a better C in that regard. And has it not been suggested that C# was invented as a MS strategy to get coders accustomed to a platform specific language originally. As a knee jerk reation to the proliferation of Java and the web. It does look a lot like C/C++ with a lot of Java thrown in to me (grin)
Not that that has anything to do with Iiatys' original post though .
As mentioned above (the link), and i'm sure a good google on mono along with a few site greps will generate the links you need
GMorgan Wrote:
>>
Most major languages are portable though. Java especially runs on many systems.
>>
As you say ... as long as the system is set up correctly. It isn't surprising how many people have difficulties getting Java up and running. But no more so than any other system. I don't really see Java having any real special claim to portability though. Like ... dosen't "sizeof(char)" strick one as being designed just with portablility in mind.
Smirfed MS headers that use "WINMAIN" macros that just expand to "stdcall" don't count either (grin). The purpose for that usage is quite obvious. Especially considering that stdcall is a default modifier anyway (grin)
jm
Humpty Dumpty Was Pushed !
(and back in goes the cork ) |
|
| Back to top |
|
 |
liaty
Joined: Tue Mar 14, 2006 5:10 pm Posts: 30
|
Posted: Sat Apr 15, 2006 10:29 pm Post subject: RE: open source c# code |
|
|
Suppose the main thing for me to do is learn how to code first, how programs are constructed, how variables, loops etc work and then worry about which code is going to be the most suitable for my needs.
I appreciate the advice above, but it's like the old "which distro should I choose" question. Ask a suse user, they'll say use suse. Everyone recomends what they are familliar with themselves. Untill i've leared and understood programing and how it works, it's pointless me trying to guess which one will be suitable for me.
According to the books most codes are similar, so I'll stick with C#, I've got the book now, and then once I have a beter understanding I can look at other codes. |
|
| Back to top |
|
 |
jjmac LXF regular
Joined: Fri Apr 08, 2005 2:32 am Posts: 1996 Location: Sydney, Australia
|
Posted: Sun Apr 16, 2006 10:50 am Post subject: RE: open source c# code |
|
|
Howdy,
Your just trying to beat the gun ... so to speak ... you know ... trying to figure the hurdles out first , before running the track an all. Don't punish your self to much there (grin) ... makes sense to me at least ... Thats why the cars do their trial runs before they figure thier point hierarchies out , no ? ... ah. Makes sense of course
Looks like you and google are going to become mates ... if not already so
And, by the way ... ... always worth a looki suppose ... of course
http://www.research.att.com/~bs
In case you have a wiered browser, the last bit there is a "tiled" character, prefixing the "bs" ...
jm
Humpty Dumpty Was Pushed !
And Prohibition Suxs ... _________________ http://counter.li.org
#313537
The FVWM wm -=- www.fvwm.org -=-
Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ... |
|
| Back to top |
|
 |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Sun Apr 16, 2006 7:05 pm Post subject: RE: open source c# code |
|
|
The comments about C. I just find a lot of pure C code being wrote and the use of older style procedural type programming when OOP is easier to read and appreciate. I have no real problem with C, bad coding is the real problem.
My main concern is I just feel that everyone seems to be pushing Java and other languages (all seemingly intepreted ones) when due to efficiency problems and the mountain of legacy code available I'm not sure Java is going to be the next big thing many make it out to be. GNU's position of using a lot of original C seems to support this.
Sure it has a well established and deserved role in the browser plugin market but a comparison between several applications that use C/C++ and Java leaves Java looking a bit on the weak side at the moment (of course it can change with work but then any language could be made to be the leading language given time). I've tried running the Java based Azureus in both XP and Linux and I find it to be a system hog (it put my 1GB machine well into virtual memory in XP, as much as 1GB into it) while uTorrent is a C/C++ based Azureus clone and runs in 6MB of RAM (but doesn't have a Linux version yet and is closed source at the moment despite being free). |
|
| Back to top |
|
 |
jjmac LXF regular
Joined: Fri Apr 08, 2005 2:32 am Posts: 1996 Location: Sydney, Australia
|
Posted: Tue Apr 18, 2006 1:46 am Post subject: RE: open source c# code |
|
|
Hi,
Java (Oak) was originally designed for embedded systems. And so was designed with the view to force the programer to write the souce in such a way that all serious errors were caught at compile time. Just so that when you turned on the device, its' chip set wouldn't blow up. Its' application towards the net came later ... once Sun saw the potential due to the increase in popularity. So it may not actually be the best modle from a security point of view. There was a comercial imperative component included in its' promotion.
The first time i ported a lot of my own Java over to Linux from Windows ... i had to change the anchoring co-ordinates for all of my widgets due to the difference between the two platforms when it came to window decorating.
A minor thing i suppose but it did belie the cross-platform aspect. But then --- MS may have been more at fault there too (grin).
jm
Humpty Dumpty Was Pushed !
And Prohibition is Bad ! _________________ http://counter.li.org
#313537
The FVWM wm -=- www.fvwm.org -=-
Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ... |
|
| Back to top |
|
 |
1slipperyfish Forum Jester

Joined: Mon May 09, 2005 3:52 pm Posts: 2366 Location: wigan
|
Posted: Fri May 26, 2006 10:31 am Post subject: |
|
|
i'm no expert but i would always advise someone who is learning to code to use java( i may be biased ) as it is a good starting point is fairly easy to learn and i found it made c++ a lot easier to understand also as you are using virtual memory there is no danger of doing any permenant damage to your pc(well hardly any)
as for c# i found the same as vb, crap
paul _________________ i am a follower of the culture
 |
|
| Back to top |
|
 |
PythonRulz
Joined: Mon Feb 05, 2007 8:24 pm Posts: 2
|
Posted: Wed Feb 07, 2007 6:20 pm Post subject: |
|
|
| How is C# crap? It is hardly like VB. But, are you talking about VB.net or VB 6, 5, 4 etc? |
|
| Back to top |
|
 |
manitoban
Joined: Fri Feb 02, 2007 1:20 am Posts: 10
|
Posted: Tue Feb 13, 2007 12:29 am Post subject: |
|
|
Hi All,
I couldn't resist putting my oar in here. The arguements about programming languages have been going on for so long that most of the original arguers are dead. I discovered C# to be very like Object Oriented Pascal. A language I followed for many years until it morphed into Delphi and Kylix, and became so expensive that an amateur like me could not afford them.
So far, inC#, many of the good features of Delphi are in C#, and some of the bad features of C, (which I did a little of in days gone by) are absent. I don't care who invented C#. It is a language I intend to follow for a while. I like it.
Bill |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|