VB Question

08/10/2011 14:34 Shane¸#16
Quote:
Originally Posted by bootdisk View Post
hey, I don't want to alarm anyone but I think you got some dead pixels there or perhaps a Baby.Paint.Virus.Writer there... look at those black lines O.o xD
there would be the product key. however it was funny at all xD :awesome:
08/10/2011 15:33 Schickl#17
Quote:
Originally Posted by ~ Shane View Post
I got the license for free because I'm currently learning in an IT school. I'm going to become a real programmer thus it isn't just my hobby.
Well, same goes for me, i just don't get the license for VS lol
only for Windows 7 and maybe some other shit I will never need lol
08/10/2011 15:34 lesderid#18
Quote:
Originally Posted by paxemuman View Post
Dont use this shit, instead of it learn c++.
Retard. C++ is used by many people (most implementations lack a lot though, imo), but for beginners, I would NEVER EVER recommend it.
Advanced pointers for beginning programmers? Don't make me laugh.

@OP: You probably won't notice the differences between VS and VS Express.

I would choose C# though, because VB is older and just umm... annoying and ugly.

You'll get much further with C#, because it's newer and optimized for use with the .Net framework and it will be easier to change to C/C++ if you would ever want to.
08/10/2011 15:42 kevin_owner#19
I have to agree with lesderid. C# is the perfect language to start with. It's quite easy to learn and the syntax is more common so it's easier to learn other languages.
08/10/2011 15:53 Schickl#20
I started with C(in school) and i have to say that it was pretty easy to learn.
After C we made Java and it was damn easy to learn. I never really made Programs in any other Language, but if i look at the source of a program written in C++,C# i easily understand whats written there

So starting with C or even with C++ wouldn't be that wrong
08/10/2011 17:52 lesderid#21
Quote:
Originally Posted by paxemuman View Post
After every my post you have to reply against me, grow up kid.
I never caps-raged in my whole life.
Also, I'm not fighting you, I'm fighting your intelligence.

I don't reply to every post of you, I just do when I think it's appropriate.

I was only trying to help the OP.

Next time, don't go offtopic. :)
#Reported: Offtopic; Pictorial post

@LastThief: Stop thanking every negative post about me. xD
08/10/2011 19:22 Murgen#22
I am pretty sure you should learn the language you are comfortable with, if you truly know the language it has no limits.
08/10/2011 20:26 kevin_owner#23
Quote:
Originally Posted by Murgen View Post
I am pretty sure you should learn the language you are comfortable with, if you truly know the language it has no limits.
Not in what you can create but in speed it sure has. vb6 is way slower than C++ and the development time of each language is different.
08/10/2011 23:31 lesderid#24
Quote:
Originally Posted by kevin_owner View Post
Not in what you can create but in speed it sure has. vb6 is way slower than C++ and the development time of each language is different.
True, but a language can't be slow.

The usage of a language can have bad performance or the language's implementation (compiler/interpreter and the like) can be slow.
08/10/2011 23:50 sarkoplata#25
Vb.net and c# are both .net languages so they look just similiar. I advise you starting from vb.net , in time you will already see alot of c# projects and will comfortably code both. But still , you should prefer vb.net because some of things are easier and shortcuts etc in language , but as i said it doesnt matter at all choose what you want to.

Ps . I started in vb.net and im still coding there , well even tho im not a pro i can comfortably read and write c# but i still love vb.net ( don't know , preferring writing Hex instead of conversions.touint16 , lol )
08/11/2011 10:33 lesderid#26
Quote:
Originally Posted by sarkoplata View Post
Vb.net and c# are both .net languages so they look just similiar. I advise you starting from vb.net , in time you will already see alot of c# projects and will comfortably code both. But still , you should prefer vb.net because some of things are easier and shortcuts etc in language , but as i said it doesnt matter at all choose what you want to.

Ps . I started in vb.net and im still coding there , well even tho im not a pro i can comfortably read and write c# but i still love vb.net ( don't know , preferring writing Hex instead of conversions.touint16 , lol )
I'm going to state some facts and my opinion, but don't see this as criticism on your opinion, it's your opinion.

"Vb.net and c# are both .net languages so they look just similiar."
This isn't true. VB wasn't designed for the .Net framework but C# was.
Between these languages, there are many differences including keywords, operators, 'punctuation marks', etc.
However, since they both use .Net, the classes/modules/structs they use are the same.
(Not entirely since a My namespace is generated (or added?) in a VB.Net executable.)

"you should prefer vb.net because some of things are easier and shortcuts etc"
That's not really true imo.
Compare these code snippets:
VB.Net:
Code:
Imports System

Public Class Form1
    Dim hello As String = "Hello" & ControlChars.NewLine & "World"
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        MessageBox.Show(hello)
    End Sub
End Class
C#:
Code:
using System;

