The point is that — as so often — Visual Basic makes something easier to code than C does. So those are my 10 reasons to code in Visual Basic. What are you waiting for, all you C code-monkeys? Convert all of your code to VB — you have nothing to lose but your semi-colons! As well as offering advanced IntelliSense-style code completion, full formatting options, object renaming, and other productivity features, SQL Prompt also offers fast and comprehensive code analysis as you type.
Try it free. Fortnightly newsletters help sharpen your skills and keep you ahead, with articles, ebooks and opinion to keep you informed. NET, Visual Basic and reluctantly! C training for businesses in the UK. View all articles by Andy Brown. Federal Healthcare Managed Service Providers. Home Development. Text ;. Select Case AgeEntered.
Case Else. End Select. Object ,. ByVal e As System. EventArgs Handles btnApply. Show " Hello ". End Sub. Posted Feb am PeejayAdams. F-ES Sitecore Feb am. VB has been going for 25 years, c 17 : Given the number of production systems that use vb. PeejayAdams Feb am. That's an 8 year instant advantage for C! Most languages hang around for a long, long time I know a couple of people who still work with COBOL which is all the proof we could ever need but I would imagine that there are far more green-field developments been undertaken in C than there are in VB.
Ralf Meier Feb pm. I don't agree with you. Both languages are compiled to the same CLR-Code. The common part is the Framework in the Background - not the language in front The question asked which of the two languages is better to learn not where their commonality lies. Ralf Meier Feb am. I have replied to your last reply - not to the question. To that Point I have written something in my Solution NET recruitment emails - obviously there's a regional element to that but it does seem broadly indicative.
Whilst I take those "must-have IT skills" lists with a pinch of salt, it's notable that C appears prominently on all of them whereas VB. NET rarely makes an appearance these days. Posted Feb am Patrice T. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? That's not necessarily a good reason for anyone else to dislike it though.
A better reason is simply that the language has made far too many concessions to backwards compatibility So unless you're looking to write new untyped spaghetti code JohnFx JohnFx I use both VB. NET and JS. This is exactly one of the reasons why I prefer C. As long as you keep a coding standard, else I agree, then it can cause confusion. Needing a coding standard to avoid insidious bugs like that, to me, is a negative.
The presence of a workaround doesn't excuse it. It should be hard to write sloppy code in any programming language. Case insensitivity just encourages sloppy code. Case sensitivity does not slow you down at all, what kind of an argument is this? It slows you down when you make a lot of typos and then it's a good thing you are being slowed.
It is only sloppy code because the compiler can't interpret it. If all compilers were case insensitive it wouldn't matter a lick. Our job is not to write code for print in a magazine, it is to write code that does a job. Show 2 more comments. George Marian George Marian 4, 24 24 silver badges 31 31 bronze badges. Heh, I was surprised that someone downvoted this. I expected it to be the Emacs vs Vim question. TheLQ: and also the AndAlso! I miss my Turbo Pascal days.
That was a lot of fun. I find the bracket syntax easier to read. One generic symbol for a block rather than several context specific words. It's not entirely true: for instance, VB. NET doesn't have iterators, which are a great C feature. C doesn't have VB. Thomas WeekendWarrior: Good examples, but just to point out, I said "Functionally the same", which they are. They both compile to IL, so the same set of functionality is achievable.
These examples are just language shortcuts for functionality that can be achieved in other ways. If a job came along that required VB. NET I certainly wouldn't turn it down.
That said, learning C is most definitely on my list of things to do. NET at the same way I prefer coke not pepsi. NET plataform. I prefer C. Josip Medved Josip Medved 1, 7 7 silver badges 8 8 bronze badges. See stackoverflow.
This is where I'm at. I'm still fond of VB, as it's where I got my start, but in my opinion C has better syntax in things like lambda expressions. With each generation of tools, the "features" arguments shift a bit.
The only thing I can think of which C has as of vs which vb. ReferenceEquals , event handling that's almost done right, and a smoother IDE experience. C because I can switch between it and Java with minimal effort VB. Ryan Hayes. Stu Pegg. Interesting answer, I think this at least partly debunks the idea that the "older crowd" tend to stick to VB.
I develop in Visual Basic. Net since and I love it and I hate it!!! Like other said, c programmer have better chance to have a good job with more money. Wizard79 Wizard79 7, 2 2 gold badges 39 39 silver badges 75 75 bronze badges. Another important consideration for why VB. It was a lot less work to port large existing applications. I prefer VB. Net over C , The Overflow Blog.
Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked 1. Related Hot Network Questions.
Net sounds like going back to the middle-ages, but in fact, I got accustomed to the Visual Basic syntax quite quick. There are differences, as you saw in this article, but they do not interfere with your daily work. ToString yields the same result both in C and Visual Basic. Many many thanks for this. I am an older programmer who work in Visual Basic 0.
Many thanks for giving me the confidence that my extensive knowledge of BASIC is not destined for the trash heap.. Net project now and I find coding a lot more restful than when I use C.
Every time I use VB. Readonly properties can be updated outside of constructor. Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Show Show. Skip to content.
March 22, March 22, Posted in Uncategorized.
0コメント