Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

open source c# code

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
liaty



Joined: Tue Mar 14, 2006 5:10 pm
Posts: 30

PostPosted: Fri Apr 14, 2006 12:10 am    Post subject: open source c# code Reply with quote

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
View user's profile Send private message
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Fri Apr 14, 2006 12:59 am    Post subject: RE: open source c# code Reply with quote

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
View user's profile Send private message
liaty



Joined: Tue Mar 14, 2006 5:10 pm
Posts: 30

PostPosted: Fri Apr 14, 2006 1:43 am    Post subject: RE: open source c# code Reply with quote

I'll just have to start writing my own, probebly the best way to learn anyway.
Back to top
View user's profile Send private message
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Fri Apr 14, 2006 9:46 am    Post subject: RE: open source c# code Reply with quote

liaty, see

http://www.mono-project.com/Software

for various Mono apps written in C#.

M
Back to top
View user's profile Send private message Visit poster's website
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Fri Apr 14, 2006 2:47 pm    Post subject: RE: open source c# code Reply with quote

Prehaps Mono will be used in 30 years Very Happy . 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
View user's profile Send private message
liaty



Joined: Tue Mar 14, 2006 5:10 pm
Posts: 30

PostPosted: Fri Apr 14, 2006 8:01 pm    Post subject: RE: open source c# code Reply with quote

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
View user's profile Send private message
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Sat Apr 15, 2006 2:13 am    Post subject: RE: open source c# code Reply with quote

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
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Sat Apr 15, 2006 4:43 am    Post subject: RE: open source c# code Reply with quote

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 Wink 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 Smile.

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 Smile


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) Smile Smile



jm
Humpty Dumpty Was Pushed !
(and back in goes the cork Smile )
Back to top
View user's profile Send private message
liaty



Joined: Tue Mar 14, 2006 5:10 pm
Posts: 30

PostPosted: Sat Apr 15, 2006 10:29 pm    Post subject: RE: open source c# code Reply with quote

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
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Sun Apr 16, 2006 10:50 am    Post subject: RE: open source c# code Reply with quote

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 Rolling Eyes

Looks like you and google are going to become mates ... if not already so Smile

And, by the way ... ... always worth a looki suppose ... of course Wink
http://www.research.att.com/~bs

In case you have a wiered browser, the last bit there is a "tiled" character, prefixing the "bs" ...

Smile

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
View user's profile Send private message
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Sun Apr 16, 2006 7:05 pm    Post subject: RE: open source c# code Reply with quote

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
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Tue Apr 18, 2006 1:46 am    Post subject: RE: open source c# code Reply with quote

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
View user's profile Send private message
1slipperyfish
Forum Jester


Joined: Mon May 09, 2005 3:52 pm
Posts: 2431
Location: wigan

PostPosted: Fri May 26, 2006 10:31 am    Post subject: Reply with quote

i'm no expert but i would always advise someone who is learning to code to use java( i may be biased Very Happy ) as it is a good starting point is fairly easy to learn and i found it made c++ a lot easier to understand Very Happy 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 Very Happy
paul
_________________
i am a follower of the culture

Back to top
View user's profile Send private message
PythonRulz



Joined: Mon Feb 05, 2007 8:24 pm
Posts: 2

PostPosted: Wed Feb 07, 2007 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
manitoban



Joined: Fri Feb 02, 2007 1:20 am
Posts: 10

PostPosted: Tue Feb 13, 2007 12:29 am    Post subject: Reply with quote

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 user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast