|
Doctor w-rw-rw- posted:Commit Message Generator How did you find our repository?! Get out of there you do not belong shoo go!
|
# ¿ May 7, 2013 12:17 |
|
|
# ¿ May 17, 2024 20:39 |
|
Wheany posted:Am I interpreing this correctly: The first assignment opens a file, the second sets the file's mode to write and the third assignment is written into the file? Perfectly intuitive.
|
# ¿ May 7, 2013 13:13 |
|
Jewel posted:Both people replied with a git command but I wasn't using git. I haven't gotten a chance to use/learn it yet vv You should definitely learn it. After coming from P4 and SVN it's like a breath of fresh air wrapped in diamonds inside of a TARDIS Also, for those suggesting that he rewrite history, I'm sure you're all aware that this is a bad thing when others have pulled that commit already.
|
# ¿ May 7, 2013 15:54 |
|
code:
|
# ¿ May 7, 2013 18:13 |
|
Rocko Bonaparte posted:A minor horror, but I found a data pool that I had mislabeled as "poot" in my code for a bit. It must be how late it is, but the idea of my code having farts in it is making me giggle too much. The code smells! On a related note, I smiled when someone marked a code review with "looks good, make sure you blah blah blah then you can poo poo it"
|
# ¿ May 8, 2013 12:05 |
|
Sang- posted:In scala I will occasionally use ✓ (unicode tick) as a value for true. I honestly can't tell if this is a serious post.
|
# ¿ May 10, 2013 00:30 |
|
bucketmouse posted:https://github.com/search?q=extension%3Acpp+%2F%2F+gently caress+poo poo&type=Code&ref=searchresults code:
Not the worst error handler I can think of.
|
# ¿ May 11, 2013 19:24 |
|
Scaramouche posted:I had to support an ancient PHP app back in the day (think like php 3.0) and I had no exposure to php before that. I basically had to learn it in one weekend and make this monstrously awful billing app that served millions of customers work. In my frustration I had several variables called things like gently caress, FUCKKK, and FUCKKKKKKKKYOOOOOOOOOUUUUUPHP but the thing eventually got working. A couple weeks ago one of the guys I used to work with got hold of me on LinkedIn and the first thing he told me was that they were all still there 'because if we tried to change one it broke everything'. The real coding horror is that you can't change a goddamned variable name in PHP without everything breaking.
|
# ¿ May 13, 2013 04:12 |
|
Pilsner posted:Has anyone ever seen a method in code named Do____ (for example DoEmails) that wasn't crap? I assume it's a holdover from VB or something. DoItInTheButt(...)
|
# ¿ May 14, 2013 13:42 |
|
Lysandus posted:Ok, which of you did this. Naturally, there's no goddamned documentation.
|
# ¿ May 20, 2013 14:46 |
|
That Turkey Story posted:I wanted to go and do it anyway: You're hired. When can you begin?
|
# ¿ May 20, 2013 19:08 |
|
hobbesmaster posted:I notice a distinct lack of a return statement from main. They made void legal for a reason! You're fired. Pack your things and get out.
|
# ¿ May 20, 2013 22:18 |
|
FateFree posted:I was cleaning out a development folder and I found a file called MP.java. I had no recollection until I opened it and it all came rushing back to me. I suppose this falls under the category of code that makes you laugh. Ephphatha posted:That's amazing. For the lazy set your console window to 65x17 and run java -jar MP.jar. Your tree was planted in the very soul of the 1 minute I spent downloading and running this artistic masterpiece.
|
# ¿ May 31, 2013 13:35 |
|
Dren posted:What about having staging and like, one behavioral test with selenium webdriver? This. Why the crap would you ever deploy directly to prod, let alone edit prod directly?
|
# ¿ Jun 3, 2013 02:18 |
|
Volte posted:Sometimes it's nice to just type code into a text editor. In the YOOL 2013 I still dick around at the command line, and sometimes I want to just pop open an editor to change a line or something. I'll use an IDE for doing active development, but VIM fills a great niche.
|
# ¿ Jun 4, 2013 03:54 |
|
evensevenone posted:People still use IDEs? As opposed to...
|
# ¿ Jun 4, 2013 04:53 |
|
Aleksei Vasiliev posted:MSDN blog gives advice on password hashes: http://blogs.msdn.com/b/lixiong/archive/2011/12/25/md5-sha1-salt-and-bcrypt.aspx I'd say I really hope someone gets that taken down, but it's from 2011 so I think that ship has sailed.
|
# ¿ Jun 7, 2013 02:11 |
|
facepalmolive posted:Because knowing the implementation of a hash function means knowing how to crack it, right? I can know how SHA works without knowing how to effectively crack it.
|
# ¿ Jun 7, 2013 12:38 |
|
I continue to find code like code:
|
# ¿ Jun 11, 2013 22:12 |
|
b0lt posted:Sounds like you have some ~fun-defined behavior~ I prefer to think of it like this
|
# ¿ Jun 18, 2013 23:45 |
|
You have not seen my coworker's code
|
# ¿ Jun 21, 2013 13:01 |
|
yaoi prophet posted:Today at work I saw a 59-argument function. That's a loving horror. Let me guess: someone didn't understand the concept of passing arrays, and instead had input1 through input50, along with a few other arguments.
|
# ¿ Jun 23, 2013 02:10 |
|
quiggy posted:Holy poo poo I forgot about the loving plane Oh my god. I just saw that for the first time. Everyone on the train was staring at me
|
# ¿ Jun 25, 2013 01:27 |
|
pokeyman posted:Hey, these are the jerks who had an "email us and we'll give you some cool crypto problems to solve", and I did and they never wrote back so I wrote again and they still never wrote back so now I'm sad. I emailed them and they gave me some cool crypto problems to solve (and then more when I solved them, rinse repeat). Maybe it's just you?
|
# ¿ Jul 7, 2013 06:15 |
|
seiken posted:
I think this is a pretty reasonable define to put in.
|
# ¿ Jul 8, 2013 00:33 |
|
zergstain posted:So today I edited a file with 4 space indenting, tab indenting, 2 space indenting, and I believe there was a few lines with 5 space indenting. And of course tabs and spaces mixed on the same line. What I really love is the if that is indented with spaces, except for the closing brace, so it's way over to the right. This sounds like a problem that could be solved with a quick ctrl-shift-F.
|
# ¿ Jul 8, 2013 22:17 |
|
Dicky B posted:Our team is currently reviewing our c++ style guide (our current one is basically badly adapted from an old C style guide so a lot of stuff is missing/inappropriate) and today we spent a good 30 minutes discussing whether or not there should be a space between if and ( Yes, there should be.
|
# ¿ Jul 9, 2013 00:34 |
|
Aleksei Vasiliev posted:x264 uses The one truly wasteful and ugly brace style, yes. Opening curly on the same line as if is the way to go and we all know it.
|
# ¿ Jul 9, 2013 13:22 |
|
Jewel posted:See, the thing that makes If you don't have whitespace, yes, I can see where that's easier. However, most of the world can handle auto-indent, so not only do you not gain readability from knowing where the block starts, but you're also decoupling the brace from the if statement, which in my opinion actually makes this LESS readable. When I scroll my eyes up from }, I don't look for a {, I look for another line of code that's at that level of indentation. Consider what python does; no braces, indentation is its own mechanism of blocking. And it works, pretty well too.
|
# ¿ Jul 9, 2013 13:38 |
|
Brace style holy wars are the horror here
|
# ¿ Jul 9, 2013 13:51 |
|
Che Delilas posted:Is this where I ask about "EmployeeID" vs. "EmployeeId" vs. "Employee_ID" vs. Employee_Id" vs. "Employee_id" ? employeeID and I dare anyone to tell me otherwise
|
# ¿ Jul 10, 2013 00:31 |
|
tef posted:i'd make a lilliputian reference to big-endian and little-endian, but satire is dead. I don't think the joke was lost on the folks who borrowed the terms for computing.
|
# ¿ Jul 10, 2013 13:43 |
|
yaoi prophet posted:Have you ever hated the convenience of exceptions having stack traces? Why would anyone do this? I mean, if your code needs to be so secure that even stacktraces give away information, just don't enable logging
|
# ¿ Jul 11, 2013 04:23 |
|
QuarkJets posted:Nah don't worry guys, it's cool, we'll just put up some signs around the office saying "DO NOT STEAL OUR DATABASE" and we'll be covered What if someone uses whiteout on the "NOT" and then claims that you asked them to steal it? Check and mate
|
# ¿ Jul 20, 2013 23:42 |
|
Amarkov posted:So I learned last year how to access private member fields with Java's reflection library. Funny little trick, but I'm never going to use it right? If you have access to the source, try making the private inner class package private, and/or write a subclass to expose that variable for testing.
|
# ¿ Jul 22, 2013 18:29 |
|
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 |
|
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 |
|
1337JiveTurkey posted:var ┻━┻ = new WhateverException() Please tell me that this is a thing that can actually be some in some language.
|
# ¿ Aug 11, 2013 06:08 |
|
Ithaqua posted:I firmly believe that well-written code is self-documenting. That goes double if you have good unit tests that are grouped around expected behavior. Which, while nice and to some extent true, doesn't excuse you from actually writing documentation. One step above well written code that I can examine is well documented code that I don't actually have to physically examine to understand.
|
# ¿ Aug 14, 2013 01:56 |
|
|
# ¿ May 17, 2024 20:39 |
|
Ithaqua posted:Documentation of a software product and/or API is a different story. Ask me about the "self documenting" spaghetti code that my coworker has written that needs to be maintained. I dare you.
|
# ¿ Aug 14, 2013 03:28 |