- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
Best... post... ever!
Admin
Proper C#:
VB is only 2 bytes longer and actually takes fewer vertical lines and fewer keystrokes with Intellisense. Of course, I'm discounting the fact that "C#" is shorter than "Visual Basic".Admin
Admin
Do you really not know the difference between VB and VB.NET?
Admin
Claiming that one language is more "compact" than another when you're deliberately adding cruft to one of them kind of invalidates your position.
Admin
No doubt, but that's still a crappy way to handle boolean values. The VB from 'versions ago' changed it from my favorite language to a big headache source. The code in question was to detect state change, but let "100" be equivalent to "10E1".
It's rather dogmatic to say "variables should always be strongly typed". Other languages get it right. VB never did, it was always just off.
Makes it feel like a toy.
It could not handle more then 64k/module. This occasionally meant stripping out comments and formatting whitespace.
Admin
[quote user="potiguar"][quote user="Hired Gun"][quote user="Anonymous"]Using VB for scientific computing is like hiring a 3rd grader as a research assistant. [/quote]
Oh, come on. Do you REALLY think that the language an application is written in makes any difference? .... Best... post... ever![/quote]
It was a good post.
That was a problem with VB. Write something in VB2, it would run until VB3 came out. At that time, you would need to not only recompile the app, but rewrite parts of it to follow the changing syntax and COM updates. If your users updated windows, the program would often break or worse yet, behave subtly different.
I'm sure .NET is a lot less of a headache now, but I'd been burned to much to put any trust in the VB team.
Admin
Alright, everyone. Give me your IDE's. XML and perl scripts only.
Admin
Do vi, pico and emacs count as IDEs?
Admin
Admin
I was not about being efficient. It was about being clever and cute or at best out of habit. Memory in the 90s was more than sufficient for the use in question. It made debugging...unlikely.
Admin
Whenever I am asked for my opinion of VB, my standard reply is: "The best thing about VB is that everyone can write a program in VB while the worst thing about VB is that everyone can write programs in VB." In other words, I agree with you. If you're a crappy programmer, you will write crap in VB and any other language. If you're a good programmer, you will be able to write good programs in VB, that is, good programs that are within the limitations of VB. Substitute the name of any programming language with "VB" in the previous sentence and it will still be true.
And please don't forget - - my opinions here are worth every penny that you're paying me.
Admin
Not to start a flame war, but one important consideration is the amount of time it takes to write the code. My time is not cheap. If I can do it in assembly, fine; but why not write it in ruby, where I get orders of magnitude of productivity improvement? There is a reason for all these languages. Some languages make expressing certain concepts much easier than others.
Admin
Modern VB is very powerful and useful, as told by a C# programmer. Still prefer C# for most tasks, though.
Admin
Admin
Admin
Admin
Admin
I had used perl programs to generate VB forms based on a simple config, then used the VB IDE to fine tune their positioning. Rather fast development cycle there.
Admin
It's close to being a good idea - reusable code module that iterates controls and saves values to registry without coding each registry operation by hand - but if you do this, it should be anchored to the control names not the label text...
Admin
Been in the opposite situation - the only member with a Phd (in non-computer science) and the only person who has studied coding. Some of the WTF produced by computer science graduates were priceless.
One of the common problems was lack of user-friendly interface design and the other was overestimation of their own skills - "why use an established web server when you can write your own - should only take a day to write one - you can even write your own encryption protocol..." etc.
Admin
Admin
Given that back in those days most people have EGA (and very limited number of VGA) monitor installed, I doubt the scheme of #444445 or#444446 would work.
Admin
Admin
Now that would be beyond foolish.
The propagation delay of such a system would be enormous - you would have to use a clock rate under 100kHz. The performance would be awful!
Admin
Hey! Morbs was right!
Admin
I thought it was Hispanic train drivers.
Admin
Oh Yea because union = quality Riiight.
Admin
Please don't go giving me ideas like that, it's only going to end horribly for everyone involved. That being said, I have an old MMX pc I've been meaning to do something with...
CAPTCHA: cogo Colourful Organised Graphical Output
attempt #2
Admin
Let's see - one is pascal these days and the other is java?
Admin
Admin
-1 Languages impose limits. If you can solve a problem, doesn't mean the language can too.
+1 I agree that the language does not make the programmer.
Admin
TRWTF : With the project deadline looming
Admin
Admin
Dunno working with a bunch of physicists that tend to write software from time to time... all this seems rather standard, and sort of tame stuff ;-)
Admin
It's okay, the aliens have FTL circuit technology.
Admin
Hmmm.
The horror of my life that involved VB was when some legacy escapees, sorry programmers, from COBOL discovered the wonder and joy of ... 3D visual controls.
Ever see a user interface that had the majesty and appearance of a mountain range? Because when the documentation tells you to "navigate" they MEAN "navigate" as in Sir Edmund Hillary.
Admin
TRWTF:I first read this as psycics that tend to write software
Admin
Admin
QFT.
I've seen as many WTFs with C++ or C# as with VB. The only difference is that any idiot can (and does) write VB, whereas the C++/C# guys should know better.
Though I usually work in C#, I've wrote some perfectly good stuff in VB years ago, and still write the odd bit of perfectly useful and concise stuff in VBA (adding missing features to Word). But I do miss my {}.
Admin
From the first paragraph my thought was... why the hell not just connect to the HP-UX via a terminal session from the windows desktop????
Don't break it if it's not broken.
Admin
If only the app had been written originally in FORTRAN on a VAX then the whole world would have been happy for ever after.
Admin
I'm sorry, but round-even is the single most retarded thing ever. .5 rounds up, always. The point of rounding is that you have limited accuracy and you don't know what comes after the digit you are rounding on. So, if you have .5 it could really be:
0.59 0.51 0.501 0.500000000000000000000000001
All of which are closer to 1 than they are to 0, so why, in the name of all that's holy, would you ever round it to 0?
The only place where it might make sense is in finance if you don't ever deal with a fraction of a cent. But the article was about a scientific calculation which should never use the retarded round-even bullshit.
Admin
Sounds like the obvious next step. And the best one they could forsee at the time too.
Obviously, nowadays the best path would be to replace those Unix machines with Linux ones, and use X to access the server.
Admin
Rounding 5s up inserts a bias into your data, and will create problems on every program that agregates such data. On this case, it may quite easily overestimate the dissipating power of a radiator (what would be very bad).
The best thing to do is simply not to round numbers that will be agregated. But on most applications you only discover that another team took your results and made some critical calculations with it too late. So, the safest way is to use an unbiased rounding algorith, even if it means you'll need to output one non-representative algarism.
Admin
Admin
You missed the point. The value you see is 0.5, unless you know that it really is exactly 0.5, it could just as easily been any of the values above, and therefore should be rounded up.
Admin
No, it doesn't.
If you are rounding 0.x then:
0.0 -> 0 0.1 -> 0 0.2 -> 0 0.3 -> 0 0.4 -> 0 0.5 -> 1 0.6 -> 1 0.7 -> 1 0.8 -> 1 0.9 -> 1
Notice that for half the values of x, it rounds to 0, for the other half, it rounds to 1. That is unbiased. But the point about not round prematurely is absolutely true. The computer has no problem dealing with large numbers of decimal places, even if most of them are meaningless.