Uechi-Ryu.com

Discussion Area
It is currently Sat Nov 01, 2014 12:34 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: C#
PostPosted: Sun Nov 03, 2002 5:56 am 
Offline
User avatar

Joined: Wed Aug 01, 2001 6:01 am
Posts: 178
Location: MA, USA
Anyone out there hear of/use C# (somewhat a mixture of C++ and Java). It's odd...
Heres a hello world program in it.


using System;
public class HelloWorld
{
public static void Main()
{
Console.WriteLine("Hello World!");
}
}

resembles Java a lot.
I hadn't heard of it until recently, did anyone else?

-David


Top
 Profile  
 
 Post subject: C#
PostPosted: Mon Nov 04, 2002 1:41 am 
Offline
User avatar

Joined: Sun Oct 06, 2002 6:01 am
Posts: 121
Yes, David. I know of c#, pronounced "C sharp.". Last summer I purchased the new Microsoft Visual Net package with C# in it.

It is a Microsoftism for web development, especially XML web development using Microsoft's NET platform, and is supposed to bring RAD to the C++ architect and turns everything into a COM object.

It's kind of like What Modula-2 was to Pascal. Sort of. C++ is too complex for most to get more than the hang of it further than the simpler features of the language which takes years to master -- even I learn a new trick or two in c++ once in awhile. C# is supposed to simplify as well as remove pointers and pointer problems.



------------------
Allen Moulton at Uechi-ryu Etcetera loves email at <A HREF="mailto:uechi@ixpres.com">uechi@ixpres.com</A>


Top
 Profile  
 
 Post subject: C#
PostPosted: Mon Nov 04, 2002 2:06 am 
Offline
User avatar

Joined: Wed Aug 01, 2001 6:01 am
Posts: 178
Location: MA, USA
I knew it did things differently with pointers, but get rid of them altogether?!? Is there anything like pointers in C#? I'll stick with C, C++ and PERL and when necessary assembly, C# seems unnecessary. How can it do without pointers though?


Top
 Profile  
 
 Post subject: C#
PostPosted: Mon Nov 04, 2002 10:47 pm 
Offline
User avatar

Joined: Sun Oct 06, 2002 6:01 am
Posts: 121
Pointers have a way of seperating the men from the boys, don't they David. Actually, David, these days I have an affinity to STL.

C# is Microsoft's answer to Java. I remember readng once, a few years back, that Microsoft was no longer going to support Java.

------------------
Allen Moulton at Uechi-ryu Etcetera loves email at <A HREF="mailto:uechi@ixpres.com">uechi@ixpres.com</A>


Top
 Profile  
 
 Post subject: C#
PostPosted: Tue Nov 05, 2002 12:39 am 
Offline
User avatar

Joined: Wed Aug 01, 2001 6:01 am
Posts: 178
Location: MA, USA
No longer support java? When was this supposed to happen? Is this one of Bill Gates "lets control everything so I'll stay rich" schemes? Speaking of Scheme, do you ever use LISP?

And although pointers seperate the men from the boys, THIS program really does....
(its C, of course you probably could have figured that out.)

Compile and Run it for a suprise! AND its timely (sorta) for the season.


////////////////////////////////////////
//Can you tell what this does before////
//you run it?///////////////////////////
////////////////////////////////////////

#include <stdio.h>
main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13?
main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
}'+}##(!!/")
:t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1)
:0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
"!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}


Top
 Profile  
 
 Post subject: C#
PostPosted: Tue Nov 05, 2002 12:41 am 
Offline
User avatar

Joined: Wed Aug 01, 2001 6:01 am
Posts: 178
Location: MA, USA
And for you people that think that Computer Sciences can't be cool....(another C program)
This too really works.
Giving credit where its due, http://www.cs.bgu.ac.il/~omri/Humor/verbose-c.html
and for the previous program, http://www.cs.bgu.ac.il/~omri/Humor/ObfsC.html

#define like {
#define man ;}
#define an ;
#define SayBro /*
#define CheckItOut */


SayBro like, this is some rad program, so CheckItOut

like
a = b
an
c = d
man

SayBro , like who needs help from them compiler choads anyway?
THIS is the way to write CLEAR code. I mean really! CheckItOut

like SayBro this is ShellSort straight out of the white book, but in
a readable form.

CheckItOut man

#define YoDude for(
#define OK )
#define is =
#define AND &&
#define as
#define Do
#define long
#define some
#define make
#define garbage
#define FAROUT

shell(v, n) SayBro sort v[0]...v[n-1] into increasing order CheckItOut
int v[], n;

like int gap, i, j, temp;

YoDude gap is n/2 an as long as gap > 0 Do some garbage an make gap /=2 OK
YoDude i is gap an as long as i < n Do some garbage an make i++ OK
YoDude j is i - gap an as long as j >= 0 AND v[j] > v[j+gap] Do some
garbage an make j -= gap OK
like
temp is v[j] an
v[j] is v[j+gap] an
v[j+gap] is temp
man
FAROUT man

[This message has been edited by dominiuno (edited November 04, 2002).]


Top
 Profile  
 
 Post subject: C#
PostPosted: Tue Nov 05, 2002 2:58 am 
Offline
User avatar

Joined: Sun Oct 06, 2002 6:01 am
Posts: 121
Reads like eubonics to me, boy. Where's the pointers? Try The C Puzzle Book for some real teasing twisters and mind bending pointer "endemics."

The more I look at c#, the more it reminds me of Modula-2 and Pascal. Both hit fat flat notes -- and stayed there.

------------------
Allen Moulton at Uechi-ryu Etcetera loves email at <A HREF="mailto:uechi@ixpres.com">uechi@ixpres.com</A>


Top
 Profile  
 
 Post subject: C#
PostPosted: Tue Nov 05, 2002 4:23 am 
Offline
User avatar

Joined: Wed Aug 01, 2001 6:01 am
Posts: 178
Location: MA, USA
I may have that book....I'm gonna hunt for it


That short program though is somewhat amazing when you run it for the first time, anyone who has any experience in C/C++ (not C#, Image ) should do it, its entertaining.

For some reason this thread reminds me of a old joke,
"ASCII a question, get an ANSI"
I don't know why, but it just popped in my head.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group