Register for your free account! | Forgot your password?

You last visited: Today at 00:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB Question

Discussion on VB Question within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 08/10/2011, 14:34   #16
 
Shane¸'s Avatar
 
elite*gold: 100
Join Date: May 2010
Posts: 1,948
Received Thanks: 1,635
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
Shane¸ is offline  
Old 08/10/2011, 15:33   #17
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
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 **** I will never need lol
Schickl is offline  
Old 08/10/2011, 15:34   #18
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
Quote:
Originally Posted by paxemuman View Post
Dont use this ****, instead of it learn c++.
******. 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.
lesderid is offline  
Thanks
1 User
Old 08/10/2011, 15:42   #19
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
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.
kevin_owner is offline  
Old 08/10/2011, 15:53   #20
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
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 **** 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
Schickl is offline  
Old 08/10/2011, 17:52   #21
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
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
lesderid is offline  
Old 08/10/2011, 19:22   #22
 
elite*gold: 0
Join Date: Mar 2008
Posts: 556
Received Thanks: 545
I am pretty sure you should learn the language you are comfortable with, if you truly know the language it has no limits.
Murgen is offline  
Old 08/10/2011, 20:26   #23
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
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.
kevin_owner is offline  
Old 08/10/2011, 23:31   #24
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
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.
lesderid is offline  
Old 08/10/2011, 23:50   #25

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,653
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 )
sarkoplata is offline  
Thanks
1 User
Old 08/11/2011, 10:33   #26
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
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.
lesderid is offline  
Old 08/11/2011, 14:00   #27

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,653
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
sarkoplata is offline  
Thanks
1 User
Old 08/11/2011, 16:49   #28
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
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?
lesderid is offline  
Old 08/11/2011, 17:13   #29

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,653
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()
sarkoplata is offline  
Old 08/11/2011, 19:03   #30
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
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()
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.
lesderid is offline  
Reply


Similar Threads Similar Threads
[Question] Wie ruft man in AutoIt eine Website per knopfdruck auf [Question]
08/04/2011 - AutoIt - 7 Replies
Wie ruft man eine Website per knopfdruck in AutoIt auf? Wenn geht Code und nochbesser Erklärung bei :D Danke schonmal im voraus :handsdown:



All times are GMT +1. The time now is 00:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.