- 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
1 = 1 10 = 8 + 2 100 = 64 + 32 + 4
... were they just lucky? or is that stuff in fact binary, and not decimal?
CAPTCHA:vulputate, i.e. what you do after smelling this code
Admin
Yeah, "3 bits" is suspicious. as dutchieman demonstrated, it would actually to at last 5 bits!
Admin
Am I supposed to read the iChkBx And 100 etc. as bit-wise AND? Who reads 100 and doesn't think in decimal?
It looks like they packed a 3 element boolean array into a single byte on modern hardware. Somebody started out as an assembly programmer. WTF?!?
Admin
"iChkBx And 100"
Is this code real. I have not done bitwise operation in VB in well probably a decade but if iChkBx is dimensioned as BIT(3) how is And'ing it with 100 supposed to work?
If you wanted to see if high bit was set you'd need to iChkBx with 4. Unless VB somehow understands 100 to be a string of bits because iChkBx is bit but I don't remember it doing that. Hex had to get prefixed &h
Admin
Yes, it's true. VB overloads AND to support bit-wise numbers: http://msdn.microsoft.com/en-us/library/sdbcfyzh%28v=vs.80%29.aspx
Am I supposed to read the iChkBx And 100 etc. as bit-wise AND? Who reads 100 and doesn't think in decimal?
It looks like they packed a 3 element boolean array into a single byte on modern hardware. Somebody started out as an assembly programmer. WTF?!?
Admin
Don't you people ever tire of taking digs at Microsoft? You SOBs would be frying eggs at the local diner if it weren't for Microsoft.
And WTF is "frist"? Is that a medal you pin on your ass, J-Po?
Admin
Yeah, like it would have made sense to properly configure the data store by moving the registry data into a full SQL Server 2012 database 2 weeks before the update shipped.
Admin
Admin
Admin
Don't you people ever tire of taking digs at Microsoft?
No.
Admin
Admin
Admin
Hey, Microsoft has made some fine stuff. C# is actually one of the prettiest languages I've worked in. VB, especially old VB... not so much with that. (And while Windows itself has been getting remarkably robust, the UI just keeps getting worse. Good thing people keep writing user-space applications to fix most of the issues by throwing out the native UI entirely. Though I still haven't found a perfect explorer replacement for Win7 (I wish I could just run XP's explorer). Explorer++ is close, but there are a couple major annoying bugs, and while it's technically open source, its maintainer and sole -actual- developer hasn't touched it in months.)
Admin
Hey everyone, I just received bad news. Fake Nagesh is dead, he got run over by a dog sled team. Hopefully The Daily WTF will survive this tragedy ...
Admin
Since Microsoft CONTINUES to release new and sometimes interesting wtfery, We CONTINUES to jab on it. Its not that nothing good comes out of there, but the bad is just so much more fun to make fun of.
Also a lot of people who "know better" (people with experience and understanding of how computers operate) like to make fun of microsoft because their target market tends to be people who struggle with checking their email. While microsofts software makes it easier for them, the rest of us just get annoyed at a lot of those "features" and do our damndest to avoid, turn off, or ignore them.
Admin
Admin
Yeah, I wondered about that too. So if they add 1000=Mexico, 1000 = 8+32+64+128+256+512, which has bits in common with both 10 and 100. So:
country=Canada if county and Mexico ... will be true
And they'll probably sit there scratching their heads over this weird bug. Why does it work for 3 "bits" but not for 4? This is when they start writing letters to Microsoft informing them of the bug in the VB6 compiler.
Admin
Visual Studio 6.0 for editing VB6?
And why buy it if they were joining the other company, didn't they already have the tools?
Admin
Visual Studio 6.0 for editing VB6?
And why buy it if they were joining the other company, didn't they already have the tools?
Admin
Doesn't Microsoft ever tire of shipping crap that's only worth taking a dig at?
Admin
The second one is my working theory.
Admin
TRWTF is buying VS6 at online auctions instead of pirating it ;)
Admin
So all they needed was to switch to a 4-bit register.
Admin
It's a lucky thing we have 64-bit Windows now; they could expand to serve up to 64 countries before needing to redesign things.
Admin
No, you only see this kind of half-assed stupidity in Microsoft developers (and sometimes PHP). You rarely find this kind of nonsense in Java-land, although there's a different beast there (namely tons of XML). I'd rather deal with tons of XML than some harebrained idea like USING THE FUCKING REGISTRY. At least XML was meant to be a tool, but using the Registry just screams "I have zero idea what the hell I'm doing, but who cares?"
Seriously, the problem with Microsoft is that they are always late to the party. It took them how fucking long to roll out an MVC framework despite that pattern being around since 19-FUCKING-70 and every other platform having some kind of MVC framework for it. No, instead Microsoft pushes this bullshit WebForms to mimic the style of VB6 apps, and continues to prove total ignorance by pushing the ability to do "RAD" and shlock code out using drag-and-drop or wizard driven nonsense.
Admin
There's nothing wrong with this code, assuming that one of the requirements for the app is that it has to run in environments with so little storage that it would be wasteful to dedicate an entire integer for each boolean flag. For example, an IBM PC 5150 with dual 360K floppies but no hard disk or cassette drive.
Preposterous, you say? Any more preposterous than maintaining code written in a 13-year-old version of Visual Basic?
Admin
wow, Steve Ballmer is an angry man.
Admin
The registry isn't useless, just over-used. The idea of a central place for configuration settings per machine is a decent one. And in fact it does quite well when used correctly.
Quoting when pattern's existed is pointless. How long had the idea for inheritance existed before it was implemented?
There are benefits to web forms. Look at mobile phones right now, everyone is doing native apps due to the limitations on web sites. The restrictions on web sites for computers are fewer, but they still exist.
Admin
Oh, I get it! It wasn't software. Right?
Admin
Admin
you better believe it. That 128-bit Zune is going to rock the world ;-).
Admin
Admin
At the risk of sounding redundant, an Agile team would not have had this problem. Regular product review and retrospective would have unearthed that settings driven by bits stored in the registry is wildly untenable. And an Agile team's code would have been so thoroughly tested that post-merger integration would be a snap.
Admin
Fake Nagesh ain't me. It is that other scarecrow who always be massaging stupid coments.
Admin
But again, a "team" of "developers" like that wouldn't know anything about Agile, wouldn't have been using Agile, and would have probably thrown a fit if they had been asked about their thoughts on Agile. The fact it was a VB6 application, a platform that has been obsolete for nearly a decade and a half, is a good indicator of that team's quality and skill level.
People like that don't use Agile, and it's doubtful they've ever heard of it,
Admin
Me thinking there maybe two fake Nageshes.
Admin
Admin
Admin
"Frist" is a shorthand for "I'm a dumbass because that's pretty much the only constructive comment that I can provide related to this article".
Admin
Screw you, octopus
Admin
Then go ahead and use linux with the fastest GUI responsiveness or an equally buggy Mac. Windows is the best desktop (and server) operating systems availalbe nowadays (I'm not digging into the past, though).
Admin
You have no fucking clue what you're talking about. Go flip burgers.
Admin
Ralph, I fucking KNOW that you can't even turn on a non-windows machine, so shut the fuck up - dick!
Admin
No, we never tire of taking digs at Microsoft. And we wouldn't necessarily be frying eggs; we might even be working for Apple!
'frist' is probably a captcha that turned into a "first post" thingamabobster.
CAPTCHA: Tego - if we were frying eggs, you would need to leggo this!
Admin
Admin
May you choke on vomit. I don't care whose.
Admin
As much as I hate working in VB6, you're absolutely right.
Admin
Admin
Admin
Hint: It is supposed to be a file name not a fucking sentence!