|
king_kilr posted:lua's another one. http://userweb.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html zsh arrays are 1-indexed as well
|
# ? Sep 20, 2010 02:25 |
|
|
# ? May 15, 2024 10:40 |
|
C does it as well :-)code:
|
# ? Sep 20, 2010 12:11 |
|
Definitely recently saw database credentials provided as hidden fields in a form which was then submitted with a GET request. Hurrrrrr.
|
# ? Sep 20, 2010 12:45 |
|
snare posted:Definitely recently saw database credentials provided as hidden fields in a form which was then submitted with a GET request. Hurrrrrr. Maybe the original implementation of the server didn't support post and no one has bothered to update it?
|
# ? Sep 20, 2010 13:02 |
|
HFX posted:Maybe the original implementation of the server didn't support post and no one has bothered to update it? GET is not the problem.
|
# ? Sep 20, 2010 13:15 |
|
Database credentials. As in those used by the application to connect to the database, not those used by a user to authenticate with the application.
|
# ? Sep 20, 2010 14:06 |
|
snare posted:Database credentials. As in those used by the application to connect to the database, not those used by a user to authenticate with the application. Those would be a problem too though.
|
# ? Sep 20, 2010 14:23 |
|
snare posted:Database credentials. As in those used by the application to connect to the database, not those used by a user to authenticate with the application. This is why I shouldn't post when I first wake up. I missed what credentials he was talking about.
|
# ? Sep 20, 2010 14:23 |
|
Found this in a joomla site that I'm working on fixing: <?php }}}}?> This is in an inline script in an article.
|
# ? Sep 20, 2010 15:12 |
|
code:
|
# ? Sep 20, 2010 17:04 |
|
Zombywuf posted:C does it as well :-) I know you know better than to cast the return value of malloc in C!
|
# ? Sep 20, 2010 18:14 |
|
Otto Skorzeny posted:I know you know better than to cast the return value of malloc in C! It's necessary in this case because he's doing arithmetic with the return value.
|
# ? Sep 20, 2010 22:10 |
|
|
# ? Sep 20, 2010 23:53 |
|
Smugdog Millionaire posted:
Go find Al, and ask him what he concocted. It's the only thing I can come up with that's even remotely close.
|
# ? Sep 21, 2010 05:03 |
|
Otto Skorzeny posted:I know you know better than to cast the return value of malloc in C! It actually goes as far as to tell you things like "Error: a value of type 'void *' cannot be assigned to an entity of type 'intptr_t *'". It's quite possibly the most pedantic thing I have ever seen.
|
# ? Sep 21, 2010 08:27 |
|
ICC loves to give warnings on C++2003 and C89 errors even though C99 is selected.code:
|
# ? Sep 21, 2010 08:35 |
|
I mentioned earlier that the code I'm working with takes a pipe-delimited string and does nothing with it. Well now I'm reading the parts that do something with it! (I replaced the variable names because I'm paranoid)code:
|
# ? Sep 21, 2010 12:01 |
|
Argue posted:I mentioned earlier that the code I'm working with takes a pipe-delimited string and does nothing with it. Well now I'm reading the parts that do something with it! (I replaced the variable names because I'm paranoid) This is the perfect CS 101 type assignment, right before loops are introduced.
|
# ? Sep 21, 2010 12:26 |
|
code:
|
# ? Sep 21, 2010 19:31 |
|
BigRedDot posted:
That is not a horror.
|
# ? Sep 21, 2010 19:45 |
|
That depends on whether or not any of those calls can return NULL.
|
# ? Sep 21, 2010 19:47 |
|
TerminX posted:In VS2010, you get a red squiggle under the = in the assignment if you don't do this. That's probably because it's interpreting it at C++.
|
# ? Sep 21, 2010 19:56 |
|
HFX posted:That is not a horror. I disagree, an API should expose a clean interface not let it's guts spill out all over the floor. Then pick up the guts and smack you about the face with them.
|
# ? Sep 21, 2010 20:35 |
|
The real horror is that it returns a char*.
|
# ? Sep 21, 2010 20:45 |
|
Mustach posted:That depends on whether or not any of those calls can return NULL. try { } catch(NullpointerException e) { } Done.
|
# ? Sep 22, 2010 04:11 |
|
Chairman Steve posted:try { } catch(NullpointerException e) { }
|
# ? Sep 22, 2010 04:35 |
|
Janin posted:Which language has NullPointerException and char* ? Any C or C++ derivative with support for structured exceptions
|
# ? Sep 22, 2010 05:18 |
|
litghost posted:Any C or C++ derivative with support for structured exceptions That's a feature of the platform, not the language
|
# ? Sep 22, 2010 05:54 |
|
Janin posted:Which language has NullPointerException and char* ? C# has char* in unsafe blocks, and not quite NullPointerException but NullReferenceException. Same thing unless you're being exceptionally pendantic. code:
NotShadowStar fucked around with this message at 06:02 on Sep 22, 2010 |
# ? Sep 22, 2010 05:59 |
|
Chairman Steve posted:try { } catch(NullpointerException e) { } quote:The assert command is being used, but it is not being caught and handled by anything. Can you either catch and handle the assert errors that may be thrown or remove the assert calls. Mustach fucked around with this message at 14:58 on Sep 22, 2010 |
# ? Sep 22, 2010 14:55 |
|
code:
|
# ? Sep 22, 2010 15:09 |
|
Mustach posted:Hey this is a multi-million-dollar enterprise solution. We log our swallowed NPEs around here, mister. Speaking of catching things, here's a nice code review rejection message: Fine. code:
|
# ? Sep 22, 2010 15:32 |
|
Oh, I feel your pain, man.Zombywuf posted:
|
# ? Sep 22, 2010 16:24 |
|
code:
Also, processFulfillmentItems is even larger than this and has around 15 exit points. gently caress.
|
# ? Sep 22, 2010 20:01 |
|
BigRedDot posted:
The real horror to me with this one is that I know exactly how it was obtained, because I had to write a slew of code identical to this. You're digging your way down through a pile of auto-generated code to get the thing out that you actually want.
|
# ? Sep 22, 2010 21:03 |
|
Ugg boots posted:Whenever we submit something that breaks on someone else's machine we always pull this out
|
# ? Sep 23, 2010 01:48 |
|
TRex EaterofCars posted:Yup, that's the web application servlet context and request being passed in. To a job. That runs via Quartz.
|
# ? Sep 23, 2010 12:48 |
|
TRex EaterofCars posted:Yup, that's the web application servlet context and request being passed in. To a job. That runs via Quartz. Well that's just stunning. Congratulations
|
# ? Sep 24, 2010 02:16 |
|
Zombywuf posted:C does it as well :-) I had to call short a two-week vacation in Portugal just to tell you that this is technically a violation of the standard.
|
# ? Sep 24, 2010 22:26 |
|
|
# ? May 15, 2024 10:40 |
|
Ugg boots posted:Whenever we submit something that breaks on someone else's machine we always pull this out We have a giraffe.
|
# ? Sep 24, 2010 23:49 |