|
Red apples are basically impossible to obtain without cheating anyway, so moaning about the gold cost to craft a golden apple is pointless.
|
# ? Sep 21, 2011 06:26 |
|
|
# ? May 17, 2024 02:35 |
|
http://forums.somethingawful.com/showthread.php?threadid=3430275
|
# ? Sep 21, 2011 06:28 |
|
Here's a loop counter increment code written by a major .NET CMS vendor's consulting arm: System.Math.Max(System.Threading.Interlocked.Increment(ref j), j - 1); No, there is no assignment. Math.Max() is called for no reason. Because sometimes j += 1 is just too simple.
|
# ? Sep 21, 2011 17:40 |
|
code:
There's also this, from the same programmer: code:
|
# ? Sep 21, 2011 18:59 |
|
TasteMyHouse posted:
|
# ? Sep 21, 2011 20:46 |
|
Extreme negative code documentation.quote:The idea of Extreme Negative Code Documentation (ENCD), is that for every line in your code, write a comment explaining what would be wrong with the code if that line was missing. code:
|
# ? Sep 21, 2011 21:22 |
|
floWenoL posted:Extreme negative code documentation. This reminds me of this practice that a cooworker who worked for a defence contractor mentioned. Unit tests. For every. Single. Line. Of. Code. Individually. He might have been exageratting, but still.
|
# ? Sep 21, 2011 21:49 |
|
Tamba posted:That's obviously a Speed-up Loop That appears to have been obfuscated to prevent the compiler from optimizing it to a noop.
|
# ? Sep 21, 2011 22:43 |
|
shodanjr_gr posted:This reminds me of this practice that a cooworker who worked for a defence contractor mentioned. http://ruby.sadi.st/Heckle.html
|
# ? Sep 21, 2011 22:53 |
|
shodanjr_gr posted:This reminds me of this practice that a cooworker who worked for a defence contractor mentioned. Unit tests for every branch.
|
# ? Sep 21, 2011 23:17 |
|
Aleksei Vasiliev posted:http://www.sqlite.org/testing.html
|
# ? Sep 22, 2011 00:13 |
|
from that page:quote:It is (relatively) easy to build an SQL database engine that behaves correctly on well-formed inputs on a fully functional computer. "an SQL"? I thought everyone pronounced it "Sequel".
|
# ? Sep 22, 2011 00:16 |
|
TasteMyHouse posted:"an SQL"? I thought everyone pronounced it "Sequel". The official pronunciation is to say the letters.
|
# ? Sep 22, 2011 00:21 |
|
it's only pronounced "sequel" when you're saying microsoft sequel server (which uses tee ess cue ell)
|
# ? Sep 22, 2011 01:10 |
|
Plorkyeran posted:it's only pronounced "sequel" when you're saying microsoft sequel server (which uses tee ess cue ell) Whether or not that's the way it's supposed to be, it's absolutely not true in reality.
|
# ? Sep 22, 2011 01:15 |
|
I think my favorite was when some update Notch released had some issue that would randomly crash clients. Turns out the fix was to wrap the offending code in a try-catch block. As for MySQL, Lua seems to have the opposite problem where a few people pronounce it "L-U-A" when it's actually pronounced "loo-ah". From Wikipedia: quote:SQL was adopted as a standard by the American National Standards Institute (ANSI) in 1986 as SQL-86[23] and the International Organization for Standardization (ISO) in 1987. The original SQL standard declared that the official pronunciation for SQL is "es queue el".[6] Many English-speaking database professionals still use the nonstandard[24] pronunciation /ˈsiːkwəl/ (like the word "sequel"). I personally use them fairly interchangeably depending on what the person I'm talking to is using.
|
# ? Sep 22, 2011 06:32 |
Zamujasa posted:As for MySQL, Lua seems to have the opposite problem where a few people pronounce it "L-U-A" when it's actually pronounced "loo-ah". That annoys the crap out of me. It's not a goddamn abbreviation, it's a word. (Portuguese for moon.) "Oh, name of a language and it's three letters, must be a TLA."
|
|
# ? Sep 22, 2011 10:12 |
|
Eggnogium posted:Whether or not that's the way it's supposed to be, it's absolutely not true in reality. I call it 'Squeal'...
|
# ? Sep 22, 2011 10:39 |
|
nielsm posted:That annoys the crap out of me. It's not a goddamn abbreviation, it's a word. (Portuguese for moon.) "Oh, name of a language and it's three letters, must be a TLA." Never knew this (not that I ever used the language), but that quote is a pretty reasonable conclusion if you don't know, is it not? Especially if you don't speak Portuguese. quote:SQL I know the "proper" way but I also tend to just mimic whoever I'm talking to to avoid cognitive hiccups.
|
# ? Sep 22, 2011 10:59 |
|
I'm developing an iOS application and decided to use JSONKit for JSON since it is supposedly the fastest library for that purpose. Various client requirements have resulted in adding plugins for things, including:
It turns out that they each contain a different JSON library. So now the app links to four different JSON libraries: UVJSON (which is just a renamed SBJSON), SBJSON, CJSON and JSONKit
|
# ? Sep 22, 2011 16:17 |
|
Che Delilas posted:Never knew this (not that I ever used the language), but that quote is a pretty reasonable conclusion if you don't know, is it not? Especially if you don't speak Portuguese. I guess, except that in all of the documentation, websites that discuss it, etc it's written "Lua" and not "LUA".
|
# ? Sep 22, 2011 16:23 |
|
Aleksei Vasiliev posted:http://www.sqlite.org/testing.html Also, Emm Ess Ess Cue Ell but only because we've had a lot of back-and-forth lately with some nontechnical people lately over which database we actually use around here. "No, we won't support MySqueal alongside the real database."
|
# ? Sep 22, 2011 17:06 |
|
Munkeymon posted:
We support MSSQL and Oracle where I work. I use Emm Ess Ess Cue Ell and Sequel Server pretty much interchangeably for that product, Tee Ess Cue Ell for the Microsoft language, Pee Ell Ess Cue Ell for the Oracle language, and Sequel Developer for the Oracle tool vv Never have I heard anyone pronounce it Squeal and I hope I never do. I'd probably think it was either a new scripting language that I'd never heard of or some notification tool like Growl.
|
# ? Sep 22, 2011 17:21 |
|
If I heard someone say "Squeal" I am certain I'd confuse that for "Squeak".
|
# ? Sep 22, 2011 17:25 |
|
I never used Squeal in a meeting or anything - just to insult MySQL when talking to the admins who need to be reassured they won't have to step too far outside the Microsoft box. You should have heard the scoffing (actual scoffing noises were actually made) when I explained that we had to install the IIS PHP stack for a project that marketing decided was super critical.
|
# ? Sep 22, 2011 18:00 |
|
Munkeymon posted:I never used Squeal in a meeting or anything - just to insult MySQL when talking to the admins who need to be reassured they won't have to step too far outside the Microsoft box. You should have heard the scoffing (actual scoffing noises were actually made) when I explained that we had to install the IIS PHP stack for a project that marketing decided was super critical. Well I wouldn't want php on my server regardless but not because of lack of comfort in using it... quite the opposite in fact.
|
# ? Sep 22, 2011 18:54 |
|
Scaramouche posted:Well I wouldn't want php on my server regardless but not because of lack of comfort in using it... quite the opposite in fact. Only marketing is happy with this, trust me
|
# ? Sep 22, 2011 19:18 |
|
Munkeymon posted:Only marketing is happy with this, trust me At my last company the deal was "Operations can use a PHP based CMS for a marketing project so long as the devs never have to touch it."
|
# ? Sep 22, 2011 19:29 |
|
ReelBigLizard posted:I call it 'Squeal'... I think you mean "Squirrel". Oh poo poo, squirrelservone is down again!
|
# ? Sep 22, 2011 19:42 |
|
Zombywuf posted:At my last company the deal was "Operations can use a PHP based CMS for a marketing project so long as the devs never have to touch it." My company was offered a free CI solution, which included support and the goodwill of a contact, and they had to do some serious soul searching about whether to use it because it was made in PHP. EDIT: They still haven't decided.
|
# ? Sep 22, 2011 20:14 |
|
Zombywuf posted:At my last company the deal was "Operations can use a PHP based CMS for a marketing project so long as the devs never have to touch it." I get to support it because I'm the only one who will admit to knowing anything about PHP other than that it's terrible. Thankfully, I don't have to take the marketing director's code and make it not suck poo poo because we outsourced that. The guy doesn't understand loops and uses PHP. Use your imagination and I guarantee reality was worse.
|
# ? Sep 22, 2011 20:25 |
|
Munkeymon posted:I get to support it because I'm the only one who will admit to knowing anything about PHP other than that it's terrible. Thankfully, I don't have to take the marketing director's code and make it not suck poo poo because we outsourced that. The guy doesn't understand loops and uses PHP. Use your imagination and I guarantee reality was worse. Isolate that box from the network and name it Tortuga, there ain't no way that whore will stay clean.
|
# ? Sep 22, 2011 21:12 |
|
Munkeymon posted:I get to support it because I'm the only one who will admit to knowing anything about PHP other than that it's terrible. Thankfully, I don't have to take the marketing director's code and make it not suck poo poo because we outsourced that. The guy doesn't understand loops and uses PHP. Use your imagination and I guarantee reality was worse. Are you sure I can imagine some pretty terrible things, and by imagine I mean remember. And by remember I mean suffer crippling flashbacks. Also, have some awful code (names changed to protect the guilty): code:
|
# ? Sep 23, 2011 12:36 |
|
Aside from not using {} around conditionals in a language with braces, we're going to need some context for that one.
|
# ? Sep 23, 2011 19:44 |
|
NotShadowStar posted:Aside from not using {} around conditionals in a language with braces, we're going to need some context for that one. You have a thing to look up strings based on a key and a language, except for that key, which for some reason has a country attached to it and a hardcoded value. Add to that the fact that everything has an awful name. EDIT: Also, that's about 20 calls up the stack, and you know that something below it has already done some hardcoded poo poo but finding it will take a week. There is also about another 20 layers to go up before you get to the framework provided language resource lookup mechanism that does the same thing a thousand times better. All in all, this is part of a codebase that takes about 1s of CPU time just to render a page. Zombywuf fucked around with this message at 19:54 on Sep 23, 2011 |
# ? Sep 23, 2011 19:50 |
|
Found this gem while randomly going through some code used by my former employer:code:
|
# ? Sep 24, 2011 20:32 |
|
I'm brushing up on C and networking stuff. The quality of example code online is great:code:
|
# ? Sep 24, 2011 21:12 |
|
epitaph posted:Found this gem while randomly going through some code used by my former employer: Because they didn't use encodeURI()?
|
# ? Sep 24, 2011 21:54 |
|
Internet Janitor posted:I'm brushing up on C and networking stuff. The quality of example code online is great: It still surprises me when I see bits of K&R C around, though that's when it's part of a large codebase which has been around since the old days. I can understand the what of the hostent pointer stuff, (declaring a function and pointer), but not the why as neither are used. I've never really understood why you'd want to declare a function in the body of another function anyway.
|
# ? Sep 24, 2011 23:05 |
|
|
# ? May 17, 2024 02:35 |
|
I just rewrote the whole mess as:code:
Internet Janitor fucked around with this message at 23:16 on Sep 24, 2011 |
# ? Sep 24, 2011 23:13 |