Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raquo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
331.
▲
by
raquo
11y ago
Looking at job postings, angular does seem to br dominant, unfortunately.
332.
▲
by
raquo
11y ago
I don't get the point of this article. It posits the usage of small independent tools as a problem, and then provides solutions to the problem that are not much more than prepackaged combinations of these tools and therefore were made
333.
▲
by
raquo
11y ago
So, once again, JSX is JS. You're free to write the exact same thing without XML syntax. If you don't like that either, then what you're really saying is "Don't generate HTML using JS" . Why not? The benefit
334.
▲
by
raquo
11y ago
> Putting behaviour in HTML is a bad idea This is not what I'm doing. JSX is JS. I'm not putting any logic "in HTML". If I were able to express what I'm doing in mustache-style syntax, it would be: Blah b
335.
▲
by
raquo
11y ago
JSX/createElement is not just syntax sugar though. It avoids the whole step of parsing the template. Because JSX is JS code, you can pass native JS values to it including callbacks. Whereas anything you could pass to mustache-style tem
336.
▲
by
raquo
11y ago
Your end product has both HTML and JS so there's no way around mixing them somehow at some point. You could do it by keeping them separate and linking between them by means of CSS classes and magic strings in HTML templates. Or you can
337.
▲
by
raquo
11y ago
I don't know whether TPP has such provisions, or if it's even common for such provisions to exist. I sure hope the TPP isn't as bad as it seems.
338.
▲
by
raquo
11y ago
> What really would not make sense would be for an international treaty to restrict what a country can do with its own software in that country That's why people are concerned about the TPP, it appears to do exactly that. Not just i
339.
▲
by
raquo
11y ago
> If a country wants to do this with domestic software produced by a domestic business It doesn't really make sense to do that with domestic software and to give imported software a free pass. > which other country that is a part
340.
▲
by
raquo
11y ago
It's right there, "condition for the import". The text in question is just one sentence, but its meaning can be altered by any of the other 6000 pages. For example, this is how people who know more about this than me are read
341.
▲
by
raquo
11y ago
So when the TPP says: > No Party shall require the transfer of, or access to, source code of software owned by a person of another Party, as a condition for the import, distribution, sale or use of such software, or of products containin
342.
▲
by
raquo
11y ago
Parallel construction should work for blackmail just as well as it does in the courts I think to obscure the true source of information. And people don't do bad things alone, there are always other people involved who could simultaneou
343.
▲
by
raquo
11y ago
There might be plenty of reasons why we don't know of such instances. For example, those being blackmailed might not know or have any proof that it's FBI who's blackmailing them. The FBI of course has endless opportunities of
344.
▲
by
raquo
11y ago
That would also explain why corruption is allowed to happen, kinda. Is there a realistic exit from that situation?
345.
▲
by
raquo
11y ago
Yeah, but I'm wondering more about the inaction of other federal powers. Congress, President, I don't really know whose job it is, but someone in this country should have the power to deal with rogue government agencies? They do
346.
▲
by
raquo
11y ago
> By all appearances, a significant chunk of the US law enforcement apparatus has simply gone rogue, stopped respecting Congress and the courts and is instead focused on increasing its own power. I truly don't understand why nothing
347.
▲
by
raquo
11y ago
Correct me if I'm wrong, but I think the relationship of Java and JS in ScalaJS and Kotlin is about the same: If your Scala/Kotlin code depends on any Java classes, you won't be able to compile it to JS. You can only compile
348.
▲
by
raquo
11y ago
Speaking of bringing nice languages to the browser. Kotlin is a simpler language than Scala and also compiles to JS. Unlike Scala.JS which seems to be a completely third party project, Kotlin's compilation to JS is considered one of th
349.
▲
by
raquo
11y ago
I'm not claiming to give a formal definition of terrorism, I'm just saying that if such a definition exists it should definitely include the Paris attacks, otherwise it would be meaningless. Regardless of that, the events that you
350.
▲
by
raquo
11y ago
Politics aside, if targeting and killing civilians indiscriminately is not terrorism, I don't know what is. ETA: I'm talking about the Paris attacks specifically, not giving a formal definition of terrorism. If you don't coun
351.
▲
by
raquo
11y ago
> An interesting aspect of a Bitcoin ransom is that third parties can verify that a ransom was paid. Huh, interesting. If third parties have attackers' bitcoin address, they can also pay the ransom themselves.
352.
▲
by
raquo
11y ago
But that will not happen regardless of how good or bad the individual provisions are.
353.
▲
by
raquo
11y ago
Huge, all-encompassing all-or-nothing deals like the TPP are not good. They're merely easier to negotiate. What's the point of post-factum public scrunity if the deal can not be modified at this point? It's just a farce.
354.
▲
by
raquo
11y ago
"shall endeavour to cooperate" means this provision will never be the reason why this happens, if it does.
355.
▲
by
raquo
11y ago
It seems that this particular article is more about creating equal conditions for domestic vs foreign producers – see "as a condition of import". Japan can still require ALL cars sold in Japan to release their source code. They ju
356.
▲
by
raquo
11y ago
I have a laugh every time I read this, but it's not a very good analogy for modern politics. You can't distinguish between good leaders and bad leaders quite as easily as you can distinguish lizards and people. Especially when bot
357.
▲
by
raquo
11y ago
On such a simple site it's enough to set max-width on the whole body and maybe adjust a few elements such as the comment input box. These max-widths etc. can be different based on available screen width: https://css-tricks.c
358.
▲
by
raquo
11y ago
Making a one-column text-only website work on mobile is trivial with a meta tag and a few lines of CSS.
359.
▲
by
raquo
11y ago
Absolutely, but for non-experimental stacks good practices are well understood and are easy to pick up, especially if you don't focus your career on the one true stack. For 99% of the projects you don't need to know any stack at l
360.
▲
by
raquo
11y ago
Counterpoint: the stack you choose initially will often follow you for years because switching costs are rising with every line of code and every developer on the payroll. Personally I often go for a less familiar but more appropriate stack
More ›