• NSFW (unregistered) in reply to JoC
    JoC:
    Jeez, you guys are such code Nazis.

    You must be new here.

  • (cs) in reply to OldCoder
    OldCoder:
    Not to mention.. there's not a single return in the whole function. Readability would be greatly improved if each test just set 'ja' or 'nein' and then returned instead if wading through additional tests that are bound to turn out FALSE.
    Indeed. They should really set T012_lbl_VorsteuerKorrekturErfolgt44.Text to the return value outside the function. That way they can re-use this code in more than one place.

    Yes, I'm kidding.

  • Dev (unregistered) in reply to Power Troll

    Seriously, who uses that lightweight browser that loads in 2 seconds anyway. I would much prefer waiting 10 minutes for IE to boot-up. My company is a top 10 M$ corporate customer and most of the people in the building use Chrome.

    This comes from a big German company that makes crappy web based software..... this must be from SAP.

  • 3rd Ferguson (unregistered) in reply to Samuel Zook
    Samuel Zook:
    The Corrector:
    NSFW:
    +1 to anyone who still actually speaks German.
    Why are they writing software in a secret language developed by dead language developed by the Nazi party that no one has spoken (or taken seriously) since WWII? My forefathers didn't fight and die to rid the world of German tyranny for nothing.

    We Anabaptists speak it, you English dummkopf.

    That's like a Quebecois claiming to speak French.

    /CAPTCHA nobis: "Misrere nobis" have mercy on the coder, he knew not what he did

  • Rob (unregistered)

    I'm glad to see that German companies pay for code by the line, too...

  • (cs) in reply to MeesterTurner
    MeesterTurner:
    And what's wrong with copying straight into WWWRoot?!

    Ok, we're not that bad [any more]... Just a quick SVN Update directly on WWWRoot instead :-)

    (Just checked, I can't browse into .svn folders on our website - Phew!!)

    To be fair, the best way to update production sites written on a script language is with svn export. Directly from the erpository you can pull the exact version you've being testing, without making it possible for anyone to edit anything. (Of course, that implies that you'll fill your testing environment by the same svn export procedure... By the way, that implies you have a testing environment...)

  • Limey Hateseptics (unregistered) in reply to 3rd Ferguson
    3rd Ferguson:
    Samuel Zook:
    The Corrector:
    NSFW:
    +1 to anyone who still actually speaks German.
    Why are they writing software in a secret language developed by dead language developed by the Nazi party that no one has spoken (or taken seriously) since WWII? My forefathers didn't fight and die to rid the world of German tyranny for nothing.

    We Anabaptists speak it, you English dummkopf.

    That's like a Quebecois claiming to speak French.

    We Brits speak both French and German.

  • rnd * 1000 (unregistered) in reply to JayC
    JayC:
    rnd * 1000:
    Tim:
    rnd * 1000:
    The Article:
    Databases? Naaah... just use a bunch of XML (or sometimes CSV) files.
    Phillip needs to be drug out into the street and shot if he thinks there's a difference between XML and CSV. What does it matter what format it's saved in: it's read by Excel the same. And if that's how they want to manage their databases, what's wrong with that? It's a lot simpler and easier to understand than writing obtuse sequel statements on the command line. TRWTF is developers that think that everyone is as computer-savvy as they are.
    as someone who has worked with XML and CSV I can assure you there are plenty of differences. XML is a documented standard and had tools available which adhere to that standard. just try processing a CSV file containing non-ascii characters, whitespace, quotes, leading spaces, line breaks etc etc and see what I mean
    Try reading more dev magazines and less management books before you post here again, plz.

    Oh wow Rnd. XML is far better format than CSV for many circumstances. Maybe it's not for importing to excel, but for many OTHER circumstances. If you're only importing data into excel, yeah, maybe it's a WTF. I've yet to successfully import data in from a XML file to Excel, but I've yet to care to figure it out, either, since I've got a lot better tools than Excel to do most of what I need done.

    Well look who's jumped on the dummy bandwagon! Careful, or you push some of your cousins out!

    First of all, you don't "import" into Excel. You can just open the file. It's a native format. As a native format, you have to jump through hoops just to try to open it in, say, notepad. (Hint: don't try it or you'll see a bunch of rectangles.) As far as "better tools" go, I've tried Open "Ripoff" Office and only have one thing to say: why use an imitation when you can only count on it to display the file correctly half the time? Sure it works with some of the simpler documents, but if you're using formulas or formatting you might as well be playing Russian Roulette. And Google docs? Well, that doesn't work when you're trying to protect your data and not just have it posted on the internet. That's why we don't just use gmail for company business.

    See, I've been around the block a few times, and unlike you I actually know what I'm talking about: I'm not just speculating on something I read about in PC Magazine.

  • (cs)

    I missed you, TopCod3r!

  • (cs) in reply to frits
    frits:
    boog:
    I'm pretty sure I would have strangled whoever wrote this.
    What are you, a moron? Have you ever visited a German prison? Its not pretty, let me tell you.
    Just out of curiosity, what were you doing in a German prison?
  • Rictor (unregistered) in reply to MeesterTurner

    ... but i can! mwahahahaha

  • Rictor (unregistered) in reply to MeesterTurner
    MeesterTurner:
    And what's wrong with copying straight into WWWRoot?!

    Ok, we're not that bad [any more]... Just a quick SVN Update directly on WWWRoot instead :-)

    (Just checked, I can't browse into .svn folders on our website - Phew!!)

    ... but I can! MWAHAHAAHAH!

  • Phi (unregistered) in reply to rnd * 1000
    rnd * 1000:
    JayC:
    rnd * 1000:
    Tim:
    rnd * 1000:
    The Article:
    Databases? Naaah... just use a bunch of XML (or sometimes CSV) files.
    Phillip needs to be drug out into the street and shot if he thinks there's a difference between XML and CSV. What does it matter what format it's saved in: it's read by Excel the same. And if that's how they want to manage their databases, what's wrong with that? It's a lot simpler and easier to understand than writing obtuse sequel statements on the command line. TRWTF is developers that think that everyone is as computer-savvy as they are.
    as someone who has worked with XML and CSV I can assure you there are plenty of differences. XML is a documented standard and had tools available which adhere to that standard. just try processing a CSV file containing non-ascii characters, whitespace, quotes, leading spaces, line breaks etc etc and see what I mean
    Try reading more dev magazines and less management books before you post here again, plz.

    Oh wow Rnd. XML is far better format than CSV for many circumstances. Maybe it's not for importing to excel, but for many OTHER circumstances. If you're only importing data into excel, yeah, maybe it's a WTF. I've yet to successfully import data in from a XML file to Excel, but I've yet to care to figure it out, either, since I've got a lot better tools than Excel to do most of what I need done.

    Well look who's jumped on the dummy bandwagon! Careful, or you push some of your cousins out!

    First of all, you don't "import" into Excel. You can just open the file. It's a native format. As a native format, you have to jump through hoops just to try to open it in, say, notepad. (Hint: don't try it or you'll see a bunch of rectangles.) As far as "better tools" go, I've tried Open "Ripoff" Office and only have one thing to say: why use an imitation when you can only count on it to display the file correctly half the time? Sure it works with some of the simpler documents, but if you're using formulas or formatting you might as well be playing Russian Roulette. And Google docs? Well, that doesn't work when you're trying to protect your data and not just have it posted on the internet. That's why we don't just use gmail for company business.

    See, I've been around the block a few times, and unlike you I actually know what I'm talking about: I'm not just speculating on something I read about in PC Magazine.

    Yawn. Mr. Troll is starting to get repetitive. Why don't you mix it up and switch to another topic you know little about. Try Linux vs Windows, that's always an easy trolling.

  • (cs) in reply to Severity One
    Severity One:
    frits:
    boog:
    I'm pretty sure I would have strangled whoever wrote this.
    What are you, a moron? Have you ever visited a German prison? Its not pretty, let me tell you.
    Just out of curiosity, what were you doing in a German prison?

    Never mind that. Exactly where can I find a pretty prison?

  • Somebody3 (unregistered) in reply to rnd * 1000
    rnd * 1000:
    First of all, you don't "import" into Excel. You can just open the file. It's a native format. As a native format, you have to jump through hoops just to try to open it in, say, notepad. (Hint: don't try it or you'll see a bunch of rectangles.)

    Opens a .csv file with notepad.

    Sees a bunch of Values, Separated by Commas.

    Doesn't see "a bunch of rectangles" because everything is in ASCII.

    Wonders wtf you are talking about.

  • TommyTuTone (unregistered) in reply to Phi

    I agree with Phi. How did we get to Google Docs from the CSV vs. XML discussion? Perhaps if Rnd had a more open mind about what technologies will solve certain problems, he would be a happier person.

  • frits (unregistered) in reply to Severity One
    Severity One:
    frits:
    boog:
    I'm pretty sure I would have strangled whoever wrote this.
    What are you, a moron? Have you ever visited a German prison? Its not pretty, let me tell you.
    Just out of curiosity, what were you doing in a German prison?
    How many non-Jews have you met named "frits?"
  • TommyTuTone (unregistered) in reply to Phi
    Phi:
    rnd * 1000:
    JayC:
    rnd * 1000:
    Tim:
    rnd * 1000:
    The Article:
    Databases? Naaah... just use a bunch of XML (or sometimes CSV) files.
    Phillip needs to be drug out into the street and shot if he thinks there's a difference between XML and CSV. What does it matter what format it's saved in: it's read by Excel the same. And if that's how they want to manage their databases, what's wrong with that? It's a lot simpler and easier to understand than writing obtuse sequel statements on the command line. TRWTF is developers that think that everyone is as computer-savvy as they are.
    as someone who has worked with XML and CSV I can assure you there are plenty of differences. XML is a documented standard and had tools available which adhere to that standard. just try processing a CSV file containing non-ascii characters, whitespace, quotes, leading spaces, line breaks etc etc and see what I mean
    Try reading more dev magazines and less management books before you post here again, plz.

    Oh wow Rnd. XML is far better format than CSV for many circumstances. Maybe it's not for importing to excel, but for many OTHER circumstances. If you're only importing data into excel, yeah, maybe it's a WTF. I've yet to successfully import data in from a XML file to Excel, but I've yet to care to figure it out, either, since I've got a lot better tools than Excel to do most of what I need done.

    Well look who's jumped on the dummy bandwagon! Careful, or you push some of your cousins out!

    First of all, you don't "import" into Excel. You can just open the file. It's a native format. As a native format, you have to jump through hoops just to try to open it in, say, notepad. (Hint: don't try it or you'll see a bunch of rectangles.) As far as "better tools" go, I've tried Open "Ripoff" Office and only have one thing to say: why use an imitation when you can only count on it to display the file correctly half the time? Sure it works with some of the simpler documents, but if you're using formulas or formatting you might as well be playing Russian Roulette. And Google docs? Well, that doesn't work when you're trying to protect your data and not just have it posted on the internet. That's why we don't just use gmail for company business.

    See, I've been around the block a few times, and unlike you I actually know what I'm talking about: I'm not just speculating on something I read about in PC Magazine.

    Yawn. Mr. Troll is starting to get repetitive. Why don't you mix it up and switch to another topic you know little about. Try Linux vs Windows, that's always an easy trolling.

    Bunch of rectangles? Hilarious.

  • (cs) in reply to Power Troll
    Power Troll (Fake):
    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
  • (cs) in reply to Power Troll
    Power Troll:
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
    It's like the first time a celebrity is rumored to be gay, you know they've made it.
  • rnd * 1000 (unregistered) in reply to Phi
    Phi:
    rnd * 1000:
    JayC:
    rnd * 1000:
    Tim:
    rnd * 1000:
    The Article:
    Databases? Naaah... just use a bunch of XML (or sometimes CSV) files.
    Phillip needs to be drug out into the street and shot if he thinks there's a difference between XML and CSV. What does it matter what format it's saved in: it's read by Excel the same. And if that's how they want to manage their databases, what's wrong with that? It's a lot simpler and easier to understand than writing obtuse sequel statements on the command line. TRWTF is developers that think that everyone is as computer-savvy as they are.
    as someone who has worked with XML and CSV I can assure you there are plenty of differences. XML is a documented standard and had tools available which adhere to that standard. just try processing a CSV file containing non-ascii characters, whitespace, quotes, leading spaces, line breaks etc etc and see what I mean
    Try reading more dev magazines and less management books before you post here again, plz.

    Oh wow Rnd. XML is far better format than CSV for many circumstances. Maybe it's not for importing to excel, but for many OTHER circumstances. If you're only importing data into excel, yeah, maybe it's a WTF. I've yet to successfully import data in from a XML file to Excel, but I've yet to care to figure it out, either, since I've got a lot better tools than Excel to do most of what I need done.

    Well look who's jumped on the dummy bandwagon! Careful, or you push some of your cousins out!

    First of all, you don't "import" into Excel. You can just open the file. It's a native format. As a native format, you have to jump through hoops just to try to open it in, say, notepad. (Hint: don't try it or you'll see a bunch of rectangles.) As far as "better tools" go, I've tried Open "Ripoff" Office and only have one thing to say: why use an imitation when you can only count on it to display the file correctly half the time? Sure it works with some of the simpler documents, but if you're using formulas or formatting you might as well be playing Russian Roulette. And Google docs? Well, that doesn't work when you're trying to protect your data and not just have it posted on the internet. That's why we don't just use gmail for company business.

    See, I've been around the block a few times, and unlike you I actually know what I'm talking about: I'm not just speculating on something I read about in PC Magazine.

    Yawn. Mr. Troll is starting to get repetitive. Why don't you mix it up and switch to another topic you know little about. Try Linux vs Windows, that's always an easy trolling.

    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." What if everything was this way? "I loved Twilight:Eclipse!" Stop trolling! "I don't think Ben Roethlisburger is guilty." Stop trolling! "I don't think the moon landings were fake." Stop trolling! Well, let me tell you what: I believe that Americans have walked on the moon, and I also "excel" at Excel. Calling me a troll is not going to shock me into submission or make me start posting under a different username.

  • das blinkenlights (unregistered) in reply to Power Troll
    Power Troll:
    Bob:
    TRWTF is that Chrome decided to translate the page...

    And unwrapped the code to a single line, without adding a scrollbar...

    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.

    :: speechless ::

    captcha augue: I would augue with the stupidity of Power Troll's post, but it speaks for itself.

  • (cs)

    In my experience, it's the business departments that come up with crazy business rules, not the programmers. TRWTF is German.

  • boog (unregistered) in reply to Power Troll
    Power Troll:
    Power Troll (Fake):
    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
    Not really. Anyone can log off and then post an anonymous quote as themselves. See?
  • frits (unregistered) in reply to boog
    boog:
    Power Troll:
    Power Troll (Fake):
    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
    Not really. Anyone can log off and then post an anonymous quote as themselves. See?
    Great, now you've ruined it for me.
  • Tation (unregistered)

    Einmal mit Profis arbeiten...

  • Anonymous (unregistered)

    Pro-tip: The point of the story is obvious copy-pasta.

  • (cs) in reply to Power Troll
    Power Troll:
    Power Troll (Fake):
    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
    Wow, he almost looks just like you. So realistic... he's almost human.

    You must be so proud.

  • Larry (unregistered) in reply to rnd * 1000
    rnd * 1000:
    Calling me a troll is not going to shock me into submission or make me start posting under a different username.
    We are identifying you as a troll to warn all the little fishies that are even now swimming toward your hook. It wasn't intended to shame you into submission, since we all know anyone who uses Excel and claims to work in I.T. is shameless.
  • wtf (unregistered) in reply to das blinkenlights
    das blinkenlights:
    Power Troll:
    Bob:
    TRWTF is that Lynx decided to translate the page...

    And unwrapped the code to a single line, without adding a scrollbar...

    TRWTF is Lynx. Who uses that text-based browser anymore? Try switching to Windows, moron.

    :: speechless ::

    captcha augue: I would augue with the stupidity of Power Troll's post, but it speaks for itself.

    Why? Because he advocates using Windows? Or just because he dislikes a particular Linux product?

  • (cs) in reply to frits
    frits (phony):
    boog (phony):
    Isn't study hall fun?
    It sure is!
    Posted within a minute of each other. Maybe it's just one guy?
  • frits (unregistered) in reply to boog
    boog:
    frits (phony):
    boog (phony):
    Isn't study hall fun?
    It sure is!
    Posted within a minute of each other. Maybe it's just one guy?
    Or maybe just an obsessed poster.
  • frits (unregistered) in reply to frits
    frits:
    boog:
    frits (phony):
    boog (phony):
    Isn't study hall fun?
    It sure is!
    Posted within a minute of each other. Maybe it's just one guy?
    Or maybe just an obsessed poster.
    What do you call it when the real thing imitates the imitator imitating him?
  • frits (unregistered) in reply to frits
    frits:
    frits:
    boog:
    frits (phony):
    boog (phony):
    Isn't study hall fun?
    It sure is!
    Posted within a minute of each other. Maybe it's just one guy?
    Or maybe just an obsessed poster.
    What do you call it when the real thing imitates the imitator imitating him?
    What do you call it when the trolling troll gets trolled by his own troll?
  • trwtf (unregistered) in reply to rnd * 1000
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." What if everything was this way? "I loved Twilight:Eclipse!" Stop trolling! "I don't think Ben Roethlisburger is guilty." Stop trolling! "I don't think the moon landings were fake." Stop trolling! Well, let me tell you what: I believe that Americans have walked on the moon, and I also "excel" at Excel. Calling me a troll is not going to shock me into submission or make me start posting under a different username.

    Not just here. The term "troll" seems to be losing its (relatively recent) semantic content all over the web and turning into a generic pejorative, like "bitch" and "bastard" did a long time ago. It's interesting to watch it happen, I've seen it in the last year on another forum (I used the term "troll" with reference to someone posting inflammatory comments looking to stir up a flame war, within a few months it was being used to mean something like "person with whom I disagree")

  • (cs) in reply to jasmine2501
    jasmine2501:
    In my experience, it's the business departments that come up with crazy business rules, not the programmers.
    True, but it's up to the programmers to understand the business rules well enough to implement them effectively*, wouldn't you agree?
    • By "effectively", I mean 1) successfully, and 2) in a readable, maintainable way.
  • rnd * 1000 (unregistered) in reply to trwtf
    trwtf:
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." What if everything was this way? "I loved Twilight:Eclipse!" Stop trolling! "I don't think Ben Roethlisburger is guilty." Stop trolling! "I don't think the moon landings were fake." Stop trolling! Well, let me tell you what: I believe that Americans have walked on the moon, and I also "excel" at Excel. Calling me a troll is not going to shock me into submission or make me start posting under a different username.

    Not just here. The term "troll" seems to be losing its (relatively recent) semantic content all over the web and turning into a generic pejorative, like "bitch" and "bastard" did a long time ago. It's interesting to watch it happen, I've seen it in the last year on another forum (I used the term "troll" with reference to someone posting inflammatory comments looking to stir up a flame war, within a few months it was being used to mean something like "person with whom I disagree")

    I understand why: it's simply a penalty for expressing thoughts not in line with Groupthink. 1984 is here, and all this talk about "Net Neutrality" is just nonsense.
  • Jay (unregistered) in reply to 3rd Ferguson
    3rd Ferguson:
    Samuel Zook:
    The Corrector:
    NSFW:
    +1 to anyone who still actually speaks German.
    Why are they writing software in a secret language developed by dead language developed by the Nazi party that no one has spoken (or taken seriously) since WWII? My forefathers didn't fight and die to rid the world of German tyranny for nothing.

    We Anabaptists speak it, you English dummkopf.

    That's like a Quebecois claiming to speak French.

    Or an American claiming to speak English.

    (I'm an American myself, but I figured I'd beat a Brit to the punch.)

  • (cs) in reply to boog
    boog:
    Power Troll:
    Power Troll (Fake):
    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
    Not really. Anyone can log off and then post an anonymous quote as themselves. See?

    No, really, who hasn't done something like this?

    boog:
    Power Troll:
    Power Troll (Fake):
    TRWTF is Chrome. Who uses that text-based browser anymore? Try switching to Windows, moron.
    Whoa, you know you're kind of a big deal around here when you get an impersonator.
    Wow, he almost looks just like you. So realistic... he's almost human.

    You must be so proud.

    Proud of my impersonator? No.

    Proud to share an accomplishment with the living legends boog and frits? Absolutely.

  • Delicious pie is delicious. (unregistered)

    Idiots! Here's the fix for all you amateurs:

    T012_lbl_VorsteuerKorrekturErfolgt44.Text = (((    (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   < DateTime.Parse("01.01.2005"))
          && ((T012_lbl_AenderungVorsteuer100EUR >= 250) 
               || (T012_lbl_AenderungVorsteuer100EUR <= -250))
          && ((DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text)) 
    	   || (T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text)) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == "")
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   > DateTime.Parse(T012_lbl_Berichtigungszeitraum_Anfang.Text)) 
    	   || (T012_lbl_Berichtigungszeitraum_Anfang.Text == ""))
        ) || (
             (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	       >= DateTime.Parse("01.01.2005"))
          && ((T012_lbl_AenderungVorsteuer100EUR >= 1000) 
               || (T012_lbl_AenderungVorsteuer100EUR <= -1000))
          && ((DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])))
                   >= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Anfang.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Anfang.Text == ""))
        ) || (
             (T012_lbl_Berichtigungszeitraum_Anfang.Text == "") 
    	   && (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	        < DateTime.Parse("01.01.2005")) && (T012_lbl_AenderungVorsteuer100EUR >= 250)
        ) || (
             (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   < DateTime.Parse("01.01.2005"))
          && ((T012_lbl_AenderungLaufJahrEUR >= 250) 
               || (T012_lbl_AenderungLaufJahrEUR <= -250))
          && ((DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text))
    	   || (T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text)) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == "")
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   > DateTime.Parse(T012_lbl_Berichtigungszeitraum_Anfang.Text)) 
    	   || (T012_lbl_Berichtigungszeitraum_Anfang.Text == ""))
        ) || (
             (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	       >= DateTime.Parse("01.01.2005"))
          && ((T012_lbl_AenderungLaufJahrEUR >= 1000) 
               || (T012_lbl_AenderungLaufJahrEUR <= -1000))
          && ((DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])))
                   >= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Anfang.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Anfang.Text == ""))
        ) || (
             (T012_lbl_Berichtigungszeitraum_Anfang.Text == "") 
    	   && (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	       < DateTime.Parse("01.01.2005")) && (T012_lbl_AenderungVorsteuer100EUR >= 250)
        ) || (
             (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	       < DateTime.Parse("01.01.2005"))
          && ((T012_lbl_AenderungGanzesJahrEUR >= 250) 
               || (T012_lbl_AenderungGanzesJahrEUR <= -250))
          && ((DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text)) 
    	   || (T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text)) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == "")
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   > DateTime.Parse(T012_lbl_Berichtigungszeitraum_Anfang.Text)) 
    	   || (T012_lbl_Berichtigungszeitraum_Anfang.Text == ""))
        ) || (
             (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	       >= DateTime.Parse("01.01.2005"))
          && ((T012_lbl_AenderungGanzesJahrEUR >= 1000) 
               || (T012_lbl_AenderungGanzesJahrEUR <= -1000))
          && ((DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   <= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Ende.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Ende.Text == ""))
          && ((GetRoundedDate(DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"]))) 
                   >= DateTime.Parse(T012_lbl_Berichtigungszeitraum_Anfang.Text) 
    	   || T012_lbl_Berichtigungszeitraum_Anfang.Text == ""))
        ) || (
             (T012_lbl_Berichtigungszeitraum_Anfang.Text == "") 
    	   && (DateTime.Parse(Convert.ToString(table17["T017_txt_addChangeDate"])) 
    	       < DateTime.Parse("01.01.2005")) && (T012_lbl_AenderungVorsteuer100EUR >= 250))
        )) ? "ja" : "nein";
    
  • Neticis (unregistered) in reply to sir_flexalot

    Exactly my experience.

  • trwtf (unregistered) in reply to rnd * 1000
    rnd * 1000:
    trwtf:
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." What if everything was this way? "I loved Twilight:Eclipse!" Stop trolling! "I don't think Ben Roethlisburger is guilty." Stop trolling! "I don't think the moon landings were fake." Stop trolling! Well, let me tell you what: I believe that Americans have walked on the moon, and I also "excel" at Excel. Calling me a troll is not going to shock me into submission or make me start posting under a different username.

    Not just here. The term "troll" seems to be losing its (relatively recent) semantic content all over the web and turning into a generic pejorative, like "bitch" and "bastard" did a long time ago. It's interesting to watch it happen, I've seen it in the last year on another forum (I used the term "troll" with reference to someone posting inflammatory comments looking to stir up a flame war, within a few months it was being used to mean something like "person with whom I disagree")

    I understand why: it's simply a penalty for expressing thoughts not in line with Groupthink. 1984 is here, and all this talk about "Net Neutrality" is just nonsense.

    I can't tell - is this you trolling, or is this you not having any clue what you're talking about?

    This is the problem with trolling as a passtime - it's amusing for the terminally stupid, but it has a Gresham's Law effect. I honestly can't tell whether you're just posting this to try to get a rise out of someone (ie, trolling) or whether you really have no idea what the term "trolling" means in an on-line context, and has meant (ironically enough) since about the mid-1980s.

  • (cs) in reply to rnd * 1000
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." blah blah whiny-crap blah...
    To be fair, just because one person who happens to disagree with you calls you a troll, that does not mean everyone who disagrees with you is calling you a troll.
  • (cs) in reply to trwtf
    trwtf:
    rnd * 1000:
    trwtf:
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." What if everything was this way? "I loved Twilight:Eclipse!" Stop trolling! "I don't think Ben Roethlisburger is guilty." Stop trolling! "I don't think the moon landings were fake." Stop trolling! Well, let me tell you what: I believe that Americans have walked on the moon, and I also "excel" at Excel. Calling me a troll is not going to shock me into submission or make me start posting under a different username.

    Not just here. The term "troll" seems to be losing its (relatively recent) semantic content all over the web and turning into a generic pejorative, like "bitch" and "bastard" did a long time ago. It's interesting to watch it happen, I've seen it in the last year on another forum (I used the term "troll" with reference to someone posting inflammatory comments looking to stir up a flame war, within a few months it was being used to mean something like "person with whom I disagree")

    I understand why: it's simply a penalty for expressing thoughts not in line with Groupthink. 1984 is here, and all this talk about "Net Neutrality" is just nonsense.

    I can't tell - is this you trolling, or is this you not having any clue what you're talking about?

    This is the problem with trolling as a passtime - it's amusing for the terminally stupid, but it has a Gresham's Law effect. I honestly can't tell whether you're just posting this to try to get a rise out of someone (ie, trolling) or whether you really have no idea what the term "trolling" means in an on-line context, and has meant (ironically enough) since about the mid-1980s.

    Does it matter? You got baited (hard) and typed up a post that you took really seriously while everyone else doesn't care.

    Trolling is kind of like jazz. If you have you ask what trolling is, you'll never know.

  • (cs) in reply to flt
    flt:
    This is the exact same code, three times in a row.

    All it does is to check if some tax correction is needed. Here's some pseudo code:

    if ( T017_addChangeDate > Berichtigungszeitraum_Start
         && T017_addChangeDate <= Berichtigungszeitraum_End )
         {
         if ( T017_addChangeDate < 01.01.2005 )
              return Math.abs(T012_AenderungVorSteuer >= 250) ? "ja" : "nein" ;
         else 
              return Math.abs(T012_AenderungVorSteuer >= 1000) ? "ja" : "nein" ;
         }
    return "nein" ;
    

    It's checking abs(X) for three different X's, but otherwise, yeah, basically.

    For the hell of it, running the German through translate.google.com:

    Aenderung Vorsteuer = change in tax Aenderung Lauf Jahr = change in current year Aenderung Ganzes Jahr = change in whole year Berichtigungszeitraum = adjustment period Anfang = beginning Ende = end Vorsteuer Korrektur Erfolgt = if tax correction

  • Anonymous (unregistered) in reply to boog
    boog:
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." blah blah whiny-crap blah...
    To be fair, just because one person who happens to disagree with you calls you a troll, that does not mean everyone who disagrees with you is calling you a troll.
    But in all seriousness, it's perfectly obvious that this guy really is a troll. That whole "CSV in Notepad" thing was a step too far, nobody's that stupid.

    So, in summary, stop feeding the troll!

  • Anon (unregistered) in reply to rnd * 1000
    rnd * 1000:
    This is what's great about thedailywtf.com. Anytime there is a conflict with someone, one of the parties involved is a "troll." ...

    Actually, it's a compliment. People are giving you the benefit of the doubt and assuming you are just trying to wind people up for your own perverse pleasure rather than actually being a stupid as your posts would lead somebody to believe.

  • (cs)

    Absolute value function FTW!

  • imgx64 (unregistered) in reply to trwtf
    trwtf:
    This is the problem with trolling as a passtime - it's amusing for the terminally stupid, but it has a Gresham's Law effect. I honestly can't tell whether you're just posting this to try to get a rise out of someone (ie, trolling) or whether you really have no idea what the term "trolling" means in an on-line context, and has meant (ironically enough) since about the mid-1980s.

    Actually, it's more of Poe's law:

    "It is impossible to create a parody of trolling that someone won't mistake for the real thing."

    I can't tell real trolls from "funny trolls" online anymore, especially on TDWTF. I even stopped calling them trolls because the term lost its meaning.

  • (cs) in reply to boog
    boog:
    I love this stuff:
    table17["T017_txt_addChangeDate"]
    So, "T017_", right? Probably means it's in table17? Because even though I'm already accessing the field from the "table" I want, I need the additional precision that comes from specifying the "table" I want in the field's name.

    Forget about readability for a moment and just think about the pattern above, its inevitable recurrence throughout the codebase, and the effects it might have on maintenance. Then weep.

    A major pet peeve of mine. I roll my eyes every time I have to set the border style on a Windows Forms control.

    Form.FormBorderStyle=...

Leave a comment on “How the Big Companies Do It”

Log In or post as a guest

Replying to comment #335650:

« Return to Article