Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › C++ VS C# or something else?
New Posts  All Forums:Forum Nav:

C++ VS C# or something else? - Page 2

post #11 of 26
Quote:
Originally Posted by MrAlex View Post
Start with Visual Basic .NET. It really is an easy language to learn. Once you've learned it, move over to C#. The transition should be painless, considering that the syntax is very similar.
Uhm... what? Why would one learn VB.NET when it's a "dying" language? What you do in VB with 10 lines, you do with 2 in C#.

I would never give someone the advice to learn VB over C#... And also, there's really not many companies that uses VB.NET for new development anymore..
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
post #12 of 26
Quote:
Originally Posted by frW View Post
Uhm... what? Why would one learn VB.NET when it's a "dying" language? What you do in VB with 10 lines, you do with 2 in C#.
Most code I can see is pretty much the same amount of lines and certainly not 10 to 2, what are you referring to, a few cases?
Please give examples of your 10 lines to 2?

Quote:
Originally Posted by frW View Post
I would never give someone the advice to learn VB over C#... And also, there's really not many companies that uses VB.NET for new development anymore..
Most companies I've worked for (global companies) use vb.net so not sure its dying!
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
post #13 of 26
Quote:
Originally Posted by Sunriselad View Post
Most code I can see is pretty much the same amount of lines and certainly not 10 to 2, what are you referring to, a few cases?
Please give examples of your 10 lines to 2?



Most companies I've worked for (global companies) use vb.net so not sure its dying!
I can't give you a concrete example since I am not a VB developer, but the cases I have seen, VB has been pretty much "more talking" than C#. Don't know how to phrase that correctly.

But it Usualy means more lines when you do something in VB.NET. And all the VB.NET developers I know agree with me, at least the ones at my work.

I might be wrong though, please prove me otherwise All I am saying is, VB.NET isn't really used that much anymore, besides legacy software. C# is the future and is what MS puts down their effort into developing.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
post #14 of 26
Examples with common used keywords:
c#
Code:
  using (reader)
         {
            while( reader.Read() )
            {
                if(some_condition)
                {
                    value += reader.GetSqlInt32(0);
                }
            }
         }
vb
Code:
Using reader
        While reader.Read()
             If some_condition then
                    value += reader.GetSqlInt32(0)
             End If   
        End While
End Using
Anyway, since vb & c# both compile to the same MSIL they can both pretty much do the same thing. A good developer should be a developer who knows how to program and create good argorithms and not tie himself down to a particular language.
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
post #15 of 26
You don't need all those brackets in C# you know. And that's an example of where it does look alike, there are plenty of cases where it doesn't. Such as "OrElse" "AndOr".

I do agree with you that a software engineer needs to be able to adapt to all the different languages out there and use that one suitable for the task.

I however disagree with people saying that newbies should learn VB. C/C++/C#/Java and many more all "look" alot like each other, you can see common things between them and therefore, for a newbie it would be easier to start with a C-inspired programming language.

It's my subjective opinion. as you said VB / C# both compile to the same MSIL.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
post #16 of 26
Quote:
Originally Posted by Sunriselad View Post
Anyway, since vb & c# both compile to the same MSIL they can both pretty much do the same thing. A good developer should be a developer who knows how to program and create good argorithms and not tie himself down to a particular language.
A good programmer probably wouldn't list Visual Basic skills as an asset.


Start with C. If you need help, get yourself this book: http://en.wikipedia.org/wiki/The_C_P...Language_(book). Like most holy books it should be available pretty much anywhere on the planet.


C# is a Microsoft programming language, which means its really only something you should learn if you need it for a job. In some ways its easier than C++, but all its doing is hiding things that you really should know. If you want something syntactically similar than stick with Java, because at least then you know it will run on pretty much every OS on the planet, and not just Windows.


But seriously. Learning to program without knowing C is like spending your childhood wearing nothing but velcro shoes. Sure, its convenient, but one day you'll grow up and find yourself staring at your shoelaces, realizing that you really know absolutely nothing about how strings work.
    
