Skip to main content
Tyler's user avatar
Tyler's user avatar
Tyler's user avatar
Tyler
  • Member for 14 years, 2 months
  • Last seen more than a month ago
comment
How many questions are appropriate to ask as an intern?
I think it's grammatically correct either way. Rephrase it as a statement and not a question: It is appropriate to ask n questions per day. Or: n questions are appropriate to ask, each day. The second one sounds more awkward in non-question form, but I'm pretty sure both are correct.
comment
Why isn't functional programming more popular in the industry? Does it catch on now?
To some extent, I disagree with the premise of your question. Language features inspired by "functional languages" are being added to languages like Java and JavaScript. In fact, JavaScript has always been (in some ways) a functional language, though a lot of people didn't realize it until recently.
awarded
revised
Loading…
comment
How to create and publish a useful Java library
Something else you probably want to think about -- how do you want to license this code? Can anyone do whatever they want with it? Do you want it to only be used in FOSS projects or is it okay with you if it's used in proprietary software (provided they credit you)? Look into the various open-source licenses out there (GPL, LGPL, Mozilla, Apache, MIT, BSD) and decide which one you want to use.
awarded
comment
STDOUT and its impurity
Changes the state of the outside world or depends on the state of the outside world. See this question for more discussion along these lines.
comment
Why is the 'final' keyword used so little in the industry?
@Kwebble: Perhaps more importantly, individual String instances are immutable.
comment
How to teach a script to detect sarcasm?
This research may help you out. It's a very different problem but I suspect there are similarities. physorg.com/news/…
Loading…
comment
What is the most obscure sorting algorithm you know?
This is bogosort, mentioned in other answers.
Loading…
comment
Should a function use premature returns or wrap everything in if clauses?
re your point about svn: One of the cool things about git-svn is that you can do git diff --ignore-space-change to produce nicer diffs for this kind of thing.
comment
Performance vs. Laziness: Why use setters from within a class?
As for a particular reference, any discussion of the advantages/disadvantages of static vs. dynamic languages would probably include a comment along these lines.
comment
Are null references really a bad thing?
This looks like what Haskell calls a Maybe -- A Maybe Customer is either Just c (where c is a Customer) or Nothing. In other languages, it's called Option -- see some of the other answers on this question.
comment
Can software licensed under GNU General Public License v3 be sold by the original author?
"the original author is not bound by the terms of the GPL" -- if the original author distributes their program to someone, with the understanding that the program is licensed under the GPL, they are required to do what the GPL says (e.g. provide source code when asked) aren't they? I don't know what you mean.
comment
awarded
answered
Loading…