public class Form1
{
    string hello = "Hello\nWorld";
    private void Button1_Click(Object sender, EventArgs e)
    {
        MessageBox.Show(hello);
    }
}
(Note that a little piece has to be added to the C# designer code to handle the event. The designer does this automatically, though.)

Specifying what to close ("End Sub"), using a keyword to pass as value ("ByVal"), not having character escaping ("\n" in C# and "& ControlChars.Newline &" in VB.Net makes your code a lot longer.

"but as i said it doesnt matter at all choose what you want to"
I beg to differ.
Since C# uses syntax similar to C, it's easier for C# coders to learn C, C++, Java, and other languages using C-like syntax.

If you want to stay with VB.Net or C#, which wouldn't be a bad choice imo, it of course does not matter since both languages have about the same functionality.
08/11/2011 14:00 sarkoplata#27
Quote:
Originally Posted by lesderid View Post
I'm going to state some facts and my opinion, but don't see this as criticism on your opinion, it's your opinion.

"Vb.net and c# are both .net languages so they look just similiar."
This isn't true. VB wasn't designed for the .Net framework but C# was.
Between these languages, there are many differences including keywords, operators, 'punctuation marks', etc.
However, since they both use .Net, the classes/modules/structs they use are the same.
(Not entirely since a My namespace is generated (or added?) in a VB.Net executable.)

"you should prefer vb.net because some of things are easier and shortcuts etc"
That's not really true imo.
Compare these code snippets:
VB.Net:
Code:
Imports System

Public Class Form1
    Dim hello As String = "Hello" & ControlChars.NewLine & "World"
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        MessageBox.Show(hello)
    End Sub
End Class
C#:
Code:
using System;

public class Form1
{
    string hello = "Hello\nWorld";
    private void Button1_Click(Object sender, EventArgs e)
    {
        MessageBox.Show(hello);
    }
}
(Note that a little piece has to be added to the C# designer code to handle the event. The designer does this automatically, though.)

Specifying what to close ("End Sub"), using a keyword to pass as value ("ByVal"), not having character escaping ("\n" in C# and "& ControlChars.Newline &" in VB.Net makes your code a lot longer.

"but as i said it doesnt matter at all choose what you want to"
I beg to differ.
Since C# uses syntax similar to C, it's easier for C# coders to learn C, C++, Java, and other languages using C-like syntax.

If you want to stay with VB.Net or C#, which wouldn't be a bad choice imo, it of course does not matter since both languages have about the same functionality.
Nice. I wanna say something about this.

Im not very longer coding with vb.net less then a year , like 9-10 months.
I saw alot of open-source C# projects , even tho i just read them , i can write c# now also. writing "\n" instead of "vbNewLine" is not a big difference ^^ Also I think errors are more specific in vb.net :)

And this is how i make a "HelloWorld" messageboxer in vb.net :

Code:
Public Class Form1
    Dim hello As String = "Hello" & vbNewLine & "World"
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
       MsgBox(hello)
    End Sub
End Class
The thing i want to say is , vb.net is more like english :o
08/11/2011 16:49 lesderid#28
Quote:
Originally Posted by sarkoplata View Post
Nice. I wanna say something about this.

Im not very longer coding with vb.net less then a year , like 9-10 months.
I saw alot of open-source C# projects , even tho i just read them , i can write c# now also. writing "\n" instead of "vbNewLine" is not a big difference ^^
Hehe, very true. For a small piece of const text, this is no problem.

But when handling or making large walls of text, it's really hard to read, imo.
For example, when you have a CLI application and you want a usage option, it's easier to do it like this: (...)
Code:
"MyApplication <0.1>\n
--help\tprint usage\n
--first\tdoes something\n
--second\t does something else\n"
(...), than to do it with vbNewLine and the tab ControlChar.

Quote:
Originally Posted by sarkoplata View Post
Also I think errors are more specific in vb.net :)
I don't really understand what you mean there.
Could you give an example?
08/11/2011 17:13 sarkoplata#29
Quote:
Originally Posted by lesderid View Post
I don't really understand what you mean there.
Could you give an example?
Error list error texts , i mean , when you do something wrong , it appears in errorlist. I mean that error's list. [ even though most of exception texts are same ]

Btw, Case sensitive thingy makes C# hell for me . Also i just prefer writing
Code:
.tostring
for example and vb will make it ToString() for me :)
But in C# i should exactly write ToString() :o
08/11/2011 19:03 lesderid#30
Quote:
Originally Posted by sarkoplata View Post
Error list error texts , i mean , when you do something wrong , it appears in errorlist. I mean that error's list. [ even though most of exception texts are same ]
Pretty sure it's the same in VB.Net and C#.

Quote:
Originally Posted by sarkoplata View Post
Btw, Case sensitive thingy makes C# hell for me . Also i just prefer writing
Code:
.tostring
for example and vb will make it ToString() for me :)
But in C# i should exactly write ToString() :o
It makes more stuff possible.
Example:
Code:
class MyClass
{
   public int MyValue { get; set; }
   
   public MyClass(int myValue)
   {
      MyValue = myValue;
   }
}
You would need a keyword like "this" if you wasn't case sensitive.