- 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
(cue another stupid response from aptent in 3...2...1...)
Admin
Based on what we've seen so far, I'd say that the data is stored in the registry as a decimal, read in to the app using a registry reading function that returns a String, converted to an integer using a combination of substring functions and poorly indented if statements, and dumped into the Global variable iChkBx, all of which written directly into the listener function of a button, and that function which will read rather like this sentence that you're reading right now. End Ramble.
Admin
Admin
Amen to that. Just today I was investigating the "icacls" command to change the ACLs on some files via a batch file. It turns out it won't break the inheritance chain of ACLs, which seems to be how most permissions are passed on through the directory tree. So, to break the chains (without using the GUI), you have to get the old xcacls.vbs that was used on XP. Oh, and it's not supported and not guaranteed to work on Win 7. Great. How do they let a half baked tool like icacls out the door?
Admin
Ok, so the Reply doesn't do a quote. There's a Quote button for that. <sigh>
Admin
I've spent more years than I care to admit working on both Windows and various *nix flavors. I've got to say Windows has generated more WTF moments for me than any of the others.
Admin
I think he meant that VB6 is the WTF. We don't really go by version number anymore but vintage instead or rather the framework behind.
Also Visual Basic is slowly deprecated, MSDN still shows exampls in VB as well as C#, but the latter is by far the language of choice for .net developers.
And "frist" is like "pwned", making joke a folks typing so fast that they hit submit without spell checking themselves, in their haste to be first to post.
It's just a meme, like Nagesh.
Admin
And I obviously did not spellcheck myself either :)
Admin
Admin
Admin
WTFs in manipulation of bits, non-bit values, and inability to tell the difference, is not limited to VB or Windows.
[url made into a non-url because akismet doesn't allow urls] http marc.info/?l=linux-scsi&m=133905180311418&w=2 [/url made into a non-url because akismet doesn't allow urls]
Admin
Luck; 1000 & 10 is true, as is 1000 & 100. VB doesn't have binary literals.
Hey, I inherited code from a guy who was trying to use the unix find command and (partly because he never read the fucking manual) did not grasp that its arguments were a logical predicate. All his code was "try shit and see if it sticks."
The worst part is the motherfucker who swears that we never had problems when this guy ran it.
Admin
Nagesh, please.
Admin
I don't have an MSDN subscription, but I thought I had read that Visual Studio 6 was pulled due to the Sun Java lawsuit outcome?
Also, why try to buy dozens of copies on eBay? I thought new Microsoft products came with downgrade rights to any previous version - you just have to track down the media on your own.
It's really sad. It would be awesome if MSDN came with access to all past versions of the products it comes with. I've always wondered what it would be like to program for Windows 1.0 using whatever SDK they had available back then - just for fun. It would be a very interesting way to learn how the API has evolved over the years. But the earliest I found on MSDN was Windows 3.1 and Visual C++ 1.52, if I remember right. No idea where one would come up with the older stuff.
I guess another problem is the older stuff came with printed documentation only - and no online documentation. (What with memory being such a limited thing and all that).
Admin
Sure, I'm tired of taking digs at Microsoft. But, then I run into yet another half baked, incoherent design that was foisted on us as the standard. That gets me all riled up again.
Of course, I eventually find workarounds that let me find a way to accept the poor and incoherent design. However, by then I've already found multiple half baked, incoherent designs that ....
I'd be happy to give up my bitterness if Microsoft could stop finding new ways to earn it.
Admin
Admin
It is really depressing to see just how poor some people's understanding of computer programming really is. The "bit logic" in this WTF is so broken as to boggle the mind.
Just as an example, if iChkBx = 1000, then "iChkBx And 100" is true!
So it's clear the authors had no idea what "iChkBx And 100" actually does, and they can't do even elementary testing.
Never has that old saying rung so true:
Admin
It's a lot better for the end user to use terms and patterns you've grown up with your whole life (Sentence structure, for example), than it is to go by what's easier to program.
Windows is all about ease of use for the end user, not for the computer scientist. This is why it's so popular to this day, and there is nothing right about criticizing a few issues within batch scripts (Which have easily-accessible workarounds), than it is to troubleshoot why a user can't access a particular folder 50 times a day for a living.
Admin
Bah, it was better when filenames had to be 8 letters. We liked it because it was all we had!
Admin
No, they would be bitching about some other company (maybe Apple?) and their awful programming suite. But programmers would be around, with or without Microsoft.
Admin
Admin
So, being this is a VB6 app, with coding oddities like described, this is no doubt a very large, legacy app, developed in the 90s and still going strong at time of writing. I wonder how many of Doyle's "superior" apps will still be in production after nearly 20 years.
As for running off to various auction sites to get a copy of VB6. What sort of a 2 bit, half backed, amateur organisation is that? Very much sounds to me as if Doyle and crew need a reality check, they ain't that good
Admin
Personally, I think the project leads were right to stop the enhancements. It's an old project with (almost certainly) no unit testing, and a crappy structure full of unintended action at a distance. The only options are to re-write from scratch or leave it alone. Personally, the wtf for me is any suggestion that you'd want to open this can of worms.
Admin
I don't see why agile would make this more likely. The original team alread knew what was being done, and was OK with it. So a "review and retrospective" would make no difference.
Indeed, the decision to use a hack like this is usually the result of the artificial deadlines created by iterative processes. The assumption is always that a better solution will go in at a later date. But as the hacky method spreads around the codebase, the cost of that refactor just goes up. And it never gets done.
Indeed, this WTF story has real-word agile written all over it.
Admin
Methinks you're one of those VB "developers" that Microsoft caters to and who wouldn't know good software development practices if it bit you on the ass.
Seriously, people like that are a cancer on the development world. They sneak into companies and entrench themselves, railing against good and proven techniques like unit testing (maybe TDD, maybe not), design patterns, using third-party libraries were appropriate versus NIH, using any kind of good software engineering principle that many genius-level developers espouse. They write code like shit, focusing only on how fast they can shlock up some bullshit to con their boss into thinking a feature works when it's buggy as all hell and barely works. They force good developers to leave because they get tired of getting nowhere trying to implement things that should be common sense to any good developer.
Die in a fire. And take the rest of your degenerate VB Mort brethren with you.
Admin
I also wonder what kind of amateur group this is, that they don't keep all their old cds?! Come on, IT is known for being pack-rats, in my old job we had hundreds of cd sleeves with Volume License versions of every Msft package back to 1995 or so. And somewhere around here I think I still have Office 4.3 on floppies! ;-)
Admin
At least with the registry you can do black box testing when documentation is missing. Or if you have the source code, you can search for identifier.
If something is missing from XML spesifications, it is impossible to find out what it is. Either it's well documented, you have the source code and know where to look, or you're screwed.
Admin
It's assholes like you that give decent hard working C# developers a bad name. I am so sick of seeing the flame VB comments. Its not the language that's bad, its the developers themselves. And before you get your panties in a bunch about the language, stop begging for all the things that make VB nice. I dunno, like background compilation, intellisense that works, and while all the C# devs railed about optional param's... they sure are quiet about it now that C# has them.
All the high and mighty C# devs can sit around and jerk each other off telling each other how great their language is, and the VB devs just keep getting the job done. Most of the time the compiled code is identical to whatever garbage the equally bad C# devs produce. Garbage in, garbage out.
Ugh. I hate getting worked up this early in the morning.
Admin
It isn't just about the compiled code. It's also about the readability and maintainability of the source code.
"Getting the job done" is no good if you're only doing half the job.
Admin
Meh, VB devs claim theirs is more readable, C# devs claim theirs is... and PHP devs.. well they will never claim that. I would never want a VB dev to maintain my C# code and vice versa so that argument doesnt hold any water for me.
Admin
Interesting that modern devs think there is one true religion. I wonder what they would think about an era where you learnt two languages a year. VB vs C# vs PHP vs whatever is so funny.
Have some respect guys. TRWTF is language wars
Admin
FakeNagesh = fake Remy Porter.
Admin
J++ was start of Microsoft and Sun Microsystem trouble. I heard J++ is now banned world-wide and if you have system running in J++, you need to surender it to Oracle who own all legal rights. So microsoft make copy of J++ and sold it as C#. Once free from java yoke, they decided to add more things to c# and making it a complete different language.
Admin
It's not VB devs, but I see that "who cares about doing things correct? Just sling some code!" mentality far more often in VB guys than C# guys, and VB guys seem to be more likely to not care about things like the SOLID principles, or using an ORM or IoC container or advanced things like that. I don't hate the language, I hate the mentality around the language.
Admin
???
Ain't ice in Hyderabad excepting in mechine at hotel:
[image]Admin
VB.Net Programmers, that's who!
Admin
Admin
Fine. I can understand that, and for a long time, that probably was the case. BUT, I have also seen a lot of C# devs and uninformed managers have the false sense of security that just because its done in C#, its magically wunderbar, and naturally better than anything else, akin to sliced bread. Doing it right is more than picking a language of the month, its all the "other" stuff thats hard.
Its also easy to slam the VB3 - VB6 era, but lets face it, its the only language of its time (not counting C and its derivatives) that has lasted, for good or bad; Delphi, Paradox, dbase, PowerBuilder and the rest faded away. Without the pervasivness of the product, I doubt Visual Studio would be in the position its in today.
Admin
Admin
So in my experience, a lot of devs get wet with vb, and then move on when it will no longer suit their purpose. It has always (in my head at least) been the "playskool" language.
Oh, and I also hated having to install the fucking vb library on every machine I ever needed to install my software on. Thats when I switched to c++. Does vb still do that?
Addendum (2012-06-08 10:56): Actually, fisher-price comes to mind... vb: Play Laugh Grow.
Admin
Macbeth truly grokked the general state of code, and this thread:
... but a walking shadow, a poor player That struts and frets his hour upon the stage And then is heard no more: it is a tale Told by an idiot, full of sound and fury, Signifying nothing.
Admin
That stopped when M$ got around to shipping the runtime as part of the Windows install.
In terms of "VB" that particular language stopped at VB6. Since then it is just a .Net language so the idea that VB vs C# is even an argument is just silly, and perpetuated out of ignorance.
Admin
VB6 legacy app. I can see why they'd be reluctant to make changes during an integration. My first workplace had the attitude of 'don't touch it lest we bring down the whole house of cards' with their legacy VB6 app, sadly, I don't remember the details of how it was designed outside of it had code generating code and took 6 hours to build.
Admin
Fake Nagesh wanted to be buried in a black suit. Fortunately another deceased came into the funeral home wearing a black suit and the undertaker was able to switch heads.
Admin
This is correct. There is also the issue of the other teams mental maps of the application. Any changes you make to the application will mess that up somewhat and that is a hidden cost. Also a likely reason legacy applications get messed up sideways is due to incomplete attempts to revamp them, so now instead of having one way the application does something you have three and a half way. The original way, the new actually worse way, a better way, and the misc I had no idea what I'm doing way.
Admin
Oh, Technical Debt, why didnt you say so? ;)
Admin
I'M SPARTACUS.
Admin
VC++ projects get converted more reasonably. It's not really a problem that the rest of VS6 is unavailable now.
Microsoft told them they wouldn't have to keep old CDs because expired MSDN subscriptions would still allow downloads. Some people call me unprofessional for not being 10% trustful of Microsoft.Admin
I'm quite certain that "Scrummy" is a god damned troll just like fake Nagesh.
Admin
Learn mythology first. Shiva responsible for all destruction. Kali is his instrument.