3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions
comment 9y ago · link · parent
If you think consuming content online without paying anything for it isn't a problem, you're wrong and it's not even debatable [1]. I'm not saying this is a good solution. I'm just pointing out it's not a "fantasy" of a problem.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
1. https://www.marmoset.co/posts/physically-based-rendering-and...
comment 9y ago · link · parent
Stop pretending that you don't understand what a cryptological hash function is, or that using a strong crypto function is the same as rolling your own, or that using the hash function on your input is the same as running it on random bytes.
> Thanks for your analysis!
Thanks for the anecdotal evidence.
comment 9y ago · link · parent
If those two are using SHA-1, like git, you are still using a standard. The third one however sounds like a potential mess.
comment 9y ago · link · parent
TLDR: Basically, in a typical Crockford move, he saw people were using them in a specific way he did not like (to store parsing parameters), so he removed them entirely. I say "typical Crockford" because some of his JS linting rules are gratuitous overkill in my opinion. He also suggests that if you want comments, you should pipe the config file through a minifier that removes them before parsing.
Doesn't seem like that much of a good reason to me, but whatever.
1. https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaG...
comment 9y ago · link · parent
Yes.
> Design patterns differ between languages. And OOP principles too
Not that much compared to paradigms. They're closer to coding styles. Once you understand what encapsulation is and how python lacks visibility modifiers, it's only a matter of using a coding style to compensate.
> "Two languages using the same paradigm are closer to each other" - but this seems tautologically true
Taken out of context, sure, but you excluded the second part. That's why I think Haskell and Closure are similar.
comment 9y ago · link · parent
Nice try, but we were talking about PHP and Java. Also, for instance, functional paradigm is the same for all functional languages, which is what I meant in the first place.
> You suggest skill is generic.
I'm suggesting the developer understands the OOP paradigm, knows about design patterns and isn't confused by the small differences in syntax or how much a language borrows from each paradigm. Two languages using the same paradigm are closer to each other, regardless of how different their syntaxes may be.
> Projecting the paradigms they are used to onto new domains can produce problems
That's completely true, but I'm not going to write generic comments that cover every case. I'm replying to someone comparing PHP to Java. It's my understanding the PHP is mostly OOP.
comment 9y ago · link · parent