• (disco)

    So you could say… the code needs more polish?

  • (disco)

    Thanks to Google search, I've found this:

    http://what.thedailywtf.com/t/polish-electorial-calculator/4963

  • (disco)

    Looks like my boss' coding style. Not kidding.

  • (disco)

    Oh. This again.

    I put on my robe and tinfoil hat!

  • (disco)

    Took a look at the full code; felt like this: [image]

    The :wtf: is strong with whoever wrote that abomination…

    <!-- Emoji'd by MobileEmoji 0.2.0-->
  • (disco)

    Out of the many gems contained in this file, I felt this part was particularly heartwarming:

    this.raport += "<p class="dot"> ........................................ ........................................
    "; this.raport += "........................................ ........................................
    "; this.raport += "........................................ ........................................
    "; this.raport += "........................................ ........................................

    ";

    But hey, at least the indentation was pretty swell.

  • (disco) in reply to JBert

    With code as Swede as this, there is Norway it needs more Polish.

    Mandarin.

  • (disco)

    I just checked my records - my last box of floppies (quantity 40) was purchased in 2008 and I only have 6 left. But I'll admit that they probably didn't use many of the 130,000 floppies.

    Not going to try to defend the code quality though. There's nothing worth defending.

  • (disco) in reply to Christofer_Ohlsson
    Christofer_Ohlsson:
    at least the indentation was pretty swell.
    Since this is decompiled code, that’s probably not the original identation.
  • (disco) in reply to VinDuv

    The dots on the other hand... Those should be real.

  • (disco) in reply to JBert
    JBert:
    The dots on the other hand... Those should be real.
    They’re on Dots 323.0!
  • (disco)

    Remember folks, if a private company is hired to write code for a government project, and the code is terrible that's because governments are incompetent.

    Sure some of it is the fault of the spec document (it always is) and some in the tendering process (it always is), but this is private company incompetence that's produced non-functioning code. I kind of doubt "Include the PDB files so anyone can trivially reverse engineer it" was part of the spec.

  • (disco) in reply to gwowen
    gwowen:
    Remember folks, if a private company is hired to write code for a government project, and the code is terrible that's because governments are incompetent.
    How can bad code be blamed on the government? They're not *writing* the code. <!-- Emoji'd by MobileEmoji 0.2.0-->
  • (disco) in reply to RaceProUK
    RaceProUK:
    How can bad code be blamed on the government?

    He was clearly being sarcastic, but he's still right.

    RaceProUK:
    They're not writing the code.

    They picked the contractor. Then they muffed their oversight and acceptance. Obviously it's not all their fault, but they're not blameless, either.

  • (disco)

    TRWTF is knowing how much this thing costed to the government and much the developers got paid. That should be a nice gap.

  • (disco) in reply to boomzilla

    ALL their fault. There is a policy in polish government that you always choose the cheapest contractor. ALWAYS. If not - expect to do some serious explanations to your boss and press.

  • (disco)
    `response += "






    ”;`
    Brazil?
  • (disco)

    Here I was expecting to see things like:

    string1 string2 +;

  • (disco) in reply to RFoxmich

    No that's Reverse Polish. It should be ;+ 2gnirts 1gnirts

  • (disco) in reply to hungrier
    hungrier:
    gnirts

    Almost sounds legit enough to pass for genuine Polish, at least to my ears.

  • (disco) in reply to Onyx
    Onyx:
    Almost sounds legit enough to pass for genuine Polish, at least to my ears.
    Or some form of open-source sotfware fromt he Church of Stallman <!-- Emoji'd by MobileEmoji 0.2.0-->
  • (disco)

    I was confused by the big table of strings like

    this.errors.Add("INW", "Nie wypełnione pole/a \"Imię\"");
    

    At frist I thought it was file corruption, but I couldn't figure out how just certain double-quoted strings got corrupted. Then I thought maybe it was clever anonymization, but who would need to anonymize the error messages? So I figure these are just "lorem ipsum" placeholders for when they actually figure out what they want to say.

    Shame on them for the rookie mistake of leaving placeholders in production code! This, clearly, is TRWTF.

  • (disco) in reply to narbat

    Are you sure? Google says it translates to roughly Did not fill in a field "Name". In other words, you didn't fill out your name.


    Filed under: Did I just whoosh?

  • (disco)

    I found this string test interesting.

    if (this.additionaContent[i] == '<') { isMeta = true; } if (this.additionaContent[i] == '>') { isMeta = false; }

  • (disco) in reply to Tsaukpaetra
    Tsaukpaetra:
    Filed under: Did I just whoosh?

    Yes, I think you did. Flagged.

  • (disco)

    Poland cannot into space, nor into computers it seems.

  • (disco) in reply to RaceProUK
    RaceProUK:
    How can bad code be blamed on the government?

    Someone up there greenlighted it without even consulting a reasonable third party. Nor doing any UATs, it seems, because the thing crashed and burned after the elections (yep, there's a bug in this code, cookie for you if you can find it).

    What's not true is that they picked the cheapest bidder (or at least not because it was the cheapest bidder). What you do in Poland is to pick subjective criteria until they total at least 51 percent of the final rating - so you can have the product you've picked before the bid win even if it's the worst and most expensive PoS.

  • (disco) in reply to RaceProUK
    RaceProUK:
    The :wtf: is strong with whoever wrote that abomination…

    These are not the election results you're looking for...

    No, seriously, these are not the election results you're looking for!

  • (disco)

    That's odd. When I think of Poland, I think of the contributions they made to cryptography during World War II. And also to them standing up to the Soviet Union in addition to the Polish jokes.

  • (disco) in reply to Slapout

    Sod Poland, the talent today is in Romania.

  • (disco) in reply to hungrier

    Atleast it isn't + 1cup 2girls

  • (disco) in reply to Captain

    I didn't read the rest of the code, but is it not entirely possible that the output of this program is consumed by another, which is then subsequently fed back into this program?

    I find it likely!

  • (disco)

    •taking StringBuilders to be too 2000’s and using good old performance-murdering string concatenation

    Actually this point is not exactly as bad as it seems to be. C# compiler since .NET v2 knows to convert string concatenation to StringBuilder.Append() if more than 3 concatenate operation is seen to the variable.

  • (disco) in reply to cheong
    cheong:
    •taking
    That's an interesting way to type
    • taking
  • (disco) in reply to hungrier
    hungrier:
    gnirts

    Oh, I'm so gonna use gnirts as a variable name in my next project!

  • (disco) in reply to Ewgenij_Belzmann

    ‮You should use gnirts as a variable name in your next project!

  • (disco) in reply to Ewgenij_Belzmann
    Ewgenij_Belzmann:
    Oh, I'm so gonna use gnirts as a variable name in my next project!

    Isn't that the Bash way of doing double quotes?

    #!/bin/bash
    
    s =
    string
        Hello, world!
    gnirts
    
    echo $s
    
  • (disco) in reply to smoku
    smoku:
    There is a policy in polish government that you always choose the cheapest contractor. ALWAYS.If not - expect to do some serious explanations to your boss and press.

    There is no place for gut feelings in government.

    The trouble is that while a good manager could choose the right contractor based on various subtle red flags, for the others there is no way to distinguish between the official selecting the non-cheapest offer because the cheaper ones are suspect or because they awarded the contract to their friends in exchange for some other services a.k.a bribe.

    And corruption is a serious problem here in Eastern Europe. The communist regime was practically based on corruption, at all levels, so everybody knows how to do it and many consider it normal.

    I am not sure whether it is as bad in Poland as here across the border in Czech(ia|land| republic)…

    Maciejasjmj:
    What's not true is that they picked the cheapest bidder (or at least not because it was the cheapest bidder). What you do in Poland is to pick subjective criteria until they total at least 51 percent of the final rating - so you can have the product you've picked before the bid win even if it's the worst and most expensive PoS.

    But it looks like it is. That's the typical method here too.

    So there are strict rules and government execs cunning enough to work around them and not really caring for the end result anyway.

  • (disco) in reply to RaceProUK
    RaceProUK:
    Or some form of open-source sotfware fromt he Church of Stallman

    <!-- Emoji'd by MobileEmoji 0.2.0-->

    GNIRTS definitely sounds like open source software, most likely GNU license.

  • (disco) in reply to Maciejasjmj
    Maciejasjmj:
    Nor doing any UATs, it seems, because the thing crashed and burned after the elections

    They did UATs, which failed miserably. Then they decided to lie to the public that tests went fine and fix the software in two weeks remaining to elections. This ingenious plan didn't work, obviously.

    What's not true is that they picked the cheapest bidder (or at least not because it was the cheapest bidder).

    There was only one bidder. (So yeah, they picked the most expensive one)

    What you do in Poland is to pick subjective criteria until they total at least 51 percent of the final rating - so you can have the product you've picked before the bid win even if it's the worst and most expensive PoS.

    No one wants to buy POS, that's not why they do it.

  • (disco) in reply to Bulb
    Bulb:
    There is no place for gut feelings in government.

    Then how do you explain politicians?

  • (disco) in reply to dkf
    dkf:
    Then how do you explain politicians?

    They don't follow their gut. They follow their dick.

  • (disco) in reply to Luhmann
    Luhmann:
    They don't follow their gut. They follow their dick.
    They don't follow their dick. They follow the :moneybag:. <!-- Emoji'd by MobileEmoji 0.2.0-->
  • (disco) in reply to RaceProUK

    Their dick is a dowsing rod?

  • (disco)

    Ok, who changed the title? I thought it's an unwritten rule we don't do that to threads in the Article category...

  • (disco) in reply to Onyx

    @lolwhat, behave please.

  • (disco) in reply to Onyx

    :smirk:

    Why is the unwritten rule, well, unwritten?

  • (disco)
  • (disco) in reply to Luhmann
    Luhmann:
    Their dick is a dowsing rod?
    :giggity: <!-- Emoji'd by MobileEmoji 0.2.0-->
  • (disco) in reply to Onyx

    Aren't gnirts something you eat in the southern US? Hominy gnirts ;-)

Leave a comment on “Polish Elections”

Log In or post as a guest

Replying to comment #:

« Return to Article