|
Thermopyle posted:Am I the only one who had to look this up? No, I assumed it was just the name of the restaurant that I lived across the street from which also comprises like the first page of Google results. Now it makes a little more sense
|
# ? Jul 24, 2013 23:48 |
|
|
# ? Jun 8, 2024 07:42 |
|
Thermopyle posted:Am I the only one who had to look this up? You're not, it's also my new favourite word. Thanks Scaramouche!
|
# ? Jul 25, 2013 00:02 |
|
geonetix posted:Just ran into something that's always pretty sad (it's coldfusion, but the comments make it worse): x++; //increment the x variable
|
# ? Jul 25, 2013 02:11 |
|
Scaramouche posted:I'm not going to post code because it would just be a nested series of statements, but I've inherited a farrago of snakes Modz pls rename me farrago of snakes
|
# ? Jul 25, 2013 02:51 |
|
So there was a piece of debugging information that was printed to System.out for some reason. Whatever, it's a graphical program, it should be fairly easy to find something in the terminal output.code:
|
# ? Jul 25, 2013 02:53 |
|
status posted:x++; //increment the x variable I like it even better when it's overcommented and wrong. Example from same file: code:
|
# ? Jul 25, 2013 08:21 |
|
status posted:x++; //increment the x variable I had a professor in an intro to CS course dock me points for not doing that.
|
# ? Jul 25, 2013 08:50 |
|
geonetix posted:Just ran into something that's always pretty sad (it's coldfusion, but the comments make it worse): Actually some programmers have a habit of writing the logic as a series of comments then adding the code, but usually once complete the comments are removed. ie. code:
note: sorry about the expletive stuff, but just been implementing expletive check on the work site...
|
# ? Jul 25, 2013 09:45 |
|
TheresaJayne posted:note: sorry about the expletive stuff, but just been implementing expletive check on the work site... I'm sure you didn't make the requirement, but this is as close as I've ever gotten to talking to someone who has: What is the possible business justification for this? If someone is goofing off on the internet instead of doing their job then blocking sites based on swear words isn't going to help that, it's a management issue not an IT issue. On the other hand if (for example) a user is trying to read a relevant forum thread with a swear word in it, or a user is trying to download a library with an author who's name looks a bit like an English swear word, or a user is trying to download an actual English language dictionary then all that the swear word filter has accomplished is to prevent them from doing the job that they are paid for. Seriously, swear filters are the stupidest things.
|
# ? Jul 25, 2013 10:15 |
|
TheresaJayne posted:Actually some programmers have a habit of writing the logic as a series of comments then adding the code, but usually once complete the comments are removed. ie. Yep, but he added the comments some commits after the code was written.
|
# ? Jul 25, 2013 11:00 |
|
Goat Bastard posted:I'm sure you didn't make the requirement, but this is as close as I've ever gotten to talking to someone who has: What is the possible business justification for this? If someone is goofing off on the internet instead of doing their job then blocking sites based on swear words isn't going to help that, it's a management issue not an IT issue. These are to prevent people putting unpleasant words on the site we have written, Someone entered a job description (without the 1337 5p33k and non alphabetic characters)as: "A Fu*&ing Cr4p job where you sit around and do Sh17 all day except getting p1553d and high on wacky backy"
|
# ? Jul 25, 2013 11:46 |
|
This job is bad I got high all the time and did no work Saved the day! e: I am bitter because every example I gave is something I have had to work around within the last month second edit: your own post demonstrates the pointlessness of naive swear word filters Goat Bastard fucked around with this message at 13:03 on Jul 25, 2013 |
# ? Jul 25, 2013 12:50 |
|
TheresaJayne posted:These are to prevent people putting unpleasant words on the site we have written, And after being admonished for naughty language, they'll just change characters around enough to break the filter.
|
# ? Jul 25, 2013 14:00 |
|
Goat Bastard posted:I'm sure you didn't make the requirement, but this is as close as I've ever gotten to talking to someone who has: What is the possible business justification for this? If someone is goofing off on the internet instead of doing their job then blocking sites based on swear words isn't going to help that, it's a management issue not an IT issue. Years ago in middle school, NetNanny was installed on all the computers at school. When we had to type reports up, we had to write a heading that included our name, subject, date, and title of the assignment. When the title of a science paper was "Demonstrating [something]", every single computer locked because we had all just typed the word "demon." The next day, literally every computer in the district had a Post-It note attached to the monitor with the NetNanny password on it, put there by the faculty. edit: I don't know if it was a default password, but I still remember that the password was "~frontdoor"
|
# ? Jul 25, 2013 14:21 |
|
contrapants posted:Years ago in middle school, NetNanny was installed on all the computers at school. When we had to type reports up, we had to write a heading that included our name, subject, date, and title of the assignment. Could've been worse, you could've had to write a paper on JFK and have to say he was "buttbuttinated" or else the filter would keep triggering on "rear end." http://en.wikipedia.org/wiki/Scunthorpe_problem
|
# ? Jul 25, 2013 14:29 |
|
status posted:x++; //increment the x variable To be fair, someone might have overloaded operator++() to decrement the variable; you gotta be clear about these things.
|
# ? Jul 25, 2013 14:36 |
|
BigRedDot posted:To be fair, someone might have overloaded operator++() to decrement the variable; you gotta be clear about these things. That's just silly, your comment is going to be all out of date once someone does change ++ to decrement the variable. And we all know outdated comments are worse than no comments at all. code:
|
# ? Jul 25, 2013 14:56 |
|
Goat Bastard posted:Seriously, swear filters are the stupidest things. Age checks. Especially on liquor or beer company websites because children might find out alcohol exists from the internet instead of TV! or some other bullshitty Lovejoy-esque reason.
|
# ? Jul 25, 2013 15:05 |
|
Jabor posted:That's just silly, your comment is going to be all out of date once someone does change ++ to decrement the variable. And we all know outdated comments are worse than no comments at all. Ah but that comment is vague you have to specify which operator you're calling! code:
|
# ? Jul 25, 2013 15:06 |
|
Jewel posted:Ah but that comment is vague you have to specify which operator you're calling! That's almost as bad as coding in Cobol.
|
# ? Jul 25, 2013 15:29 |
|
Jewel posted:Ah but that comment is vague you have to specify which operator you're calling! What if that operator is removed at some point from the language? code:
|
# ? Jul 25, 2013 15:30 |
|
You guys are making this far too confusingcode:
Jewel posted:postfix vvvvvv well they're wrong Sereri fucked around with this message at 16:31 on Jul 25, 2013 |
# ? Jul 25, 2013 15:51 |
|
DieSereri posted:Suffix, you terrible, terrible person C++ Standard 5.2.1 "postfix-expression ++" Java Language Spec 15.14.2 Postfix Increment Operator ++
|
# ? Jul 25, 2013 16:24 |
|
What if we might want to increment x by something else later, you guys have hard-coded in that value.
|
# ? Jul 25, 2013 18:21 |
|
The code that contractors are writing for me as part of the phone screen process of their interview. This is the code that makes me cry.
|
# ? Jul 25, 2013 18:31 |
|
I inherited a rather voluminous JavaScript code base. There were tons of functions called "set_up_[thing]". I kept spelling setup correctly and I was always wrong.
|
# ? Jul 25, 2013 18:49 |
|
Reality posted:I inherited a rather voluminous JavaScript code base. There were tons of functions called "set_up_[thing]". I kept spelling setup correctly and I was always wrong. I have a Python codebase where almost every class has a method like that except it's called either "SetUpX" or "SetupX" completely at random.
|
# ? Jul 25, 2013 19:02 |
|
seiken posted:I have a Python codebase where almost every class has a method like that except it's called either "SetUpX" or "SetupX" completely at random. It's even worse when you have something like this in MATLAB, where each function belongs to one file of the same name, and fixing all of the lovely discrepancies becomes a huge pain (on a Windows system with no scripting languages installed -- just having something like Python or even cygwin would have made it okay, but nooooooooo).
|
# ? Jul 25, 2013 19:36 |
|
seiken posted:I have a Python codebase where almost every class has a method like that except it's called either "SetUpX" or "SetupX" completely at random. They're just following the "name it whatever you feel like today" convention set by Python's standard library.
|
# ? Jul 25, 2013 19:40 |
|
I see swear filters more as a cover-your-rear end thing: it looks like you're putting forth the effort so offended parties are more forgiving.
|
# ? Jul 25, 2013 20:03 |
|
Thermopyle posted:Am I the only one who had to look this up? Man I can't believe you guys aren't down with your latin selves. I thought every programmer was classically educated.
|
# ? Jul 25, 2013 21:00 |
|
nah just Class educated
|
# ? Jul 25, 2013 21:02 |
|
Munkeymon posted:Age checks. Especially on liquor or beer company websites because children might find out alcohol exists from the internet instead of TV! or some other bullshitty Lovejoy-esque reason. They're required to put them in by law I believe. So not really their fault.
|
# ? Jul 25, 2013 21:14 |
|
Strong Sauce posted:They're required to put them in by law I believe. So not really their fault. As someone who does a lot of work for the booze industry, yes. They have to be there because The Man says so. The Man says so for those awful reasons pointed out earlier, but the companies themselves would love to get rid of those stupid things.
|
# ? Jul 25, 2013 21:43 |
|
senrath posted:I had a professor in an intro to CS course dock me points for not doing that. I had a professor dock me for adding --help and a manpage to my assignment because it wasn't in the spec. He was fired from Oracle before becoming a computer teacher so
|
# ? Jul 25, 2013 22:22 |
|
I had a TA dock me because the comments in my printed-out code (the only way that we submitted assignments in that class) were not green
|
# ? Jul 26, 2013 03:50 |
|
xarph posted:I had a professor dock me for adding --help and a manpage to my assignment because it wasn't in the spec. lol nerd
|
# ? Jul 26, 2013 03:57 |
|
Volte posted:I had a TA dock me because the comments in my printed-out code (the only way that we submitted assignments in that class) were not green What kind of heathen doesn't have green comments?
|
# ? Jul 26, 2013 04:07 |
|
Thermopyle posted:What kind of heathen doesn't have green comments? The kind who printed out in black and white rather than color, I assume.
|
# ? Jul 26, 2013 04:13 |
|
|
# ? Jun 8, 2024 07:42 |
|
Here is a picture of that assignment I found. It was so ridiculous I just had to take a photo (sorry it was from before I owned a phone with a decent camera). The assignment was to take an integer and print the word representation of it, which I did by recursively breaking the number up into three digit groups. The correct way was a massive case statement. When I confronted him about it he babbled something about not understanding my code and that he couldn't read the comments because they weren't green and so he couldn't tell where the comments stopped and the code began. I failed this assignment, other people got 100% even if their code didn't compile or make sense.
|
# ? Jul 26, 2013 04:17 |