archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
True
[deleted]
null
Fun Microsoft Trivia. I was the guy who wrote the Micosoft Y2K Analysis tool back in 1998/1999 which scanned your system, not unlike a malware scanner, looking for known Y2K issues and providing hotfixes. I made the tool generic, so it could be used with any signature database, not just Y2K problems, so it was a generic PC Analyzer. I had to conform to DOS naming conventions back then for old FAT file systems though, so Microsoft's PCANAL.EXE was shipped worldwide. Marketing got on me for version 2 though and unfortunately it became named Y2K.EXE.
null
0
1316535853
False
0
c2l9fla
t3_klhlv
null
t1_c2l9fla
t1_c2l85jr
null
1427624161
57
t5_2fwo
null
null
null
True
wcoenen
null
Free software != working for free. You can still get paid for writing, maintaining and supporting free software, just not for making copies of binaries at zero marginal cost.
null
0
1316535868
False
0
c2l9fo8
t3_kl7h0
null
t1_c2l9fo8
t1_c2l990j
null
1427624162
6
t5_2fwo
null
null
null
True
lukeatron
null
These are all going to be thin client type apps, which basically have to do this anyway. I just don't see why this should have anyone worried. If you've got a traditional thick client app, would you expect it to run in a browser without any changes? You can always just run it as normal windows application. They aren't taking that away. They're just supplying a new environment to build a particular type of application in, ostensibly to reduce the complexity of delivering that type of application. (I don't have a huge amount of trust Microsoft's ability to deliver on that front though, given what they've delivered on similar claims in the past.)
null
0
1316535882
False
0
c2l9fqs
t3_kl1qp
null
t1_c2l9fqs
t1_c2l984g
null
1427624163
1
t5_2fwo
null
null
null
True
A_for_Anonymous
null
I see the point, but I don't need to search and replace i and j anywhere; if I did it would mean i and j are more important than just loop variables, and deserve a meaningful name.
null
0
1316535890
False
0
c2l9fsl
t3_klhlv
null
t1_c2l9fsl
t1_c2l938z
null
1427624164
20
t5_2fwo
null
null
null
True
StrawberryFrog
null
Indeed, but after reading Crockford, I don't think that JavaScript is the ideal language for Mort. It has subtly wonky behaviour, offers no type system hand-holding, and the powerful features are drawn from functional programming. MS is not doing JavaScript because JavaScript is best; they are doing it because it is common. So, is JS the new VB?
null
0
1316535901
True
0
c2l9fur
t3_kl1qp
null
t1_c2l9fur
t1_c2l8xjc
null
1427624165
7
t5_2fwo
null
null
null
True
wickedang3l
null
What's a "Vista"?
null
0
1316535909
False
0
c2l9fw9
t3_kl7h0
null
t1_c2l9fw9
t1_c2l8pas
null
1427624165
4
t5_2fwo
null
null
null
True
neilk
null
If you are working with Java or C# in an IDE there is no technical reason to avoid long variable names. However, for readability and easy distinguishability, one still wants a short variable name. Basically, choose names that will be instantly understandable by any programmer who's totally unfamiliar with the code (but who is aware of your organization's conventions). This programmer will eventually be you, so you're doing yourself a favor. Rules of thumb: * No abbreviations that aren't instantly obvious. "maxSize" is okay, "THX1138" is not * Pick conventions and stick with them religiously. Use *one* of underscores_to_join or interCapsToJoin. In general follow the convention of your language. * Objects and variables end with, or are, nouns. * Functions or methods begin with verbs. * The name of a function or method should usually express what it accomplishes, not how it does it. "storeThingy()" rather than "serializeThingyAndWriteToDisk()". Exception: if you are picking between two methods that accomplish the same thing for the user, but use different techniques based on what's available on the platform. * Booleans begin with "is" and are always expressed positively. If you need to negate it, use your language's negation operator. * The length of a variable ought to be proportional to its scope. A for-loop counter can be a single letter, like "i", if it's under three or four lines. A global or class variable can be long, like "globalConnectionPoolMaxSize". * In general, if something is hard to name, you probably are doing it wrong. Consider breaking the function up, or rethink what you are asking one variable to do. * Break any of these rules rather than do something which will cause you to be confusing for other reasons You should read Code Complete. To get a sense of what the book is about, read this compilation of [the checklists in Code Complete](http://www.matthewjmiller.net/files/cc2e_checklists.pdf). Chapter 11 is about variable names. This might seem like a strange recommendation, but Orwell's classic essay [Politics and the English Language](http://mla.stanford.edu/Politics_&_English_language.pdf) will also help you undertand the priniciples of clear writing. For instance, he ridicules the "not un-" construction, e.g. "not unlike", which is just the same as "like", unless you intend it to be mocking or ironic. The same principle applies to logically convoluted names in programming, like "notUnselected()", or even "isDisabled". And, more directly, Orwell will help you make comments and documentation exceptionally clear.
null
0
1316535961
True
0
c2l9g6w
t3_klhlv
null
t1_c2l9g6w
t1_c2l93ka
null
1427624170
5
t5_2fwo
null
null
null
True
darthHobo
null
I tend to use n for loops, and if I have nested loops, then I'll work backwards and use m, and then l. I have no idea why I do it this way.
null
0
1316536021
False
0
c2l9gh5
t3_klhlv
null
t1_c2l9gh5
t1_c2l938z
null
1427624173
2
t5_2fwo
null
null
null
True
bonch
null
Cocoa's -setValueForKey: method sets a value for the given key, while -mutableSetValueForKey: returns a mutable set for the given key. Not the worst thing ever but somewhat confusing when first encountered.
null
0
1316536080
False
0
c2l9gs4
t3_klhlv
null
t1_c2l9gs4
t3_klhlv
null
1427624177
1
t5_2fwo
null
null
null
True
harlows_monkeys
null
You might enjoy Perl's [Lingua::Romana::Perligata](http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html) module. It lets you program in Latin. It not only gives you Latin versions of all the language keywords and operators, it changes the grammar of the language to work like Latin.
null
0
1316536126
False
0
c2l9h1u
t3_klhlv
null
t1_c2l9h1u
t1_c2l85qd
null
1427624180
13
t5_2fwo
null
null
null
True
alexeyr
null
But why is it called "outdated" and "anachronism"? Did it make sense once?
null
0
1316536128
False
0
c2l9h28
t3_klnoy
null
t1_c2l9h28
t1_c2l9098
null
1427624180
3
t5_2fwo
null
null
null
True
A_for_Anonymous
null
Because it's anonymous and throw-away, and because some simple calculations may require statements (exception handling, loops, etc.). Think of it like this: This is not COBOL. Just like I don't label every loop, I don't want to label every looping behaviour I want to pass or store somewhere. Guido just loathes FP, and this is why he goes out of his way so many times to fight it and make functional programmers uneasy. He even polluted the language with weird, ugly syntax for particular use-cases of anonymous functions in order to avoid them (decorators and with), and decided on an ugly, nonstandard syntax for the ternary if operator just so that it cannot be nested nicely when you want to nest on the LHS. He threatens to remove lambda every other week, and calls it a mistake. Got reduce moved from \_\_builtins\_\_ just to be an ass, ignores FP feature requests, and so on. Some languages like PHP sometimes feel like "I want to support FP; why can't I support FP?" while Python feels like "I don't want to support FP; why do you think you're entitled to even attempt it?".
null
0
1316536213
True
0
c2l9hi7
t3_klhlv
null
t1_c2l9hi7
t1_c2l8vpq
null
1427624187
3
t5_2fwo
null
null
null
True
arbiterxero
null
I'm working with a set of ant build scripts right now. The buildscripts have 4 layers, each layer is called build.xml each layer has many very similarly named tasks that do different things. ex BuildProject Each layer references at least 1 other layer and itself in many places. Oh and when it references itself, it still does it externally. It took me 4 months just to find out that there was a 4th layer.
null
0
1316536216
False
0
c2l9hiy
t3_klhlv
null
t1_c2l9hiy
t3_klhlv
null
1427624187
1
t5_2fwo
null
null
null
True
original_4degrees
null
honest to god, i have seen foo() and bar() in production code. and used so much that every one had to be fully qualified to avoid collisions... *sigh* com.dipstick.dev.foo();
null
0
1316536220
False
0
c2l9hje
t3_klhlv
null
t1_c2l9hje
t3_klhlv
null
1427624187
1
t5_2fwo
null
null
null
True
jamesinc
null
I used to work for a company that produced large websites. I once encountered the following piece of JavaScript: function documentDotWrite(text) { document.write(text); }
null
0
1316536272
False
0
c2l9htr
t3_klhlv
null
t1_c2l9htr
t3_klhlv
null
1427624191
2
t5_2fwo
null
null
null
True
freakish777
null
Depends on how much of your $100,000,000 budget they cost you. If they cost 50% of it, then cool (that's 400 devs at $125,000 a year which seems like overkill for just about any project as far as numbers go). If they cost 80% of it, probably not so cool (you still have to pay rent on office space, janitors, your HR department, electricity, hardware, a project manager, your sales person who wants a commission, etc).
null
0
1316536292
False
0
c2l9hxq
t3_kljc0
null
t1_c2l9hxq
t1_c2l941z
null
1427624193
5
t5_2fwo
null
null
null
True
[deleted]
null
This is what happens when you not write software in Haskell.
null
0
1316536431
False
0
c2l9in3
t3_kl5hl
null
t1_c2l9in3
t3_kl5hl
null
1427624203
-6
t5_2fwo
null
null
null
True
StrawberryFrog
null
Powershell is brilliant at what it was aimed for - a much better replacement for .bat files, with all kinds of extensibility via .Net. It's great for automating small tasks. I would not like to develop a GUI application in it.
null
0
1316536434
False
0
c2l9int
t3_kl1qp
null
t1_c2l9int
t1_c2l96fr
null
1427624203
8
t5_2fwo
null
null
null
True
littletrucker
null
This does not directly apply to the OP, but I think it is relevant. I worked with a guy that did this: #define false 1 #define true 0 It took a long time to figure out what was going on, even stepping though the debugger and seeing if statement fail when they should not have.
null
0
1316536448
False
0
c2l9iqd
t3_klhlv
null
t1_c2l9iqd
t3_klhlv
null
1427624204
6
t5_2fwo
null
null
null
True
grauenwolf
null
AH yes, the glamorous life of a wage slave. Don't even bother trying to create something that lots of people will want, because you are only allowed to sell one. Now that I think of it, he is also very anti-consumer. Under his vision only people who can afford to hire a developer at consultant rates can get decent software. Aside from a few platforms like operating systems and browsers, everyone just gets whatever scraps the big corporations decide to include with the hardware. Under his vision there would be no gaming industry. A teenager isn't going to hire someone to write games for him and companies aren't going to just give them away. You can't even count of in-game advertising because some will just recompile the code without it.
null
0
1316536498
False
0
c2l9iz9
t3_kl7h0
null
t1_c2l9iz9
t1_c2l9fo8
null
1427624207
-1
t5_2fwo
null
null
null
True
[deleted]
null
My Pascal prof in college was nuts about long variable names. He would make us re-do our programs with more descriptive functions and variables. For a chess program assignment I used the variable: * boxwithlotsofboxesinit (got a good grad for that one) I now professionally code, I do not go quite so ridiculous now btw ...
null
0
1316536582
False
0
c2l9jfo
t3_klhlv
null
t1_c2l9jfo
t3_klhlv
null
1427624213
1
t5_2fwo
null
null
null
True
ReinH
null
If you need a global search/replace to change a loop variable name, you are definitely doing it wrong.
null
0
1316536626
False
0
c2l9joi
t3_klhlv
null
t1_c2l9joi
t1_c2l938z
null
1427624216
145
t5_2fwo
null
null
null
True
adx
null
It's more like 200 if you're paying them $125k a year. You need to factor in the other overhead costs like taxes, benefits, equipment, etc.
null
0
1316536631
False
0
c2l9jpn
t3_kljc0
null
t1_c2l9jpn
t1_c2l9hxq
null
1427624217
7
t5_2fwo
null
null
null
True
retardrabbit
null
Code I'm working on has an array of thumbnails called "thumgnails". I don't want to play this game any more :(
null
0
1316536693
False
0
c2l9k14
t3_klhlv
null
t1_c2l9k14
t1_c2l8c6h
null
1427624221
2
t5_2fwo
null
null
null
True
notSorella
null
On Windows, I use the `ucs-insert' method in emacs, usually I leave abbrevs that are expanded to unicode characters I use often. On Linux I just map the CAPS LOCK key to a Compose key, which is rather more useful, so it's not usually really difficult to type them (unless you're on Windows, perhaps? Not sure if you can remap keys and use a Xcompose-ish mapping for mnemonics to unicode there).
null
0
1316536709
False
0
c2l9k40
t3_kketr
null
t1_c2l9k40
t1_c2l9b7k
null
1427624232
1
t5_2fwo
null
null
null
True
SystemOutPrintln
null
I'm so using WhosYourDady in my next parent/child based program.
null
0
1316536721
False
0
c2l9k66
t3_klhlv
null
t1_c2l9k66
t3_klhlv
null
1427624223
1
t5_2fwo
null
null
null
True
rmxz
null
> Documentation wise it's brilliant... Indeed - if they could squeeze a few more words in there, the documentation writer's job could be reduced to "see the class's name".
null
0
1316536744
False
0
c2l9kax
t3_klhlv
null
t1_c2l9kax
t1_c2l8v3i
null
1427624225
2
t5_2fwo
null
null
null
True
greyfade
null
No, this isn't language bigotry. This is willful ignorance.
null
0
1316536760
False
0
c2l9kd3
t3_klhzl
null
t1_c2l9kd3
t3_klhzl
null
1427624225
2
t5_2fwo
null
null
null
True
SCombinator
null
Not during the loop! It's unsafe to modify the sequence being iterated!
null
0
1316536769
False
0
c2l9kej
t3_klhlv
null
t1_c2l9kej
t1_c2l985r
null
1427624226
11
t5_2fwo
null
null
null
True
jonforthewin
null
> but there is no denying the fact that some things > can be an incredible pain in the ass That happens very often on Windows, and only happens on Linux because you fucked up by purchasing shit hardware. Linux has an excellent networking stack and excellent wireless stack. The only person to blame for a "pain in the ass" experience is yourself. You should be ashamed of yourself.
null
0
1316536779
False
0
c2l9kgq
t3_kl7h0
null
t1_c2l9kgq
t1_c2l812g
null
1427624226
-4
t5_2fwo
null
null
null
True
M3wThr33
null
I named a string 'LeakyVaginaWagon' in college. I just wanted to see if the professor would catch it. And he didn't.
null
0
1316536790
False
0
c2l9kiq
t3_klhlv
null
t1_c2l9kiq
t3_klhlv
null
1427624227
2
t5_2fwo
null
null
null
True
jonforthewin
null
I'm sorry I can't hear all of this Windows 8 nonsense over the sound of switching to GNU+Linux over half a decade ago.
null
0
1316536806
False
0
c2l9klu
t3_kl7h0
null
t1_c2l9klu
t3_kl7h0
null
1427624235
-7
t5_2fwo
null
null
null
True
rasori
null
Nice and interesting suggestions, thanks for the prompt reply! Will definitely be looking into this (and hey, my University Library even has a copy). Did you do some reddit-stalking to know that I work primarily with Java and C# or was it just a safe assumption in the modern day/assumption based off of your own experience? Just curious ;)
null
0
1316536815
False
0
c2l9kni
t3_klhlv
null
t1_c2l9kni
t1_c2l9g6w
null
1427624230
1
t5_2fwo
null
null
null
True
brianly
null
You need an x86 or x64 based PC or Tablet. It is possible to run it as a virtual machine but some people have had issues doing that. I installed it on an HP Slate 500 and the performance was pretty bad.
null
0
1316536831
False
0
c2l9kq6
t3_kl1qp
null
t1_c2l9kq6
t1_c2l7zoh
null
1427624230
1
t5_2fwo
null
null
null
True
dude187
null
You're taking shit awfully seriously.
null
0
1316536901
False
0
c2l9l3e
t3_klhlv
null
t1_c2l9l3e
t1_c2l9kej
null
1427624237
11
t5_2fwo
null
null
null
True
adolfojp
null
That's a good question. Both the CLR and the Chakra JS engine will be distributed with Windows 8 and will work directly with the WinRT APIs. But I don't know if they are considered to be part of WinRT or not. That distinction doesn't affect the workflow of the app developer, however, the .NET libraries will be a bit limited inside of Metro just like they are on Silverlight for security reasons. [The relevant Wikipedia article](http://en.wikipedia.org/wiki/Windows_RunTime#.NET) gives me this: >The .NET Framework and the Common Language Runtime (CLR) is integrated into the WinRT as a subplatform. It also has influenced and set the standards for the ecosystem through the metadata format and libraries. The CLR provides services like JIT-compilation code and garbage collection. I don't know enough about the implementation of these new technologies (yet) to know whether the .NET subplatform should be another box between C#/VB.NET and WinRT or a box inside of the WinRT box. If you do find out I'd love to know.
null
0
1316536913
False
0
c2l9l61
t3_kl1qp
null
t1_c2l9l61
t1_c2l81th
null
1427624237
1
t5_2fwo
null
null
null
True
nepharis
null
Oh god. I once downloaded some OSS Java code that for a streaming radio server, so I could compare how I was doing it to what their process was. I encountered this function: private static void nameICantRemember (int foo, int foo_, int foo__, double bar, double bar_, double bar__) { I pretty much gave up right then and there.
null
0
1316537031
False
0
c2l9lt2
t3_klhlv
null
t1_c2l9lt2
t3_klhlv
null
1427624244
3
t5_2fwo
null
null
null
True
brianly
null
It is extremely unlikely that you will ever see an x86 mode on ARM. ARM will only run Metro apps, and x86/x64 will run Metro and legacy apps. As Metro is incrementally improved then the legacy desktop could in theory become optional. But a lot depends on uptake of Metro apps.
null
0
1316537033
False
0
c2l9lth
t3_kl1qp
null
t1_c2l9lth
t1_c2l8fzy
null
1427624244
1
t5_2fwo
null
null
null
True
slurpme
null
Lynx is still a popular, albeit niche, choice... If you are ever designing a website for sysadmins or for those looking for files you should avoid the use of javascript since they may only have a text terminal...
null
0
1316537033
False
0
c2l9lti
t3_kkw07
null
t1_c2l9lti
t1_c2l94n7
null
1427624244
-4
t5_2fwo
null
null
null
True
[deleted]
null
>Because spending the time up front to figure out what the proper tool is for the job at hand is how to mitigate against failure. OP *never* said they would spend time figuring out the proper tool upfront; they said they'd spend time figuring out the *cheapest* tool. The cheapest tool is often not the best.
null
0
1316537055
False
0
c2l9lx7
t3_kljc0
null
t1_c2l9lx7
t1_c2l92is
null
1427624245
5
t5_2fwo
null
null
null
True
v_krishna
null
huh, never knew that about the standard. i've always followed the practice of saving jquery selector returns to $-prefixed vars -- e.g., $somenode = $('#some_selector').find('.a_node') -- simply to make it easy with a cursory glance to know what are jquery objects & what are other things (dom nodes, whatever)
null
0
1316537101
False
0
c2l9m62
t3_klhlv
null
t1_c2l9m62
t1_c2l9ev3
null
1427624248
3
t5_2fwo
null
null
null
True
samth
null
Disagreements about R6RS were driven mostly by underlying disagreements about technical issues and about the purpose of Scheme and Scheme standardization.
null
0
1316537146
False
0
c2l9mf1
t3_kk1hp
null
t1_c2l9mf1
t1_c2kwwvh
null
1427624252
1
t5_2fwo
null
null
null
True
danski
null
Not a good idea for growing a team and making everyone feel comfortable and included. For instance: > Prima: Why is this called url_five()? > Secunda: Well there's a funny story, dave didn't like the old one so we all joked about it... Not only is it unmaintainable, it makes your code feel like a boy's clubhouse.
null
0
1316537152
False
0
c2l9mg3
t3_klhlv
null
t1_c2l9mg3
t1_c2l7ugv
null
1427624252
-1
t5_2fwo
null
null
null
True
sidneyc
null
I don't see anything there that supports Zarutian's claim, and I don't accept it as an unbiased source. This is not evidence, it is opinion.
null
0
1316537165
False
0
c2l9mis
t3_kkegr
null
t1_c2l9mis
t1_c2l8w3x
null
1427624253
0
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316537270
False
0
c2l9n26
t3_klphp
null
t1_c2l9n26
t3_klphp
null
1427624261
3
t5_2fwo
null
null
null
True
neilk
null
Just an assumption from context.
null
0
1316537300
False
0
c2l9n7n
t3_klhlv
null
t1_c2l9n7n
t1_c2l9kni
null
1427624262
1
t5_2fwo
null
null
null
True
possiblywrong
null
I was helping a friend at work debug some MATLAB code that he had written. Inside one of his functions, he had written a helper sub-function. Guess what it was called? sub_function().
null
0
1316537300
False
0
c2l9n7x
t3_klhlv
null
t1_c2l9n7x
t3_klhlv
null
1427624262
1
t5_2fwo
null
null
null
True
[deleted]
null
OK, but remapping keys is exactly the sort of nonstandard input I'm talking about. Imagine you're developing a library and you want people to use it. Do you give your most commonly used function a name that anyone can type on a standard keyboard in any text editor with two keystrokes, or do you give it a name that requires people to reconfigure their systems specifically to work with your library? I know what I would do.
null
0
1316537310
False
0
c2l9nak
t3_kketr
null
t1_c2l9nak
t1_c2l9k40
null
1427624264
1
t5_2fwo
null
null
null
True
Cozmo23
null
Back in HS programming I named a function upDog just to set the teacher up when she asked about it.
null
0
1316537334
False
0
c2l9nf9
t3_klhlv
null
t1_c2l9nf9
t1_c2l84kj
null
1428193637
44
t5_2fwo
null
null
null
True
ZorbaTHut
null
And don't forget that qwieuorqeShit is a ODIOUSSTRUCTUREEX that needs to be ZeroMemory'ed and then "qwieuorqeShit.cbSize = sizeof(qwieuorqeShit);".
null
0
1316537343
False
0
c2l9ngw
t3_klhlv
null
t1_c2l9ngw
t1_c2l8fm2
null
1428193637
2
t5_2fwo
null
null
null
True
ZorbaTHut
null
I write "HEY, LISTEN!" in comments wherever it's actually really important that the reader pay attention. I've been told that it triggers a Zelda-based Pavlovian response.
null
0
1316537405
False
0
c2l9nt4
t3_klhlv
null
t1_c2l9nt4
t1_c2l9e2j
null
1427624271
5
t5_2fwo
null
null
null
True
banuday
null
Also, I should point out that `java.awt.Component` is the base class of a class hierarchy for polymorphic components. It doesn't actually *do* anything, that is left to the subclasses, which override `paint()`, for example. `java.awt.Button` isn't subordinate to `java.awt.Component`, as it does all the work of implementing a button. `AbstractSingletonProxyFactoryBean` is not meant to be used polymorphically, and it is the root of a very shallow class hierarchy. It is the driver that does all high level stuff, and leaves the details to its subclasses, which are its subordinates. This little distinction is nicely captured by putting it in the name of the class. Although Template might have been a better choice than Abstract.
null
0
1316537563
True
0
c2l9oo5
t3_klhlv
null
t1_c2l9oo5
t1_c2l93qn
null
1427624284
2
t5_2fwo
null
null
null
True
Jushooter
null
[So this is what StackOverflow has come to...](http://i.imgur.com/0C4bd.png)
null
0
1316537574
False
0
c2l9oq6
t3_klhlv
null
t1_c2l9oq6
t3_klhlv
null
1427624284
9
t5_2fwo
null
null
null
True
Cozmo23
null
GetYourWomanOnTheFloor()
null
0
1316537579
False
0
c2l9or5
t3_klhlv
null
t1_c2l9or5
t1_c2l7s1g
null
1427624284
8
t5_2fwo
null
null
null
True
TheOhNoNotAgain
null
In VB6, the rich text control had a property named DisableNoScroll
null
0
1316537680
False
0
c2l9pbx
t3_klhlv
null
t1_c2l9pbx
t3_klhlv
null
1427624289
2
t5_2fwo
null
null
null
True
ptemple
null
I don't believe it was just marketing as it was first announced with a (buggy) prototype. And it's written in Rails just because that's the only thing the author knows. His point, from what I remember, is that the prototype is evolving so rapidly that if he tried writing a protocol he would keep breaking it every five minutes because he keeps adding and changing features. Once the prototype finally solidifies and he is fairly happy with the feature set then he can start setting the protocol in stone. Then the Python/Java/etc versions can start appearing. Don't look on it as a commercial product, more a testing ground for ideas on how to write a distributed social networking server. Phillip.
null
0
1316537764
False
0
c2l9ps5
t3_kgsnl
null
t1_c2l9ps5
t1_c2l89xf
null
1427624295
1
t5_2fwo
null
null
null
True
geon
null
Pathtracing and glossy reflections handle that very well.
null
0
1316537802
False
0
c2l9pzp
t3_kldfr
null
t1_c2l9pzp
t1_c2l8vui
null
1427624298
5
t5_2fwo
null
null
null
True
notSorella
null
Yep, unless I'm writing APL or something of the sort, I'd avoid non-ascii identifiers. Though unicode identifiers are still lovely <3
null
0
1316537805
False
0
c2l9q09
t3_kketr
null
t1_c2l9q09
t1_c2l9nak
null
1427624298
1
t5_2fwo
null
null
null
True
alicebob
null
no camelcase nor underscores? :(
null
0
1316537809
False
0
c2l9q13
t3_klhlv
null
t1_c2l9q13
t1_c2l7x3k
null
1427624299
1
t5_2fwo
null
null
null
True
tragomaskhalos
null
I'm sure [it's a perfectly cromulent word](http://en.wikipedia.org/wiki/Cromulent#Embiggen_and_cromulent)
null
0
1316537841
False
0
c2l9q7a
t3_klhlv
null
t1_c2l9q7a
t1_c2l8n2p
null
1427624301
1
t5_2fwo
null
null
null
True
mricon
null
$ man mencoder | grep ass-color -ass-color <value>
null
0
1316537857
False
0
c2l9qa3
t3_klhlv
null
t1_c2l9qa3
t3_klhlv
null
1427624302
2
t5_2fwo
null
null
null
True
yogthos
null
As we've seen time and again, without these extremes we end up with closed technologies which are owned and controlled by a vendor. You as a consumer or a developer, can't change them to work the way you need, you don't decide what they do, and if it's in your best interest, and you have no alternatives available.
null
0
1316537916
False
0
c2l9qlr
t3_kl7h0
null
t1_c2l9qlr
t1_c2l9792
null
1427624306
0
t5_2fwo
null
null
null
True
mcguire
null
My cow-orkers are wondering why I started screaming.
null
0
1316537917
False
0
c2l9qm3
t3_klhlv
null
t1_c2l9qm3
t1_c2l8vi5
null
1427624306
3
t5_2fwo
null
null
null
True
TrevorBradley
null
If he was a fan of "thingy" and called you jakeypoo, perhaps you should consider asking him out. (If you're the type that would date another programmer, of course)
null
0
1316537920
False
0
c2l9qmi
t3_klhlv
null
t1_c2l9qmi
t1_c2l83hr
null
1427624306
6
t5_2fwo
null
null
null
True
SanityInAnarchy
null
Too lazy to register on stackoverflow... Probably the most amusing thing I ever found in source code was less a variable name and more a set of comments. For example, this was in the Linux kernel source: /* Fuck me gently with a chainsaw... */ What followed was bad. While searching for the source for this, I found someone suggesting we improve decency in the kernel source by removing language like this. As far as I'm concerned, it's not the language that was indecent here, it's the code it was describing... Edit: That's a comment, not italics, damnit markdown...
null
0
1316537933
False
0
c2l9qp2
t3_klhlv
null
t1_c2l9qp2
t3_klhlv
null
1427624307
1
t5_2fwo
null
null
null
True
nil_von_9wo
null
A former employer once asked me to finish a program of a previous employee. That employee not only named all his files, classes, functions, and variables things like jio456k3256hi53, but he included no documentation of what he did or why he did it. Took about a month of mapping everything out by hand on paper to make sense of his work. I suspect his intention was "job security" thinking if nobody else understood the code he wouldn't be replaced.
null
0
1316537967
False
0
c2l9quk
t3_klhlv
null
t1_c2l9quk
t3_klhlv
null
1427624309
2
t5_2fwo
null
null
null
True
MarshallBanana
null
And are massively slow.
null
0
1316538038
False
0
c2l9r9c
t3_kldfr
null
t1_c2l9r9c
t1_c2l9pzp
null
1427624314
1
t5_2fwo
null
null
null
True
trigraph
null
You're right because its expensive it must be good
null
0
1316538082
False
0
c2l9rhk
t3_kljc0
null
t1_c2l9rhk
t1_c2l9lx7
null
1427624316
3
t5_2fwo
null
null
null
True
panda_burgers
null
It seems the length limit on class names is 65536 UTF-8 chars, so nothing technically stops developers writing and implementing com.example.project.java.classes.src.ThisClassWhenInstantiatedWillConnectToMySQLAndReturnQuerySetResultsWhenGivenTheAppropriateQueryBeanThisClassWasWrittenByGarySoItMayNotAlwaysDoWhatThisNameSuggests. Provided the filesystem supports names that long. I wonder if the average length of a class name is growing over time, looks like the JVM developers had a lot of foresight with a limit that high. That aside, I prefer Java's standards to those commonly used in C projects, although there's a happy median I'd rather see than the two extremes of verbosity and total lack thereof.
null
0
1316538131
False
0
c2l9rqs
t3_klhlv
null
t1_c2l9rqs
t1_c2l9kax
null
1427624321
3
t5_2fwo
null
null
null
True
Goblerone
null
It doesn't make me smile, because generally the context that I look at other people's code is when I have to fix bugs they have caused.
null
0
1316538155
False
0
c2l9rvc
t3_klhlv
null
t1_c2l9rvc
t1_c2l9e2j
null
1427624322
2
t5_2fwo
null
null
null
True
robmikh
null
I tried to debug my friend's code and all of it was just "variable1, variable2, variable3" and "function1, function2, function3." I died inside.
null
0
1316538161
False
0
c2l9rwh
t3_klhlv
null
t1_c2l9rwh
t3_klhlv
null
1427624323
1
t5_2fwo
null
null
null
True
random_ramdomness_4
null
Their reasons are actually pretty good, reading the mozilla forum that widyakumara posted, they say it is to prevent not so smart people from pasting dangerous scripts on the page, but the FF solution is a little over the top in my opinion, I'm fine with the chrome and IE one.
null
0
1316538166
False
0
c2l9rx5
t3_kketr
null
t1_c2l9rx5
t1_c2l77st
null
1427624323
2
t5_2fwo
null
null
null
True
yogthos
null
I think this is a matter of perspective, if you're interested in making a profit then open source is not necessarily the best option. And in that scenario nobody is forcing you to use open source, but you can't expect to benefit from it without giving something back either. However, a lot of companies have learned that even in commercial environment open source is often beneficial. If you're interested in development itself, then it's absolutely developer friendly. You can see how others code works, you can use it and modify it in ways that suit you, you have common repositories of knowledge and libraries that benefit everybody.
null
0
1316538167
False
0
c2l9rxb
t3_kl7h0
null
t1_c2l9rxb
t1_c2l990j
null
1427624323
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316538176
False
0
c2l9ryq
t3_klhlv
null
t1_c2l9ryq
t1_c2l9m62
null
1427624325
3
t5_2fwo
null
null
null
True
ntrel2
null
Also D has better modelling power than C++ (e.g. alias this, more template power) so it's no worse than C++ for manual memory management. However it's possible to run into compiler bugs, but the official compiler is getting more stable now. Another reason to rally round D rather than looking for new untested languages with pretty much the same feature space (Tart).
null
0
1316538196
False
0
c2l9s2c
t3_kfvm7
null
t1_c2l9s2c
t1_c2l0fj2
null
1427624325
1
t5_2fwo
null
null
null
True
onionpostman
null
#define CONST_NUM_THREE 3 will be on my shitlist until the end of time. Found that in production code for a commercial product. Indian subcontracting FTW.
null
0
1316538238
False
0
c2l9s9r
t3_klhlv
null
t1_c2l9s9r
t3_klhlv
null
1427624328
2
t5_2fwo
null
null
null
True
tragomaskhalos
null
The worst thing about this is the C- in front of the class name. *God* that irritates me. C- is *Microsoft's* convention for *MFC* classes kids, you do not need to C-prefix every f'king classname on the planet.
null
0
1316538298
False
0
c2l9slm
t3_klhlv
null
t1_c2l9slm
t1_c2l7zh2
null
1427624334
2
t5_2fwo
null
null
null
True
alicebob
null
Don't care about the mispeling, but the fact you have double code for the getElementById, don't check if that works, a weird 'return', no-use of the trinary if and (the worst!) inconsistent indenting does give a bad taste. Ow, it's javascript. Nevermind, code looks fine.
null
0
1316538309
False
0
c2l9sny
t3_klhlv
null
t1_c2l9sny
t1_c2l8c6h
null
1427624334
4
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316538354
False
0
c2l9swi
t3_kljc0
null
t1_c2l9swi
t1_c2l9lx7
null
1427624337
1
t5_2fwo
null
null
null
True
[deleted]
null
I generally find that when I do that I end up screwing it up later. It's fine if you don't ever expect to screw around with that code again, but if you do it could have consequences I generally defend against others first and myself second. If I think I don't need to, then I know I need to do it to 11.
null
0
1316538380
False
0
c2l9t1f
t3_klhlv
null
t1_c2l9t1f
t1_c2l9bjh
null
1427624347
1
t5_2fwo
null
null
null
True
[deleted]
null
I think he was talking about reflections on e.g. a non-reflective screen or oily leather.
null
0
1316538426
False
0
c2l9taa
t3_kldfr
null
t1_c2l9taa
t1_c2l9d70
null
1427624342
2
t5_2fwo
null
null
null
True
Boojum
null
In that case though, you'd expect to be able to reuse any shadow maps, point clouds or brickmaps for the static geometry with a rasterizer. The cost of these would also be ammortized over the next 199 frames. (Oh, and do you know if there are there any production ray tracers that will actually serialize the acceleration structure like that? It seems to be a fairly common practice with research ray tracers but I don't think I've seen a production renderer do it. Does Arnold?)
null
0
1316538435
False
0
c2l9tcc
t3_kldfr
null
t1_c2l9tcc
t1_c2l7wpx
null
1427624342
1
t5_2fwo
null
null
null
True
knome
null
Unless you're actively using data from one window in another, why not maximize the windows? / *maximize ALL the windows*
null
0
1316538444
False
0
c2l9tdo
t3_kldfr
null
t1_c2l9tdo
t1_c2l99s7
null
1427624343
7
t5_2fwo
null
null
null
True
big_red__man
null
public function colonTime(sec:Number):String{ //it's always colon time! } Occasionally for work I have to write a video player. The playhead returns its position in seconds so you have to convert to hh:mm:ss in the UI so the user sees something easily digestible. I named the function colonTime without thinking about it. I quickly realized what happened and added the comment
null
0
1316538449
False
0
c2l9tey
t3_klhlv
null
t1_c2l9tey
t3_klhlv
null
1427624343
1
t5_2fwo
null
null
null
True
usermeister
null
> only happens on Linux because you fucked up by purchasing shit hardware. Dude, linux community is just like any other community... made up of many great developers but much much larger number of average developers. Do you know what kind of software quality that produces? Average. Elitism is funny until you start going around insulting people. Then it's just wrong and ignorant.
null
0
1316538453
False
0
c2l9tfq
t3_kl7h0
null
t1_c2l9tfq
t1_c2l9kgq
null
1427624344
8
t5_2fwo
null
null
null
True
mricon
null
We have [our own](https://secure.wikimedia.org/wikipedia/en/wiki/Inuktitut_syllabics) look of disapproval, eh? ᓂ_ᓂ
null
0
1316538491
True
0
c2l9tn3
t3_klhlv
null
t1_c2l9tn3
t1_c2l89qs
null
1427624346
10
t5_2fwo
null
null
null
True
stillalone
null
I've gotten into the habit of always putting braces because I tend to go back and put in debug print statements or something else in the if.
null
0
1316538512
False
0
c2l9tq2
t3_klhlv
null
t1_c2l9tq2
t1_c2l9bjh
null
1427624347
13
t5_2fwo
null
null
null
True
LegioXIV
null
true. and truth be told, I tend to use n, o, and p for loops. I was just stating why it's considered good practice to use double letters instead of single letters.
null
0
1316538526
False
0
c2l9tu7
t3_klhlv
null
t1_c2l9tu7
t1_c2l9fsl
null
1427624349
1
t5_2fwo
null
null
null
True
geehoffer
null
Leave him alone, he's just doing his duty as a programmer.
null
0
1316538530
False
0
c2l9tv2
t3_klhlv
null
t1_c2l9tv2
t1_c2l9l3e
null
1427624349
7
t5_2fwo
null
null
null
True
[deleted]
null
"The setTimeout is a classic example of JavaScript’s non-blocking code execution, using the event loop it will wake up after the given seconds and execute the function while any code after will be executed in the mean time." no, see first comment on the blog
null
0
1316538553
False
0
c2l9tzy
t3_kkw07
null
t1_c2l9tzy
t3_kkw07
null
1427624351
3
t5_2fwo
null
null
null
True
stkerr
null
tl;dr
null
0
1316538573
False
0
c2l9u3m
t3_klhzl
null
t1_c2l9u3m
t3_klhzl
null
1427624352
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316538611
False
0
c2l9ub5
t3_klhlv
null
t1_c2l9ub5
t1_c2l9b9m
null
1427624355
2
t5_2fwo
null
null
null
True
[deleted]
null
I find this is the least objectionable point of Microsoft naming conventions. It's nice to have a clear way to distinguish type and variable names. Without a C in front you end up with local variables looking like: Gizmo gizmo = new Gizmo(); That's not really nice, especially when you have members without a prefix.
null
0
1316538644
False
0
c2l9ui1
t3_klhlv
null
t1_c2l9ui1
t1_c2l9slm
null
1427624357
1
t5_2fwo
null
null
null
True
Faust5
null
Man, that orphan comment had me in stitches.
null
0
1316538659
False
0
c2l9ul0
t3_klhlv
null
t1_c2l9ul0
t3_klhlv
null
1427624358
3
t5_2fwo
null
null
null
True
snkscore
null
Recently a team member stumbled upon some code I wrote 10 years ago. Someone had created a "Parm" class, when really they meant "Param" as in "Parameter". Aside from it being bad code/design, the fact that it was "parm" really bothered me. So, I decided to write my own class below it. I inherited from Parm and created a ChickenParm class. This class then had methods like "IsGood" (always returns true) and ToString = "Chicken Parm!! Hmmmm!!!!". I must have forgotten to go back and clean it out and it ended up living in our codebase for 10 years.
null
0
1316538718
False
0
c2l9uwb
t3_klhlv
null
t1_c2l9uwb
t3_klhlv
null
1427624363
4
t5_2fwo
null
null
null
True
zzyzzyxx
null
I once used this as part of an example illustrating the basics of exception handling in C++. try { throw "the truth"; // you want the truth } catch (int i) { // you can't handle the truth }
null
0
1316538742
False
0
c2l9v1f
t3_klhlv
null
t1_c2l9v1f
t1_c2l7vf2
null
1427624364
15
t5_2fwo
null
null
null
True
glenbolake
null
I don't usually screw these up. Putting it on the same line serves as a reminder that I need to add the braces later.
null
0
1316538758
False
0
c2l9v5d
t3_klhlv
null
t1_c2l9v5d
t1_c2l9t1f
null
1427624366
1
t5_2fwo
null
null
null
True
jamiei
null
I don't think being popular is necessary. As the name implies *complex* event processing can make building your application much simpler if you need to react to anything more than trivial conditions in events. e.g. Trigger an event of this type when a trader places an order with exposure of more than X without any hedging within 100 seconds.
null
0
1316538858
False
0
c2l9vpy
t3_kks00
null
t1_c2l9vpy
t1_c2l7qof
null
1427624374
1
t5_2fwo
null
null
null
True
lostonrails
null
I work on an e-commerce site for a pretty prominent clothing company. They had the site initially built by an Indian chop shop. I'm pretty sure none of their programmers actually knew a single programming language, and just Googled whatever they were trying to do and copied/pasted until something worked. Which is why I spent an indecent amount of time looking for a certain gift card template, finally tracking it down to example/view.phtml.
null
0
1316538994
False
0
c2l9wek
t3_klhlv
null
t1_c2l9wek
t3_klhlv
null
1427624383
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316539001
False
0
c2l9wgy
t3_klhlv
null
t1_c2l9wgy
t1_c2l8oih
null
1427624383
0
t5_2fwo
null
null
null