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
monk_e_boy
null
I wondered why I had PDF errors popping up when I visted MySQL.com today :( gunna run some checks now
null
0
1317076994
False
0
c2msein
t3_ksaoq
null
t1_c2msein
t3_ksaoq
null
1427650551
1
t5_2fwo
null
null
null
True
flukus
null
Test should be as simple as possible and test one thing, the single assert principle. Larger tests are a maintenance nightmare.
null
0
1317077027
False
0
c2mseor
t3_kq001
null
t1_c2mseor
t1_c2mp2ps
null
1427650552
0
t5_2fwo
null
null
null
True
chengiz
null
(Unless The Wolf uses it first).
null
0
1317077154
False
0
c2msfb7
t3_krklz
null
t1_c2msfb7
t1_c2mrq4l
null
1427650561
1
t5_2fwo
null
null
null
True
[deleted]
null
I think the real problem is not about how they're named, but it's in this line: > We want to create objects that describe what they are, and then bind behavior to them, rather than focus on what they do, and then figure out what data they'll need to do that. It has more to do with Single Responsibility Principle..
null
0
1317077189
False
0
c2msffp
t3_krzdp
null
t1_c2msffp
t1_c2mr7jg
null
1427650563
15
t5_2fwo
null
null
null
True
cogman10
null
Hmm.... Looks like a pretty big security issue to me. Yes, It would be nice to be able to access my local console/programs from anywhere.... however, I didn't see any sort of login screen come into play with these videos. I don't know that I like the idea of having an open door like this.
null
0
1317077286
False
0
c2msfud
t3_krzdn
null
t1_c2msfud
t3_krzdn
null
1427650568
-4
t5_2fwo
null
null
null
True
[deleted]
null
I absolutely refuse to "rock" anything.
null
0
1317077372
False
0
c2msg76
t3_ks1qu
null
t1_c2msg76
t3_ks1qu
null
1427650572
29
t5_2fwo
null
null
null
True
HapDrastic
null
I suppose if you have a decent HR team, but I've never been that fortunate.
null
0
1317077480
False
0
c2msgqc
t3_ks1qu
null
t1_c2msgqc
t1_c2msd1v
null
1427650579
5
t5_2fwo
null
null
null
True
_georgesim_
null
I get your point, but will HR be qualified to know whether reading Knuth means that the person in question is passionate about algorithms?
null
0
1317077505
False
0
c2msgup
t3_ks1qu
null
t1_c2msgup
t1_c2mrnij
null
1427650580
6
t5_2fwo
null
null
null
True
comment-dwim
null
My post was actually a bit of a rant about that as I'm building a language where objects (and modules) are represented by first-class environments.
null
0
1317077659
False
0
c2mshjk
t3_kroia
null
t1_c2mshjk
t1_c2mrn2m
null
1427650590
2
t5_2fwo
null
null
null
True
Atario
null
I haven't. I've just gotten used to it. It's really no better (or worse), it's just (pointlessly) different.
null
0
1317077682
False
0
c2mshn1
t3_krv1k
null
t1_c2mshn1
t1_c2mpr3j
null
1427650592
2
t5_2fwo
null
null
null
True
Atario
null
—sent from my iThingie
null
0
1317077738
False
0
c2mshvi
t3_krv1k
null
t1_c2mshvi
t1_c2mr21g
null
1427650595
-8
t5_2fwo
null
null
null
True
ehudros
null
Here's my advice: If it makes sense, do it
null
0
1317077743
False
0
c2mshw6
t3_krzdp
null
t1_c2mshw6
t3_krzdp
null
1427650595
4
t5_2fwo
null
null
null
True
yogthos
null
These are two separate problems, you have the problem of a misplaced bracket, and a problem of a missing bracket. Forgetting to close the bracket will be caught, while the misplaced bracket will have the same problem as the python example. In python you can't detect **either** of these cases. > finding a } can be like looking for a needle in a haystack. That's a complete straw man, pretty much every editor will highlight matching parens, something you don't even get in Python because there are no parens to begin with. >Think of long lines and deeply nested code. I know, I've been there. Think of long lines of deeply nested python code, not sure how that's any better. >Python's solution is simply more elegant, it saves time and it improves readability Not for me, I far prefer Lisp syntax of having all statements being enclosed in parens, Lisp editors can move code around as blocks and allow selecting whole expressions in a single keystroke, something that saves tons of time and not possible in other languages, including python. > I still code in Java for a living. But trust me, give Python a shot, and before you know it, you'll realize how superior Python syntax is. Java is an atrocious language, and having brackets is the least of its problems. I'm pretty happy with Scheme and Clojure, and really don't see what python would offer that they don't.
null
0
1317077836
False
0
c2msib7
t3_krpem
null
t1_c2msib7
t1_c2mrfy7
null
1427650601
1
t5_2fwo
null
null
null
True
yogthos
null
the point was that if you **forgot** to put the closing bracket, you'd get a syntax error, while forgetting to indent in python compiles fine. Putting a closing bracket in a wrong spot is a different scenario, which is indeed equivalent in both cases.
null
0
1317077898
False
0
c2msilg
t3_krpem
null
t1_c2msilg
t1_c2mro2g
null
1427650604
1
t5_2fwo
null
null
null
True
OceanSpray
null
That's cool. A few years back I wrote a toy interpreter for such a language, too, just trying to see what programming in it would be like. It had first class environments combined with pass-by-expression semantics. The possibilities for reflection were staggering, but good luck trying to efficiently compile such a language.
null
0
1317077974
False
0
c2msixt
t3_kroia
null
t1_c2msixt
t1_c2mshjk
null
1427650614
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317078048
False
0
c2msjau
t3_krzdp
null
t1_c2msjau
t1_c2mreo1
null
1427650614
16
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317078209
False
0
c2msk3c
t3_ksba0
null
t1_c2msk3c
t3_ksba0
null
1427650624
1
t5_2fwo
null
null
null
True
eruonna
null
My advice would be "Don't grammaticize advice." Languages have plenty of ways of expressing the same thing, many of which differ grammatically.
null
0
1317078259
False
0
c2mskb8
t3_krzdp
null
t1_c2mskb8
t1_c2mrpxl
null
1427650627
13
t5_2fwo
null
null
null
True
seydar
null
Oh god, if my parents find out of my failure, they'll make me sleep outside when I come home :'(
null
0
1317078575
False
0
c2msls3
t3_ks1qu
null
t1_c2msls3
t1_c2msajj
null
1427650645
5
t5_2fwo
null
null
null
True
vimfan
null
I don't get why companies use incorrectly spelt words for their names. That's just going to make them harder to find.
null
0
1317078583
False
0
c2mslth
t3_ks2t2
null
t1_c2mslth
t3_ks2t2
null
1427650647
1
t5_2fwo
null
null
null
True
comment-dwim
null
> but good luck trying to efficiently compile such a language It's very hard to compile it efficiently. In my language much more so, since it has things like Fexprs and no special forms (i.e: define, if, lambda etc... are all first-class too, so you can even do stupid things like: (for-each define '(symbols) '(values))). However, given a VM with a very good garbage collector and specialized data structures for environments with a common number of bindings (for example, single pairs for 1 to 5, a linked list for 6 to 9, a hash-table when more) it can be interpreted pretty efficiently, where "pretty efficiently" in my case means about CPython 2.7 performance with a relatively simple Java-based interpreter. CPython isn't the pinnacle of performance, but I guess it's good enough.
null
0
1317078794
False
0
c2msmv3
t3_kroia
null
t1_c2msmv3
t1_c2msixt
null
1427650660
3
t5_2fwo
null
null
null
True
rasori
null
I upvoted this because it made me chuckle. But then I realized it wasn't much of a contribution to the conversation. So I upvoted helm's post, too, because if this deserved it for being funny, helm's deserved it for leading to this. Does this make me a bad person? EDIT: Indeed it does. I accept the consequences of my action.
null
0
1317078855
True
0
c2msn59
t3_krv1k
null
t1_c2msn59
t1_c2ms73b
null
1427650664
-7
t5_2fwo
null
null
null
True
[deleted]
null
How about calculating the logarithm of Ackermann function with Grahams number as arguments?
null
0
1317078908
False
0
c2msnex
t3_koio1
null
t1_c2msnex
t1_c2mcxma
null
1427650667
1
t5_2fwo
null
null
null
True
helpingfriendlybook
null
Wahhh why don't normal folks want to immerse themselves in minutiae like me?
null
0
1317079002
False
0
c2msnvn
t3_krv1k
null
t1_c2msnvn
t3_krv1k
null
1427650674
2
t5_2fwo
null
null
null
True
grampajoe
null
> A designer's job is about visual appeal. That's definitely not the whole job.
null
0
1317079028
False
0
c2mso0b
t3_krv1k
null
t1_c2mso0b
t1_c2mpk0d
null
1427650675
9
t5_2fwo
null
null
null
True
frymaster
null
no point with gimp (since it runs on windows) but if this takes off it would be an interesting way to run apps on my linux VM
null
0
1317079028
False
0
c2mso0e
t3_krzdn
null
t1_c2mso0e
t1_c2msdym
null
1427650675
2
t5_2fwo
null
null
null
True
stillalone
null
yes.
null
0
1317079062
False
0
c2mso6c
t3_krv1k
null
t1_c2mso6c
t1_c2msn59
null
1428192717
-7
t5_2fwo
null
null
null
True
AReallyGoodName
null
> my experience has been that nailing an algorithms interview is mostly a result of having seen the problem before, or having seen a problem that maps to the given problem Absolutely true. Consider the fact that a lot of these algorithms have taken 30-40years of computer science research to develop. Now ask someone to solve such a question in an interview that requires one of these algorithms that have taken years to develop. Are they going to be able to figure it out from scratch if they don't already know it? Hell no. The only way they are going to ace such an algorithms interview is if they have rote learnt the entire algorithms and data structures textbook. Something that no programmer should have to do in a real world situation when they have a stack of references at hand. Don't get me wrong. Programmers should certainly know the basics of what the algorithm classes are and what they do. eg. They should know that they can use a table of symbol probabilities to compress data. What programmers shouldn't be expected to do is rote learn every damn algorithm in the book. It's not even good programming practice to re-invent the wheel like that.
null
0
1317079085
False
0
c2msoa5
t3_ks1qu
null
t1_c2msoa5
t1_c2mr2kq
null
1427650679
12
t5_2fwo
null
null
null
True
MarshallBanana
null
Well, you could add a Native Client backend to GTK, and run GTK apps natively, locally, but inside a webpage hosted remotely, if that's something you were into.
null
0
1317079161
False
0
c2msomu
t3_krzdn
null
t1_c2msomu
t1_c2mq95e
null
1427650683
2
t5_2fwo
null
null
null
True
MarshallBanana
null
Voting somebody down because reddit choked and caused multiple posts is kind of a dick move, people.
null
0
1317079294
False
0
c2msp7k
t3_krzdn
null
t1_c2msp7k
t1_c2mqmbt
null
1427650693
7
t5_2fwo
null
null
null
True
riotgibbon
null
This is a great library - I use it every day. All the usual reasons for TDD, and it in effect works as compiler for that naughty JavaScript - it lets you get away with anything otherwise ... For me, it beats other Js TDD libraries as it lets you simultaneously test on multiple browsers and platforms, and export the results in Junit.xml format, so you can break a CI build. Maybe not for everyone, but ticks all the boxes if you're developing enterprise software in JS that has to meet high software quality standards
null
0
1317079304
False
0
c2msp9k
t3_ks1zg
null
t1_c2msp9k
t3_ks1zg
null
1427650693
1
t5_2fwo
null
null
null
True
[deleted]
null
whitespace allows the developer to format code in a way that is logical for them i prefer braces because i use an IDE. Or i use vim with syntax highlighting
null
0
1317079449
False
0
c2mspzd
t3_krpem
null
t1_c2mspzd
t1_c2mo1k4
null
1427650701
1
t5_2fwo
null
null
null
True
zapper877
null
The size of code is correlated with bugs because as the size of a problem increases your ability to understand the whole and consequences of how your code behaves throughout the code base decreases. It's simply a matter of not being able to cognitively hold the entire program in your head. This is why small programs are relatively bug free because the problem is small enough for a human mind to understand.
null
0
1317079453
False
0
c2mspzq
t3_krklz
null
t1_c2mspzq
t3_krklz
null
1427650701
1
t5_2fwo
null
null
null
True
tootie
null
Yup. The moral of this dialectic is to not have morons do your UX. I work with a lot of UX professionals and have never met one who proposed something this silly. They are extremely useful if they know what they're doing.
null
0
1317079686
True
0
c2msr4u
t3_krv1k
null
t1_c2msr4u
t1_c2mpk0d
null
1427650716
1
t5_2fwo
null
null
null
True
noiserr
null
> That's a complete straw man, pretty much every editor will highlight matching parens, something you don't even get in Python because there are no parens to begin with. It absolutely isn't. I've been there many times. The editor will highlight the bracket but only after you move a cursor over it. How is that easier than seeing bad indentation in plain sight, just by scanning the code, instead of having to fly over every character with your cursor? Which by the way you check indentation in every other language already. It's night and day difference. You really can't have bad indentation in Python, because indentation matches intended logic. The intended logic may have been bad but no language is immune to bad logic. What's different in python is the bad logic is much easier to spot. In python just like in every other language you check the indentation first. At that point in Python you're done. In other languages you have to move your cursor to count the brackets. So let's see, Python: - check indentation - done Most other languages: - check indentation (you should be indenting properly in every language, right?) - search for code block identifiers - you may need to move your cursor over these, since in some cases you don't know which opening belongs to which end, you need your editors help to make sure a bracket isn't misplaced - done Meanwhile you typed less in python, you were more productive and you got a more readable/maintainable code-base. Yeah Python is clearly the wrong way to go here, am I right? You mention LISP, well even Peter Norwig agrees, that Python offers superior readability. http://news.ycombinator.com/item?id=1803815 Now Clojure and Scheme (although I've always been turned off by scheme's shared namespace) are functional programming languages, which makes them pretty cool and terse, both qualities I like, and I don't really have anything against them. But they aren't very popular languages and my comments are mostly directed at more popular OO languages, you know which ones I mean.
null
0
1317079691
True
0
c2msr5x
t3_krpem
null
t1_c2msr5x
t1_c2msib7
null
1427650716
1
t5_2fwo
null
null
null
True
grauenwolf
null
I find the so-called "single assert principle" laughable and your claim that "larger tests are a maintenance nightmare" to be downright ludicrous. What could be more of a nightmare than having to change dozens of nearly identical tests because a class was restructured?
null
0
1317079785
False
0
c2msrnn
t3_kq001
null
t1_c2msrnn
t1_c2mseor
null
1427650723
1
t5_2fwo
null
null
null
True
troyanonymous1
null
That's ridiculous, the OS should be the browser instead. Just make web applications with Qt and GTK+ and have a display server / window manager that doesn't suck balls.
null
0
1317079871
False
0
c2mss2d
t3_krzdn
null
t1_c2mss2d
t1_c2msaoh
null
1427650729
21
t5_2fwo
null
null
null
True
noiserr
null
So you don't indent your code?
null
0
1317079916
False
0
c2mss97
t3_krpem
null
t1_c2mss97
t1_c2mspzd
null
1427650730
1
t5_2fwo
null
null
null
True
yaztheblack
null
Wrong that users want to be able to search their eBooks, and have the option of changing the look and feel of their apps? As a user, who knows many other users, I can attest that the engineer was correct. Besides more choice is never a bad idea, if you really think it'll scare the plebs, hide the choice in an 'Advanced' section. For the love of god, though - no search? You approve of that? *Really*?
null
0
1317079988
False
0
c2msso6
t3_krv1k
null
t1_c2msso6
t1_c2ms8i8
null
1427650737
9
t5_2fwo
null
null
null
True
PlNG
null
"They are not all accounted for, the lost seeing stones. We do not know who else may be watching."
null
0
1317080039
False
0
c2msswl
t3_ks1qu
null
t1_c2msswl
t3_ks1qu
null
1427650740
0
t5_2fwo
null
null
null
True
grauenwolf
null
Here is an example of code that violates the single assert principle public void testAddition() { ProprietaryList list = new ProprietaryList(); list.add(new Object()); assertEquals(1, list.size()); list.add(new Object()); assertEquals(2, list.size()); list.add(new Object()); assertEquals(3, list.size()); } Proponents of this nonsense would have me break this into three tests. But even then that wouldn't be right. If this class raises property change notifications then I would need six additional tests. Add collection change notifications and you need three more. That's a dozen tests containing nearly identical code. And for what purpose?
null
0
1317080070
False
0
c2mst20
t3_kq001
null
t1_c2mst20
t1_c2mseor
null
1427650751
1
t5_2fwo
null
null
null
True
jldugger
null
Honestly, half the battle in software development is having seen things before, so you can map an existing technique onto it. Otherwise, companies could just as easily give out IQ tests to hire programmers.
null
0
1317080077
False
0
c2mst2z
t3_ks1qu
null
t1_c2mst2z
t1_c2mr2kq
null
1427650751
25
t5_2fwo
null
null
null
True
AReallyGoodName
null
Personally I'd ask what type of algorithm is required as opposed to demanding an implementation. Knowing the general types of algorithms is important. Knowing each individual implementation of the various algorithms is pointless. If I stated a problem such as "I have a set of numbers and I always need quick access to the minimum/maximum number at any time, what class of algorithm should I look for?" Then expecting a response of "use a priority queue" isn't unrealistic. I expect programmers to know the basic categories of algorithms otherwise they won't know what to look for when they try to find good implementations of the algorithm. I don't expect programmers to be able to write perfect implementations of the algorithms in an interview setting. In fact I wouldn't even want a programmer to do that in a real world setting. Most of the algorithms in your text book have already been released as a free library for your favourite language that's been bug tested and optimised for many years. If you've rote learnt implementations you're a programmer that wastes time and risks bugs. If you know how to use the implementations though you're a programmer I'd want to hire.
null
0
1317080132
False
0
c2mstd9
t3_ks1qu
null
t1_c2mstd9
t1_c2mrb4j
null
1427650746
17
t5_2fwo
null
null
null
True
Instantiation
null
A lot of people seem to misinterpret his point. I assume this is for the purpose of writing humorous counterexamples (e.g. renaming Loader to LoaderClass, etc), which is all well and good as I love humor as much as the next person, but in case people really do fundamentally misunderstand what he's saying, the point of the article is not really about the class names. It's about the underlying implication of what the class name says about the class design. His point is that in OOP, the proper class is centered around the data it contains, and not the functionality it performs. That's why "Loader" is bad, because you are defining your class (in terms of the name, and therefore implying what it does) by the functionality, not by the data. If you had a LoadedRecord, then it would be data-centric and you could define methods like LoadedRecord.read() or whatever, which provide the necessary access. Or RecordStream.Load(), which does what the erstwhile "Loader" class would perform. This is all simple enough in a generic "Loader" case that perhaps it makes no difference one way or the other. But once you start dealing with something like HistogramAnalyzerBuilder(...), then it get's to be a bigger deal. And it's not that you can't write functionally-oriented objects, certainly we can all agree it's *possible*. It's just a question of whether it's a good design decision. I wouldn't agree that it's *always* a bad idea, but I do think it can lead projects down awkward paths, and of course once all of the functionally-oriented infrastructure is laid, it can be nearly impossible to undo. So this is the advice to novice programmers who are trying to synthesize this blog post: Try to (mostly) write classes that are centered around the data they contain, and then write methods that allow you to do interesting things with that data; do not write classes around interesting methods you want to perform, and then conglomerate as much data as you need to get the work done. You want to (ideally) have those complicated data relationships built out in the class relationships, and not wrapped up under the covers of some god-object.
null
0
1317080256
False
0
c2mstzf
t3_krzdp
null
t1_c2mstzf
t3_krzdp
null
1427650754
7
t5_2fwo
null
null
null
True
webbles
null
I'd be interested to see the HTML it generates and see how much client/server communication is happening. This looks great on 127.0.0.1 but what about over a typical cable modem up and down?
null
0
1317080256
False
0
c2mstzh
t3_krzdn
null
t1_c2mstzh
t3_krzdn
null
1427650754
8
t5_2fwo
null
null
null
True
njharman
null
What is the point of this drivel? To demonstrate how utterly clueless author is?
null
0
1317080293
False
0
c2msu5m
t3_krv1k
null
t1_c2msu5m
t3_krv1k
null
1427650756
2
t5_2fwo
null
null
null
True
[deleted]
null
I think it depends if the class is virtual or not. Loader is a generic virtual class that will load nothing but will be used to form derived classes. FooLoader will load Foo objects, etc. But then it does not need to be OOP at all. FooLoader could just as well be a function that allocates memory for a Foo structure, loads it, and returns a pointer to the structure. Names shouldn't be confusing is a basic principle that applies to everything in programming, not just to objects.
null
0
1317080363
False
0
c2msuh3
t3_krzdp
null
t1_c2msuh3
t1_c2mr7jg
null
1427650759
1
t5_2fwo
null
null
null
True
[deleted]
null
I was feeling kind of jaded and sarcastic by the end of the whole thing so I ended up naming the instances of the assembler "ass"
null
0
1317080433
False
0
c2msusl
t3_krzdp
null
t1_c2msusl
t1_c2ms8we
null
1427650763
3
t5_2fwo
null
null
null
True
VousEtMoi
null
Both are wrong. Keeping it simple and intuitive is as important as adopting and using the potential of technology. Good software engineers AND designers should know that and feed each other.
null
0
1317080494
False
0
c2msv2h
t3_krv1k
null
t1_c2msv2h
t3_krv1k
null
1427650767
4
t5_2fwo
null
null
null
True
ker2x
null
Yes ! thank you ! :)
null
0
1317080528
False
0
c2msv7s
t3_krzdp
null
t1_c2msv7s
t1_c2ms482
null
1427650769
1
t5_2fwo
null
null
null
True
sakabako
null
but _I hate change!!_
null
0
1317080714
False
0
c2msw5d
t3_krv1k
null
t1_c2msw5d
t1_c2mq64v
null
1427650782
-2
t5_2fwo
null
null
null
True
010101010101
null
http://en.wikipedia.org/wiki/Cookiecutter_shark
null
0
1317080716
False
0
c2msw5o
t3_ks1qu
null
t1_c2msw5o
t1_c2mrt5w
null
1427650782
-1
t5_2fwo
null
null
null
True
ghthor
null
Yea, I want to measure bandwidth usage also.
null
0
1317080763
False
0
c2mswe3
t3_krzdn
null
t1_c2mswe3
t1_c2mstzh
null
1427650786
8
t5_2fwo
null
null
null
True
rmeredit
null
I don't know why you're being downvoted - this is objectively and fundamentally true. Every option setting is a design choice that the developer is not making. That may be a good thing or a bad thing, but it is certainly true.
null
0
1317080798
False
0
c2mswjy
t3_krv1k
null
t1_c2mswjy
t1_c2mr95l
null
1427650787
2
t5_2fwo
null
null
null
True
omnilynx
null
OK, what is your definition of procedural programming, and how does it differ from object oriented programming?
null
0
1317080868
False
0
c2mswwg
t3_krzdp
null
t1_c2mswwg
t1_c2mscro
null
1427650792
0
t5_2fwo
null
null
null
True
Kalium
null
...wtf?
null
0
1317080879
False
0
c2mswyi
t3_ks1qu
null
t1_c2mswyi
t1_c2msw5o
null
1427650793
2
t5_2fwo
null
null
null
True
Bognar
null
I hate the new Facebook. Then again, I hated the old ones as well.
null
0
1317080920
False
0
c2msx5l
t3_krv1k
null
t1_c2msx5l
t1_c2mqwi6
null
1427650796
3
t5_2fwo
null
null
null
True
yaztheblack
null
I added a Quick Print button to the Home bar on Word and that and some quick border-drawing buttons to Excel. Honestly, MS Software is pretty sweet these days, and Apple have been disappointing... and this is coming from a guy on a Mac that used to be an Apple devotee. That MS have been improving design without stealing my choices, while Apple have been breaking it (imo) without giving me any more choices is a big part of it. Eg: the switch from Exposé to Mission Control pisses me off, as it's much more awkward to pick out a window with the new layout, and there's no option to switch back. I'm pretty confident in my belief that the optimal UI layout is to default everything fit for a layman, have some fairly basic options in menus for average users, and then have an 'Advanced' menu for people who understand what they want. That the average Engineer doesn't understand what the layman wants is *not* a reason not to cater for the Engineer if he's going to be using your software. That said, the Engineer is going to look through menus to get what he wants, and the layman isn't. That, and the fact that the laymen outnumber the Engineers vastly means that most software should default to incredibly layman-friendly. Dear lord I hate having functionality I had taken away from me, though.
null
0
1317080957
False
0
c2msxbo
t3_krv1k
null
t1_c2msxbo
t1_c2msdyl
null
1427650797
2
t5_2fwo
null
null
null
True
rmeredit
null
What makes you think good design is "catering to the lowest common denominator"? My personal experience is that the very definition of good design is catering for something other than the lowest common denominator. Crap design is the opposite. Option-itis is the abrogation of design responsibility altogether.
null
0
1317081011
False
0
c2msxl4
t3_krv1k
null
t1_c2msxl4
t1_c2ms492
null
1427650800
2
t5_2fwo
null
null
null
True
yaztheblack
null
Just because they hated the last change, doesn't mean they can't hate the new one more... Seriously, though, I bloody hate the new sidebar, I just don't use FB enough to complain.
null
0
1317081072
False
0
c2msxvs
t3_krv1k
null
t1_c2msxvs
t1_c2mrxnl
null
1427650804
7
t5_2fwo
null
null
null
True
moondance
null
Those things have even less to do with actual work than implementing some slightly tricky algorithm. - Books are completely irrelevant for a lot of programming. Methodologies are only useful for a subset of programming jobs (product release schedules, etc) - Wouldn't it make more sense to ask what projects they worked on rather than source code read? - Technology/language is great, but a lot of times the company has their own technology/language that is not likely to change. - See above for jumping technologies.
null
0
1317081138
False
0
c2msy7p
t3_ks1qu
null
t1_c2msy7p
t1_c2mrjo3
null
1427650808
3
t5_2fwo
null
null
null
True
Azkar
null
I don't get it...
null
0
1317081217
False
0
c2msykg
t3_ks1qu
null
t1_c2msykg
t1_c2msw5o
null
1427650813
1
t5_2fwo
null
null
null
True
headzoo
null
Voting you down, not because you think the engineer is wrong, but because you said he was wrong, but didn't point out why. Anyone can make blanket statements like "he was wrong", without providing any evidence.
null
0
1317081277
False
0
c2msytq
t3_krv1k
null
t1_c2msytq
t1_c2ms8i8
null
1427650816
27
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317081321
False
0
c2msz0r
t3_ks1qu
null
t1_c2msz0r
t1_c2mswyi
null
1427650819
1
t5_2fwo
null
null
null
True
bonafidebob
null
The best programming interviews I've done (both ways) involve being shown busted, crappy, inefficient code. More bugs than statements is the goal here. The candidate is expected to (1) understand what the code actually does, (2) make a good guess at what the code was intended to do, and (3) provide new code that does that. I've found success at this correlates well to working with other programmers in real life.
null
0
1317081350
False
0
c2msz9b
t3_ks1qu
null
t1_c2msz9b
t1_c2mrb4j
null
1427650822
54
t5_2fwo
null
null
null
True
010101010101
null
The name "cookiecutter shark" refers to its feeding habit of gouging round plugs, like a cookie cutter, out of larger animals. Marks made by cookiecutter sharks have been found on a wide variety of marine mammals and fishes, as well as on submarines, undersea cables, and even human bodies.
null
0
1317081357
False
0
c2mszah
t3_ks1qu
null
t1_c2mszah
t1_c2msykg
null
1427650822
1
t5_2fwo
null
null
null
True
superbungalow
null
Am I only the only one who found themselves disliking both Dick and the engineer? Initially I agreed with him, about the eBook search and the concept of making a computer easier to use, but then he was just wrong. Skeuomorphism is not always simpler, especially when users have become accustomed to the way computers are designed, and the UX concepts they deal with daily, forcing them to think both ways **will** lead to confusion, there's no two ways about it. User interfaces are successful when they contain *suggestions* of real world objects, not when they try to emulate them.
null
0
1317081515
False
0
c2mt024
t3_krv1k
null
t1_c2mt024
t3_krv1k
null
1427650833
8
t5_2fwo
null
null
null
True
NanoStuff
null
I wrote one in CUDA that uses 16 samples per pixel, also renders julia fractals at a selected location, and is absurdly fast on top of it :) http://www.nowykurier.com/mandelcuda.zip
null
0
1317081540
True
0
c2mt05x
t3_krpem
null
t1_c2mt05x
t1_c2mqbut
null
1427650834
3
t5_2fwo
null
null
null
True
rmeredit
null
Dick is a strawman and a crap designer. A design is not about visual appeal. Graphic designers may have that as their main objective, but a designer is someone who thinks about and crafts the way an artefact behaves. This encompasses user interface design, but goes deeper than that to the fundamental idea of what the artefact is meant to do. What is it like to use the thing being designed? How does it change what people do? These are design questions that are often just left up to engineers to determine, and the result is something that's easy to build (because that's what's important to an engineer) but sucks the energy out of life to use.
null
0
1317081564
False
0
c2mt0a5
t3_krv1k
null
t1_c2mt0a5
t1_c2mpk0d
null
1427650835
25
t5_2fwo
null
null
null
True
egypturnash
null
calvetica > default iPad calendar But oddly enough the "realistic" look of iCal doesn't bug me too much. Why? Because it still works like I expect it to. The big thing that made me ditch the iPad calendar is that it had the world's worst UI for navigating days/weeks/months - instead of being able to swipe the page left and right, as every instinct about the iPad's UI conventions screamed I should be able to do, you have to use these tiny little targets at the bottom.
null
0
1317081608
False
0
c2mt0i3
t3_krv1k
null
t1_c2mt0i3
t3_krv1k
null
1427650844
5
t5_2fwo
null
null
null
True
are595
null
Ah, now can you explain it to me like I'm 12?
null
0
1317081691
False
0
c2mt0wf
t3_krpem
null
t1_c2mt0wf
t1_c2mqruq
null
1427650845
2
t5_2fwo
null
null
null
True
[deleted]
null
Thin clients can have the CPU done on a remote system with more resources. This is a display console not where the CPU work is being done. There is still a "point" with gimp, as there is the is the IOS and android architecture that could benefit from doing the work on a larger, more powerful back end.
null
0
1317081760
False
0
c2mt18a
t3_krzdn
null
t1_c2mt18a
t1_c2mso0e
null
1427650857
2
t5_2fwo
null
null
null
True
rush22
null
Why I believe I'll name my builder class Factory! edit: whoops didn't read that he suggests that for manager... ehmmm...
null
0
1317081787
True
0
c2mt1c1
t3_krzdp
null
t1_c2mt1c1
t3_krzdp
null
1427650850
4
t5_2fwo
null
null
null
True
Synackaon
null
Except that missing an indentation in python is rather easy to see with a casual glance. Missing a semicolon? Good luck.
null
0
1317081798
False
0
c2mt1e2
t3_krpem
null
t1_c2mt1e2
t1_c2msilg
null
1427650851
1
t5_2fwo
null
null
null
True
jakkarth
null
I don't always downvote stupid memes, but when I do, it's because they don't belong in this subreddit. > Some seem to think this reddit is for "links that programmers might find interesting or funny". No. It's for programming links. Programming. *Programming.* **Programming.**
null
0
1317081798
False
0
c2mt1e4
t3_ksbtb
null
t1_c2mt1e4
t3_ksbtb
null
1427650851
1
t5_2fwo
null
null
null
True
Azkar
null
ah. Thanks!
null
0
1317081810
False
0
c2mt1gd
t3_ks1qu
null
t1_c2mt1gd
t1_c2mszah
null
1427650851
1
t5_2fwo
null
null
null
True
are595
null
Also, could you potentially change the background color and/or optimize the code?
null
0
1317081830
False
0
c2mt1k1
t3_krpem
null
t1_c2mt1k1
t1_c2mqruq
null
1427650853
0
t5_2fwo
null
null
null
True
gltovar
null
Yo Dawg, I heard you like web browsers, so I put a web browser in you web browser. [from the video in this article] http://www.youtube.com/watch?v=AO-qca9ddqg&feature=player_embedded#t=141s
null
0
1317081913
False
0
c2mt1y1
t3_krzdn
null
t1_c2mt1y1
t3_krzdn
null
1427650858
0
t5_2fwo
null
null
null
True
Synackaon
null
With a BFDL to serve as the final stop for language decisions...
null
0
1317081936
False
0
c2mt21g
t3_krpem
null
t1_c2mt21g
t1_c2mqphx
null
1427650859
1
t5_2fwo
null
null
null
True
imnotsoclever
null
All I learned from this is that Engineers are full of themselves. (Note: is an engineer)
null
0
1317081959
False
0
c2mt25o
t3_krv1k
null
t1_c2mt25o
t3_krv1k
null
1427650862
0
t5_2fwo
null
null
null
True
rmeredit
null
There's a great TED talk given by Paul Bennet from IDEO where he talks about empathic design. Well worth [watching](http://www.ted.com/talks/paul_bennett_finds_design_in_the_details.html) by everyone involved in developing new things and processes. The danger with this approach, though, is to be blinkered by what you're seeing. Good design also involves creative insight that requires being informed, but not constrained, by the status quo.
null
0
1317081975
False
0
c2mt27y
t3_krv1k
null
t1_c2mt27y
t1_c2mpvrt
null
1427650862
6
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317082063
True
0
c2mt2kk
t3_krzdp
null
t1_c2mt2kk
t1_c2mswwg
null
1427650868
7
t5_2fwo
null
null
null
True
flyingfox
null
Here's my shot as unobfuscation: [http://pastebin.com/6EsGCVw9](http://pastebin.com/6EsGCVw9) The original lambda function lives on as 'mandel\_lambda' but it now explicitly calls itself rather than Y (which is later defined as the lambda function when unpacked from _. A rather bastardly move). The 'mandel\_recursive' function is exactly the same (without the lambda of course) but a bit more expressive (IMHO). Finally, 'mandel' completes the calculation without recursion. The innermost loop (for A in range(v * x): ) looks like it is averaging the pixel value over all of its neighbors. The colouring algorithm seems to take this into account but I'm not sure. The rest is just packing data into the [BMP file](http://en.wikipedia.org/wiki/BMP_file_format). I've included all three versions with benchmarks for both python and pypy. I wouldn't read too much into these numbers as there is a lot of IO (and I was using the computer to do actual work at the time). **EDIT:** For what it's worth, the original runs in about 214 seconds under pypy-1.6.0.
null
0
1317082073
True
0
c2mt2m1
t3_krpem
null
t1_c2mt2m1
t1_c2mnwjh
null
1427650868
10
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317082270
False
0
c2mt3go
t3_krv1k
null
t1_c2mt3go
t3_krv1k
null
1427650878
0
t5_2fwo
null
null
null
True
case-o-nuts
null
Handwavy is ok. You don't need to remember all the theorems and crunch all the math - if you understand the algorithm, you should be able to clearly explain why it only does k\*N operations, or k\*log(N) operations, or whatever. Watertight proofs aren't usually the main goal of the interview. Showing you can reason about the efficiency of your code is.
null
0
1317082277
True
0
c2mt3hq
t3_ks1qu
null
t1_c2mt3hq
t1_c2mr2kq
null
1427650877
3
t5_2fwo
null
null
null
True
massive_hair
null
You can look at that another way - almost one in twenty people who used the product needed an aspect of it changing so much that they were willing to take time out of their job to figure out how to change it (not always an easy task, especially if you're not computer savvy). That is to say, assuming an installed base of 160 million people (http://www.askpedia.com/q/525/Install_Base_of_Microsoft_Office_Worldwide_and_in_the_US), 8 million users of your product don't like your defaults. So I'd say along with the defaults having to be good, you'd best have a really easy way to change them.
null
0
1317082296
False
0
c2mt3l6
t3_krv1k
null
t1_c2mt3l6
t1_c2mp1p6
null
1427650879
4
t5_2fwo
null
null
null
True
case-o-nuts
null
Don't worry about it. Retry if you feel like it.
null
0
1317082345
False
0
c2mt3ty
t3_ks1qu
null
t1_c2mt3ty
t1_c2ms2pj
null
1427650881
1
t5_2fwo
null
null
null
True
mattgrande
null
I think a lot of people really underestimate how important typography is. It can take an good design, and make it look really polished.
null
0
1317082348
False
0
c2mt3um
t3_krv1k
null
t1_c2mt3um
t1_c2mrk7n
null
1427650881
5
t5_2fwo
null
null
null
True
seydar
null
How do I retry a google interview? One doesn't just retry into mordor
null
0
1317082487
False
0
c2mt4ih
t3_ks1qu
null
t1_c2mt4ih
t1_c2mt3ty
null
1427650891
13
t5_2fwo
null
null
null
True
godofpumpkins
null
> nailing an algorithms interview is mostly a result of having seen the problem before, or having seen a problem that maps to the given problem That's true of many programming problems too, though. If you have the repertoire of solutions and are able to perform the necessary adaptation (it's a skill), the likelihood of you being able to apply it to code is higher. Nothing is perfect, but I do think interviews of this sort are still vaguely meaningful.
null
0
1317082492
False
0
c2mt4j7
t3_ks1qu
null
t1_c2mt4j7
t1_c2mr2kq
null
1427650891
2
t5_2fwo
null
null
null
True
mattgrande
null
I just hated the character of Dick. It reads like the author has some extreme pent-up anger towards designers. > Isn't he the chef at that new biodynamic tofu restaurant in North Beach? *extreme eyeroll*
null
0
1317082550
False
0
c2mt4tn
t3_krv1k
null
t1_c2mt4tn
t1_c2mt024
null
1427650894
1
t5_2fwo
null
null
null
True
mattgrande
null
That's how it read to me as well.
null
0
1317082659
False
0
c2mt5bk
t3_krv1k
null
t1_c2mt5bk
t1_c2mrhwc
null
1427650902
-2
t5_2fwo
null
null
null
True
perfectfire
null
Not funny. My favorite dev lead was one of the devs that worked on clippy (he was totally new at the time). Just kidding about it not being funny.
null
0
1317082704
False
0
c2mt5jw
t3_krv1k
null
t1_c2mt5jw
t3_krv1k
null
1427650905
1
t5_2fwo
null
null
null
True
hacksoncode
null
Yeah, well, that and "program like the next person to work on your code will be a serial killer who knows where you live".
null
0
1317082833
False
0
c2mt66u
t3_krzdp
null
t1_c2mt66u
t3_krzdp
null
1427650913
2
t5_2fwo
null
null
null
True
hackinthebochs
null
Good link, thanks. I second the request for more resources.
null
0
1317082902
False
0
c2mt6j8
t3_krzys
null
t1_c2mt6j8
t1_c2mpukq
null
1427650917
1
t5_2fwo
null
null
null
True
inmatarian
null
No, you're absolutely right. Bad implementations of anything do exist. I thought it was bad karma to spread some misinformation about good implementations, which is why I added myself to this conversation in the first place.
null
0
1317083151
False
0
c2mt7pc
t3_kroia
null
t1_c2mt7pc
t1_c2mru05
null
1427650933
4
t5_2fwo
null
null
null
True
tilio
null
the conversation is framed incorrectly because either the engineer is an inexperienced idiot, or he's an inexperienced idiot who doesn't realize he works at a company run by idiots. anyone at a real company would have mentioned conversion rates from the split tests and there would be no argument. whether you're using six sigma, lean, or even a basic cost-benefits analysis, the right path at that point is usually self-evident. in either case, that particular engineer is your typical 18-30 year old, incredibly introverted, junior-to-mid level pushover cog. what kind of engineer continues to work at a company run by mouthbreathers who think non-engineers should tell engineers how to do engineering? i would have pulled out a lighter and scorched that design doc in front of their faces.
null
0
1317083213
False
0
c2mt7zq
t3_krv1k
null
t1_c2mt7zq
t1_c2ms8i8
null
1427650936
-4
t5_2fwo
null
null
null
True
flyingfox
null
Looking at [__s's code](http://www.reddit.com/r/programming/comments/krpem/highresolution_mandelbrot_in_obfuscated_python/c2mqsw6), it looks to me like he's summing the squares of all of the surrounding pixels and taking the average: sum(man(0, complex_coord, 255)**2 for A in (0,1,2,3,4,5,6,7,8)) / 9 I think this knocks down the banding. The colour calculation: red = T*80 + T**9*255 - 950*T**99 green = T*70 - 880*T**18 + 701*T**9 blue = T*255**(1 - T**45*2) Is a little complex. I _think_ he's pre-factored in the square. It produces valid colors for T < 0.987. I haven't had time to sit down and pull it apart though.
null
0
1317083228
False
0
c2mt82d
t3_krpem
null
t1_c2mt82d
t1_c2mqlgj
null
1427650938
2
t5_2fwo
null
null
null
True
omnilynx
null
Right, but OOP also gives the computer sequential lists of instructions that are grouped into procedure calls. What makes the two different? It's my understanding that OOP is primarily concerned with modeling the system in code, and the actual processing that then takes place is almost an afterthought (with the idea that the model can be re-used for any sort of processing that may be needed), whereas procedural programming emphasizes the specific processing tasks required. As you say, obviously just shoehorning whatever data you need into the fully-created process is a strawman that nobody does, but couldn't it be said that the *emphasis* is more on the process, and the data model--while obviously an integral part *of* the process--is primarily designed with those specific processes in mind?
null
0
1317083232
False
0
c2mt835
t3_krzdp
null
t1_c2mt835
t1_c2mt2kk
null
1427650938
-1
t5_2fwo
null
null
null
True
cdtoad
null
Fuck You Dick!
null
0
1317083401
False
0
c2mt8wr
t3_krv1k
null
t1_c2mt8wr
t3_krv1k
null
1427650949
0
t5_2fwo
null
null
null