|
Beardless Woman posted:And this guy's code is actually in production. Gazpacho fucked around with this message at 09:51 on Apr 12, 2009 |
# ¿ Apr 12, 2009 09:28 |
|
|
# ¿ Mar 29, 2024 06:02 |
|
I don't see the point of arguing whether Perl has redundant features. Larry Wall admits it and is proud of it. Once upon a time in the 1990s, I wrote a fair amount of Perl code where I tried to be as concise as the language allowed, and a guy who had to maintain it later told me "WTF?" I don't write Perl like that anymore. Gazpacho fucked around with this message at 20:26 on Apr 12, 2009 |
# ¿ Apr 12, 2009 20:24 |
|
I understand that everyone has their own sense of code aesthetics, I just wouldn't use it as the basis for calling something a coding horror when my solution is not really much better in production.
|
# ¿ Apr 12, 2009 23:40 |
|
Mogomra posted:I'm actually really interested to hear what the issues with Node.js are.
|
# ¿ Apr 14, 2012 03:55 |
|
duck monster posted:Today I stumbled across a simple set of words that describe a real thing that ought cause any coder with a sense of his industry to imediately break out into a rash.
|
# ¿ Apr 19, 2012 10:08 |
|
Contero posted:I'm not a professional web dev by any means, but why is this such a horror?
|
# ¿ Apr 20, 2012 02:20 |
|
Smash dogmatism while holding high the banner of modularity.
|
# ¿ Apr 20, 2012 12:39 |
|
pokeyman posted:I think I understand what you mean, but could you expand on this a bit? Why are text nodes XML's most powerful feature?
|
# ¿ Apr 28, 2012 09:20 |
|
MrMoo posted:It's not for configuration files or for storing data which is what most muppets end up using it for.
|
# ¿ Apr 29, 2012 23:58 |
|
Fren posted:Douglas Crockford's shtick is really getting old.
|
# ¿ May 2, 2012 04:18 |
|
pokeyman posted:How does anyone justify using PHP for a new project?
|
# ¿ May 5, 2012 20:16 |
|
Scaramouche posted:Are you talking about CGI 'classic'? Out of process? Single threaded? The bug at issue here is clearly a PHP bug, not a CGI one. Gazpacho fucked around with this message at 23:22 on May 5, 2012 |
# ¿ May 5, 2012 20:49 |
|
I think it's been made clear that the issue re: CGI is not whether such things exist, but whether they introduce problems of their own.
|
# ¿ May 5, 2012 22:37 |
|
I knew before I clicked that reddit link that someone would make a comparison to APL.
|
# ¿ May 6, 2012 03:26 |
|
Yeah yeah, misindented code. Worked on some for four years, then later worked in a job where the offshore devs regularly sent misindented code for review and refused to correct it to standards. Cry me a river and go learn Python you baby.
|
# ¿ May 9, 2012 00:59 |
|
Ender.uNF posted:The compiler has the best knowledge about what each symbol in the code means. It knows the difference between a type named Foo and a local variable named Foo, something that is extremely difficult to get right with a regex. That's part of the reason MS is exposing the compiler as a service in the next version of VS - so you can write code that writes code, with full access to the compiler and intellisense. It's an extremely powerful concept once you wrap your brain around it.
|
# ¿ May 10, 2012 05:15 |
|
MEAT TREAT posted:"php" == 0 is .
|
# ¿ May 11, 2012 01:30 |
|
A universal Turing machine.
|
# ¿ May 12, 2012 08:09 |
|
When I used Matlab about 15 years ago it didn't have a reputation of being a broken piece of poo poo. Maybe Mathworks has had some major developer rotation since then. Although anyone who approaches Matlab with the idea that they won't have to translate their problem into matrix-crunching terms has already lost. Gazpacho fucked around with this message at 00:08 on May 18, 2012 |
# ¿ May 18, 2012 00:03 |
|
Suspicious Dish posted:That is not a CSV file.
|
# ¿ May 18, 2012 11:06 |
|
Zorro KingOfEngland posted:I am a relatively new developer and this is the first time I've heard about these control characters being used. Do you have anything that explains their usage? Wikipedia doesn't go into too much depth. The only article I've found has said that the characters' meanings have to be defined on a per-application basis, but I'm looking for a best practice type document.
|
# ¿ May 18, 2012 23:14 |
|
Mogomra posted:I know everyone in this thread loves node.js and PHP, so why not leave the two of them alone in a room together to see what happens? Harmony Framework - PHP is now in your browser! (Inactive since 2009 thankfully, but it's only a matter of time.)
|
# ¿ May 21, 2012 20:51 |
|
Munkeymon posted:It fills two arrays with hour names (like '11am') for each hour in the day. $grandma is the 24-hour hour, somehow.
|
# ¿ Jun 14, 2012 19:30 |
|
e: Really, given the context, I have to agree with Janitor. A better solution would be "then don't do that."
Gazpacho fucked around with this message at 10:41 on Jun 29, 2012 |
# ¿ Jun 29, 2012 10:32 |
|
Plastic Snake posted:
https://www.youtube.com/watch?v=zCh7z5EwYF8&t=1s
|
# ¿ Jul 7, 2012 01:51 |
|
Whenever you see comments left in an exploit like "It doesn't work. Now it does! Or does it?" that alone should be a strong indicator that it's crap.
|
# ¿ Jul 15, 2012 12:02 |
|
Optimus Prime Ribs posted:I just got assigned just about the most retarded task imaginable:
|
# ¿ Jul 17, 2012 18:49 |
|
The command prompt has to do wildcards that way to maintain compatibility with DOS, which had to maintain compatibility with CP/M, in which each command implemented its own file pattern rules. In CP/M it was possible for a filename to be valid to one command and invalid to another. DOS provided the wildcard expansion APIs as a way to standardize the patterns but expanding them up front the way Unix does wasn't a feasible option.
|
# ¿ Jul 20, 2012 22:02 |
|
ToxicFrog posted:If you leave it up to individual programs, you end up with different expansion behaviour for each command, each with its own documentation and configuration mechanism (if it can be configured at all). ToxicFrog posted:If you leave it up the filesystem, suddenly rm behaves differently depending on whether you're using it on a local filesystem, a USB key, or a network mount. Gazpacho fucked around with this message at 22:35 on Jul 20, 2012 |
# ¿ Jul 20, 2012 22:22 |
|
That too, and the fact that its dominant use case was not batch scripting but starting up an interactive program and then sitting in the background. Many reasons, but CP/M compatibility guided the design.
|
# ¿ Jul 21, 2012 09:29 |
|
PrBacterio posted:But really, though, isn't that just piling workaround on workaround to get a fundamentally broken system working at that point, like this thread has so many times before (rightfully, imho) criticised, for example, PHP for?
|
# ¿ Jul 22, 2012 09:17 |
|
Suspicious Dish posted:I blame it on the C standard library. sprintf is in there, but asprintf is not. I guess it counts as a horror that on this platform, a problem I had to clean up again and again was local string buffers sized according to the maximum filename length, which had nothing to do with filenames. And this at more than one company, it wasn't an issue with a particular programmer. Gazpacho fucked around with this message at 20:43 on Jul 23, 2012 |
# ¿ Jul 23, 2012 20:35 |
|
Gazpacho posted:I can assure you that the real problem is programmers just not knowing what memory is.
|
# ¿ Jul 26, 2012 02:48 |
|
Zamujasa posted:A new day, a new horror... If I'm becoming grating with Tales from The Boss, then let me know and I'll cut back on sharing them. Gazpacho fucked around with this message at 17:57 on Aug 1, 2012 |
# ¿ Aug 1, 2012 17:49 |
|
Otto Skorzeny posted:Joel Spolsky's first summer job was working in a bread factory, therefore making software is like making bread http://www.joelonsoftware.com/items/2012/07/09.html
|
# ¿ Aug 13, 2012 08:19 |
|
For the record, in connection with the FizzBuzz thread, this is why. This is why companies don't take some noob's word that he can rewrite the company's code better.
|
# ¿ Aug 23, 2012 04:23 |
|
Aleksei Vasiliev posted:what an excellent example of try statement use
|
# ¿ Aug 31, 2012 05:26 |
|
At least the sentence is complete. I've torn my hair out so many times over comments in legacy code with an unspecified "it" or "this".
|
# ¿ Sep 1, 2012 06:57 |
|
While I understand that there are many design horrors in PHP, and to a lesser extent Javascript, this hand-wringing over implicit conversion reminds me of the arguments when I was learning BASIC against using = for assignment (as well as comparison), because some poor stupid programmer might flip out over a statement like X = X + 1. Similarly Dijkstra argued that no language should have lazy logical and/or operators because they do not have exact mathematical precedents and therefore programmers can never possibly understand them. Gazpacho fucked around with this message at 03:55 on Sep 2, 2012 |
# ¿ Sep 2, 2012 03:53 |
|
|
# ¿ Mar 29, 2024 06:02 |
|
Not quite as bad as (maybe I've posted this already) allocating all string buffers to MAX_PATH. Regardless of whether they are for filenames. MAX_PATH in Windows is an unbelievably immense number. Two hundred and sixty, to be exact.
|
# ¿ Sep 6, 2012 02:30 |