- 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
Apex, the Salesforce language which is just a half-implemented layer on top of Java, is worse than you can imagine. There's no switch statement. All primitives are passed by value, and all non-primitives are passed by reference.
And that's just the tip of the iceberg. So Apex not being able to handle a "true" boolean isn't that big of a surprise.
Admin
Admin
um, no. You can do something to yourself. They can do something to themselves. You can't do something to themselves.
Admin
Admin
My money is on the correct boolean value being 'True'. Whoever decided that booleans should be case-sensitive is TRWTF.
CAPTCHA: Oppeto - the less-famous puppetmaker.
Admin
Admin
Admin
"Tips: Does mandatory format ?"
Nice.
Admin
Yeah, but then I had to shake it for a few minutes. And then the colors weren't that great and there was a 2" bottom margin...
Admin
Admin
I believe this was a twin turbine engine aircraft, not a jet. Also, you had to leave it refueled when finished.
They may have upped their minimum deposit requirements. The $200,000 figure was from about ten or fifteen years ago.
The same bank will reportedly send a limo for their better customers, if need be, to bring them to the bank or take them home when done.
Admin
According to VB, -1.
Admin
From the...eh...."Support" Website linked in the article, seems no-one has thought to bring up this little gem yet
PLEASE NOTE If you are upgrading the PMID701C tablet to Android 4.0, the TV-out option will no longer function as Android 4.0 does not support TV-out on our Tablets.
Admin
It's a fallacy that you have to shake a polaroid pic to get it to develop. The origin of that belief is lost in the mists of history.
Admin
Admin
Admin
MsoWtfStateEnumeration?
Admin
Actually it's not funny anymore. There is a goddamn captcha for fucks sake, and EVERY ARTICLE for YEARS has had people complaining about the goddamn Akismet. Is this shit really necessary? And it just seems to detect a post as spam iff it ends with an URL. Can't spammers defeat it by adding a random sentence at the end?
By the way, you can't directly post it even if you are a registered user, but you can bypass it by editing your post immediately after. Get your shit together, Alex.
Admin
Sounds like you'll have to dig out that old standard, "if else if else if else if..."
Oh, and let me guess: Their language is one of those that works on indentation only...no block structure. Right?
Admin
Oh, and as to not handling boolean "true". I guess instead of "true, false, file not found", we're just down to "false, false, false" now.
Admin
Yes, tons of if statements.
No, it's the "normal" C syntax.
Admin
Admin
Nah, you just get an image of what looks like a cracked Apple on the screen and when you send it into repair they say you need to pay £270 for a repair as a tiny slither of plastic has broken off the dock connector - seriously how does one write an up-grader that seams to work then fails at the last bit because of a broken dock connector (which has been working for charging and syncing with iTunes).
Admin
I'm guessing said person is a PHB at some Fortune 500 company, and therefore doesn't know about Download Managers and suchlike. His CTO probably told him they were a security risk or something.
Admin
TRWTF is requiring a kernel driver to flash the tablet.
Admin
That's not specific to Apex. That's just Java. (Actually, Java does have a switch statement, but IIRC there was something horribly wrong with it, making it unusable. But then again, it was a while ago that I still had to code Java... but the scars remain.)
Admin
None of those things are problems. Switch is just sugar, and the value/reference bit sounds like c#. I don't doubt the thing has issues, but I'd expect . . . real ones.
Admin
Nope, "OK" is not clear in any language.
Admin
Admin
Ahh.. Yes, I have that EXACT Polaroid 7" tablet, from that EXACT sale site. Granted, for fifty bucks, risk of bricking is acceptable.
I found the thing gets... a little odd if the charge cable is plugged in. Not badly, but it has trouble with booting and shutting down properly. Try charging it up fully, then unplugging it and using it that way?
They seem to have a fairly robust forum, you check there for any advice?
Good luck with it.
Admin
um... I guess you haven't used Java, where all primitives are passed by value, and all non-primitives are passed by reference. Blame Apex for its own suckage, but if it's just a wrapper for Java code, why expect different from Java's behavior?
Admin
Also, the primitive type boolean in SalesForce has 3 (sic), valid values: null, true and false.
I don't miss programming in Apex.
Admin
Java does absolutely not pass objects by reference, it only supports pass by value. References/pointers to objects are passed by value. For Example:
If Java had supported pass by reference, 'aDog' would be pointing to 'FiFi' in the end. Meaning that your faithfull dog Max would get collected by the garbage collector and you would get stuck with a dog named Fifi. Instead Java just lets you keep Max and puts Fifi out with the trash.
Example thanks to JavaDude.com
Admin
If you believe otherwise, write a swap-method that is able to swap two Strings:
Expected output:
The only thing that's horrible wrong with it is that you have to explicitly "break;" each case, but that WTF is inherited from C.Admin
That's not the worrisome part. Check the line/column number.
Admin
No you don't.
AFAIK the only things wrong with it are you can only switch on numbers or something you can pretend is a number, and the cases must be constant values. I don't know if some other languages don't have such limitations.
Admin
Livesuit is still one of the best flashing tools for cheap chinese tablets:
A non-chinese company using it for their own tablet, now that's TRWTF
Admin
Samsung tablets show this behavior if you charge them using a USB connection after the battery is depleted to shutdown level. It's due to some imbalance between the battery's voltage protection circuit and the tablet's power requirement. The tablet tries to turn on during the charge cycle and depletes the battery, which in turn shuts down to avoid permanent damage. The tablet powers off, the battery starts to charge again, and the cycle repeats.
The solution there is to use the Samsung charger which has a higher charge output than the USB port will provide. Perhaps a different charger will fix the problem.
Admin
reminds me of a story of someone who tried to help his friend get his new Ipod to play some old movies...the problem? the new model of Ipod was flat-out incapable of using Quicktime. WTFF?! the newest Apple hardware is NOT COMPATIBLE with THE most popular and best-known APPLE software EVER?! how ridiculous can it get?!