• (cs)

    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.

  • n_slash_a (unregistered) in reply to chubertdev
    chubertdev:
    IN-HOUSE-CHAMP:
    On another note, this would not have happened with an iPad.
    They would tell you that you are SOL and need to buy another iPad, a $50 shirt, proprietary headphones, and two proprietary chargers so you are cool enough to make it work.
    FTFY
  • (cs) in reply to eVil
    eVil:
    campkev:
    themselves to... themselves.

    You keep using that word. I do not think it means what you think it means.

    The second instance there is fine. The first is erroneous.

    um, no. You can do something to yourself. They can do something to themselves. You can't do something to themselves.

  • Kasper (unregistered) in reply to Ironside
    Ironside:
    Winzip already has 20KB of the file. That's a lot of bytes. It should be able to figure out the rest.
    It might not be a zip file at all. I'd not be the least surprised had the server decided to hand out an html file instead.
  • Anon (unregistered)

    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.

  • (cs) in reply to foo
    foo:
    operagost:
    RichP:
    eric76:
    Some banks do even better than that. I know of one bank that supposedly loans its corporate aircraft to customers who maintain a minimum balance. The minimum balance required? $200,000.

    Free use of a corp. aircraft after only depositing $200K? Yea, I know "only $200K" sounds funny, but considering corp jets have operating costs in the $1000/hour range, that's a deal.

    No one said it was free, just a "loan".
    Think of the $200K as a deposit, in case you scratch the mahogany furniture.
    Or CFIT.

  • Bob (unregistered) in reply to Anon
    Anon:
    booleans should be case-sensitive
    Huh? What's the upper case of 1?
  • not the consultant (unregistered)

    "Tips: Does mandatory format ?"

    Nice.

  • PRMan (unregistered) in reply to unregistered
    unregistered:
    At least Polaroid made it easy to print the instructions.

    Most install instructions I've seen print out very badly.

    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...

  • (cs) in reply to Bob
    Bob:
    Anon:
    booleans should be case-sensitive
    Huh? What's the upper case of 1?
    Back in the days of manual typewriters: L. In the computer keyboard era: !.
  • eric76 (unregistered) in reply to RichP
    RichP:
    eric76:
    Some banks do even better than that. I know of one bank that supposedly loans its corporate aircraft to customers who maintain a minimum balance. The minimum balance required? $200,000.

    Free use of a corp. aircraft after only depositing $200K? Yea, I know "only $200K" sounds funny, but considering corp jets have operating costs in the $1000/hour range, that's a deal.

    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.

  • Sanhadrin (unregistered) in reply to Bob
    Bob:
    Anon:
    booleans should be case-sensitive
    Huh? What's the upper case of 1?

    According to VB, -1.

  • upgrades! (unregistered)

    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.

  • (cs) in reply to PRMan
    PRMan:
    unregistered:
    At least Polaroid made it easy to print the instructions.

    Most install instructions I've seen print out very badly.

    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...

    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.

  • (cs) in reply to Sanhadrin
    Sanhadrin:
    Bob:
    Anon:
    booleans should be case-sensitive
    Huh? What's the upper case of 1?
    According to VB, -1.
    This made me laugh harder than it should have.
  • Captcha:luctus (unregistered) in reply to Pedro
    Pedro:
    TRWTF is asking to be emailed a 263MB attachment.

    I'm sure they would try it anyway. Several times. And then complain to IT about emails not leaving the outbox, or internet beeing slow.

    And why the fuck not? I can download 263MB in a few minutes, and no email provider today gives less than 5GB of storage per user today. If I can't send 400MB files by email, then this "email" thing is very poorly designed.
  • (cs) in reply to PiisAWheeL
    PiisAWheeL:
    Sanhadrin:
    Bob:
    Anon:
    booleans should be case-sensitive
    Huh? What's the upper case of 1?
    According to VB, -1.
    This made me laugh harder than it should have.

    MsoWtfStateEnumeration?

  • The Amazing Rantman (unregistered) in reply to foo
    foo:
    When I tried to submit the support request, I was informed that my support request was rejected because it appeared that I was trying to advertise to them in my message since I had included an URL. Bear in mind that the URL was for their server.
    I'd never visit any website with such a stupid spam cop.
    Ha ha, it's funny because TheDailyWTF does exactly this thing too.

    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.

  • (cs) in reply to chubertdev
    chubertdev:
    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.

    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?

  • (cs)

    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.

  • (cs) in reply to Coyne
    Coyne:
    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?

    Yes, tons of if statements.

    No, it's the "normal" C syntax.

  • Norman Diamond (unregistered) in reply to chubertdev
    chubertdev:
    the "normal" C syntax.
    Oxymoron alert!
  • Kev (unregistered) in reply to IN-HOUSE-CHAMP

    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).

  • (cs) in reply to Pedro

    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.

  • Grzechooo (unregistered)

    TRWTF is requiring a kernel driver to flash the tablet.

  • (cs) in reply to chubertdev
    chubertdev:
    There's no switch statement. All primitives are passed by value, and all non-primitives are passed by reference.

    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.)

  • burst (unregistered) in reply to chubertdev
    chubertdev:
    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.

    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.

  • jemo (unregistered) in reply to just stop it

    Nope, "OK" is not clear in any language.

  • (cs) in reply to burst
    burst:
    the value/reference bit sounds like c#
    C# can pass value types by reference just fine; look up the ref keyword...
  • Robin Bobcat (unregistered)

    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.

  • atk (unregistered) in reply to chubertdev
    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.

    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?

  • Phil (unregistered)

    Also, the primitive type boolean in SalesForce has 3 (sic), valid values: null, true and false.

    I don't miss programming in Apex.

  • (cs) in reply to chubertdev
    chubertdev:
    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.

    Java does absolutely not pass objects by reference, it only supports pass by value. References/pointers to objects are passed by value. For Example:

    public void foo(Dog d) {
        d = new Dog("Fifi"); // creating the "Fifi" dog
    }
    
    Dog aDog = new Dog("Max"); // creating the "Max" dog
    // at this point, aDog points to the "Max" dog
    
    foo(aDog);
    // aDog still points to the "Max" dog

    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

  • (cs) in reply to SeySayux
    SeySayux:
    chubertdev:
    There's no switch statement. All primitives are passed by value, and all non-primitives are passed by reference.

    That's not specific to Apex. That's just Java.

    That's just wrong! Java passes by value only. However your variables never contain "non-primitives" / objects, they contain references (pointers) to those objects.

    If you believe otherwise, write a swap-method that is able to swap two Strings:

    String a = "One";
    String b = "Two";
    
    swap(a, b);
    
    System.out.println(a);
    System.out.println(b);
    

    Expected output:

    Two
    One
    
    SeySayux:

    (Actually, Java does have a switch statement, but IIRC there was something horribly wrong with it, making it unusable.

    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.

  • nerdyHippy (unregistered) in reply to chubertdev
    chubertdev:
    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.

    That's not the worrisome part. Check the line/column number.

  • (cs) in reply to no laughing matter
    no laughing matter:
    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.

    No you don't.

    int i = 0;
        	
    switch(i){
        case 0:
        case 1:
    }

    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.

  • SztupY (unregistered)

    Livesuit is still one of the best flashing tools for cheap chinese tablets:

    1. It works (if you can decipher the english text)
    2. It even works if the tablet is completely bricked and won't boot (like in this case)

    A non-chinese company using it for their own tablet, now that's TRWTF

  • AC (unregistered)

    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.

  • eric bloedow (unregistered)

    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?!

Leave a comment on “Warning - Upgrade Have a Risk, Working Wriness”

Log In or post as a guest

Replying to comment #:

« Return to Article