VB haters, look away
-
Eddy Vluggen wrote:
VB7 runtime, known as .NET.
Sorry, I can't find anything to support this statement. Care to share a link or two. Thanks.
No, I don't care :) There was this quote saying "we needed another curly braces language" at the introduction of C#, which coincided with the release of the renamed VB7. VB6 already introduced compiling to P-code, a runtime/framework that needed be installed. Also take into account that C# code can be automatically translated (search & replace-kind of simple) to VB. C# is nothing more than a cleaned up VB6.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
-
Funny, C# was modeled mostly after Java and C++, but no one ever mentions the Java part.
Agreed. I heard through the grapevine that MS even hired some top Java guys to help design C#. Never heard of the VB thing. Methinks its the author's wishful thinking.
Jeremy Falcon
-
Sure, but even C# 1.0 took some things further than Java did at that time.
Yeah, but the point is, it was based on Java. Way more than VB. I think that book author is just biased. I don't have citations, but I always heard that even MS hired some top Java guys to help with the initial design of C#. As much as we love to hate Java, we still have it thank for what we use.
Jeremy Falcon
-
Not a citation, but... When I first read the C# spec in 1999, someone asked me, "isn't that just Microsoft Java?"
It was. I think the book author is misinformed. Unfortunately people assume that just because something is printed its always correct.
Jeremy Falcon
-
I'm reading a C# book that was recommended on here recently and found this gem in the beginning.
Quote:
The truth of the matter is that many of C#’s syntactic constructs are modeled after various aspects of Visual Basic (VB) and C++. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3123-3124). Apress. Kindle Edition.
:-\
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
Anders Hejlsberg came from Borland/Delphi/Pascal to Microsoft to develop C#. The idea was to sunk Delphi, the only real competitor in the RAD arena. Well, they almost did.
-
Slacker007 wrote:
C# was modeled mostly after Java and C++
Says you. :-D Here is another quote from a few pages later:
Quote:
Because C# is a hybrid of numerous languages, the result is a product that is as syntactically clean (if not cleaner) as Java, is about as simple as VB, and provides just about as much power and flexibility as C + +. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3129-3131). Apress. Kindle Edition.
And
Quote:
For example, like VB, C# supports the notion of class properties (as opposed to traditional getter and setter methods) and optional parameters. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3124-3125). Apress. Kindle Edition.
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
I don't think the book author is properly informed. Just because its printed material doesn't make it accurate. C# has a lot of Java roots.[^]
Jeremy Falcon
-
Having properties doesn't mean anything. Other languages have properties. Doesn't mean they're the basis for some other language
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
Unfortunately, people assume that just because something is printed it's truth. I don't think the book author was properly informed or else we're just not hearing the whole story from the book. C# has more Java roots than VB roots.
Jeremy Falcon
-
Perhaps Delphi should be mentioned here ... [Anders Hejlsberg - Wikipedia](https://en.wikipedia.org/wiki/Anders\_Hejlsberg) Regards,
I just mentioned that, before reading your post.
-
Lopatir wrote:
zero simply does not exist.
0 - Wikipedia[^] Zero is a number and makes perfect sense to use it as an index in a collection/array.
Slacker007 wrote:
makes perfect sense to use it as an index in offset into a collection/array
FTFY
-
I'm reading a C# book that was recommended on here recently and found this gem in the beginning.
Quote:
The truth of the matter is that many of C#’s syntactic constructs are modeled after various aspects of Visual Basic (VB) and C++. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3123-3124). Apress. Kindle Edition.
:-\
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
This is the truth. C# has a lot of Java influence. Sure it borrows from bits and pieces in places from everywhere, but its main influence is from Java. It was created by Java people. This is the truth. If the book says otherwise it's just wrong. C Sharp (programming language) - Wikipedia[^] Now, where VB comes into play a lot... the VB IDE. When .NET first came out Dev Studio for C++ and Dev Studio VB were two different apps. Entirely different. What Microsoft did at first was take the IDE for VB and use it as the basis for the .NET IDE and tossed the old C++ one out the door. So, it had a VBish feel and inspection on it with tools like Spy++ had VB all over the place with class names, etc. This is not to say C# didn't have "some" VB influences, I'm sure it did. But the truth is, most of it's influence is from Java. And the largest VB knock off I've seen with it was with the IDE itself. My source? About a quarter century of programming stuff. Oh, and if this was a joke, then I completely missed it. :laugh:
Jeremy Falcon
-
Now we must talk about the Oracle at Delphi. Sheesh.... :)
-
Well, Java was based off C++ so there's that too.
Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com
And now we've come full circle. :laugh: :laugh: :laugh:
Jeremy Falcon
-
I just mentioned that, before reading your post.
-
I'm reading a C# book that was recommended on here recently and found this gem in the beginning.
Quote:
The truth of the matter is that many of C#’s syntactic constructs are modeled after various aspects of Visual Basic (VB) and C++. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3123-3124). Apress. Kindle Edition.
:-\
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
-
Arrays start at 1 - just like when counting your fingers. C# (C, C++...) messed up, who counts anything from zero? It's unnatural, zero simply does not exist.
Sin tack the any key okay
Lopatir wrote:
C# (C, C++...) messed up, who counts anything from zero? It's unnatural, zero simply does not exist.
Uhm, no. The understanding of the number zero was one of the most important discoveries to get mathmatics on the way and that was thousands of years ago. It's not at all as insignificant as you think. Except for BASIC fans, of course. :-) Then, you are confusing an index with counting. As any machine code or assembly programmer can tell you, you must address the first value in an array at BaseAddress + 0, and the nth value at BaseAddress + ((n-1) * sizeof(type)), or short: The index for the nth element always is (n-1). Except for BASIC fans, of course. :-)
-
This is the truth. C# has a lot of Java influence. Sure it borrows from bits and pieces in places from everywhere, but its main influence is from Java. It was created by Java people. This is the truth. If the book says otherwise it's just wrong. C Sharp (programming language) - Wikipedia[^] Now, where VB comes into play a lot... the VB IDE. When .NET first came out Dev Studio for C++ and Dev Studio VB were two different apps. Entirely different. What Microsoft did at first was take the IDE for VB and use it as the basis for the .NET IDE and tossed the old C++ one out the door. So, it had a VBish feel and inspection on it with tools like Spy++ had VB all over the place with class names, etc. This is not to say C# didn't have "some" VB influences, I'm sure it did. But the truth is, most of it's influence is from Java. And the largest VB knock off I've seen with it was with the IDE itself. My source? About a quarter century of programming stuff. Oh, and if this was a joke, then I completely missed it. :laugh:
Jeremy Falcon
Jeremy Falcon wrote:
C# has a lot of Java influence.
Never implied otherwise. But you don't seem to be the only one taking it that way. If you look closely at what the book says, it reads "many of C#’s syntactic constructs" come from VB influence. Not that the entire language does.
Jeremy Falcon wrote:
if this was a joke,
No, but I think some of you are hastily reading the message. :)
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
-
> many of C#’s syntactic constructs are modeled after various aspects of Visual Basic (VB) and C++. "Modeled after" sometimes means "things that were intentionally avoided".
-
Who cares as long as they don't model anything after time honored VB practices. Variants, anybody?
CodeWraith wrote:
Variants, anybody?
they're called "var", in C#
-
I'm reading a C# book that was recommended on here recently and found this gem in the beginning.
Quote:
The truth of the matter is that many of C#’s syntactic constructs are modeled after various aspects of Visual Basic (VB) and C++. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3123-3124). Apress. Kindle Edition.
:-\
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
RyanDev wrote:
and found this gem in the beginning.
That sounds like Veritable Bull**** ;) Marc
Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
Lopatir wrote:
C# (C, C++...) messed up, who counts anything from zero? It's unnatural, zero simply does not exist.
Uhm, no. The understanding of the number zero was one of the most important discoveries to get mathmatics on the way and that was thousands of years ago. It's not at all as insignificant as you think. Except for BASIC fans, of course. :-) Then, you are confusing an index with counting. As any machine code or assembly programmer can tell you, you must address the first value in an array at BaseAddress + 0, and the nth value at BaseAddress + ((n-1) * sizeof(type)), or short: The index for the nth element always is (n-1). Except for BASIC fans, of course. :-)
CodeWraith wrote:
Except for BASIC fans, of course.
Some of whom refuse to acknowledge the existence of the zeroth element in their arrays even though it sits there sadly awaiting a value that will never arrive. :^)