CPUMotherboardGraphicsRAM
Core i5 4670k ASUS Maximus VI Gene Gigabyte GTX 460 1GB Kingston Hyper-X 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 OCZ Vertex 3 WD6401AALS WD5000AAKS 
CoolingOSMonitorMonitor
Noctua NH-D14 elementary OS Dell Ultrasharp U2312HM LG W2442PA-BF 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750W Corsair Graphite 600T Logitech G700 
Audio
ASUS Xonar DG 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i5 4670k ASUS Maximus VI Gene Gigabyte GTX 460 1GB Kingston Hyper-X 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 OCZ Vertex 3 WD6401AALS WD5000AAKS 
CoolingOSMonitorMonitor
Noctua NH-D14 elementary OS Dell Ultrasharp U2312HM LG W2442PA-BF 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750W Corsair Graphite 600T Logitech G700 
Audio
ASUS Xonar DG 
  hide details  
Reply
post #17 of 26
Quote:
Originally Posted by nathris View Post
C# is a Microsoft programming language, which means its really only something you should learn if you need it for a job. In some ways its easier than C++, but all its doing is hiding things that you really should know. If you want something syntactically similar than stick with Java, because at least then you know it will run on pretty much every OS on the planet, and not just Windows..
Ever heard of Mono? It's feature complete for .NET 4.0 and runs perfectly well on all OS:es that Java run on.

http://www.mono-project.com/Main_Page
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
post #18 of 26
Quote:
Originally Posted by frW View Post
Ever heard of Mono? It's feature complete for .NET 4.0 and runs perfectly well on all OS:es that Java run on.

http://www.mono-project.com/Main_Page
Your definition of "perfectly" greatly differs from mine it seems.
    
CPUMotherboardGraphicsRAM
Core i5 4670k ASUS Maximus VI Gene Gigabyte GTX 460 1GB Kingston Hyper-X 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 OCZ Vertex 3 WD6401AALS WD5000AAKS 
CoolingOSMonitorMonitor
Noctua NH-D14 elementary OS Dell Ultrasharp U2312HM LG W2442PA-BF 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750W Corsair Graphite 600T Logitech G700 
Audio
ASUS Xonar DG 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i5 4670k ASUS Maximus VI Gene Gigabyte GTX 460 1GB Kingston Hyper-X 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 OCZ Vertex 3 WD6401AALS WD5000AAKS 
CoolingOSMonitorMonitor
Noctua NH-D14 elementary OS Dell Ultrasharp U2312HM LG W2442PA-BF 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750W Corsair Graphite 600T Logitech G700 
Audio
ASUS Xonar DG 
  hide details  
Reply
post #19 of 26
Quote:
Originally Posted by nathris View Post
Your definition of "perfectly" greatly differs from mine it seems.
It runs as good as java does.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-970 @ 4GHz ASUS Rampage III Black Edition Gigabyte GTX 460 1GB SLI Corsair Vengence LP 24GB 1333Mhz 
Hard DriveOSMonitorKeyboard
OCZ Vertex 3 120GB Windows 7 Enterprise SyncMaster P2770 Microsoft Ergonomical 4000 
PowerCaseMouseMouse Pad
CoolerMaster M850 850w Fractial Design R3 - White Steelseries IKARI Steelseries 
  hide details  
Reply
post #20 of 26
Quote:
Originally Posted by nathris View Post
A good programmer probably wouldn't list Visual Basic skills as an asset.
I haven't read such misinformed short sightedness since I last came across a forum of "script kiddie wannabe programmers" who were arguing over languages.

Quote:
Originally Posted by nathris View Post
But seriously. Learning to program without knowing C is like spending your childhood wearing nothing but velcro shoes. Sure, its convenient, but one day you'll grow up and find yourself staring at your shoelaces, realizing that you really know absolutely nothing about how strings work.
Why are you not recommending to learn assembler? Surely if that is your logic for language recommendation ... that C is lower level and will show you how to tie your shoelaces naturally asm would be way better still!
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
I7 920 Gigabyte EX58 XFX Radeon 4870 X2 6GB Corsair 
Hard DriveOptical DriveOSMonitor
500GB Maxtor LG DVDRW Vista Ultimate x64 2 x Edge IO 22" 
KeyboardPowerMouseMouse Pad
Razer Arctosa XFX 800w BTC Cheetah Gaming Mouse None 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › C++ VS C# or something else?