|
Zombywuf posted:Are any of the views materialized? Nope.
|
# ? Oct 8, 2010 14:30 |
|
|
# ? May 15, 2024 13:07 |
|
A very bad man posted:EDIT: I considered posting the code but it's will make you bleed from the eyes.
|
# ? Oct 8, 2010 15:08 |
|
Not so much a coding horror, but after seeing it on the official (although internal) system visualization documentation/presentations, I'm shaking my head. I had nothing to do with it. There's a daemon process that watches for events and does stuff. Not too complicated, but imagine a visio with a bunch of web servers here, a bunch of database there, the occasional cloud of things, and with arrows going to and from, THIS in glorious retarded glory:
|
# ? Oct 8, 2010 15:18 |
|
Lurchington posted:Not so much a coding horror, but after seeing it on the official (although internal) system visualization documentation/presentations, I'm shaking my head. I had nothing to do with it. I would love to work in such a zany place
|
# ? Oct 8, 2010 15:54 |
|
At least you don't have to look at at that abomination combined with some anime quote every time you post.
|
# ? Oct 8, 2010 16:59 |
|
Mustach posted:Maybe it's out of habit from calling ToString() on everything else. Who needs any other data type? Strings are simple and easy to understand! We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type. But you still have to explicitly declare your variables as strings JUST TO MAKE SURE.
|
# ? Oct 8, 2010 17:42 |
|
Monkeyseesaw posted:We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type. Sweet we're back to the Perl debate.
|
# ? Oct 8, 2010 18:22 |
|
Monkeyseesaw posted:We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type. That should be easy enough to tack on to Javascript.
|
# ? Oct 8, 2010 18:39 |
|
Lurchington posted:Not so much a coding horror, but after seeing it on the official (although internal) system visualization documentation/presentations, I'm shaking my head. I had nothing to do with it. The true horror is that this is a jpg.
|
# ? Oct 8, 2010 18:53 |
|
Monkeyseesaw posted:We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type.
|
# ? Oct 8, 2010 18:55 |
|
Monkeyseesaw posted:We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type. Replace the new command with string and MUMPS is effectively there.
|
# ? Oct 8, 2010 18:58 |
|
Monkeyseesaw posted:We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type. I think this is how Tcl works
|
# ? Oct 8, 2010 20:00 |
|
BlogEngine.NET's javascript library is littered with this kind of crap. I'm sure glad they managed to parse that date three times. code:
|
# ? Oct 8, 2010 21:08 |
|
PhonyMcRingRing posted:BlogEngine.NET's javascript library is littered with this kind of crap. I'm sure glad they managed to parse that date three times. I don't really have a horror, but I'm tired of seeing SVN check-ins where the diff is nothing but extra blank lines. No, we didn't really need three blank lines between the end of the else statement and the end of the method.
|
# ? Oct 9, 2010 05:05 |
|
_aaron posted:I don't really have a horror, but I'm tired of seeing SVN check-ins where the diff is nothing but extra blank lines. No, we didn't really need three blank lines between the end of the else statement and the end of the method. What's the commit message?
|
# ? Oct 9, 2010 15:12 |
|
ColdPie posted:What's the commit message?
|
# ? Oct 9, 2010 15:53 |
|
_aaron posted:It's typically part of a bug fix where they changed another file, so the message is for the file where the code actually changed. It's like when they commit a fix, they just commit any changed files without doing a diff beforehand (which is probably the real horror). For some reason all the commits made from branches when merged are blank on the trunk in the project I'm working on. So you end up with comments from the merge, but an commits on the branch will be empty. Sucks.
|
# ? Oct 10, 2010 02:03 |
|
CPAN posted:(38 subtests UNEXPECTEDLY SUCCEEDED), 1 test and 161 subtests skipped. CPAN: greybeards with ailments running slackware 3.1 Edit: and now to punish us for using 'force' it is rebuilding and re-running all the tests
|
# ? Oct 13, 2010 22:27 |
|
We have a login field stored in a CHAR(50) field (i.e. packed out with spaces), which needs to be compared to a different login stored in a VARCHAR(50) field. Contractor's response: write a function in JavaScript as follows: code:
Double bonus: What was said contractor trying to do? 1: As far as I can tell, sweet gently caress all. Any string passed to it goes through it untouched - I don't get it either - unless my javascript is horribly broken. Looking at the code it should theoretically remove any non-space characters, then trim the last space off the string - but my regex-fu is weak. 2: gently caress knows. Since the only place he uses this string is right after he pulls the field from an SQL statement, calling RTRIM in that statement would've been far simpler. Thel fucked around with this message at 00:58 on Oct 14, 2010 |
# ? Oct 14, 2010 00:43 |
|
^^ I haven't run it, but from a cursory reading it looks like it should work; here's an annotated version.code:
code:
|
# ? Oct 14, 2010 01:04 |
|
Regex-fu status: downgraded from "weak" to "broken".
|
# ? Oct 14, 2010 01:31 |
|
ToxicFrog posted:
Except this doesn't work, because outside of a pair of square brackets, the ^ metacharacter isn't "negation", it matches the end of the string. So /^\s+/ will match nothing. I think what's needed is either /[^\s]+/ or /\S+/.
|
# ? Oct 14, 2010 12:55 |
|
qntm posted:Except this doesn't work, because outside of a pair of square brackets, the ^ metacharacter isn't "negation", it matches the end of the string. So /^\s+/ will match nothing. I think what's needed is either /[^\s]+/ or /\S+/. ^ is the start, $ is the end e: so it's "the start of the string, followed by 1 or more whitespace"
|
# ? Oct 14, 2010 13:03 |
|
ToxicFrog posted:^^ I haven't run it, but from a cursory reading it looks like it should work; here's an annotated version. But it's called rtrim, so even though it actually does trim the string 'correctly'*, it trims from both sides and so is broken. *http://www.squarefree.com/shell/shell.html is great for testing small chunks of JavaScript.
|
# ? Oct 14, 2010 15:14 |
|
This is why regexes themselves are the coding horror.
|
# ? Oct 14, 2010 19:03 |
|
Monkeyseesaw posted:This is why regexes themselves are the coding horror. No way. Regular expressions are good tools. The coding horror is people using them to solve every problem relating to string processing they encounter.
|
# ? Oct 14, 2010 19:28 |
|
Is this where we bring up parsing HTML with a regular expression again?
|
# ? Oct 14, 2010 19:37 |
|
NotShadowStar posted:Is this where we bring up parsing HTML with a regular expression again? Nope, it's where we post the link to that Perl regex for validating emails.
|
# ? Oct 14, 2010 20:03 |
|
This isn't so much a horror, as it just bugs me.code:
code:
enough?
|
# ? Oct 14, 2010 20:15 |
|
Lysandus posted:This isn't so much a horror, as it just bugs me. If that code is from a library for a high-level language (e.g. Python) which is wrapping a C library it's probably named like that because that's what the C constant was named.
|
# ? Oct 14, 2010 20:35 |
|
TRex EaterofCars posted:No way. Regular expressions are good tools. The coding horror is people using them to solve every problem relating to string processing they encounter. I'm being facetious. Regexes are obviously extremely useful but it's remarkable how much trouble people have with them unless you're working with them literally every day. If you were trying to invent a syntax that was scientifically designed to be impossible to remember or keep in your head at once you couldn't do much worse than the standard regex syntax. It's like something invented by an evil robot.
|
# ? Oct 14, 2010 20:49 |
|
Monkeyseesaw posted:I'm being facetious. Regexes are obviously extremely useful but it's remarkable how much trouble people have with them unless you're working with them literally every day. If you were trying to invent a syntax that was scientifically designed to be impossible to remember or keep in your head at once you couldn't do much worse than the standard regex syntax. It's like something invented by an evil robot. APL wins that particular award I think.
|
# ? Oct 14, 2010 20:53 |
|
Monkeyseesaw posted:I'm being facetious. Regexes are obviously extremely useful but it's remarkable how much trouble people have with them unless you're working with them literally every day. If you were trying to invent a syntax that was scientifically designed to be impossible to remember or keep in your head at once you couldn't do much worse than the standard regex syntax. It's like something invented by an evil robot. No wonder Larry Wall gets hard over them.
|
# ? Oct 15, 2010 00:25 |
|
A very bad man posted:No wonder Larry Wall gets hard over them. What are you tolkien aboot http://dev.perl.org/perl6/doc/design/apo/A05.html
|
# ? Oct 15, 2010 00:28 |
|
Monkeyseesaw posted:I'm being facetious. Regexes are obviously extremely useful but it's remarkable how much trouble people have with them unless you're working with them literally every day. If you were trying to invent a syntax that was scientifically designed to be impossible to remember or keep in your head at once you couldn't do much worse than the standard regex syntax. It's like something invented by an evil robot. but regular expressions only have disjunction (a|b) conjunction (ab) and the kleene star (a*) what is so hard about that -- besides I don't get how people talk about parsing html with regular expressions because html isn't regular I mean how is a formal language a coding horror
|
# ? Oct 15, 2010 02:12 |
|
Larry's comment is strangely appropriate for your question. It's a horror because people don't bother to learn anything about it.http://dev.perl.org/perl6/doc/design/apo/A05.html posted:This is the Apocalypse on Pattern Matching, generally having to do with what we call "regular expressions", which are only marginally related to real regular expressions. Nevertheless, the term has grown with the capabilities of our pattern matching engines, so I'm not going to try to fight linguistic necessity here. I will, however, generally call them "regexes" (or "regexen", when I'm in an Anglo-Saxon mood).
|
# ? Oct 15, 2010 02:44 |
|
Otto Skorzeny posted:What are you tolkien aboot http://dev.perl.org/perl6/doc/design/apo/A05.html
|
# ? Oct 15, 2010 14:16 |
|
Mustach posted:It's things like this that remind me that Larry Wall actually has a good head on his shoulders. if only he hadn't spent the last 10 years working on the second system perl
|
# ? Oct 15, 2010 14:21 |
|
Monkeyseesaw posted:It's like something invented by an evil robot. http://en.wikipedia.org/wiki/Malbolge
|
# ? Oct 15, 2010 14:25 |
|
|
# ? May 15, 2024 13:07 |
|
tef posted:if only he hadn't spent the last 10 years working on the second system perl
|
# ? Oct 15, 2010 14:43 |