|
VB = Pandora's Box...
I had to translate a lot app from VB to VC++ (No words)
I saw the problem is like you said:
The language control you
The most problems were sentences that doesn't that must to do.
Best Regards.
Carlos Antollini
Do you know piFive[^] ?
|
|
|
|
|
I do not understand the statement:
This has nothing to do with the programmer, if he gets used to the language making the decisions he will never learn the correct way to do things.
On one hand you say the coder has no conscious volition of his actions, and then you state that he makes a conscious discision to abdicate responsibility to the interpreter.
So, when a C/C++ coder writes code that allows a buffer overrun to execute code in the OS, it is the compiler's fault for not catching this error, right? It just blithly goes about it's business, nevers asks "don't you want to validate this input before passing to the buffer". Therefore, it is the compiler's fault, right?
But wait!, you say. It is the responsibility of the coder to check things like that. And hey, the language gives you a mechnism to do so! Woohoo, we are saved.
Too bad VB does not have a mechanism to inform you when using a variable that has not had a data type explicitly declared. Oh, I forgot, it does. Option Explicit.
Are you saying there is no such thing as an implicit cast in C/C++?
VB allows as much or as little control over your code as you wish. it is the decision of the coder as to the quality of the code they write. it is NOT dependent upon the language.
Noël Henderson
|
|
|
|
|
noelhx wrote:
VB allows as much or as little control over your code as you wish. it is the decision of the coder as to the quality of the code they write. it is NOT dependent upon the language.
But when it's run you can't see the difference between the codes....
Sometimes I see code written by No human been. But the app works.
If you say to coders how a correct code is, they say Why?
I saw very few coders that works seriously in VB...
Carlos Antollini
Do you know piFive[^] ?
|
|
|
|
|
My thoughts about learning the correct way to do things is targeted to junior programmers.
Yes, you are correct about Option Explicit, unfortunately junior programmers do not always turn it on (some seniors are guilty too). The language should not give them a choice, it should be mandatory.
Pamela Reinskou
Some Days the Dragon Wins!!
VersusLaw Inc.
|
|
|
|
|
...VB rocks, because it makes programming accessible to almost anyone...
...VB sucks, because it encourages the coding equivalent of house-building using 2x4s, duct tape, and string...
...VB rocks, because it doesn't require me to remember those horrid semicolons...
...VB sucks, because it lacks CListCtrl ...
But in the end, it's all just database access right? And that stuff is just plain boring.
|
|
|
|
|
Shog9 wrote:
...VB sucks, because it lacks CListCtrl...
You make a very good point. I hate having to use the ListView control in VB. It's such a pain in the ass compared to CListCtrl. I really miss SetItemData and pointers when I'm in VB!
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Much like the control in .NET, the VB ListView control allows easier access to much of the WC_LISTVIEW functionality...
...Unfortunately, what they don't make easier, they make more difficult.
But in the end, it's all just database access right? And that stuff is just plain boring.
|
|
|
|
|
Shog9 wrote:
VB rocks, because it doesn't require me to remember those horrid semicolons
Double edged sword: You have to remember those horrid underscores if you're splitting a line of code into a new line of text.
--Colin Mackay--
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
For the first time in my history of visiting CodeProject, I find I'm unable to find an option which reflects how I feel.
The poll options, seem a little childish and do nothing to address the real reasons why VB programmers have a bad name.
VB, got it's reputation because it allowed nearly anybody to pick it up and create an application. Now whether this is a good thing or a bad thing I don't know. A lot of poor code was written, poor code in the sense, hard to read and maintain. Badly structured and poorly documented.
Lots of good code has been written in VB, I know of big enterprise apps that were written by developers who had experience of coding; not hacked together by wanner be programmers, such as managers, tech support staff and journalists.
All languages allow you to write crap code, VB just makes it easier (IMO).
Of course, developers weren't helped by the dodgy UI which prevented you from seeing all the code. I've never been a fan of RAD development enviroments, point and click gives you too much of an opportunity to build reams of code, without design or forethough - I should know I've used VB in that way.
Like most things in this world, VB in itself wasn't a bad thing - it's just a minority of wannabe programmers spoilt it for the rest of us.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Changed my sig - SCNR
"All languages allow you to write crap code, VB just makes it easier (IMO)."
Michael P Butler
|
|
|
|
|
Michael P Butler wrote:
Lots of good code has been written in VB
Interesting that you should mention that. I've used a lot of professional apps for businesses large and small over the years. Nearly all were written in BASIC or, in the past several years, Visual Basic. I say nearly only because I haven't been able in every case to identify the language used. Of those where a control style or an error message gave away the identity of the language, all were in BASIC/VB.
Since it's so popular in business, programmers who shun VB are potentially only doing themselves out of a market...
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
You hit the nail on the head so to speak. In days gone by VB was the best language for small productivity apps kinda like an extended macro. C and C++ addressed a different world altogether, think about a "struct" to create a record and then think about trying to put all the data from a database in that struct within an array and so forth and so on. The programmer who could do that was not cost effective I assure you. Enter the guy with VB knowlege and suddenly we have a cost savings.
While that was fine a generation ago the demands today are much greater. Companies that continue to rely on VB and access are bound to technologies that don't provide the scalabilty and flex that is needed. Basically it is a matter of competion.
Oh well, I've beat this horse to death. The language is at fault for allowing anyone to believe they are a programmer and the industry is at fault for not recogizing that good software, no matter the price, will be less expensive in the long run.
Hell, we should have Unionized!!
Pamela Reinskou
Some Days the Dragon Wins!!
VersusLaw Inc.
|
|
|
|
|
|
"It's horrible" perfectly reflects how I feel.
But I had exactly the same feeling with a recent poll, so you're forgiven
Flirt harder, I'm a coder.
mlog || Agile Programming | doxygen
|
|
|
|
|
It was meant to be humerous.
I have been programming in VB since version 1 and am fed up with people slating it all the time. VB is accessible to more programmers, hence you tend to get more bad code written in VB.
I prefer to code in VB because I like the way it reads so easily. C and it's derivitives are really hard to read because there language is unstructured. I have had to take over C projects and find it a nightmare that there are so many different ways to write the same commands.
|
|
|
|
|
Maybe, but it's stirred up some debate. I was umm-ing and ah-ing a lot about posting this poll and decided in the end to post it as it was sent in to see the discussions that would ensue. Having someone post a long diatribe about the options is far more interesting than looking at horizontal bars.
So thanks, Michael
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
So thanks, Michael
My pleasure
I didn't want to call it a Childish poll but I couldn't think of a better term. The poll seemed like it was cooked up by some VB nut who was attempting to justify his love for VB in negative terms.
However, the discussion that has followed has been excellent, so I think you made the right choice in posting it. Perhaps you'll post my poll next.
"Why is Java so popular?"
1. There are lots of weenies who are too scared to do their own memory allocation"
2. There are lots of weenies who don't like pointers
3. Because developers thought it was something to do with coffee
4. Because those who thought VB was too easy and C++ was too hard, had to do something
5. Because Microsoft took so damn long to invent C#
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
As I remember ,I read somewhere its the most common language which use today,so what ever it is , we can't ignore it.
Mazy
No sig. available now.
|
|
|
|
|
Just because it's the most common doesn't mean it should be used. Once people realize that there ARE other solutions to programming tasks other than what Microso$t forces upon the masses we will all be better off.
Yes, I am a C++ programmer. Used VB version 3,4,5, etc. So I know of what I speak. VB is evil and should be destroyed.
|
|
|
|
|
I am sorry we VB programmers didn't hop from the womb to the heap in same manner as yourselves. I am getting there, others are getting there, and all you 'lunatic fringe' coders better get to the business at hand; keeping your employer happy.
I really like that Microsoft has labeled my types as 'Occupational Programmers' so that rest of the fringe leave me and my types alone.
Yes, you code better than me. Yes your prettier than me. Yes the ladies like you better than me. Now get out of my way I have got work to do. My business degree is getting good use every day- oh, and I cut good code too
Thank you CODE PROJECT for recognizing VB!!!
You Rock!!!
|
|
|
|
|
I've noticed that the most popular answer is that VB isn't a real programming language. I wonder how many of those who claimed that have actually used it. Of those who have, I would ask "In what ways is it lacking?"
Nathan
|
|
|
|
|
Actually I am willing to bet a lot of people got forced to use it at either school or university. Of people who don't like VB I have met, I can confidently say 0% of them have been "snobs".
|
|
|
|
|
dog_spawn wrote:
Actually I am willing to bet a lot of people got forced to use it at either school or university. Of people who don't like VB I have met, I can confidently say 0% of them have been "snobs".
I am sorry if I implied people who feel VB is not a real programming language are snobs. Before I used I assumed that it was inadequate as a language just because it was called BASIC. Then my employer got a contract that required use of it and I found it was a quite capable language and that it had some really neat feature, especially events.
I was curious about how common my gut reaction to the name BASIC is and what people mean by a "real programming language."
Nathan
|
|
|
|
|
Nathan Holt at CCEI wrote:
I would ask "In what ways is it lacking?"
To me, VB is bad because...
1. Object Orientation just got hacked in
2. The RAD development enviroment makes developing scalable, easy to maintain applications a nightmare. The entire environment is poor, editing code is a real bitch.
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack
Sadly VB fell into the hands of people who had no business writing commerical grade software and that is how it earnt its reputation, because at the end of the day it's people like us who have to keep the things running.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
If you have to ask, then you wouldn't understand the answer...
And yes, I have used it. From when it was VB 3.0 with it's "p-code" to VB 6.0. Great for prototyping a UI, but for any real work, not even a distant second to a modern language(e.g. Java, C++)
|
|
|
|