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
a_redditor
null
Please don't use url shorteners when submitting to reddit. It makes you look like a spammer.
null
0
1318965780
False
0
c2sids7
t3_lg7tb
null
t1_c2sids7
t3_lg7tb
null
1427749379
14
t5_2fwo
null
null
null
True
a_redditor
null
Please don't post stuff like this to /r/programming.
null
0
1318965886
False
0
c2sieet
t3_lgg0d
null
t1_c2sieet
t3_lgg0d
null
1427749457
1
t5_2fwo
null
null
null
True
a_redditor
null
Please don't post stuff like this to /r/programming.
null
0
1318965899
False
0
c2siehc
t3_lgipn
null
t1_c2siehc
t3_lgipn
null
1427749458
1
t5_2fwo
null
null
null
True
AlonzoIsOurChurch
null
Easy if you understand the C type system and array-to-pointer decay rules, but don't encourage any more programmers to assume sizeof(int) == 4!
null
0
1318965952
False
0
c2siesu
t3_lgfp0
null
t1_c2siesu
t3_lgfp0
null
1427749462
27
t5_2fwo
null
null
null
True
smcameron
null
But if you were him, you'd be on linux, where unsigned longs and pointers are always the same size (yeah, I know, it is very weird that this assumption is made, but that assumption (more like an imperative) exists throughout the kernel code. longs and pointers are the same size (32 bits) on 32 bit linux and the same ...
null
0
1318965964
True
0
c2sievn
t3_lgjhl
null
t1_c2sievn
t1_c2si88n
null
1427749464
9
t5_2fwo
null
null
null
True
wolf550e
null
That's just visual c++ being silly, same way as visual c++ x64 calling convention being different from the unix x86-64 ABI is just silly.
null
0
1318966058
False
0
c2sifej
t3_lgjhl
null
t1_c2sifej
t1_c2si88n
null
1427749480
1
t5_2fwo
null
null
null
True
KrzaQ2
null
using int32_t would solve that problem without being too obvious about it.
null
0
1318966097
False
0
c2sifmr
t3_lgfp0
null
t1_c2sifmr
t1_c2shfrc
null
1427749475
20
t5_2fwo
null
null
null
True
sztomi
null
People with some knowledge from other programming language and scarce knowledge of the computer architectures assume a bunch of things about variables, function arguments and pointers in addition to the actual rules. This is what makes them "hard".
null
0
1318966209
False
0
c2sigbr
t3_lgfp0
null
t1_c2sigbr
t1_c2sh57h
null
1427749483
14
t5_2fwo
null
null
null
True
wolf550e
null
Memory mapped IO is used not only on embedded. On embedded, you just don't have the luxury of ten layers of abstraction between your code and the actual memory mapped IO.
null
0
1318966223
False
0
c2sigf7
t3_lgjhl
null
t1_c2sigf7
t1_c2sibxr
null
1427749486
5
t5_2fwo
null
null
null
True
omnilynx
null
It's 3d, so it might be your video card.
null
0
1318966465
False
0
c2sihvy
t3_lg6zg
null
t1_c2sihvy
t1_c2sg4v6
null
1427749503
1
t5_2fwo
null
null
null
True
wolf550e
null
The Go compilers were developed from this lineage.
null
0
1318966554
False
0
c2siifb
t3_lgjhl
null
t1_c2siifb
t3_lgjhl
null
1427749520
27
t5_2fwo
null
null
null
True
[deleted]
null
Escape them by typing \\\* instead of \*.
null
0
1318966559
False
0
c2siige
t3_lfm1k
null
t1_c2siige
t1_c2shofd
null
1427749512
1
t5_2fwo
null
null
null
True
FCof
null
yes, but today is only 24 hours long, C will be around much longer than that! ;-)
null
0
1318966596
False
0
c2siio6
t3_lgfp0
null
t1_c2siio6
t1_c2shyl6
null
1427749524
23
t5_2fwo
null
null
null
True
dnew
null
> easy to call C++ code from C, with the use of extern "C" {}. That's calling C code from C. Invoke a method on an object instance, dealing with propagated exceptions, from C. If you've written C++ code and tried to call it from C, you'd realize you have to create a C-subset interface in the C++ code. > also l...
null
0
1318966626
False
0
c2siiu4
t3_l7gl3
null
t1_c2siiu4
t1_c2saf88
null
1427749529
1
t5_2fwo
null
null
null
True
mattst88
null
The new x32 ABI and MIPS' n32 ABI both have differently sized pointers and longs. That's not anything particularly new or special.
null
0
1318966652
False
0
c2siizu
t3_lgjhl
null
t1_c2siizu
t1_c2sievn
null
1428192092
6
t5_2fwo
null
null
null
True
paul_h
null
I can't remember why I said that to Misko. It doesn't feel funny in retrospect..
null
0
1318966716
False
0
c2sije2
t3_lf1px
null
t1_c2sije2
t1_c2s81jf
null
1427749530
2
t5_2fwo
null
null
null
True
prakashk
null
The point of the original question was to build a regex to match Qaddafi's name and it's several variants. Would you rather construct the regex by hand? Would that be quicker? And, what's unreadable about it?
null
0
1318966719
False
0
c2sijem
t3_jrszn
null
t1_c2sijem
t1_c2et4wn
null
1427749530
1
t5_2fwo
null
null
null
True
blladnar
null
What's weird is that it works fine in Firefox if you download the code and run it locally.
null
0
1318966760
False
0
c2sijmk
t3_lg7sg
null
t1_c2sijmk
t1_c2sgwzq
null
1427749532
1
t5_2fwo
null
null
null
True
prakashk
null
> But it's often WRITE-ONLY, I gather. Depends on the programmer. You can write write-only code in any language. What part of the above code would you consider write-only?
null
0
1318966799
False
0
c2sijtg
t3_jrszn
null
t1_c2sijtg
t1_c2es1h0
null
1427749543
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318966847
False
0
c2sik2z
t3_lg940
null
t1_c2sik2z
t1_c2si8pd
null
1428192090
1
t5_2fwo
null
null
null
True
SyKoHPaTh
null
Using a Nvidia GTX (can't remember number). Built as a gaming computer in 2009, so I'm pretty sure it can do 3d just fine haha. Not in the mood to get all upset about 1 webpage that won't render, so I'll pass it off as "webpage broken" in my pc-master-race head.
null
0
1318966869
False
0
c2sik7p
t3_lg6zg
null
t1_c2sik7p
t1_c2sihvy
null
1427749540
2
t5_2fwo
null
null
null
True
Thorn007
null
This is just my random personality shinning through
null
0
1318966880
False
0
c2sik9w
t3_lbkxz
null
t1_c2sik9w
t1_c2rhzel
null
1427749540
1
t5_2fwo
null
null
null
True
naasking
null
The LINQ combinators are always shorter than query expressions, they're just not necessarily clearer. Query syntax makes good use of whitespace, so it's very readable.
null
0
1318967118
False
0
c2silno
t3_lg1xx
null
t1_c2silno
t1_c2sf45y
null
1427749563
1
t5_2fwo
null
null
null
True
myliverhatesme
null
And "Why programs shouldn't be written with a word processor"
null
0
1318967188
False
0
c2sim26
t3_lg59j
null
t1_c2sim26
t1_c2sh31v
null
1427749570
2
t5_2fwo
null
null
null
True
pthreadunixman
null
Unfortunately, the syntax is the only part you can see.
null
0
1318967268
False
0
c2simjw
t3_lg940
null
t1_c2simjw
t1_c2si8pd
null
1427749578
2
t5_2fwo
null
null
null
True
bilygates
null
This is great stuff, thank you!
null
0
1318967290
False
0
c2simmx
t3_lg6ms
null
t1_c2simmx
t1_c2sgkdj
null
1427749578
1
t5_2fwo
null
null
null
True
blackhole82
null
Any other Banner programmers out there?
null
0
1318967287
False
0
c2simn5
t3_lgmic
null
t1_c2simn5
t3_lgmic
null
1427749578
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318967297
False
0
c2simpi
t3_lgmic
null
t1_c2simpi
t3_lgmic
null
1427749580
1
t5_2fwo
null
null
null
True
naasking
null
I think people should stop calling it "pass by reference" and "pass by value". The standard names are "*call* by reference" and "*call* by value". Using "pass" is too easily confused with the reference semantics of values.
null
0
1318967492
False
0
c2sinty
t3_lg1xx
null
t1_c2sinty
t1_c2sggqa
null
1427749596
2
t5_2fwo
null
null
null
True
naasking
null
Extension by inheritance is overrated. Parameterization is the way to go.
null
0
1318967544
False
0
c2sio6m
t3_lg1xx
null
t1_c2sio6m
t1_c2sg0av
null
1428192086
2
t5_2fwo
null
null
null
True
ggggbabybabybaby
null
I think design patterns and UML are actually quite similar in many regards. They're a common language and a set of common approaches for solving a problem. But they start to fail when you treat them as a silver bullet or when important stakeholders don't understand the jargon.
null
0
1318967562
False
0
c2sioa5
t3_lg6ms
null
t1_c2sioa5
t1_c2sgc10
null
1427749609
2
t5_2fwo
null
null
null
True
NruJaC
null
I think you've missed the whole point of this discussion. I was trying to point out that the operator soup that haskell looks like really isn't as bad as it seems at first blush. You can figure out the intended semantics of an operation based on the operators used, and the compiler guarantees those constraints for you....
null
0
1318967571
False
0
c2siocs
t3_lfm1k
null
t1_c2siocs
t1_c2si49n
null
1427749600
1
t5_2fwo
null
null
null
True
naasking
null
There are quite a few things you can't do in C#, but that's legal in CIL. For instance, type constraints on Enum and Delegate, inline arrays, and much more.
null
0
1318967682
False
0
c2sip0t
t3_lg1xx
null
t1_c2sip0t
t1_c2shvlq
null
1427749625
3
t5_2fwo
null
null
null
True
reddit_clone
null
Actually I would like to write the later to the former. (for that particular case at least) I am curious, except for looking like SQL what exactly are the benefits of that feature?
null
0
1318967687
False
0
c2sip26
t3_lg1xx
null
t1_c2sip26
t1_c2sfd6a
null
1427749625
2
t5_2fwo
null
null
null
True
wolf550e
null
Escape the asterisk with a slash: \\* becomes \*
null
0
1318967856
False
0
c2siq1o
t3_lfm1k
null
t1_c2siq1o
t1_c2shofd
null
1427749630
1
t5_2fwo
null
null
null
True
ysangkok
null
Quote [from here](http://sourcemaking.com/antipatterns/walking-through-minefield): >End users encounter software bugs frequently. For example, approximately *one in seven correctly dialed telephone numbers is not completed* by the telephone system (a software-intensive application). And note, the rate of complaint i...
null
0
1318967941
False
0
c2siqj6
t3_lg6ms
null
t1_c2siqj6
t3_lg6ms
null
1427749637
4
t5_2fwo
null
null
null
True
nealibob
null
Web design failure. Site looks great, but the UX is poor.
null
0
1318967991
False
0
c2siqsp
t3_lg6ms
null
t1_c2siqsp
t1_c2sfr1t
null
1427749644
1
t5_2fwo
null
null
null
True
djork
null
Tabs in an IDE are really ridiculous once you have more than about 5 things open. I prefer Emacs' buffer approach. There's no pretense about it. It's just a powerful, searchable, organizable list of buffers, their modes, and their corresponding files (if any). I generally don't bother with anything in Visual Studio be...
null
0
1318968135
False
0
c2sirm2
t3_lgecn
null
t1_c2sirm2
t3_lgecn
null
1427749656
7
t5_2fwo
null
null
null
True
ysangkok
null
Yes, you answered the original question nicely. However, the regex is not very readable compared to the source that produced it. Why use regexes at all if you just wanna check if a list contains the string? Can't you just check directly if it's in the list?
null
0
1318968216
False
0
c2sis2x
t3_jrszn
null
t1_c2sis2x
t1_c2sijem
null
1427749663
1
t5_2fwo
null
null
null
True
otakucode
null
Don't forget a very long, very detailed, very boring treatise on how now you get to manage every bit of memory... and somehow this is not the worst thing in the universe.
null
0
1318968264
False
0
c2siscd
t3_lg1xx
null
t1_c2siscd
t1_c2sfpd7
null
1427749666
-1
t5_2fwo
null
null
null
True
MarshallBanana
null
Knowing that the sizeof(int) is almost guaranteed to be 4, and knowing that it is *not* guaranteed to be 4 are both things a good C programmer should know. You only need the first for this quiz, though.
null
0
1318968456
False
0
c2sitfg
t3_lgfp0
null
t1_c2sitfg
t1_c2sibbx
null
1427749685
12
t5_2fwo
null
null
null
True
pnpbios
null
but you don't need garbage collection because c++ has auto pointers!!!`~
null
0
1318968467
False
0
c2sitho
t3_lg1xx
null
t1_c2sitho
t1_c2siscd
null
1427749685
2
t5_2fwo
null
null
null
True
almightymole
null
The pointer to the cake is NULL!
null
0
1318968587
False
0
c2siu2w
t3_lgfp0
null
t1_c2siu2w
t1_c2sgxye
null
1427749696
8
t5_2fwo
null
null
null
True
Camarade_Tux
null
It's actually interesting for string literals which are read-only. Trying to write on them is going to crash the program (and they are stored in specific [read-only] locations in the executables nowadays).
null
0
1318968680
False
0
c2siupq
t3_lgjhl
null
t1_c2siupq
t3_lgjhl
null
1427749703
7
t5_2fwo
null
null
null
True
CylonGlitch
null
Are you telling me my cake pointer is a lie?
null
0
1318968760
False
0
c2siv74
t3_lgfp0
null
t1_c2siv74
t1_c2siu2w
null
1427749708
-5
t5_2fwo
null
null
null
True
original_4degrees
null
why hire a cheap hacker when you can be one yourself?
null
0
1318968765
False
0
c2siv8a
t3_lfrt9
null
t1_c2siv8a
t3_lfrt9
null
1427749708
5
t5_2fwo
null
null
null
True
freedoodle
null
Ya. As a concept, they break down after 5+ items. This is because this exceeds human's attentive memory limitations. We can't "bind" to much more visual targets, without starting to get mixed up. If they were spatially stable, or other other cues were available, this number might be improved. I have another concep...
null
0
1318968770
True
0
c2siv99
t3_lgecn
null
t1_c2siv99
t1_c2sirm2
null
1427749708
2
t5_2fwo
null
null
null
True
mr_chromatic
null
Until you have to work around the broken semantics.
null
0
1318968888
False
0
c2sivys
t3_lg940
null
t1_c2sivys
t1_c2simjw
null
1427749716
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318969011
False
0
c2siwol
t3_lghyk
null
t1_c2siwol
t3_lghyk
null
1427749725
1
t5_2fwo
null
null
null
True
KingEllis
null
In my version of hell, everyone has a self-important blog about programming.
null
0
1318969042
False
0
c2siwvw
t3_lf1px
null
t1_c2siwvw
t1_c2s73yd
null
1427749735
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318969060
False
0
c2siwzs
t3_lf1px
null
t1_c2siwzs
t1_c2s73yd
null
1427749727
1
t5_2fwo
null
null
null
True
[deleted]
null
> And honestly, does it matter where they sit? One of the early mistakes a C/C++ programmer will make is allocating an object on the stack and then returning it from the function. The stack is destroyed and the memory the variable was allocated in is reclaimed and you eventually get a crash. Knowing where your obj...
null
0
1318969219
False
0
c2sixxo
t3_lg1xx
null
t1_c2sixxo
t1_c2sgbj2
null
1427749738
2
t5_2fwo
null
null
null
True
notfancy
null
I don't think the moment was funny but awkward, as in "you destroyed his strawman". As I wrote, sometimes you get a lot of mileage out of a layer of indirection (like your credit card example), even if that technically violates the LoD. Of course you should try to evolve the code and not bake abstractions in just for t...
null
0
1318969275
False
0
c2siy8y
t3_lf1px
null
t1_c2siy8y
t1_c2sije2
null
1427749741
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318969341
False
0
c2siyms
t3_lf1px
null
t1_c2siyms
t1_c2shvt6
null
1427749745
1
t5_2fwo
null
null
null
True
tophat02
null
Agreed, answered 0xfoo + 8 and was told I was incorrect. "BUT YOU SAID IT WAS A 64-BIT SYSTEM!!"
null
0
1318969343
False
0
c2siynb
t3_lgfp0
null
t1_c2siynb
t1_c2shcd2
null
1427749745
45
t5_2fwo
null
null
null
True
ErstwhileRockstar
null
> This is still DI, you are just injecting your dependencies into the method instead of the class. No dependencies at all. Google for the [Law of Demeter](http://c2.com/cgi/wiki?LawOfDemeter).
null
0
1318969349
False
0
c2siyoj
t3_lf1px
null
t1_c2siyoj
t1_c2shvt6
null
1427749745
1
t5_2fwo
null
null
null
True
rkenned
null
Blocked at work for some reason, but is this meant to be a parody? Edit: Read when I got home. XML framework to build UI's is a far cry different than what the title implies.
null
0
1318969363
True
0
c2siyr4
t3_lg661
null
t1_c2siyr4
t3_lg661
null
1427749745
1
t5_2fwo
null
null
null
True
dr-steve
null
You are so wrong, and I'm guessing by now you are well aware of it. You need to spend time on the wide range of equipment C can be compiled to. Even today, sizeof(int) ranges from 2 to 8 on commonly available hardware.
null
0
1318969427
False
0
c2siz6g
t3_lgfp0
null
t1_c2siz6g
t1_c2shyl6
null
1427749753
7
t5_2fwo
null
null
null
True
mr-strange
null
Your English isn't as good as your C.
null
0
1318969435
False
0
c2siz8d
t3_lgfp0
null
t1_c2siz8d
t1_c2si68s
null
1427749753
2
t5_2fwo
null
null
null
True
CylonGlitch
null
This is untrue for embedded systems, many of them still operate at less then 32 bits, and thus, an int is often 16, 8 or even, oddly enough 12 bits.
null
0
1318969451
False
0
c2sizb5
t3_lgfp0
null
t1_c2sizb5
t1_c2shyl6
null
1427749763
13
t5_2fwo
null
null
null
True
Smallpaul
null
Yes, I did. Did you see this picture? http://neugierig.org/software/blog/2011/10/haskell.png
null
0
1318969477
False
0
c2sizgc
t3_lfm1k
null
t1_c2sizgc
t1_c2si40u
null
1427749755
0
t5_2fwo
null
null
null
True
bramblerose
null
And IDL. *shivers*. But even then, I prefer IDL over MATLAB - at least it starts counting at 0.
null
0
1318969481
False
0
c2sizhf
t3_lg5ri
null
t1_c2sizhf
t1_c2sf7qf
null
1427749756
1
t5_2fwo
null
null
null
True
drzowie
null
Both MATLAB and IDL were written by people who never studied other array languages, let alone Granddaddy APL. [SciPy](http://scipy.org) and [PDL](http://pdl.perl.org) were written by people who at least knew how bad MATLAB and IDL were. That's why they work better.
null
0
1318969513
False
0
c2sizoo
t3_lg5ri
null
t1_c2sizoo
t1_c2sfbbm
null
1427749758
5
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318969691
False
0
c2sj0o0
t3_lghyk
null
t1_c2sj0o0
t3_lghyk
null
1427749773
1
t5_2fwo
null
null
null
True
Tordek
null
(you-are-all-amateurs)
null
0
1318969728
False
0
c2sj0vy
t3_lf2w2
null
t1_c2sj0vy
t1_c2s7bim
null
1427749768
3
t5_2fwo
null
null
null
True
doomchild
null
The problem is that, in C# (really any .NET language), *where* the object resides in memory doesn't immediately tell you anything about its lifetime. In C#, you *can* return a stack-allocated object from a function, because memory is managed, and the object is (usually) automatically boxed and placed on the heap. Bec...
null
0
1318969754
False
0
c2sj11q
t3_lg1xx
null
t1_c2sj11q
t1_c2sixxo
null
1427749771
1
t5_2fwo
null
null
null
True
CylonGlitch
null
I've always contended that if X is an array, using X as the address to the first element of the array is a very poor way of stating what you are trying to do. Thus, when I write my code, I typically will write &X[0] when I want it's address instead of just X. For me, it would make more sense to someone coming alo...
null
0
1318969765
False
0
c2sj13y
t3_lgfp0
null
t1_c2sj13y
t1_c2shp1q
null
1427749770
5
t5_2fwo
null
null
null
True
reddit_clone
null
Deterministic destruction (thus enabling RAII) is one of the things I sorely miss from C++ when I have to work with Java and/or C#.
null
0
1318969957
False
0
c2sj2an
t3_lg1xx
null
t1_c2sj2an
t1_c2seuiq
null
1427749783
2
t5_2fwo
null
null
null
True
Mattk50
null
because we dont take advantage of the accelerated learning period of children, and instead let them watch tv and jump around in playgrounds
null
0
1318970015
False
0
c2sj2mm
t3_khf6j
null
t1_c2sj2mm
t1_c2k9xjn
null
1427749785
1
t5_2fwo
null
null
null
True
grauenwolf
null
The question isn't "What method did I just override?", the question is "Did I override the correct method?". For example, lets say you want to update the total whenever someone adds an item to the collection. override void Add(Order item) base.Add(item) this.Total += item.Cost Then you realize th...
null
0
1318970026
False
0
c2sj2pb
t3_lg1xx
null
t1_c2sj2pb
t1_c2si9gz
null
1427749785
3
t5_2fwo
null
null
null
True
Contero
null
Absolutely. Readability > cleverness. Saying &X[0] would also work if you substituted your array with a std::vector as well.
null
0
1318970102
False
0
c2sj352
t3_lgfp0
null
t1_c2sj352
t1_c2sj13y
null
1427749790
2
t5_2fwo
null
null
null
True
cojoco
null
> sizeof(int) should be 8, not 4, on a 64-bit system. Where do they get these dummies from?
null
0
1318970121
False
0
c2sj397
t3_lgfp0
null
t1_c2sj397
t3_lgfp0
null
1427749793
-5
t5_2fwo
null
null
null
True
cojoco
null
> pretty much every system. On *every* system with 64-bit pointers.
null
0
1318970154
False
0
c2sj3g2
t3_lgfp0
null
t1_c2sj3g2
t1_c2shygc
null
1427749798
0
t5_2fwo
null
null
null
True
[deleted]
null
Generics? Templates?
null
0
1318970192
False
0
c2sj3ne
t3_lg1xx
null
t1_c2sj3ne
t1_c2sf3di
null
1427749800
2
t5_2fwo
null
null
null
True
[deleted]
null
How often do you make land-line phone calls?
null
0
1318970249
False
0
c2sj3z1
t3_lg6ms
null
t1_c2sj3z1
t1_c2siqj6
null
1427749803
2
t5_2fwo
null
null
null
True
cojoco
null
> Especially with Unix you newer know where your code might end up running. I'd happily bet you 20c that we'll never see a new architecture with a C compiler in which int is not 32 bits. There is no incentive to create a computer on which the vast body of C code does not work properly. There's already a 64-bit ty...
null
0
1318970274
False
0
c2sj44d
t3_lgfp0
null
t1_c2sj44d
t1_c2sibbx
null
1427749805
1
t5_2fwo
null
null
null
True
Flarelocke
null
IMHO, Haskell seems harder than it actually is for two reasons: 1. It mercilessly reveals pre-existing imperfections in the programmer. 2. It has a much higher skill cap than most other programming languages. The combination of the two makes trying to learn it very discouraging.
null
0
1318970332
False
0
c2sj4g6
t3_lfm1k
null
t1_c2sj4g6
t3_lfm1k
null
1427749821
0
t5_2fwo
null
null
null
True
[deleted]
null
I recognize this artistry... Scott Johnson, you dog you! Anyway, I think it's important to make this information digestible to more people.
null
0
1318970351
False
0
c2sj4jn
t3_lg6ms
null
t1_c2sj4jn
t3_lg6ms
null
1427749814
1
t5_2fwo
null
null
null
True
grauenwolf
null
Depends on whether or not you are creating a published API. I can always go back and change the type signature and recompile, someone like Microsoft or Apache can't.
null
0
1318970382
False
0
c2sj4pg
t3_lg1xx
null
t1_c2sj4pg
t1_c2sgesv
null
1427749816
1
t5_2fwo
null
null
null
True
pnpbios
null
You can already do something like this in VS 2010... drag a tab off the tab list, and dock it inside the tabs window. Boom, dual code windows.
null
0
1318970405
False
0
c2sj4uc
t3_lgecn
null
t1_c2sj4uc
t3_lgecn
null
1427749818
0
t5_2fwo
null
null
null
True
tmann619
null
Are there any good sites out there with lots of problems like this?
null
0
1318970482
False
0
c2sj5ac
t3_lgfp0
null
t1_c2sj5ac
t3_lgfp0
null
1427749829
7
t5_2fwo
null
null
null
True
curious_redhead
null
Thanks!
null
0
1318970593
False
0
c2sj5xd
t3_lf038
null
t1_c2sj5xd
t1_c2si6mm
null
1427749832
1
t5_2fwo
null
null
null
True
Laziness
null
If you want to stump people, have them declare a pointer to an array of pointers to functions that return pointers to integers and takes as a parameter, a pointer to another function that returns a pointer to an array of chars.
null
0
1318970729
False
0
c2sj6pi
t3_lgfp0
null
t1_c2sj6pi
t1_c2shfrc
null
1427749849
3
t5_2fwo
null
null
null
True
ErstwhileRockstar
null
>> "Some of the ideas were good and some not so good."
null
0
1318970824
False
0
c2sj78o
t3_lgjhl
null
t1_c2sj78o
t3_lgjhl
null
1428192076
5
t5_2fwo
null
null
null
True
MarshallBanana
null
Wikipedia says "HAL Computer Systems port of Solaris to SPARC64" and UNICOS have `sizeof(int)==8`. So not "every", just every one you're ever likely to encounter.
null
0
1318970832
False
0
c2sj7at
t3_lgfp0
null
t1_c2sj7at
t1_c2sj3g2
null
1427749848
4
t5_2fwo
null
null
null
True
elperroborrachotoo
null
While I doubt there's a pice of code that's perfect, there certainly are clear indicators of code being *better*. So this was absolutely not intended as a critique of your rewrite. --- I tend to agree with Joel, simply because in my limited experience a refactoring carries less risk of mis-estimation. OTOH, In his "B...
null
0
1318970868
False
0
c2sj7j9
t3_ldgye
null
t1_c2sj7j9
t1_c2shhdd
null
1427749853
1
t5_2fwo
null
null
null
True
MarshallBanana
null
There is that, but it doesn't apply to this question, where the system was specified to be 64-bit.
null
0
1318970894
False
0
c2sj7oy
t3_lgfp0
null
t1_c2sj7oy
t1_c2sizb5
null
1427749854
-6
t5_2fwo
null
null
null
True
eaturbrainz
null
Yeah, I do know how type-classes work. I'm just pointing out that one of the mental drawbacks from that level of polymorphism is having a less precise idea of what your code actually does ;-).
null
0
1318970929
False
0
c2sj7wu
t3_lfm1k
null
t1_c2sj7wu
t1_c2siocs
null
1427749857
0
t5_2fwo
null
null
null
True
Akira71
null
It isn't a bad site. No doubt. I only threw in the wikipedia comment because I was able to get more information here on Design Patterns http://en.wikipedia.org/wiki/Design_patterns_%28computer_science%29 and here for anti-patterns http://en.wikipedia.org/wiki/Anti-pattern for example. However it is not as easily explai...
null
0
1318970939
False
0
c2sj7yl
t3_lg6ms
null
t1_c2sj7yl
t1_c2sha22
null
1427749857
4
t5_2fwo
null
null
null
True
ysangkok
null
I make at least two land-line to land-line calls per month. I've been doing this for a year or so now. Germany to Greece. Don't remember any issues at all.
null
0
1318970939
False
0
c2sj7ym
t3_lg6ms
null
t1_c2sj7ym
t1_c2sj3z1
null
1427749857
2
t5_2fwo
null
null
null
True
freedoodle
null
...you've been able to tile and dock windows since Visual Studio 6... I think you're missing the point. This is an alternative of to a full blown [Code Bubbles](http://www.andrewbragdon.com/codebubbles_site.asp) idea or [Code Canvas](http://research.microsoft.com/en-us/projects/codecanvas/) idea, which is about spat...
null
0
1318970943
False
0
c2sj7zf
t3_lgecn
null
t1_c2sj7zf
t1_c2sj4uc
null
1427749858
1
t5_2fwo
null
null
null
True
biggerthancheeses
null
Not just magic. *Black magic*. If Java were a programming language written by wizards, those wizards would have hearts made not of coal, but of black holes. Java is a language of inconsistencies. Many parts of the language are irritating when compared to other OO languages, especially C#.
null
0
1318970950
False
0
c2sj80y
t3_lg1xx
null
t1_c2sj80y
t1_c2sf60x
null
1427749858
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318971032
False
0
c2sj8ff
t3_lgfp0
null
t1_c2sj8ff
t1_c2siz6g
null
1427749861
1
t5_2fwo
null
null
null
True
cojoco
null
Yes, I should have said, On *every new system* with 64-bit pointers.
null
0
1318971039
False
0
c2sj8h7
t3_lgfp0
null
t1_c2sj8h7
t1_c2sj7at
null
1427749862
0
t5_2fwo
null
null
null
True
MarshallBanana
null
Today, sizeof(int) is 4 on commonly available hardware. It can be 2 on hardware uncommon to *programmers*. It is 8 on exceedingly rare systems, which you are almost guaranteed to never, ever encounter. Depending on how wide your definition is, it ranges either from 2 to 4 or is just plain 4 on "commonly available ha...
null
0
1318971053
False
0
c2sj8kh
t3_lgfp0
null
t1_c2sj8kh
t1_c2siz6g
null
1427749872
-8
t5_2fwo
null
null
null
True
cpearce
null
It doesn't work in Firefox because his <video> element's <source> children don't include a type="video/ogg" attribute. Chrome (and Safari) does content sniffing in the absence of a mime type, whereas Firefox (and IE, and I suspect Opera) does not.
null
0
1318971088
False
0
c2sj8rs
t3_lg7sg
null
t1_c2sj8rs
t3_lg7sg
null
1427749866
2
t5_2fwo
null
null
null
True
loswa
null
Sorry for the late reply. A company I interviewed with last year did the projector coding bit. Me and couple of interviewers. I really liked how it went, and not just because I got an offer from them.
null
0
1318971094
False
0
c2sj8tc
t3_izlyi
null
t1_c2sj8tc
t1_c29dchg
null
1427749866
1
t5_2fwo
null
null
null
True
how_gauche
null
> If I have to worry about those details, why should I use Haskell? As many others are saying in this thread, Haskell is supposed to function on a higher level of abstraction. So let me get this straight: you would like to not have to worry about the representation of your data, and instead choose a data structure ...
null
0
1318971125
False
0
c2sj8zn
t3_lfm1k
null
t1_c2sj8zn
t1_c2sg9op
null
1427749869
7
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318971140
False
0
c2sj92r
t3_lfm1k
null
t1_c2sj92r
t1_c2sg9op
null
1427749869
1
t5_2fwo
null
null
null
True
[deleted]
null
Meh, maybe you're just lucky? Out of 100 calls, only 12 or 13 would fail.
null
0
1318971203
False
0
c2sj9ft
t3_lg6ms
null
t1_c2sj9ft
t1_c2sj7ym
null
1427749874
2
t5_2fwo
null
null
null