Reputation
2,914
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
14 30
Newest
 Good Answer
Impact
~142k people reached

Jun
27
comment How do functional languages handle random numbers?
@Brian Agreed, but the wording ("hook it up to something genuinely random") suggests the random source is external to the system. Therefore, the system itself remains purely functional; it's the input source that isn't.
Jun
27
revised Named output parameters vs return values
Removed irrelevant tag. Removed rant about functional programming which is unrelated to actual question
Jun
27
comment How do functional languages handle random numbers?
Nice answer, but it goes a bit too fast with some steps. For example, why would bad :: Random a -> a introduce inconsistencies? What is bad about it? Please go slowly in the explanation, especially for the first steps :) If you could explain why the "useful" functions are useful, this could be a 1000-point answer! :)
Jun
27
comment How do functional languages handle random numbers?
Why would an external & truly random source compromise the functional nature of the system? It's still "same input -> same output". Unless you consider the external source as part of the system, but then it wouldn't be "external", would it?
Jun
27
comment Do teams get more productive by adding more developers?
There is canonical, well-known literature answering specifically this question. This has been known for years. A simple google search with the exact title of your question will come up with the answer ("The Mythical Man Month") in the top 5 results. Did you try looking before asking?
Jun
26
comment Why do programmers use or recommend Mac OS X?
@AndrewDunn Isn't the OS X filesystem layout pretty nonstandard? You probably mean the kernel is Unix compliant, but that's not the full system and its tools.
Jun
24
comment GPL code allowing non-GPL local copies of nondistributed code
-1 for calling that a "loophole". Ok, just kidding. But I should, since you essentially did the same in another answer.
Jun
24
comment GPL code allowing non-GPL local copies of nondistributed code
@vartec -1 to your comment, if I could :/ It's totally unsupported & random flamebait.
Jun
21
revised Do Flexibility and Inconsistency,Unsafety Overlap?
formatted code snippet
Jun
19
comment What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
@oscilatingcretin There is a difference, of course. But the human brain benefits from visual cues that a computer parser doesn't need. It seems as if you are questioning the need for conventions/standards... which is a valid, if different question than what you originally asked.
Jun
19
comment What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
Unfortunately for you, the actual and valid reason is "because it's the standard". It pays for people in the same team to follow the same code style standard. If you fail to see why, then maybe you should ask another question: "why are standards useful?"
Jun
19
revised What were the Design Patterns of the procedural programming era?
changed C++ for Simula as the first language with OOP
Jun
18
comment What were the Design Patterns of the procedural programming era?
OOP having its roots in C++??? Kids these days... :(
Jun
18
comment Can I consider interface methods as abstract methods?
Is this Java code?
Jun
18
comment Resources for functional programming beginner
@PaulNathan Disagreed. LYAHFGG is an awesome resource for beginners to functional programming. It certainly helped me, and I knew nothing about Haskell's type system. It's not enough for advanced users, but that's not its purpose. Real World Haskell might be better for that.
Jun
18
revised How to teach Exception Handling for New Programmers?
code formatting
Jun
17
comment Reason for return statement in recursive function call
OP: is your code snippet written in C?
Jun
17
comment Reason for return statement in recursive function call
Downvoters: please realize that, depending on the background of the OP, it's not at all obvious what return does. In fact, in functional languages (and some mixed ones, like Scala) return is not needed: the value of the recursive function is the value of its last expression. Simply writing search_list(l->next, x) without return would have worked in Scala! The meaning of the return statement is only obvious to programmers with an imperative background.
Jun
17
comment Forcing people to read and understand code instead of using comments, function summaries and debuggers?
@Mikey Needless to say, I don't like this. I'd rather we all wrote good, clean code. I just think the notion that what matters the most is building good, clean, well-commented software is incredibly naive in the real world. And that writing bad code won't necessarily put you out of business, unlike what we'd like to believe.
Jun
17
comment Forcing people to read and understand code instead of using comments, function summaries and debuggers?
@Mikey I wouldn't say it's always entirely management's fault, though that plays a big part too. I've seen too many mediocre programmers who just don't care, so I cannot blame everything on management. I also doubt mediocrity is a surefire way to go out of business, unless you're building mission critical software and you lack any friendly contacts in the customer's side. It's amazing how far you can go with crap, hard to maintain software. And it's top business for outside contractors who eventually get paid to rebuild it from scratch.