199 karma · joined October 26, 2013
To me technical analysis of the stock market is the modern equivalent of a shaman predicting next year's harvest. It sounds very convincing but there's little scientific evidence that it can predict anything accurately.
"Life is long enough, and it has been given in sufficiently generous measure to allow the accomplishment of the very greatest things if the whole of it is well invested."
What are "great things" and what is the definition of a "well-invested life"? Most of us will live rather unremarkable lives, most likely forgotten in a hundred years or so (at best!). Who says a "good life" means being remembered as long as possible by future humans? Who says the point of living is not to live in luxury and carelessness?
It just seems to me that Seneca assumes the stoic world-view to be the norm. Can anyone help me understand?
The trend away from democracy is alarming yes, and we shouldn't ignore it, but there is no way of knowing if it will be a short blip in history (like the trend of Communism 50s-80s) or something more permanent.
This points out how bad that question really is, the interviewer wants you to mind-read how he/she sees wants the relationships at the company to be and answer accordingly.
> Otherwise, you are simply doing an entrepreneur's job for an employee's salary...
Thank you... I'm beginning to realize this but it's still sort of a professional identity crisis for me. Of course employers want employees who think, and I'm happy to think in terms of revenue and profit, but at the end of the day it's not my responsibility.
I have a real trouble with this sentiment, and it is repeated often here on HackerNews due to this site's entrepreneurial focus.
As a developer and a professional, where does my responsibility end? I'm a developer, not a manger, and not a shareholder of the company.
Would you say it's a pilot's responsibility to point out and act in ways that reduces the cost of running the airline business or that increases its revenue? How about a surgeon or a medical doctor? At the end of the day most professionals work for a private company, a private company exists to generate profit.
Why must software developers have an entrepreneurial mindset while other professionals do not? Can someone help me understand?
"See, that's exactly why we shouldn't write any/so many tests!" - A product owner I know...
How do you reconcile with the fact that there are hundreds of texts and stories that have selectively excluded by human hands to create what we today call the bible?
If my priest gives me a bible and tells me "This is the word of God", but admits that over the last 2000 years there have been several councils were certain texts and stories were added and removed, and that archaeologists have found previously unknown gospels not included in the bible, what am I supposed to think?
How many Jews and Christians do you know? How many theologians do you know?
I could just as easily state that it is abundantly clear that the Old Testament and the New Testament are written by completely different people at completely different points in time.
Are you saying that all acts of cruelty by God in the OT are acts of judgement? And what kind of judgement is that? The story about Sodom and Gomorrah basically tells us that:
A) Any kind of sin can be punishable by death. B) Collective punishment is OK, including innocent men, women and children.
This also means you can never eat 'fresh sushi'.
It's frankly a bit concerning that Corbyn doesn't realise this.
That may be true for educated middle to upper class professionals, without children or other dependants, but I have a hard time seeing how it benefits the average worker.
In practice though the employee/employer are free to upon termination sign an agreement reducing the dismissal period to whatever they feel is appropriate. Few employers wants to keep an employee that's decided to quit longer than strictly necessary.
I've seen the insecurity of some of my colleges without degrees, almost like they think college is a mystical place where deep and unique knowledge is shared. That insecurity can really cripple your career.
I can't think of any, other than consequences from the hoisting such as making the order of the variable declarations important (whereas it's not important if they were function declarations).
> I admit I don't understand at all how a function declaration changes the behaviour of its free variables. What is there about a function declaration that provides more control over its dependencies on its enclosing environment?
You are correct, it doesn't. I realise now that in my head I was not strictly comparing function declarations to function expressions, but rather top-level function declarations (like in C) versus function expressions defined at some inner scope.
Using function declarations at any other scope than the top-level is something I would consider an anti-pattern (if I had to use that word), since it's very confusing to programmers from other C-like languages.
> With respect to accidental/unintended closures, can you elaborate on this? Perhaps provide an example showing why a function assigned as an expression creates an accidental closure but a function that is declared does not?
So, as I said above I was referring to function expressions versus top-level function declarations, which probably makes this question obsolete. I should perhaps have said unnecessary closures, since if you capture 10 variables but only use one then perhaps you should rethink your design. Closures are super useful but they tend be abused (yay access to everything!) which leads to bad design (low separation of concerns and overall spaghetti code).
I suspect from your questions you already know all of this. I should have been more clear that I was not talking about any semantic differences between function declarations and function expresses, since you are correct in that there are none, but rather the design choice of using a function expression (and thereby capturing the variables in scope) versus breaking it out as a top-level function declaration thus making it necessary to explicitly state all input as arguments.
function foo() {
console.log('bar');
}
And when referring to a function expression I'm talking about this: var foo = function () {
console.log('bar');
};
The latter needs to be terminated with a semicolon to prevent ambiguity (in some situations), while the former does not. This for example is valid JavaScript: function foo() {
console.log('bar');
}foo=5I made an example here: http://pastebin.com/2nS9EDPb
(Please correct me if I'm wrong, I wasn't aware for example that function declarations were treated as variables, redefinable etc)
What I'm still arguing for is that "enforcing semicolon habits" is not a compelling argument for using function expressions over function declarations. (Perhaps you're talking about semicolons in general, which is something I would rather not get into :)
I'm really skeptical about this. Using function expressions has some quite subtle consequences (hoisting, accidental/unintended closures) which you automatically avoid when using function declarations. Function declarations are also very useful since they allow you to use the function before it is defined (in the code), which mean you can read the code (and use the function name as an abstraction) without having to scroll past all function implementations.
To expand a bit on the accidental closures part, a variable bound by a closure is an implicit dependency of that function. By breaking function expressions out as function declarations you can be more explicit about what kind of input that piece of code needs from the outside. I just think overuse (nesting etc.) of closures can lead to some quite messy code, it gets harder to reason about when a variable was actually bound and to what.